fix some demo IRQs

This commit is contained in:
Peter Ferrie 2021-10-22 09:27:43 -07:00
parent 7f32da538b
commit dff889fb59
5 changed files with 12 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -16,7 +16,7 @@
sta $6017
sta $603F
jsr $800
+RESET_VECTOR $106
+RESET_AND_IRQ_VECTOR $100
lda #$92
sta $0D
lda #$72

View File

@ -14,7 +14,7 @@
lda #$4C
sta $3EC9
jsr $3E65 ; decompress/set reset vector
+RESET_VECTOR $100
+RESET_AND_IRQ_VECTOR $100
lda #$EA
sta $1C38
sta $1C39

View File

@ -351,6 +351,16 @@
sta $3F4
}
!macro RESET_AND_IRQ_VECTOR .addr {
lda #<.addr
sta $3F2
sta $3FE
lda #>.addr
sta $3F3
sta $3FF
eor #$A5
sta $3F4
}
; for games that clobber $100-$105, the prelaunch code constructs a new reset vector
; somewhere else and sets its
!macro NEW_RESET_VECTOR .addr {