Why would the following line in C:
XRAM00 |= 0x01;
compile into this:
mov dptr, #XRAM00 movx a, @dptr mov r7, a mov a, r7 orl a, #1 mov r7, a mov dptr, #XRAM00 mov a, r7 movx @dptr, a
I would have expected this:
mov dptr, #XRAM00 movx a, @dptr orl a, #1 movx @dptr, a
So perhaps we should just call the compiler "Marvin"...?
Thanks for the description, Drew: I'd have guessed it'd be something like that, but you've done the full expose.
Great!
(Thinks: need to bookmark this thread for next time the question comes up...)