make HERO ROM4x compatible

This commit is contained in:
Peter Ferrie 2024-05-05 20:36:32 -07:00
parent b6b193c4ae
commit 0c0050d6cf

View File

@ -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 +