Differentiating different parts of assembly language

Status
Not open for further replies.
Identify the comments, operands, mnemonics, labels, and directives in the following PIC16F877assembly code:

C EQU 0x20 ; store the variable C at location 0x020
movlw 0x04 ; initialise W to 0x04
loop: movwf C
addwf C, W
goto loop
sleep
END

I attempted this question in the attached file. Could anyone verify it for me please.
 

Attachments

  • Assignment 2 Darrell Ramrattan 02719254.doc
    24 KB · Views: 128

hi,
The description in the doc, looks OK to me.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…