??? 07/10/09 15:31 Read: times |
#167020 - Follow: can I use 08H through 2FH for general purpose RAM Responding to: ???'s previous message |
Alan Dorman said:
I am using register bank zero for some basic data manipulation (ie: MOV A,@R0) but am not touching the rest of the register banks so can I use 08H through 2FH for general purpose RAM and write to them directly?
Yes of course. may use the area from 08h through 2Fh as a general purpose RAM with the direct method: MOV 2FH, #23H ; stores the value 23h to RAM position 2F or the indirect method: MOV R0, #2FH ; load the R0 index register with the desired RAM position MOV @R0, #23H ; store the value 23h to the RAM position pointed to by R0 index The assembly intructions are pretty straighforward, don't be confused. Actually the last year random numbers generator was a difficult task. This is basics. Have in mind that post: http://www.8052.com/forum/read/166982 Since you write the application in assembler it is obvious that there is not exist an active Operating System to set priorities and certain form of actions to the memory area that you have to follow. K.L.Angelis |
Topic | Author | Date |
Stack Pointer and available RAM | 01/01/70 00:00 | |
"Internal" RAM - basics | 01/01/70 00:00 | |
some confusion with your links | 01/01/70 00:00 | |
Follow: can I use 08H through 2FH for general purpose RAM | 01/01/70 00:00 | |
08 thru 2F as additional RAM | 01/01/70 00:00 | |
use the indirect method for upper RAM, take care of Stack | 01/01/70 00:00 | |
the limits for simple storage | 01/01/70 00:00 | |
Direct method, Indirect Method or C compiler ? | 01/01/70 00:00 | |
READ "THE BIBLE" | 01/01/70 00:00 | |
Tell us which exact 80c51 you are using | 01/01/70 00:00 | |
Really?? | 01/01/70 00:00 | |
a long time ago | 01/01/70 00:00 | |
Another option for usage of Register Banks | 01/01/70 00:00 | |
instead of getting it piecemeal | 01/01/70 00:00 | |
I think therefore I ask | 01/01/70 00:00 | |
WRONG | 01/01/70 00:00 | |
according to the PDF | 01/01/70 00:00 | |
Program in Assembler?? | 01/01/70 00:00 | |
assembler only![]() | 01/01/70 00:00 |