??? 11/15/05 01:16 Read: times |
#103730 - careful Responding to: ???'s previous message |
The register banks are actually RAM. If you use other banks you must move the stack pointer past the last bank used.
To switch register banks, set the bank control bits to the bank you want. You can use internal RAM without using the register banks. The first 128 bytes are directly addressable. The Top 128 bytes must be done via pointer. BTW What assembler are you using. |
Topic | Author | Date |
Stack pointer causing code to loop? | 01/01/70 00:00 | |
Try using a simulator | 01/01/70 00:00 | |
declaring variables | 01/01/70 00:00 | |
careful | 01/01/70 00:00 | |
push and pull | 01/01/70 00:00 | |
Correct | 01/01/70 00:00 | |
ah.. so if I change... | 01/01/70 00:00 | |
Uh, no | 01/01/70 00:00 | |
in same sub | 01/01/70 00:00 | |
Try a Ring Buffer | 01/01/70 00:00 | |
code changed so push/pops in same sub![]() | 01/01/70 00:00 |