2018-08-29 15:46:25 +00:00
|
|
|
; Apple II Megademo
|
|
|
|
|
|
|
|
; by deater (Vince Weaver) <vince@deater.net>
|
|
|
|
|
2018-08-29 21:14:43 +00:00
|
|
|
.include "zp.inc"
|
2018-08-29 15:57:54 +00:00
|
|
|
.include "hardware.inc"
|
|
|
|
|
|
|
|
|
|
|
|
;===================
|
|
|
|
; set graphics mode
|
|
|
|
;===================
|
|
|
|
jsr HOME
|
|
|
|
|
|
|
|
bit PAGE0 ; first graphics page
|
|
|
|
bit FULLGR ; full screen graphics
|
|
|
|
bit HIRES ; hires mode !!!
|
|
|
|
bit SET_GR ; graphics mode
|
|
|
|
|
2018-08-29 21:14:43 +00:00
|
|
|
lda #<c64
|
|
|
|
sta LZ4_SRC
|
|
|
|
lda #>c64
|
|
|
|
sta LZ4_SRC+1
|
|
|
|
|
|
|
|
lda #<c64_end
|
|
|
|
sta LZ4_END
|
|
|
|
lda #>c64_end
|
|
|
|
sta LZ4_END+1
|
|
|
|
|
|
|
|
|
|
|
|
lda #<$2000
|
|
|
|
sta LZ4_DST
|
|
|
|
lda #>$2000
|
|
|
|
sta LZ4_DST+1
|
|
|
|
|
|
|
|
jsr lz4_decode
|
|
|
|
|
2018-08-29 15:46:25 +00:00
|
|
|
|
|
|
|
;===================
|
|
|
|
; do nothing
|
|
|
|
;===================
|
|
|
|
do_nothing:
|
|
|
|
jmp do_nothing
|
|
|
|
|
|
|
|
|
2018-08-29 21:14:43 +00:00
|
|
|
.include "lz4_decode.s"
|
|
|
|
|
2018-08-29 15:57:54 +00:00
|
|
|
|
2018-08-29 21:14:43 +00:00
|
|
|
;===================
|
|
|
|
; graphics
|
|
|
|
;===================
|
|
|
|
c64:
|
|
|
|
.incbin "c64.img.lz4",11
|
|
|
|
c64_end:
|