??? 07/10/09 10:54 Read: times |
#166992 - Direct method, Indirect Method or C compiler ? Responding to: ???'s previous message |
if you simply use the instruction
MOV 87H,#23H to store the number #23H at place 87H then the value of #23H will be stored on the SFR at 87h which is PCON, because this is the direct method. ![]() in order to write a value to internal RAM at 87H MOV R0, #87H MOV @R0, #23H these are stated in bible as Erik said http://www.8052.com/forum/read/166988 Beside the Assembler you may you a C Compiler that take cares of these things and set up them accordingly. SDCC http://sdcc.sourceforge.net/ or Keil or IAR or ... |
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 |