Compile this program as:

customasm main.asm -o main.nes

...then run it on your favorite NES emulator!