4cade/src/prelaunch/bubble.bobble.a
2019-12-31 14:56:26 -08:00

40 lines
734 B
Plaintext

;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/BUBBLE.BOBBLE",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $978
jsr $800 ; decompress
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$b5
sta $82b0
sta $8324
+
+READ_ROM_WRITE_RAM1
lda #<reset
sta $3F2
sta $FFFC
lda #>reset
sta $3F3
sta $FFFD
eor #$A5
sta $3F4
+DISABLE_ACCEL
jmp $6000
reset
+READ_ROM_NO_WRITE
jmp $FAA6
!if * > $1C0 {
!error "code is too large, ends at ", *
}