??? 05/23/04 22:00 Read: times |
#71002 - Nice example Mr. Michael Karas Responding to: ???'s previous message |
Nice example.
Mr.Michael Karas why the following is used and cannot understand the explaination as you have given in your answer at that link; CALL_TABLE: CLR C ; RLC A ; multiply * 2 for word access MOV R0, A ; save a copy of index INC A ; increment index to the hig byte MOVC A, @A+DPTR ; low byte PUSH ACC ; onto stack MOV A, R0 MOVC A, @A+DPTR ; high byte PUSH ACC ; onto stack RET ; direct branch to the subroutine END |