ANESE/roms/tests/mappers/mmc3_test_2/source/5-MMC3.s
Daniel Prilik d7d25d7783 first try at MMC3 implementation - broken IRQ
The code is sloppy, and it doesn't work. Not entirely sure why...
2018-05-25 10:45:38 -07:00

31 lines
662 B
ArmAsm
Vendored

; Tests MMC3-specifics
.include "test_mmc3.inc"
main:
jsr begin_mmc3_tests
set_test 2,"Should reload and set IRQ every clock when reload is 0"
ldx #0
jsr begin_counter_test
jsr clock_counter ; 0
jsr clock_counter ; 0
jsr should_be_set
jsr clock_counter ; 0
jsr should_be_set
jsr clock_counter ; 0
jsr should_be_set
set_test 3,"IRQ should be set when counter is 0 after reloading, even when counter was 0 before reloading"
ldx #1
jsr begin_counter_test
jsr clock_counter ; 1
jsr clock_counter ; 0
jsr clear_irq
lda #0
jsr set_reload
jsr clock_counter ; 0
jsr should_be_set
jmp tests_passed