??? 08/19/05 07:35 Read: times |
#99685 - Table indexing Responding to: ???'s previous message |
If each field in a tabble is the same size, usually you multiply the index and add the address (constant) of the first entry. like
;index is in a mov b,#7 ;Multiply index by 7 mul a,b add a,#low(asc32) ;low byte offset mov dpl,a mov a,b adc a,#high(asc32) ;high byte offset mov dph,a ;Now dptr points to the appropriate field. |
Topic | Author | Date |
Code optimization suggestion? | 01/01/70 00:00 | |
Table | 01/01/70 00:00 | |
Table? | 01/01/70 00:00 | |
Another table ... | 01/01/70 00:00 | |
CJNE | 01/01/70 00:00 | |
Everybody is saying to use a table | 01/01/70 00:00 | |
My confsion | 01/01/70 00:00 | |
two tables | 01/01/70 00:00 | |
Tables | 01/01/70 00:00 | |
sure | 01/01/70 00:00 | |
gurus don't subtract constants | 01/01/70 00:00 | |
16 bit table | 01/01/70 00:00 | |
bit table | 01/01/70 00:00 | |
Table indexing![]() | 01/01/70 00:00 |