do some irq testing
This commit is contained in:
@@ -9,11 +9,15 @@ OBJS=irqtest.o
|
||||
APP=irqtest.smc
|
||||
GFX=
|
||||
|
||||
all: clean $(APP)
|
||||
all: clean $(APP) check
|
||||
|
||||
run:
|
||||
zsnes $(APP)
|
||||
|
||||
|
||||
upload: smc
|
||||
ucon64 --port=usb -xsnesram $(APP)
|
||||
|
||||
linkfile:
|
||||
echo "[objects]" > linkerfile.prj
|
||||
|
||||
@@ -21,8 +25,13 @@ linkfile:
|
||||
optixx.inc: optixx.pcx
|
||||
wine tools/pcx2snes.exe optixx.pcx -b2 -nOptixx -ooptixx.inc
|
||||
|
||||
check:
|
||||
check:
|
||||
ucon64 -chk $(APP)
|
||||
rm -fv *.bak
|
||||
smc:
|
||||
ucon64 -smc $(APP)
|
||||
rm -fv *.bak
|
||||
|
||||
|
||||
%.o: %.asm
|
||||
echo "$@" >> linkerfile.prj
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
LOROM
|
||||
|
||||
CARTRIDGETYPE $00 ; $00 = ROM only, see WLA documentation for others
|
||||
ROMSIZE $08 ; $08 = 2 Mbits, see WLA doc for more..
|
||||
ROMSIZE $07 ; $08 = 2 Mbits, see WLA doc for more..
|
||||
SRAMSIZE $00 ; No SRAM see WLA doc for more..
|
||||
COUNTRY $02 ; $01 = U.S. $00 = Japan, that's all I know
|
||||
LICENSEECODE $00 ; Just use $00
|
||||
|
||||
@@ -47,8 +47,6 @@ Start_do:
|
||||
|
||||
; Setup Video modes and other stuff, then turn on the screen
|
||||
jsr SetupVideo
|
||||
|
||||
prints "Init done"
|
||||
|
||||
lda #$81
|
||||
sta $4200
|
||||
@@ -101,17 +99,13 @@ SetupVideo:
|
||||
;.SECTION "IRQHandlers"
|
||||
|
||||
COPHandler:
|
||||
prints "COPHandler"
|
||||
rti
|
||||
|
||||
BRKHandler:
|
||||
prints "BRKHandler"
|
||||
rti
|
||||
ABRTHandler:
|
||||
prints "ABRTHandler"
|
||||
rti
|
||||
NMIHandler:
|
||||
prints "NMIHandler"
|
||||
rti
|
||||
|
||||
IRQHandler:
|
||||
@@ -119,7 +113,13 @@ IRQHandler:
|
||||
lda PalNum
|
||||
sta $2122
|
||||
sta $2122
|
||||
prints "IRQHandler"
|
||||
|
||||
lda #65
|
||||
sta $3000
|
||||
idle:
|
||||
lda $3001
|
||||
|
||||
|
||||
rti
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user