??? 02/15/08 20:03 Modified: 02/15/08 20:04 Read: times |
#150903 - this is certainly correct... Responding to: ???'s previous message |
... nevertheless, ACC is an ACCepted alias for 0E0h in the vast majority of assemblers (I'd even risk the assertion that in ALL assemblers).
Whereas PUSH A is clearly illegal, as A is a "reserved word" in '51 assemblers, hence it cannot be a valid name for a direct addressable register or memory byte, which is the only possible operand of PUSH. That some assemblers do accept PUSH A is a violation of the original '51 assembler's specification, although nowhere is said that it's an unbreakable law, is it... So let's just call it a "nonstandard extension", which is quite a regular thing today... JW |
Topic | Author | Date |
Need help with RAM access via 8051 | 01/01/70 00:00 | |
re | 01/01/70 00:00 | |
RE: | 01/01/70 00:00 | |
no need to put constant into dptr | 01/01/70 00:00 | |
How can I get the low and high parts? | 01/01/70 00:00 | |
what '51 assembler do you use? | 01/01/70 00:00 | |
push/pop A | 01/01/70 00:00 | |
In my asm push ACC works! | 01/01/70 00:00 | |
Another question: | 01/01/70 00:00 | |
options: | 01/01/70 00:00 | |
By inc I mean increase the value in RAM by 1 | 01/01/70 00:00 | |
once DPTR points to that value...![]() | 01/01/70 00:00 | |
this is why it's dangerous... | 01/01/70 00:00 | |
You can push/pop [direct] though. | 01/01/70 00:00 | |
this is certainly correct... | 01/01/70 00:00 |