| ??? 12/03/07 22:36 Read: times |
#147821 - Not entirely true Responding to: ???'s previous message |
Erik,
You're not entirely right here. First you give an example to do table lookup using ACC and DPTR and then you claim that the interrupt does not need to push/pop registers (because you can switch to a different bank I assume). But ACC and DPTR are not in a bank (and have no shadow registers like in the Z80). Thus they must be pushed/popped in the ISR to make this work. An alternative could be to put the table in idata and use @R0 for access. It requires precious RAM, but also brings extra flexibility. I agree that whether all this is necessary just for multiplexing some LEDs is doubtful. Maarten |



