Operation on the working register
Am I missing something or is it not possible to do operations just on the working register? For instance I want the two's compliment of what I have in the register:
It seems I have to use a scratch register to do this:
Am I missing something?
Thanks,
Jim
not w inc w retiw
It seems I have to use a scratch register to do this:
mov SCRATCH, w not SCRATCH inc SCRATCH mov w, SCRATCH retiw
Am I missing something?
Thanks,
Jim
Comments
You can then use WREG to do file operations on W. While W is available at $01,
RTCC is not, and vice versa.
regards peter
Jim