o add mmio to trigger cart irq
o add snes irq handlers o add inline printf asm
This commit is contained in:
@@ -45,23 +45,17 @@ Start_do:
|
||||
|
||||
; Setup Video modes and other stuff, then turn on the screen
|
||||
jsr SetupVideo
|
||||
|
||||
sei
|
||||
cop
|
||||
prints "Init done"
|
||||
stz $3001
|
||||
|
||||
lda #65
|
||||
sta $3000
|
||||
lda #66
|
||||
sta $3000
|
||||
lda #67
|
||||
sta $3000
|
||||
|
||||
printf str_COP
|
||||
|
||||
lda #65
|
||||
sta $3000
|
||||
lda #66
|
||||
sta $3000
|
||||
lda #67
|
||||
sta $3000
|
||||
cop
|
||||
|
||||
lda #$81
|
||||
sta $4200
|
||||
|
||||
Infinity:
|
||||
jmp Infinity ; bwa hahahahaha
|
||||
|
||||
@@ -98,6 +92,28 @@ SetupVideo:
|
||||
plp
|
||||
rts
|
||||
|
||||
;.ENDS
|
||||
|
||||
;.SECTION "IRQHandlers"
|
||||
|
||||
COPHandler:
|
||||
prints "COPHandler"
|
||||
rti
|
||||
|
||||
BRKHandler:
|
||||
prints "BRKHandler"
|
||||
rti
|
||||
ABRTHandler:
|
||||
prints "ABRTHandler"
|
||||
rti
|
||||
NMIHandler:
|
||||
;prints "NMIHandler"
|
||||
rti
|
||||
|
||||
IRQHandler:
|
||||
prints "IRQHandler"
|
||||
rti
|
||||
|
||||
|
||||
str_COP:
|
||||
.db "COP",10,0
|
||||
|
||||
Reference in New Issue
Block a user