| ??? 07/15/01 03:56 Read: times |
#13220 - The Technique In Data Array Accessing |
8051 have the instruction
movc a, @a+dptr movc a, @a+pc to make the job in accessing code array easy. However, it doesn't provide the instruction for accessing data array (in chip). What I do is pass array index into r0 and the base data address into r1. The call a routine and give me r0 = address of code[index] I can access the data array by mov ANYWAY, @r0 Is there any better technique that you can share with me. thanks. regards yccheok |
| Topic | Author | Date |
| The Technique In Data Array Accessing | 01/01/70 00:00 | |
RE: The Technique In Data Array Accessing | 01/01/70 00:00 |



