??? 04/13/11 12:57 Read: times |
#181845 - Same DPTR if you don't have two Responding to: ???'s previous message |
Vaggelis Triantafillou said:
Who else can I use to take the byte from the second table ??? If your processor does not have two DPTR - something for you to figure out using the datasheets - then you have two main choices remaining. Either reload DPTR for each read. Or make sure that the two tables are stored close together with a known offset between them, and increase A with the offset before reading from the second table. Remember @A+DPTR means that you can play with either DPTR or A. But the big question here: Are you sure you should do this in assembler, and not in C? Have you really spent any time looking at the instruction set, available registers, flags etc for the processor? |