??? 04/13/11 15:33 Read: times |
#181857 - you can't store in code memory Responding to: ???'s previous message |
I wrote the table2 because I don;t know other way to store the 25 bytes that I will receive from the SBUF and to recover in order to display them one by one.
for the compare (code array to (I)DATA data array) is plain vanilla. movc and mov @Ri anyhow for the compare (code array to XDATA data array) there is a neat solution if the array is < 256 bytes long. locate the array on a page boundary (start address xx00) load the "high address holder" (P2 in the traditional '51) with the page base and use movx @Ri. Erik |