Continue to Site

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.

  • 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

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

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.:)
 

Latest threads

New Articles From Microcontroller Tips

Back
Top