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.
Ummm... You really should understand what you write.
The statement "list p=16F877A" tells the assembler what PIC to assemble the code for. VERY important don't you think, since different PICs have different registers and memory mappings? Ignore it at your peril.
I believe that you could use the processor compiler directive instead, but I also believe that leaving out the list directive will disable production of the listing (*.lst) file, which can be very useful.
By the way... If you have MPLAB installed, start the IDE and go to help. Select the MPASM compiler. It'll explain all of the compiler directives and the instruction set that you may use when creating your programs.
The help is actually pretty well written and useful.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.