From b71a69b35c7481bf57524588722686b3a405b50a Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Wed, 23 May 2018 16:09:44 -0400 Subject: [PATCH] sa: back to uncompressed ascii art --- still_alive/README.still_alive | 9 +++++++++ still_alive/display_art.s | 7 +++++-- still_alive/still_alive.s | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/still_alive/README.still_alive b/still_alive/README.still_alive index f1ac40e2..004df14a 100644 --- a/still_alive/README.still_alive +++ b/still_alive/README.still_alive @@ -3,6 +3,15 @@ Challenges: + Fitting it all in 48k (want to avoid disk routines if can) + 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) diff --git a/still_alive/display_art.s b/still_alive/display_art.s index 574df5d7..3943944f 100644 --- a/still_alive/display_art.s +++ b/still_alive/display_art.s @@ -70,7 +70,7 @@ dal_loop: rts -.if 0 + ;============================= ; Draw ASCII art ;============================= @@ -142,7 +142,9 @@ done_ascii_total: ldy TEMPY rts -.endif + + +.if 0 ;======================= ; art update y @@ -349,3 +351,4 @@ docopy_loop_art: bne docopy_loop_art ; if not zero, loop rts +.endif diff --git a/still_alive/still_alive.s b/still_alive/still_alive.s index 1b11c463..9f19c97b 100644 --- a/still_alive/still_alive.s +++ b/still_alive/still_alive.s @@ -351,7 +351,7 @@ loading_message: .asciiz "LOADING" lyrics: .include "lyrics.inc" -.include "ascii_art_lz4.inc" +.include "ascii_art.inc" LZ4_BUFFER: .incbin "SA.KRW"