Hello
Newbie here to this coding and all that stuff. I am learning this PIC now and working with it in school. I have a question wondering if you can help
What is the result of the following instructions?
MOVLW 0x05
ADDLW 0x04
I PIC, there is Working Register just like Accumulator in 8085 Micro-processor.
movlw 0x05
will move the literal 0x05 in Working Register,
Hence after execution the W=0x5
After that
addlw 0x04 means add literal 0x04 with the content of working register and store the content back in working register.
If you are coding with MPLAB then you can use the Debugger, MPLAB SIM to STEP though your code line by line and WATCH the registers changing.
An example using your code below.