Codegen Gurus,
First question:
- The prototype for __byte in the compiler guide says: int &__byte(int *array, unsigned int byte_index);
- The '&' seems to be a typo. Is that correct?
2nd question:
I've been trying to work out the difference between __byte and __mov_byte
Seems
- __byte can do either a read from or a write into a byte array.
- __mov_byte can only do a read from a byte array
But I'm not clear why one would use __move_byte over just __byte to perform the read. In the few experiments that I tried these two seem generate the same assembly code and are equiv. operations:
- val = __byte(Array,index);
- val = __mov_byte(Array,index);
Is there a difference I've missed?
-Lori