pixel index LDA #3 ; A will contain the color FIRST: STA $0200,X INX CPX #255 BCC FIRST STA $02FF LDX #0 LDA #4 SECOND: STA $0300,X INX CPX #255 BCC SECOND STA $03FF LDX #0 LDA #5 THIRD: STA $0400,X INX CPX #255 BCC THIRD STA $04FF LDX #0 LDA #6 FOURTH: STA $0500,X INX CPX #255 BCC FOURTH STA $05FF
git checkout hello_world $ ls reset.s: initialization of the NES hello_world.c: contains main called from reset.s hello_world.cfg: linker script (describes the CPU memory map used) sprites.chr: file with sprites (Bitmap ROM) $ make -> hello_world.nes $ wine fceux.exe hello_world.nes -> shows a hello world