From 9b8edebf418665e231381de4fe695442b4576199 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 22 Apr 2021 02:35:14 -0400 Subject: Save 17 bytes (now 8667, lost track of a few) --- textdecomp.s | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/textdecomp.s b/textdecomp.s index 03660ae..baa6b41 100644 --- a/textdecomp.s +++ b/textdecomp.s @@ -110,6 +110,12 @@ dict40: .byte $50, $81, $40 ; "the" dict41: .byte $78, $fd, $74, $0c, $00 ; "Do you" dict42: .byte $84, $53, $85, $48, $13, $00 ; "General" dict43: .byte $d0, $34, $b5, $00 ; "your " +dict44: .byte $c0, $54, $99, $d5, $71, $4c, $30, $00 ; "Very well" +dict45: .byte $84, $f3, $c4, $d4, $a3, $d3, $4f, $6d, $80 ; "Good joss!!" +dict46: .byte $17, $c4, $85, $d4, $73, $c9, $38, $7d, $44, $3d, $73, $80 ; "e're going down" + +; Table has to be <= 1 page, so this won't fit: +;dict47: .byte $c4, $5d, $4d, $04, $41, $75, $25, $4d, $80 ; "We made it!" .out .sprintf("dictionary is %d bytes", * - dict00) @@ -158,6 +164,10 @@ dict_offsets: .byte dict41 - dict00 .byte dict42 - dict00 .byte dict43 - dict00 + .byte dict44 - dict00 + .byte dict45 - dict00 + .byte dict46 - dict00 +; .byte dict47 - dict00 ; rough estimate of how many bytes are saved by the dictionary ; stuff: the dictionary + extra decoder stuff costs 221 bytes (vs. -- cgit v1.2.3