??? 09/20/07 20:01 Read: times |
#144844 - My intuition Responding to: ???'s previous message |
Not having read the bible or anything else for this particular instruction, my assumption when I first encountered it, was it would mean:
JMP @A+DPTR ;take the value at (A+DPTR) and jump to that address. But apparently it means: JMP @A+DPTR ;jump to the address (A+DPTR) So I expected an indirection because of the @, but there isn't any. Jan, your version would mean to me: JMP (@A) + DPTR ;get the value at the address stored at A (in which memory?), add it to DPTR and jump to it. Had I written the assembly instruction set, I would probably have coded it as: LJMP A+DPTR As for the jumptable, it could of course also have 3 byte elements and you can fill it with LJMP instructions. It just takes a tiny bit more calculation on A and of course a smaller maximum number of items. Maarten |