??? 09/23/04 13:57 Read: times |
#78009 - RE: Modifying the program counter Responding to: ???'s previous message |
Perhaps best way of calculated jump is a Jump Table. If you have number of option (0 to n) in ACC, then
MOV DPTR,#JMPTAB RL A ; Mply by two JMP @A+DPTR JMPTAB: AJMP OPTION0 AJMP OPTION1 AJMP OPTION2 ... AJMP OPTIONNIf not all options can be made within the current 2kb page, you should multiply ACC with 3 and use LJMPS in the table. Regards, Slobodan |
Topic | Author | Date |
Modifying the program counter | 01/01/70 00:00 | |
RE: Modifying the program counter | 01/01/70 00:00 | |
RE: Modifying the program counter | 01/01/70 00:00 | |
RE: Modifying the program counter | 01/01/70 00:00 | |
RE: Modifying the program counter![]() | 01/01/70 00:00 | |
RE: Modifying the program counter | 01/01/70 00:00 | |
RE: Modifying the program counter | 01/01/70 00:00 | |
RE: Modifying the program counter | 01/01/70 00:00 | |
RE: Modifying the program counter | 01/01/70 00:00 | |
RE: Modifying the program counter | 01/01/70 00:00 | |
RE: Modifying the program counter | 01/01/70 00:00 | |
RE: Modifying the program counter | 01/01/70 00:00 | |
RE: Modifying the program counter | 01/01/70 00:00 | |
RE: Modifying the program counter | 01/01/70 00:00 |