Add test program for mapper, fix reset bug
This commit is contained in:
23
sw/test_code/mapper_test/main.s
Normal file
23
sw/test_code/mapper_test/main.s
Normal file
@@ -0,0 +1,23 @@
|
||||
.export _init, _nmi_int, _irq_int
|
||||
|
||||
.code
|
||||
|
||||
_nmi_int:
|
||||
_irq_int:
|
||||
|
||||
MAPPER_BASE = $200
|
||||
|
||||
_init:
|
||||
ldx #$ff
|
||||
txs
|
||||
|
||||
lda #$10
|
||||
sta MAPPER_BASE + 2
|
||||
|
||||
lda #$aa
|
||||
sta $1000
|
||||
lda #$55
|
||||
sta $1001
|
||||
|
||||
|
||||
@end: bra @end
|
||||
Reference in New Issue
Block a user