??? 04/04/05 14:28 Read: times |
#90965 - max.255 entries - or the tricks :-) Responding to: ???'s previous message |
The problem is mentioned in bible: chapter 1, page 8 said: And, using INC, input 0FFh would turn into 0...
This type of table can have up to 255 entries,
numbered 1 through 255. Number 0 cannot be used, because at the time the MOVC instruction is executed, the PC contains the address of the RET instruction. An entry numbered 0 would be the RET opcode itself. Erik, I think, you work in C long enough to stop thinking in the low level way (no offence). On the other hand, if somebody presents me a more complex problem, being stuck in asm, I would probably have troubles to properly break it down into sub-tasks, set up data structures, etc... Jan Waclawek |