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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/20/02 19:01
Read: times


 
#18917 - RE: assembly code check
Personally, I shy away from using POP and PUSH for storing data in RAM. Too many other things going on in the stack when using interrupts and CALLS. Unless you require the use of Register Banks 1,2, and 3, I would leave the stack pointer at its default value (07h). In your code it seems as though you have set it near the top of user space which could cause problems. Remember, in an 8051 the stack grows upward as it is used. As for MSG4 I would define either R0 or R1 as MSG4 and use it as an indirect pointer to ram for your SBUF data. You could initialize MSG4 to 30h and store your incoming message there. You will probably need to add another LCD display routine to deal with data from ram since your current routine will only display data from code memory.

Hal

List of 18 messages in thread
TopicAuthorDate
assembly code check            01/01/70 00:00      
RE: Use real FULL name            01/01/70 00:00      
RE: assembly code check            01/01/70 00:00      
RE: assembly code check            01/01/70 00:00      
RE: assembly code check            01/01/70 00:00      
RE: assembly code check            01/01/70 00:00      
RE: assembly code check            01/01/70 00:00      
RE: assembly code check            01/01/70 00:00      
RE: assembly code check            01/01/70 00:00      
RE: assembly code check            01/01/70 00:00      
RE: assembly code check            01/01/70 00:00      
RE: assembly code check            01/01/70 00:00      
RE: assembly code check            01/01/70 00:00      
RE: assembly code check            01/01/70 00:00      
RE: assembly code check            01/01/70 00:00      
RE: assembly code check            01/01/70 00:00      
RE: assembly code check            01/01/70 00:00      
RE: assembly code check            01/01/70 00:00      

Back to Subject List