2021-10-31 16:39:38 +00:00
|
|
|
;license:MIT
|
2022-09-27 17:20:04 +00:00
|
|
|
;(c) 2021-2022 by Frank M., qkumba
|
2021-10-31 16:39:38 +00:00
|
|
|
|
|
|
|
!cpu 6502
|
2022-09-30 17:56:47 +00:00
|
|
|
!to "build/DEMO/BATTLEZONE",plain
|
2021-10-31 16:39:38 +00:00
|
|
|
*=$300
|
|
|
|
|
|
|
|
!source "src/constants.a" ; no code in these
|
|
|
|
!source "src/macros.a"
|
|
|
|
|
2022-09-10 04:58:15 +00:00
|
|
|
;+ENABLE_ACCEL ; can't
|
|
|
|
+LOAD_XSINGLE title
|
2021-10-31 16:39:38 +00:00
|
|
|
|
|
|
|
lda #$60
|
|
|
|
sta $201e
|
|
|
|
jsr $2000 ; decompress
|
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
ldx #0
|
|
|
|
stx $0811
|
|
|
|
inx
|
|
|
|
stx $0816 ; reset vector patch
|
2021-10-31 16:39:38 +00:00
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
ldx #3-1
|
|
|
|
- lda #$EA
|
|
|
|
sta $1632,x ; disable clearing keyboard strobe
|
|
|
|
lda patch,x
|
|
|
|
sta $0872,x
|
|
|
|
sta $161A,x
|
|
|
|
sta $7661,x
|
|
|
|
sta $766C,x
|
|
|
|
sta $7693,x
|
|
|
|
sta $0B6A,x
|
|
|
|
sta $73A7,x
|
|
|
|
sta $168F+4,x
|
|
|
|
dex
|
|
|
|
bpl -
|
2021-10-31 16:39:38 +00:00
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
ldx #4-1
|
2022-09-28 02:05:09 +00:00
|
|
|
- lda patch2,x
|
2022-09-27 17:20:04 +00:00
|
|
|
sta $168F,x ; set exits
|
|
|
|
dex
|
|
|
|
bpl -
|
2021-10-31 16:39:38 +00:00
|
|
|
|
|
|
|
lda #$D0
|
|
|
|
sta $7733
|
|
|
|
sta $774D
|
|
|
|
sta $78B8
|
|
|
|
sta $78BB
|
|
|
|
sta $7815
|
|
|
|
sta $5180
|
|
|
|
sta $5576
|
|
|
|
sta $0B8E ; disable sound
|
|
|
|
|
2021-11-14 15:30:52 +00:00
|
|
|
;+DISABLE_ACCEL
|
2021-10-31 16:39:38 +00:00
|
|
|
|
|
|
|
jmp $810
|
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
patch !byte $4C,$00,$01
|
|
|
|
patch2 !byte $C9,$FF,$F0,$16
|
|
|
|
|
2021-10-31 16:39:38 +00:00
|
|
|
title !byte x_e-x_b
|
2022-09-10 04:58:15 +00:00
|
|
|
x_b !text "BATTLEZONE"
|
2021-10-31 16:39:38 +00:00
|
|
|
x_e
|
|
|
|
|
|
|
|
!if * > $3F0 {
|
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|