mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-28 03:29:59 +00:00
add cheats R
This commit is contained in:
parent
b28f83dc1f
commit
b3d34a1294
@ -309,29 +309,29 @@
|
||||
0001,PULSAR.II=Pulsar II
|
||||
1111,QIX=Qix
|
||||
1001,QUADRANT.6112=Quadrant 6112
|
||||
0110,RADWARRIOR=Radwarrior
|
||||
0000,RM=Raid Over Moscow
|
||||
1000,RG=Raiders of the Lost Ring
|
||||
0110,RAMPAGE=Rampage
|
||||
0116,RADWARRIOR=Radwarrior
|
||||
0007,RM=Raid Over Moscow
|
||||
1001,RG=Raiders of the Lost Ring
|
||||
0116,RAMPAGE=Rampage
|
||||
0001,RANDAMN=Randamn
|
||||
0000,RASTER.BLASTER=Raster Blaster
|
||||
1006,RI=Realm of Impossibility
|
||||
0007,REAR.GUARD=Rear Guard
|
||||
1000,RED.ALERT=Red Alert
|
||||
1110,RENEGADE=Renegade
|
||||
0000,REPTON=Repton
|
||||
1114,RENEGADE=Renegade
|
||||
0001,REPTON=Repton
|
||||
0007,RESCUE.RAIDERS=Rescue Raiders
|
||||
1000,RETRO.FEVER=Retro Fever
|
||||
1001,RETRO.FEVER=Retro Fever
|
||||
1000,RB=Retro-Ball
|
||||
0000,RIBBIT=Ribbit
|
||||
1000,ROACH.HOTEL=Roach Hotel
|
||||
0000,ROADBLOCK=Roadblock
|
||||
0004,RIBBIT=Ribbit
|
||||
1001,ROACH.HOTEL=Roach Hotel
|
||||
0005,ROADBLOCK=Roadblock
|
||||
0117,ROBOCOP=Robocop
|
||||
0000,ROBOT.BATTLE=Robot Battle
|
||||
0000,ROBOTRON.2084=Robotron 2084
|
||||
0001,ROBOT.BATTLE=Robot Battle
|
||||
0001,ROBOTRON.2084=Robotron 2084
|
||||
0001,ROUND.ABOUT=Round About
|
||||
0001,RUN.FOR.IT=Run For It
|
||||
0000,RUSSKI.DUCK=Russki Duck
|
||||
0001,RUSSKI.DUCK=Russki Duck
|
||||
0002,SABOTAGE=Sabotage
|
||||
0001,SAMMY.LIGHTFOOT=Sammy Lightfoot
|
||||
0001,SARACEN=Saracen
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11435661
|
||||
!be24 11436685
|
||||
!le16 4545
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11386874
|
||||
!be24 11387898
|
||||
!le16 5294
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11327236
|
||||
!be24 11328260
|
||||
!le16 3654
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11340017
|
||||
!be24 11341041
|
||||
!le16 4064
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11356057
|
||||
!be24 11357081
|
||||
!le16 5245
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11374571
|
||||
!be24 11375595
|
||||
!le16 5870
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11440206
|
||||
!be24 11441230
|
||||
!le16 410
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11440960
|
||||
!be24 11441984
|
||||
!le16 448
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11441408
|
||||
!be24 11442432
|
||||
!le16 303
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11394314
|
||||
!be24 11395338
|
||||
!le16 1242
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11440692
|
||||
!be24 11441716
|
||||
!le16 67
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11435602
|
||||
!be24 11436626
|
||||
!le16 59
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11434117
|
||||
!be24 11435141
|
||||
!le16 1404
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11419734
|
||||
!be24 11420758
|
||||
!le16 521
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11392168
|
||||
!be24 11393192
|
||||
!le16 2146
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11395914
|
||||
!be24 11396938
|
||||
!le16 6433
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11440616
|
||||
!be24 11441640
|
||||
!le16 76
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11435521
|
||||
!be24 11436545
|
||||
!le16 81
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11440759
|
||||
!be24 11441783
|
||||
!le16 201
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11420255
|
||||
!be24 11421279
|
||||
!le16 4511
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11424766
|
||||
!be24 11425790
|
||||
!le16 1591
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11426357
|
||||
!be24 11427381
|
||||
!le16 1053
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11427410
|
||||
!be24 11428434
|
||||
!le16 3237
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11430647
|
||||
!be24 11431671
|
||||
!le16 2877
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11433524
|
||||
!be24 11434548
|
||||
!le16 479
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11434003
|
||||
!be24 11435027
|
||||
!le16 114
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11441711
|
||||
!be24 11442735
|
||||
!le16 2370
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11407303
|
||||
!be24 11408327
|
||||
!le16 3642
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11410945
|
||||
!be24 11411969
|
||||
!le16 2795
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11380441
|
||||
!be24 11381465
|
||||
!le16 6433
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 3699712
|
||||
!be24 3700736
|
||||
!le16 8192
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 3716096
|
||||
!be24 3717120
|
||||
!le16 8192
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 3707904
|
||||
!be24 3708928
|
||||
!le16 8192
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11318953
|
||||
!be24 11319977
|
||||
!le16 8283
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11330890
|
||||
!be24 11331914
|
||||
!le16 9127
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11344081
|
||||
!be24 11345105
|
||||
!le16 11976
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11361302
|
||||
!be24 11362326
|
||||
!le16 13269
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11395556
|
||||
!be24 11396580
|
||||
!le16 358
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11402347
|
||||
!be24 11403371
|
||||
!le16 4956
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11413740
|
||||
!be24 11414764
|
||||
!le16 5994
|
||||
|
@ -1,5 +1,5 @@
|
||||
;license:MIT
|
||||
;(c) 2020 by qkumba
|
||||
;(c) 2020, 2022 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/RADWARRIOR",plain
|
||||
@ -8,7 +8,31 @@
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+RESET_VECTOR $FAA6
|
||||
jmp $3FD7
|
||||
+GET_MACHINE_STATUS
|
||||
and #CHEATS_ENABLED
|
||||
beq +
|
||||
ldx #callback_e-callback_b
|
||||
- lda callback_b,x
|
||||
sta callback,x
|
||||
dex
|
||||
bpl -
|
||||
lda #<callback
|
||||
sta $4077
|
||||
lda #>callback
|
||||
sta $4078
|
||||
+ jmp $3FD7
|
||||
|
||||
callback_b !pseudopc $240 {
|
||||
callback
|
||||
lda #$4C
|
||||
sta $400E
|
||||
jsr $3FF8
|
||||
lda #$a5
|
||||
sta $D587 ; patch - don't decrease lives
|
||||
sta $EFA9 ; patch - don't decrease lives
|
||||
+ jmp $4011
|
||||
}
|
||||
callback_e
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
|
@ -1,5 +1,5 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by qkumba
|
||||
;(c) 2021-2022 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/RG",plain
|
||||
@ -11,7 +11,16 @@
|
||||
lda #$60
|
||||
sta $9413
|
||||
jsr $7000 ; decompress
|
||||
+DISABLE_ACCEL
|
||||
+READ_RAM2_NO_WRITE
|
||||
lda MachineStatus
|
||||
and #CHEATS_ENABLED
|
||||
beq +
|
||||
lda #$ad
|
||||
sta $FE2 ; patch - don't increase lives
|
||||
sta $1A65 ; patch - don't decrease lives
|
||||
+
|
||||
jsr DisableAccelerator
|
||||
+READ_ROM_NO_WRITE
|
||||
jmp $803
|
||||
|
||||
!if * > $1C0 {
|
||||
|
@ -1,5 +1,5 @@
|
||||
;license:MIT
|
||||
;(c) 2020 by Frank M.
|
||||
;(c) 2020, 2022 by Frank M., qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/RAMPAGE",plain
|
||||
@ -7,8 +7,19 @@
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+GET_MACHINE_STATUS
|
||||
and #CHEATS_ENABLED
|
||||
php
|
||||
inc $3F4 ; force reboot
|
||||
jmp $2EED
|
||||
lda #$60
|
||||
sta $413A
|
||||
jsr $2EED
|
||||
plp
|
||||
beq +
|
||||
lda #$b1
|
||||
sta $A3DC ; patch - don't decrease lives
|
||||
+
|
||||
jmp $E800
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
|
@ -1,5 +1,5 @@
|
||||
;license:MIT
|
||||
;(c) 2020 by Frank M.
|
||||
;(c) 2020, 2022 by Frank M., qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/RENEGADE",plain
|
||||
@ -8,8 +8,36 @@
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
inc $3F4 ; force reboot
|
||||
+GET_MACHINE_STATUS
|
||||
and #CHEATS_ENABLED
|
||||
beq +
|
||||
ldx #callback_e-callback_b
|
||||
- lda callback_b,x
|
||||
sta callback,x
|
||||
dex
|
||||
bpl -
|
||||
lda #<callback
|
||||
sta $25D9
|
||||
lda #>callback
|
||||
sta $25DA
|
||||
+
|
||||
jmp $2000
|
||||
|
||||
callback_b !pseudopc $200 {
|
||||
callback
|
||||
jsr $1C1D
|
||||
dec $D58B ; patch - don't decrease time
|
||||
lda #$bd
|
||||
sta $D05C ; patch - don't decrease lives
|
||||
lda #$a5
|
||||
sta $D9E0 ; patch - don't decrease lives
|
||||
sta $DB39 ; patch - don't decrease lives
|
||||
sta $DBC8 ; patch - don't decrease lives
|
||||
sta $DBE9 ; patch - don't decrease lives
|
||||
rts
|
||||
}
|
||||
callback_e
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
||||
|
35
src/prelaunch/repton.a
Normal file
35
src/prelaunch/repton.a
Normal file
@ -0,0 +1,35 @@
|
||||
;license:MIT
|
||||
;(c) 2022 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/REPTON",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+READ_RAM2_NO_WRITE
|
||||
jsr EnableAccelerator
|
||||
lda MachineStatus
|
||||
and #CHEATS_ENABLED
|
||||
beq +
|
||||
lda #<callback
|
||||
sta $883
|
||||
lda #>callback
|
||||
sta $884
|
||||
+
|
||||
+READ_ROM_NO_WRITE
|
||||
lda #$60
|
||||
sta $86D
|
||||
jsr $800 ; decompress
|
||||
+DISABLE_ACCEL
|
||||
|
||||
jmp $BA03
|
||||
|
||||
callback
|
||||
lda #$a5
|
||||
sta $19D7 ; patch - don't decrease lives
|
||||
jmp $868C
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
28
src/prelaunch/retro.fever.a
Normal file
28
src/prelaunch/retro.fever.a
Normal file
@ -0,0 +1,28 @@
|
||||
;license:MIT
|
||||
;(c) 2022 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/RETRO.FEVER",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #$60
|
||||
sta $813
|
||||
jsr $800 ; decompress
|
||||
+READ_RAM2_NO_WRITE
|
||||
lda MachineStatus
|
||||
and #CHEATS_ENABLED
|
||||
beq +
|
||||
lda #$ad
|
||||
sta $4817 ; patch - don't decrease lives
|
||||
+
|
||||
jsr DisableAccelerator
|
||||
+READ_ROM_NO_WRITE
|
||||
|
||||
jmp $4000
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
29
src/prelaunch/ribbit.a
Normal file
29
src/prelaunch/ribbit.a
Normal file
@ -0,0 +1,29 @@
|
||||
;license:MIT
|
||||
;(c) 2022 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/RIBBIT",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #$60
|
||||
sta $4023
|
||||
jsr $4000 ; decompress
|
||||
+READ_RAM2_NO_WRITE
|
||||
lda MachineStatus
|
||||
and #CHEATS_ENABLED
|
||||
beq +
|
||||
lda #$a5
|
||||
sta $643C ; patch - don't decrease lives
|
||||
sta $6589 ; patch - don't decrease time
|
||||
+
|
||||
jsr DisableAccelerator
|
||||
+READ_ROM_NO_WRITE
|
||||
|
||||
jmp $6000
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by qkumba
|
||||
;(c) 2021-2022 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/ROACH.HOTEL",plain
|
||||
@ -10,16 +10,14 @@
|
||||
+ENABLE_ACCEL
|
||||
lda #<callback2
|
||||
sta $5164
|
||||
lda #>callback2
|
||||
sta $5165
|
||||
ldx #>callback2
|
||||
stx $5165
|
||||
lda #<pcallback2
|
||||
sta $5034
|
||||
lda #>pcallback2
|
||||
sta $5035
|
||||
stx $5035
|
||||
lda #<pcallback1
|
||||
sta $5154
|
||||
lda #>pcallback1
|
||||
sta $5155
|
||||
stx $5155
|
||||
jmp $800 ; decompress
|
||||
|
||||
callback1
|
||||
@ -31,7 +29,15 @@ callback2
|
||||
jmp $BDF4 ; decompress
|
||||
|
||||
callback3
|
||||
+DISABLE_ACCEL
|
||||
+READ_RAM2_NO_WRITE
|
||||
lda MachineStatus
|
||||
and #CHEATS_ENABLED
|
||||
beq +
|
||||
dec $CBC ; patch - don't increase lives
|
||||
dec $1029 ; patch - don't decrease lives
|
||||
+
|
||||
jsr DisableAccelerator
|
||||
+READ_ROM_NO_WRITE
|
||||
jmp ($200)
|
||||
|
||||
pcallback1
|
||||
|
28
src/prelaunch/roadblock.a
Normal file
28
src/prelaunch/roadblock.a
Normal file
@ -0,0 +1,28 @@
|
||||
;license:MIT
|
||||
;(c) 2022 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/ROADBLOCK",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #$60
|
||||
sta $3192
|
||||
jsr $800 ; decompress
|
||||
+READ_RAM2_NO_WRITE
|
||||
lda MachineStatus
|
||||
and #CHEATS_ENABLED
|
||||
beq +
|
||||
lda #$a5
|
||||
sta $15D0 ; patch - don't decrease time
|
||||
+
|
||||
jsr DisableAccelerator
|
||||
+READ_ROM_NO_WRITE
|
||||
|
||||
jmp $80D
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
28
src/prelaunch/robot.battle.a
Normal file
28
src/prelaunch/robot.battle.a
Normal file
@ -0,0 +1,28 @@
|
||||
;license:MIT
|
||||
;(c) 2022 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/ROBOT.BATTLE",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #$60
|
||||
sta $82F
|
||||
jsr $800 ; decompress
|
||||
+READ_RAM2_NO_WRITE
|
||||
lda MachineStatus
|
||||
and #CHEATS_ENABLED
|
||||
beq +
|
||||
lda #$bd
|
||||
sta $7930 ; patch - don't decrease lives
|
||||
+
|
||||
jsr DisableAccelerator
|
||||
+READ_ROM_NO_WRITE
|
||||
|
||||
jmp $6000
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
40
src/prelaunch/robotron.2084.a
Normal file
40
src/prelaunch/robotron.2084.a
Normal file
@ -0,0 +1,40 @@
|
||||
;license:MIT
|
||||
;(c) 2022 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/ROBOTRON.2084",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
ldx #(callback_e-callback_b)+1
|
||||
- lda callback_b-1,x
|
||||
sta <(callback-1),x
|
||||
dex
|
||||
bne -
|
||||
lda #<callback
|
||||
sta $141E
|
||||
stx $141F
|
||||
jmp $1400 ; decompress
|
||||
|
||||
callback_b !pseudopc $80 {
|
||||
callback
|
||||
+READ_RAM2_NO_WRITE
|
||||
lda MachineStatus
|
||||
and #CHEATS_ENABLED
|
||||
beq +
|
||||
lda #$ad
|
||||
sta $40CC ; patch - don't decrease lives
|
||||
sta $4E00 ; patch - don't increase lives
|
||||
+
|
||||
jsr DisableAccelerator
|
||||
+READ_ROM_NO_WRITE
|
||||
|
||||
jmp $4015
|
||||
}
|
||||
callback_e
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
28
src/prelaunch/russki.duck.a
Normal file
28
src/prelaunch/russki.duck.a
Normal file
@ -0,0 +1,28 @@
|
||||
;license:MIT
|
||||
;(c) 2022 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/RUSSKI.DUCK",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #$60
|
||||
sta $3EDB
|
||||
jsr $3E8A ; decompress
|
||||
+READ_RAM2_NO_WRITE
|
||||
lda MachineStatus
|
||||
and #CHEATS_ENABLED
|
||||
beq +
|
||||
lda #$a5
|
||||
sta $87E ; patch - don't decrease lives
|
||||
+
|
||||
jsr DisableAccelerator
|
||||
+READ_ROM_NO_WRITE
|
||||
|
||||
jmp ($20)
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
Loading…
Reference in New Issue
Block a user