mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-03 18:49:26 +00:00
make HERO ROM4x compatible
This commit is contained in:
parent
b6b193c4ae
commit
0c0050d6cf
@ -1,5 +1,5 @@
|
|||||||
;license:MIT
|
;license:MIT
|
||||||
;(c) 2019 by 4am/Frank M.
|
;(c) 2019, 2024 by 4am/Frank M., qkumba
|
||||||
|
|
||||||
!cpu 6502
|
!cpu 6502
|
||||||
!to "build/PRELAUNCH.INDEXED/H.E.R.O",plain
|
!to "build/PRELAUNCH.INDEXED/H.E.R.O",plain
|
||||||
@ -11,6 +11,24 @@
|
|||||||
lda #$60
|
lda #$60
|
||||||
sta $4028
|
sta $4028
|
||||||
jsr $4000 ; decompress
|
jsr $4000 ; decompress
|
||||||
|
|
||||||
|
ldx $FBB3
|
||||||
|
cpx #6
|
||||||
|
bne + ; not a //e or //c
|
||||||
|
ldx $FBC0
|
||||||
|
bne + ; not a //c
|
||||||
|
lda $C405
|
||||||
|
cmp #$38
|
||||||
|
bne not_mouse
|
||||||
|
lda $C407
|
||||||
|
cmp #$18
|
||||||
|
beq + ; looks like the mouse
|
||||||
|
|
||||||
|
not_mouse
|
||||||
|
lda #0
|
||||||
|
sta $6032 ; disable mouse-based VBL
|
||||||
|
|
||||||
|
+
|
||||||
+GET_MACHINE_STATUS
|
+GET_MACHINE_STATUS
|
||||||
and #CHEATS_ENABLED
|
and #CHEATS_ENABLED
|
||||||
beq +
|
beq +
|
||||||
|
Loading…
Reference in New Issue
Block a user