mirror of
https://github.com/a2-4am/4cade.git
synced 2024-09-28 03:54:46 +00:00
quit to TR and add cheat for Beyond Wolfenstein (#160)
This commit is contained in:
parent
7ae5fb3e84
commit
7353770b67
@ -26,7 +26,7 @@
|
|||||||
0100,BEJEWELED
|
0100,BEJEWELED
|
||||||
0000,BELLHOP
|
0000,BELLHOP
|
||||||
0001,BERZAP
|
0001,BERZAP
|
||||||
0000,BEYOND.WOLFEN=Beyond Castle Wolfenstein
|
0002,BEYOND.WOLFEN=Beyond Castle Wolfenstein
|
||||||
0000,BUDGETRILOGY=Bill Budge's Trilogy
|
0000,BUDGETRILOGY=Bill Budge's Trilogy
|
||||||
1000,BLACK.MAGIC
|
1000,BLACK.MAGIC
|
||||||
0000,BLISTER.BALL
|
0000,BLISTER.BALL
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
;license:MIT
|
;license:MIT
|
||||||
;(c) 2019 by qkumba
|
;(c) 2019-2020 by qkumba/Tom Greene
|
||||||
|
|
||||||
!cpu 6502
|
!cpu 6502
|
||||||
!to "build/PRELAUNCH/BEYOND.WOLFEN",plain
|
!to "build/PRELAUNCH/BEYOND.WOLFEN",plain
|
||||||
@ -18,19 +18,50 @@
|
|||||||
sta $B749
|
sta $B749
|
||||||
jmp $B700
|
jmp $B700
|
||||||
|
|
||||||
reset
|
|
||||||
+READ_ROM_NO_WRITE
|
|
||||||
jmp $FAA6
|
|
||||||
|
|
||||||
callback
|
callback
|
||||||
lda #>reset
|
lda #$01
|
||||||
sta $9E31
|
sta $9E31
|
||||||
lda #<reset
|
lda #$00
|
||||||
sta $9E3C ; reset vector patch
|
sta $9E3C ; reset vector patch
|
||||||
|
|
||||||
|
lda #<patch ; intercept BRUN command before
|
||||||
|
sta $A395 ; it jumps to the loaded file
|
||||||
|
lda #>patch
|
||||||
|
sta $A396
|
||||||
|
|
||||||
+DISABLE_ACCEL
|
+DISABLE_ACCEL
|
||||||
jmp $9D84
|
jmp $9D84
|
||||||
|
|
||||||
|
patch
|
||||||
|
!word brunpatch
|
||||||
|
|
||||||
|
brunpatch
|
||||||
|
lda $AA76 ; check second character of filename
|
||||||
|
cmp #$C9 ; = I, filename = @INIT
|
||||||
|
bne +
|
||||||
|
|
||||||
|
ldx #$00 ; Patch it to return to TR
|
||||||
|
stx $0DB4 ; instead of exiting to BASIC
|
||||||
|
inx
|
||||||
|
stx $0DB5
|
||||||
|
|
||||||
|
inc $0C85 ; prevent language card detection
|
||||||
|
|
||||||
|
+ cmp #$C6 ; = F, filename = @FHR
|
||||||
|
bne ++
|
||||||
|
|
||||||
|
+GET_MACHINE_STATUS
|
||||||
|
and #CHEATS_ENABLED
|
||||||
|
beq ++
|
||||||
|
ldx #$2C
|
||||||
|
stx $15AE ; don't decrement bullets
|
||||||
|
|
||||||
|
++ jmp ($AA72) ; finally jump to the loaded file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
!if * > $1C0 {
|
!if * > $1C0 {
|
||||||
!error "code is too large, ends at ", *
|
!error "code is too large, ends at ", *
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user