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/PLASMANIA#060200",plain
|
2021-10-27 00:11:02 +00:00
|
|
|
*=$200
|
|
|
|
|
|
|
|
!source "src/constants.a" ; no code in these
|
|
|
|
!source "src/macros.a"
|
|
|
|
|
|
|
|
+READ_RAM2_WRITE_RAM2
|
|
|
|
+LOAD_FILE_AT title, $00
|
|
|
|
|
|
|
|
lda #>(callback-1)
|
|
|
|
sta $84E
|
|
|
|
lda #<(callback-1)
|
|
|
|
sta $851
|
|
|
|
lda #$60
|
|
|
|
sta $853 ; skip loading PLASMANIA.SND
|
|
|
|
jmp $800
|
|
|
|
|
|
|
|
callback
|
|
|
|
lda #$2C
|
|
|
|
sta $7352 ; silence voice
|
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
ldx #3-1
|
|
|
|
- lda patch,x
|
|
|
|
sta $609C,x
|
|
|
|
sta $6139,x
|
|
|
|
sta $614C,x
|
|
|
|
sta $65B7,x
|
|
|
|
sta $8C31,x
|
|
|
|
sta $8C5B,x ; set exits
|
|
|
|
dex
|
|
|
|
bpl -
|
|
|
|
|
|
|
|
inx
|
|
|
|
stx $87BE
|
|
|
|
stx $87CC
|
|
|
|
stx $8AEE
|
|
|
|
stx $8B89
|
|
|
|
stx $8B91
|
|
|
|
stx $8C21 ; disable sound
|
2021-10-27 00:11:02 +00:00
|
|
|
|
|
|
|
jmp $6000
|
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
patch !byte $4C,$00,$01
|
|
|
|
|
2021-10-27 00:11:02 +00:00
|
|
|
title !byte x_e-x_b
|
|
|
|
x_b !text "X/PLASMANIA/PLASMANIA"
|
|
|
|
x_e
|
|
|
|
|
|
|
|
!if * > $3F0 {
|
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|