7 .
include "../mmc/mmc3.h"
19 .extrn
chr_addr_toggle:byte
35 .extrn
flush_ppu_buffer:proc
37 .extrn
read_joypad:proc
40 .extrn
read_joypad1:proc
43 .extrn
update_sound:proc
45 .extrn
table_call:proc
46 .extrn
update_timers:proc
60 bne skip_nmi
; skip the next part if the frame couldn't
61 ; finish before the NMI was triggered
67 ; update PPU control register 0
71 ; update scroll registers
72 lda PPU_STATUS_REG
; reset H/V scroll flip flop
80 sta SPRITE_ADDR_REG
; reset SPR-RAM address
97 ; set up IRQ if requested
100 sta MMC3_IRQ_COUNTER_REG
101 sta MMC3_IRQ_LATCH_REG
102 sta MMC3_IRQ_ENABLE_REG
124 dec in_nmi
; = 0, NMI done
136 .
include "maincycletable.asm"