• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Differentiating different parts of assembly language

Status
Not open for further replies.

dramrattan

New Member
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

ericgibbs

Well-Known Member
Most Helpful Member
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.
hi,
The description in the doc, looks OK to me.:)
 
Status
Not open for further replies.

Latest threads

EE World Online Articles

Loading
Top