PIC – ch . 2b. Move to GPR. Move [copy] contents of WREG GPR/RAM MOVLW 99H ;WREG=99H MOVWF 0H ;move [copy] WREG contents to location 0h … Cant move literal [immediate] values directly into the general-purpose RAM locations in the PIC18. They must be moved there via WREG.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
MOVLW 99H ;WREG=99H
;move [copy] WREG contents to location 0h
Q: Can literal values directly into SFR?
; destination of the result is WREG
; destination of the result is fileReg
38h 0011 1000
2Fh 0010 1111
67h 0110 0111 WREG = 67h
More – ch.3