4cade/src/prelaunch/flapple.bird.a
2022-10-04 13:37:33 -07:00

28 lines
571 B
Plaintext

;license:MIT
;(c) 2020, 2022 by Frank M., qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/FLAPPLE.BIRD",plain
*=$106
!source "src/prelaunch/common.a"
+READ_RAM2_NO_WRITE
jsr EnableAccelerator
lda #$60
sta $813
jsr $800
+READ_RAM1_NO_WRITE
lda WaitForVBL
eor #$60
bne @good_vbl ; if VBL disabled in TR
sta $2971 ; then disable VBL in game
@good_vbl
+DISABLE_ACCEL
jmp $2000
!if * > $1C0 {
!error "code is too large, ends at ", *
}