25 Nov
2015
25 Nov
'15
8:43 p.m.
I’m trying to make sure this instruction does what I expect, in regards to the ordering of register updates. Ie, does the entire 16 bit value get loaded into a temporary holding register before being moved into X, or does the MSB get loaded into X and then the LSB from an incorrect address? LDX 4,X The intent is to load the 16 bit pointer at X+4 (and X+5) into X. There are many “gotchas” regarding auto-increment/decrement but I haven’t found any indication that the above instruction won’t work as expected. Does anyone have any direct experience with this? Bob