??? 01/16/09 13:42 Read: times |
#161561 - not exactly Responding to: ???'s previous message |
The '51 uses a pre-increment scheme for pushing to stack. It means, that if SP is set to 30h, and you PUSH (or CALL which in turn pushes automatically the return address), the '51 FIRST increments the stack pointer to 31h, then stores what should be stored onto that address.
So, if you want to use RAM on addresses 30h, 31h etc., you shall set SP to 2Fh. JW |
Topic | Author | Date |
moving startadress stackpointer to 30H | 01/01/70 00:00 | |
with what instruction ??? | 01/01/70 00:00 | |
found it, change startadress stackpointer. | 01/01/70 00:00 | |
not exactly | 01/01/70 00:00 | |
The address of the Stack *Pointer* is fixed | 01/01/70 00:00 | |
stackpointer.![]() | 01/01/70 00:00 |