summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/rouge-4.7.0/lib/rouge/demos/nesasm
blob: 2529dfc1fc3b2f214565ccceb2c9ec2e58e15afc (plain)
1
2
3
4
5
6
7
8
9
10
11
  .bank 0
  .org $C000
Reset:	
        jsr WaitSync	; wait for VSYNC
        jsr ClearRAM	; clear RAM
        jsr WaitSync	; wait for VSYNC (and PPU warmup)

	lda #$3f	; $3F -> A register
        ldy #$00	; $00 -> Y register
        sta PPU_ADDR	; write #HIGH byte first
        sty PPU_ADDR    ; $3F00 -> PPU address