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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/22/02 20:38
Read: times


 
#27765 - RE: declaring variables and registers
I have the Dallas Semiconductor ds89c420 with 256bytes of scratch ram. I'm having trouble checking this out, but a quick glance at the memory map on my chip leads me to believe that #0FFh is the last part of indirect ram. So if I used :

MOV SP, #DFh

that would place the stack pointer 32 bytes before the last indirect memory location, freeing up all my registers, as well as giving me around 207 bytes of indirect spacing free for variables later on? Did I catch on correctly?

(forgive me, I have great pains calculating in hex)

*****
If you are using an 8052 derivative (256 bytes internal RAM), you would initialize the stack pointer using:
    MOV SP,#0FFH-32



List of 19 messages in thread
TopicAuthorDate
declaring variables and registers            01/01/70 00:00      
RE: declaring variables and registers            01/01/70 00:00      
RE: declaring variables and registers            01/01/70 00:00      
RE: declaring variables and registers            01/01/70 00:00      
RE: declaring variables and registers            01/01/70 00:00      
RE: declaring variables and registers            01/01/70 00:00      
RE: declaring variables and registers            01/01/70 00:00      
RE: declaring variables and registers            01/01/70 00:00      
RE: declaring variables and registers            01/01/70 00:00      
RE: declaring variables and registers            01/01/70 00:00      
RE: declaring variables and registers            01/01/70 00:00      
RE: declaring variables and registers            01/01/70 00:00      
RE: declaring variables and registers            01/01/70 00:00      
RE: declaring variables and registers            01/01/70 00:00      
RE: declaring variables and registers            01/01/70 00:00      
RE: declaring variables and registers            01/01/70 00:00      
RE: declaring variables and registers            01/01/70 00:00      
RE: declaring variables and registers            01/01/70 00:00      
RE: declaring variables and registers            01/01/70 00:00      

Back to Subject List