2021-10-02 05:00:26 +00:00
|
|
|
;license:MIT
|
2022-09-27 17:20:04 +00:00
|
|
|
;(c) 2021-2022 by qkumba
|
2021-10-02 05:00:26 +00:00
|
|
|
|
|
|
|
!cpu 6502
|
2022-10-01 00:04:02 +00:00
|
|
|
!to "build/DEMO/TB#060300",plain
|
2021-10-02 05:00:26 +00:00
|
|
|
*=$300
|
|
|
|
|
2021-10-19 23:14:39 +00:00
|
|
|
!source "src/constants.a" ; no code in these
|
|
|
|
!source "src/macros.a"
|
2021-10-02 05:00:26 +00:00
|
|
|
|
2021-11-01 04:29:36 +00:00
|
|
|
+GAME_REQUIRES_JOYSTICK
|
2022-09-28 02:05:09 +00:00
|
|
|
+READ_RAM2_WRITE_RAM2
|
|
|
|
jsr EnableAccelerator
|
|
|
|
+LOAD_FILE_AT title, $00
|
2021-10-02 05:00:26 +00:00
|
|
|
lda #$4C
|
|
|
|
sta $6BA8
|
|
|
|
sta $6C2D
|
|
|
|
jsr $4EC6 ; decompress
|
|
|
|
jsr $B2EC
|
2022-09-27 17:20:04 +00:00
|
|
|
ldx #3-1
|
|
|
|
- lda patch,x
|
|
|
|
sta $4F46,x
|
|
|
|
sta $AD44,x
|
|
|
|
sta $AD2A,x
|
|
|
|
sta $AB86,x
|
|
|
|
sta $AC64,x
|
|
|
|
dex
|
|
|
|
bpl -
|
2022-09-28 02:05:09 +00:00
|
|
|
inx
|
|
|
|
stx $B3F0
|
|
|
|
stx $B3F1
|
|
|
|
stx $B3F2 ; erase high score
|
2021-10-02 05:00:26 +00:00
|
|
|
lda #$10
|
|
|
|
sta $AD28
|
|
|
|
sta $AB84
|
|
|
|
lda #$15
|
|
|
|
sta $AD29
|
|
|
|
lda #$D0
|
|
|
|
sta $9580
|
|
|
|
lda #8
|
|
|
|
sta $AB85
|
|
|
|
lda #$2C
|
|
|
|
sta $4F3E
|
|
|
|
+DISABLE_ACCEL
|
|
|
|
jmp $9000
|
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
patch !byte $4C,$00,$01
|
|
|
|
|
2024-05-25 21:24:57 +00:00
|
|
|
title +PSTRING "X/TB"
|
2021-10-02 05:00:26 +00:00
|
|
|
|
|
|
|
!if * > $3F0 {
|
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|