mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-30 18:30:39 +00:00
Force 7 accelerate/cheat
This commit is contained in:
parent
3c44f9edf8
commit
8f43f77f90
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
;license:MIT
|
||||
;(c) 2019 by 4am/Frank M.
|
||||
;(c) 2020 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/FORCE.7",plain
|
||||
@ -7,12 +7,38 @@
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
; TODO cheats
|
||||
|
||||
;+ENABLE_ACCEL ; can't
|
||||
+ENABLE_ACCEL
|
||||
lda #<callback
|
||||
sta $556B
|
||||
lda #>callback
|
||||
sta $556C
|
||||
lda #$4C
|
||||
sta $5581
|
||||
jsr $2A55
|
||||
lda #<reset
|
||||
sta $121A
|
||||
lda #>reset
|
||||
sta $121F
|
||||
inc $3F4 ; 128k - must reboot
|
||||
jmp $1000
|
||||
|
||||
jmp $2A55
|
||||
reset
|
||||
+READ_ROM_NO_WRITE
|
||||
jmp $FAA6
|
||||
|
||||
callback
|
||||
jsr DisableAccelerator
|
||||
jsr $800
|
||||
lda MachineStatus
|
||||
and #CHEATS_ENABLED
|
||||
beq +
|
||||
lda #$AD
|
||||
sta $E263
|
||||
sta $E266
|
||||
sta $E269
|
||||
sta $E26C
|
||||
sta $E95B
|
||||
+ rts
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
|
Loading…
Reference in New Issue
Block a user