4cade/src/demo/axis.assassin.a

74 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-06-09 23:45:56 +00:00
;license:MIT
;(c) 2022 by qkumba
!cpu 6502
2022-10-01 00:04:02 +00:00
!to "build/DEMO/AXIS.ASSASSIN#060300",plain
2022-06-09 23:45:56 +00:00
*=$300
!source "src/constants.a" ; no code in these
!source "src/macros.a"
2023-04-22 23:15:48 +00:00
+GAME_REQUIRES_JOYSTICK
2022-09-27 17:20:04 +00:00
+ENABLE_ACCEL_LC
2022-09-10 02:47:48 +00:00
+LOAD_XSINGLE title
2022-06-09 23:45:56 +00:00
lda #$84
sta $3ECC
lda #$70
sta $3ED0
lda #$17
sta $3EDC
lda #$60
sta $3f06
jsr $3eb1 ; decompress
2022-09-27 17:20:04 +00:00
ldx #3-1
- lda patch,x
sta $5B2E,x ; reset vector patch
sta $701C,x
sta $5D5B,x
dex
bpl -
ldx #2-1
- lda patch+1,x
sta $5DF4,x
sta $5CD8,x
sta $5E09,x
dex
bpl -
2022-06-09 23:45:56 +00:00
lda #$24
sta $5D24
lda #$D0
sta $5D14
lda #$20
sta $5D41
lda #<callback
sta $5D42
lda #>callback
sta $5D43
lsr $5CBA
+DISABLE_ACCEL
jmp $5c00
counter !byte 5
callback
sta $C010
dec counter
2022-09-27 17:20:04 +00:00
bmi patch
rts
patch !byte $4C,$00,$01
2022-06-09 23:45:56 +00:00
2022-09-10 02:47:48 +00:00
title !byte x_e-x_b
x_b !text "AXIS.ASSASSIN"
x_e
2022-06-09 23:45:56 +00:00
!if * > $3F0 {
!error "code is too large, ends at ", *
}