mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-26 17:49:43 +00:00
add some cheats
This commit is contained in:
parent
1682de6472
commit
fe753499a8
@ -229,7 +229,7 @@
|
||||
0001,LANCASTER=Lancaster
|
||||
1000,LASER.BOUNCE=Laser Bounce
|
||||
0001,LAZER.SILK=Lazer Silk
|
||||
0000,LEMMINGS=Lemmings
|
||||
0001,LEMMINGS=Lemmings
|
||||
0001,LL=Lethal Labyrinth
|
||||
0000,LP=Little Computer People
|
||||
0001,LC=Lock 'n' Chase
|
||||
@ -298,7 +298,7 @@
|
||||
0005,PICNIC.PARANOIA=Picnic Paranoia
|
||||
0001,PM=Pie-Man
|
||||
0001,PIG.PEN=Pig Pen
|
||||
0110,PIPE.DREAM=Pipe Dream
|
||||
0115,PIPE.DREAM=Pipe Dream
|
||||
1000,PITFALL.II=Pitfall II
|
||||
0000,PITSTOP.II=Pitstop II
|
||||
1001,PLANETOIDS=Planetoids
|
||||
@ -344,7 +344,7 @@
|
||||
0001,SHORT.CIRCUIT=Short Circuit
|
||||
1001,SI=Shuttle Intercept
|
||||
0006,SC=Situation Critical
|
||||
1000,SKYFOX=Skyfox
|
||||
1006,SKYFOX=Skyfox
|
||||
0001,SNACK.ATTACK=Snack Attack
|
||||
0001,SNAKE.BYTE=Snake Byte
|
||||
0001,SNEAKERS=Sneakers
|
||||
@ -378,10 +378,10 @@
|
||||
1001,STARBALL=Starball
|
||||
1001,STARBLASTER=Starblaster
|
||||
1003,STARGATE=Stargate
|
||||
1000,STARGLIDER=Starglider
|
||||
1006,STARGLIDER=Starglider
|
||||
1000,STARMINES=Starmines
|
||||
0000,STATION.5=Station 5
|
||||
0000,STELLAR.7=Stellar 7
|
||||
0006,STELLAR.7=Stellar 7
|
||||
0004,SUCCESSION=Succession
|
||||
0004,SU=Suicide!
|
||||
0001,SUPER.BUNNY=Super Bunny
|
||||
|
@ -1,5 +1,5 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by qkumba
|
||||
;(c) 2021-2022 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/LEMMINGS",plain
|
||||
@ -12,7 +12,15 @@
|
||||
sta $41B0
|
||||
jsr $4000 ; decompress
|
||||
inc $C9 ; RNG requires non-zero
|
||||
+DISABLE_ACCEL
|
||||
+READ_RAM2_NO_WRITE
|
||||
lda MachineStatus
|
||||
and #CHEATS_ENABLED
|
||||
beq +
|
||||
lda #$ad
|
||||
sta $BA5E ; patch - don't decrease lives
|
||||
+
|
||||
jsr DisableAccelerator
|
||||
+READ_ROM_NO_WRITE
|
||||
jmp $8C8
|
||||
|
||||
!if * > $1C0 {
|
||||
|
@ -1,5 +1,5 @@
|
||||
;license:MIT
|
||||
;(c) 2020 by qkumba
|
||||
;(c) 2020, 2022 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/PIPE.DREAM",plain
|
||||
@ -14,6 +14,9 @@ my_vbl
|
||||
sta @copy_vbl+1
|
||||
lda WaitForVBL+2
|
||||
sta @copy_vbl+2
|
||||
lda MachineStatus
|
||||
and #CHEATS_ENABLED
|
||||
php
|
||||
ldy #0
|
||||
|
||||
@copy_vbl
|
||||
@ -31,8 +34,20 @@ my_vbl
|
||||
sta $9D53
|
||||
lda #>my_vbl
|
||||
sta $9D54
|
||||
plp
|
||||
beq +
|
||||
lda #<callback
|
||||
sta $8BB
|
||||
lda #>callback
|
||||
sta $8BC
|
||||
+
|
||||
jmp $881
|
||||
|
||||
callback
|
||||
lda #$A5
|
||||
sta $A453 ; patch - don't decrease time
|
||||
jmp $B679
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
;license:MIT
|
||||
;(c) 2019-2021 by qkumba/Frank M.
|
||||
;(c) 2019-2022 by qkumba/Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/SKYFOX",plain
|
||||
@ -7,42 +7,70 @@
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
jmp +
|
||||
|
||||
callback2
|
||||
jsr $BC03
|
||||
lda #$85
|
||||
ldx #$A5
|
||||
cmp $7FB5
|
||||
bne plane
|
||||
stx $7FB5 ; patch - don't increase damage
|
||||
stx $9327 ; patch - don't decrease fuel
|
||||
|
||||
plane
|
||||
cmp $9BC7
|
||||
bne nopatch
|
||||
stx $156A ; patch - don't decrease fuel
|
||||
stx $9281 ; patch - don't decrease fuel
|
||||
stx $9BC7 ; patch - don't increase damage
|
||||
|
||||
callback1
|
||||
sec
|
||||
sbc #8
|
||||
cmp #2
|
||||
|
||||
nopatch
|
||||
lda #0
|
||||
rts
|
||||
|
||||
+
|
||||
+ENABLE_ACCEL
|
||||
inc $80 ; requires a non-zero value for the RNG
|
||||
lda #$60
|
||||
sta $7E3A
|
||||
jsr $4635
|
||||
|
||||
lda #$82 ; READ_ROM_NO_WRITE
|
||||
sta $101
|
||||
lda #$A6
|
||||
sta $104
|
||||
lda #$FA
|
||||
sta $105 ; update TR hook to reboot
|
||||
lda #0
|
||||
ldx #$82 ; READ_ROM_NO_WRITE
|
||||
stx $101
|
||||
ldx #$A6
|
||||
stx $104
|
||||
ldx #$FA
|
||||
stx $105 ; update TR hook to reboot
|
||||
sta $5FFC
|
||||
lda #1
|
||||
sta $5FFD ; moved to LC $FFFC/D
|
||||
sty $5FFD ; moved to LC $FFFC/D
|
||||
|
||||
lda #$4C
|
||||
sta $6872
|
||||
lda #<callback
|
||||
lda #<callback1
|
||||
sta $6873
|
||||
lda #>callback
|
||||
sta $6874
|
||||
sty $6874
|
||||
lda #$B0
|
||||
sta $685B
|
||||
lda #$90
|
||||
sta $6862
|
||||
+DISABLE_ACCEL
|
||||
+READ_RAM2_NO_WRITE
|
||||
lda MachineStatus
|
||||
and #CHEATS_ENABLED
|
||||
beq +
|
||||
lda #<callback2
|
||||
sta $8882
|
||||
sty $8883
|
||||
+
|
||||
jsr DisableAccelerator
|
||||
+READ_ROM_NO_WRITE
|
||||
jmp $67BD
|
||||
|
||||
callback
|
||||
sec
|
||||
sbc #8
|
||||
cmp #2
|
||||
rts
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
;license:MIT
|
||||
;(c) 2020 by qkumba
|
||||
;(c) 2020, 2022 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/STARGLIDER",plain
|
||||
@ -7,7 +7,12 @@
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
+READ_RAM2_NO_WRITE
|
||||
jsr EnableAccelerator
|
||||
lda MachineStatus
|
||||
and #CHEATS_ENABLED
|
||||
php
|
||||
+READ_ROM_NO_WRITE
|
||||
lda #$60
|
||||
sta $81FC
|
||||
jsr $800 ; decompress
|
||||
@ -25,6 +30,19 @@
|
||||
lda #$FA
|
||||
sta $105 ; update reset hook to reboot
|
||||
|
||||
plp
|
||||
beq +
|
||||
lda #$a5
|
||||
sta $76B3 ; patch - don't decrease fuel
|
||||
sta $856B ; patch - don't increase damage
|
||||
sta $8E13 ; patch - don't increase weapons
|
||||
sta $9528 ; patch - don't increase damage
|
||||
sta $9BC0 ; patch - don't increase damage
|
||||
sta $9D34 ; patch - don't increase damage
|
||||
sta $9D70 ; patch - don't increase damage
|
||||
sta $9E37 ; patch - don't increase damage
|
||||
+
|
||||
|
||||
jmp $BA00
|
||||
|
||||
!if * > $1C0 {
|
||||
|
@ -1,5 +1,5 @@
|
||||
;license:MIT
|
||||
;(c) 2019 by qkumba/Frank M.
|
||||
;(c) 2019, 2022 by qkumba/Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/STELLAR.7",plain
|
||||
@ -20,9 +20,25 @@
|
||||
lda #$A4
|
||||
sta $AE28 ; reset vector patch
|
||||
|
||||
+DISABLE_ACCEL
|
||||
+READ_RAM2_NO_WRITE
|
||||
lda MachineStatus
|
||||
and #CHEATS_ENABLED
|
||||
beq +
|
||||
lda #<callback
|
||||
sta $AE71
|
||||
lda #>callback
|
||||
sta $AE72
|
||||
+
|
||||
jsr DisableAccelerator
|
||||
+READ_ROM_NO_WRITE
|
||||
jmp $AE27
|
||||
|
||||
callback
|
||||
jsr $AF60
|
||||
lda #$AD
|
||||
sta $80D8 ; patch - don't decrease fuel
|
||||
sta $8095 ; patch - don't increase damage
|
||||
jmp $A440
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
|
Loading…
Reference in New Issue
Block a user