Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/19/04 08:11
Read: times


 
#76153 - RE: DPTR/Lk UpTbl Difficulty: Advice Please?
Responding to: ???'s previous message
I can't see any obvious reason why loading DPTR using mov dpl,# and mov dph,# should work any differently.

Otherwise, if you want strings in a fixed area, why dont you do the following:

.ORG $8000
string1 equ $

.ORG $8100
string2 equ $

Also for generality, why don't you arrange your print string routine so it takes dptr as the pointer?

mov dptr,#string1
call pstring

mov dptr,#string2
call pstring

or another method is to embed the strings into the code like this:

call pstring
.db 'hello there!',0
.....
where the pstring code expects the string to follow - it gets the return address off the stack and uses that to get the pointer to the string. When finished, it pushes the return address past the string onto the stack.

Whilst this doesn't solve your problem, it may induce some thought!





List of 12 messages in thread
TopicAuthorDate
DPTR/Lk UpTbl Difficulty: Advice Please?            01/01/70 00:00      
   RE: DPTR/Lk UpTbl Difficulty: Advice Ple            01/01/70 00:00      
      Tried those suggestions...            01/01/70 00:00      
         RE: Tried those suggestions...            01/01/70 00:00      
         You missed one!            01/01/70 00:00      
            Reply: You missed one! Andy/Bartosz            01/01/70 00:00      
   RE: DPTR/Lk UpTbl Difficulty: Advice Please?            01/01/70 00:00      
   RE: DPTR/Lk UpTbl Difficulty: Advice Please?            01/01/70 00:00      
   Check the generated code.            01/01/70 00:00      
   RE: DPTR/Lk UpTbl Difficulty: Advice Please?            01/01/70 00:00      
      RE: DPTR/Lk UpTbl Difficulty: Advice Please?            01/01/70 00:00      
         <-- Problem Resolved! -->            01/01/70 00:00      

Back to Subject List