This 5 instruction PIC assembly language program flashes the LEDs on the Low Pin Count Demo Board in an incrementing 4-bit binary sequence at a frequency that is visible to the human eye. How does it work? Can you do more in fewer bytes?
Update: I've now devised a shorter program that flashes the LEDs with just 2 instructions
Update: I've now devised a shorter program that flashes the LEDs with just 2 instructions
Without using the Origin (ORG) directive the code will be placed at 0x000 onward, bad practice really as many of the interrupt vectors are placed at 0x004 .
You mention there's no Config set, they must have been set / declared as required, they don't need to be set within the asm file, possibly the chip's reset-state is coincidentally correct for the program to run.
Being cheap, I built my own Low Pin Count board from the schematics on the Microchip site. Instead of the 4 LED's on RC0-RC3, I installed 4 bi-color LED's on RC0-RC7. When I run your program it flashes re, green and orange, very Christmasy
00:45 It's just 5 "instructions" mini lines of code. Now try to build your own Microchip and program it, how many lines will be ? ๐