2021-10-27 00:11:02 +00:00
|
|
|
;license:MIT
|
2022-09-27 17:20:04 +00:00
|
|
|
;(c) 2021-2022 by Frank M., qkumba
|
2021-10-27 00:11:02 +00:00
|
|
|
|
|
|
|
!cpu 6502
|
2022-10-01 00:04:02 +00:00
|
|
|
!to "build/DEMO/PACMAN#060300",plain
|
2021-10-27 00:11:02 +00:00
|
|
|
*=$300
|
|
|
|
|
|
|
|
!source "src/constants.a" ; no code in these
|
|
|
|
!source "src/macros.a"
|
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
+ENABLE_ACCEL_LC
|
2022-09-10 05:36:52 +00:00
|
|
|
+LOAD_XSINGLE title
|
2021-10-27 00:11:02 +00:00
|
|
|
|
|
|
|
+NEW_RESET_VECTOR $280
|
|
|
|
|
|
|
|
lda #$60
|
|
|
|
sta $813
|
|
|
|
jsr $800 ; decompress
|
|
|
|
|
2022-11-27 16:08:48 +00:00
|
|
|
+TEST_TEXT_PAGE_2
|
|
|
|
|
2021-10-27 00:11:02 +00:00
|
|
|
lda #$80
|
|
|
|
sta $103F
|
|
|
|
lda #2
|
2022-11-19 22:56:30 +00:00
|
|
|
sta $104A ; reset/IRQ vector patch
|
2021-10-27 00:11:02 +00:00
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
ldx #3-1
|
|
|
|
- lda patch,x
|
|
|
|
sta $027C,x
|
|
|
|
sta $22F9,x ; (later moved to $52F9)
|
|
|
|
sta $3F7C,x ; (later moved to $6F7C)
|
|
|
|
sta $5C0B,x ; (later moved to $8C0B)
|
|
|
|
lda patch2,x
|
|
|
|
sta $18A6,x ; (later moved to $48A6)
|
|
|
|
lda patch3,x
|
|
|
|
sta $22F1,x ; (later moved to $52F1)
|
|
|
|
dex
|
|
|
|
bpl -
|
|
|
|
|
2021-10-27 00:11:02 +00:00
|
|
|
lda #$EA
|
|
|
|
sta $22F1+3 ; set exits
|
|
|
|
|
|
|
|
+DISABLE_ACCEL
|
|
|
|
|
|
|
|
jmp $1000
|
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
patch2 !byte $4C,$CD,$48
|
|
|
|
patch !byte $4C,$00,$01
|
|
|
|
patch3 !byte $30,$06,$EA
|
|
|
|
|
2021-10-27 00:11:02 +00:00
|
|
|
title !byte x_e-x_b
|
2022-09-10 05:36:52 +00:00
|
|
|
x_b !text "PACMAN"
|
2021-10-27 00:11:02 +00:00
|
|
|
x_e
|
|
|
|
|
|
|
|
!if * > $3F0 {
|
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|