Data Sheet
the “+” sign next to “Source Files” to expand it and verify that your project has no source files
yet. Then right-click on “Source Files”, select “New”, and then select “pic_8b_simple.asm…”. If
“pic_8b_simple.asm” is not visible in the menu, you can find it by selecting “Other…”, “Microchip
Embedded”, and then “MPASM assembler”.
11. Choose a file name such as “main” and then click “Finish”. This should create a new file named
“main.asm” and open it for editing.
12. Copy and paste the following code into main.asm, replacing all the code that was there by default:
#include <p18f25k50.inc>
org 0x2000
goto start
org 0x2020
ledRedOn:
Pololu P-Star 25K50 Micro User’s Guide © 2001–2017 Pololu Corporation
9. Compiling a program with MPLAB X and MPASM Page 34 of 38