Microcontroller PIC18F Assembly Language Code Write instru
Microcontroller - PIC18F - Assembly Language Code
Write instructions to load the byte 00in WREG. Does the instruction set the Z flag? Copy the byte in REG1 and set the Z flag.
Solution
MOVLW 0x00 ;loads the byte 00in WREG. and will not set Z flag
MOVLW 0x00
MOVWF REG1,0 ;loads the byte 00in REG1. and will set Z flag
