sa: back to uncompressed ascii art

This commit is contained in:
Vince Weaver 2018-05-23 16:09:44 -04:00
parent e6c001287d
commit b71a69b35c
3 changed files with 15 additions and 3 deletions

View File

@ -3,6 +3,15 @@ Challenges:
+ Fitting it all in 48k (want to avoid disk routines if can) + Fitting it all in 48k (want to avoid disk routines if can)
+ Printing the ASCII art simple code (takes longer than 50Hz) + Printing the ASCII art simple code (takes longer than 50Hz)
ASCII Art Size
The ASCII art is roughly 7k.
You can LZ4 compress it and decompress on the fly, saving 3k or
so even when factoring in the decompression code.
The problem is decompression is slower (pauses the music) and
can't be run at the same time as the music decompression is
happening unless we duplicate a lot of code.
May revisit if we need the room.
Goal: Binary fits in 16k (16384 bytes) Goal: Binary fits in 16k (16384 bytes)

View File

@ -70,7 +70,7 @@ dal_loop:
rts rts
.if 0
;============================= ;=============================
; Draw ASCII art ; Draw ASCII art
;============================= ;=============================
@ -142,7 +142,9 @@ done_ascii_total:
ldy TEMPY ldy TEMPY
rts rts
.endif
.if 0
;======================= ;=======================
; art update y ; art update y
@ -349,3 +351,4 @@ docopy_loop_art:
bne docopy_loop_art ; if not zero, loop bne docopy_loop_art ; if not zero, loop
rts rts
.endif

View File

@ -351,7 +351,7 @@ loading_message: .asciiz "LOADING"
lyrics: lyrics:
.include "lyrics.inc" .include "lyrics.inc"
.include "ascii_art_lz4.inc" .include "ascii_art.inc"
LZ4_BUFFER: LZ4_BUFFER:
.incbin "SA.KRW" .incbin "SA.KRW"