Step 3 of 11
LIST and #include
Goal
Write the first two directives and build for the first time with no errors.
LIST P=18F4550 tells the assembler which MCU you use. #include brings in symbol names TRISB, LATB, PORTB, etc. Without the include, MPASM will not recognize those symbols.
For now the file ends with END — valid even though there is no program yet.
Follow these steps
- Open
guia-puertos.asmand clear everything in it. - Type exactly the lines in Your file so far (LIST, #include, END).
- Production → Build Main Project (hammer icon).
- Output window must say BUILD SUCCESSFUL. On error, check caps and that include uses
< >.
Your file so far
LIST P=18F4550
#include <P18F4550.INC>
END
Checklist before you continue
- I have LIST and #include in the file.
- Build finishes with no errors (BUILD SUCCESSFUL).