4cade/src/prelaunch/realm.imposs.a

33 lines
662 B
Plaintext
Raw Normal View History

;license:MIT
2020-05-19 03:14:55 +00:00
;(c) 2020 by qkumba/Frank M.
!cpu 6502
!to "build/PRELAUNCH/REALM.IMPOSS",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
2020-05-19 03:14:55 +00:00
+READ_RAM1_WRITE_RAM1
+LC_REBOOT
+READ_ROM_NO_WRITE
lda #$60
sta $41AD
jsr $4000 ; decompress
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$2C
sta $AF1D ; patch - don't decrease hit-points
+
+READ_RAM2_WRITE_RAM2
jsr DisableAccelerator
+READ_RAM1_WRITE_RAM1
jmp $1953
!if * > $1C0 {
!error "code is too large, ends at ", *
}