??? 10/31/06 18:40 Read: times |
#127149 - Newbie:What is SADDR1(#number)? |
I am puzzling out 8051 assembler by writing some simple c code, compiling, and looking at the assembly output.
This fragment puzzled me: C language: char idata id0; id0 = 0xaa; Generated this output: MOV R0, #0x08 ; this is the address at which id0 is stored, OK MOV @R0, #SADDR1(0xAA) ; what the #$%! is SADDR1? ;I gather this moves a literal to the address in r0 ... ;but I don't get the syntax. What's wrong with: MOV @R0, #0xAA ; ??? SADDR1 is not in the book index ... Eric |
Topic | Author | Date |
Newbie:What is SADDR1(#number)? | 01/01/70 00:00 | |
find the correct derivative | 01/01/70 00:00 | |
I C | 01/01/70 00:00 | |
FYI: SADDR | 01/01/70 00:00 | |
SADDR1 DS89C4X0 | 01/01/70 00:00 | |
the truth, the whole truth ...![]() | 01/01/70 00:00 |