mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-27 08:50:01 +00:00
Bandits: map shield to button 1
This commit is contained in:
parent
8ec38d2c95
commit
48567554df
@ -1,5 +1,5 @@
|
||||
;license:MIT
|
||||
;(c) 2020 by qkumba
|
||||
;(c) 2020, 2024 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/BANDITS",plain
|
||||
@ -11,20 +11,20 @@
|
||||
lda #$60
|
||||
sta $87A
|
||||
jsr $800 ; decompress
|
||||
+GET_MACHINE_STATUS
|
||||
and #CHEATS_ENABLED
|
||||
beq +
|
||||
lda #<callback
|
||||
sta $481
|
||||
lda #>callback
|
||||
sta $482
|
||||
+
|
||||
|
||||
+DISABLE_ACCEL
|
||||
jmp $8F40
|
||||
|
||||
callback
|
||||
+ENABLE_ACCEL
|
||||
jsr $4C8 ; decompress
|
||||
+GET_MACHINE_STATUS
|
||||
and #CHEATS_ENABLED
|
||||
beq +
|
||||
lda $57
|
||||
cmp #$0F
|
||||
bne +
|
||||
@ -34,6 +34,11 @@ callback
|
||||
lda #$AD
|
||||
sta $63AE ; patch - don't decrease lives
|
||||
+
|
||||
lda #$35 ; map shield to button 1
|
||||
sta $2AF
|
||||
lda #2
|
||||
sta $2B4
|
||||
|
||||
+DISABLE_ACCEL
|
||||
lda #0
|
||||
rts
|
||||
|
Loading…
Reference in New Issue
Block a user