;license:MIT ;(c) 2022 by qkumba !cpu 6502 !to "res/DEMO/SPIDER.RAID",plain *=$300 !source "src/constants.a" ; no code in these !source "src/macros.a" +READ_RAM2_WRITE_RAM2 jsr EnableAccelerator +LOAD_FILE_AT spider_raid, $00 +READ_ROM_NO_WRITE lda #$60 sta $3EFD sta $3F0E jsr $3EB9 stx $3FFE lda #$B6 sta $3FFF lda #$C7 sta $00 lda #$75 sta $01 jsr $181D ; decompress lda #1 sta $40D3 ; reset vector lda #$60 sta $40F1 jsr $4000 dec $408E dec $4091 lda #$D0 sta $4056 sta $405C sta $1641 sta $164B lda #$4C sta $49A9 ldx #0 stx $49AA inx stx $49AB lda #$A9 sta $5A79 stx $5A7A lda #$EA sta $5A7B +DISABLE_ACCEL jmp $4246 spider_raid !byte spider_raid_e-spider_raid_b spider_raid_b !text "X/SPIDER.RAID/SPIDER.RAID" spider_raid_e !if * > $3F0 { !error "code is too large, ends at ", * }