mirror of
https://github.com/a2-4am/4cade.git
synced 2024-10-01 21:55:02 +00:00
35 lines
736 B
Plaintext
Executable File
35 lines
736 B
Plaintext
Executable File
;license:MIT
|
|
;(c) 2019 by 4am/Frank M.
|
|
|
|
!cpu 6502
|
|
!to "build/PRELAUNCH/GORGON",plain
|
|
*=$106
|
|
|
|
!source "src/prelaunch/common.a"
|
|
|
|
+ENABLE_ACCEL
|
|
lda #$60
|
|
sta $8237
|
|
jsr $3FFD ; decompress
|
|
+DISABLE_ACCEL
|
|
lda #$60
|
|
sta $B845
|
|
jsr $B837 ; spaceship load scene
|
|
+GET_MACHINE_STATUS
|
|
and #CHEATS_ENABLED
|
|
beq +
|
|
; lives in $70
|
|
lda #$A5
|
|
sta $A5B0 ; patch - don't decrease lives
|
|
+
|
|
lda #0
|
|
sta $A8B4
|
|
lda #1
|
|
sta $A8BC ; reset vector patch
|
|
|
|
jmp $A720
|
|
|
|
!if * > $1C0 {
|
|
!error "code is too large, ends at ", *
|
|
}
|