??? 09/20/07 13:18 Modified: 09/20/07 13:19 Read: times |
#144821 - so much \'fun\' with ajmp Responding to: ???'s previous message |
within reach of the AJMPs (this is sometimes not so trivial to achieve).
i have had so much 'fun' with ajmp that I have virtually abandoned using it. for jump tables I use sjmp and 'crutches' as needed. mov dptr,#PICejmp jmp @a+dptr PICejmp: sjmp code00 sjmp code08 sjmp code10 sjmp code18 sjmp code20 sjmp code28 sjmp code30 sjmp code38 sjmp code40 sjmp code48 sjmp code50 sjmp code58 sjmp code6070 sjmp code6878 sjmp code6070 sjmp code6878 sjmp code8090 sjmp code8898c sjmp code8090 sjmp code8898c sjmp codea0c sjmp codea8c sjmp codeb0c sjmp codeb8c sjmp codec0c8c sjmp codec0c8c sjmp coded0 sjmp coded8 sjmp codee0 sjmp codee8 sjmp codef0 sjmp codef8 ; crutches code8898c: ljmp code8898 codea0c: ljmp codea0 codea8c: ljmp codea8 codeb0c: ljmp codeb0 codeb8c: ljmp codeb8 codec0c8c: ljmp codec0c8erik PS Jan, as you like puzzles, tell me from which kind of routine this is extracted, I can think of only one. |