From e16403c5a93e02c8c85ea3cd6de64798235a3ae5 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 22 Apr 2021 14:52:31 -0400 Subject: Save 8 bytes --- textdecomp.s | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'textdecomp.s') diff --git a/textdecomp.s b/textdecomp.s index 970045c..bb27a99 100644 --- a/textdecomp.s +++ b/textdecomp.s @@ -56,16 +56,18 @@ ; To get the bytes to use for a particular message: ; echo -n "message here" | ./textcomp 2>/dev/null|perl -ple 's/0x/\$/g; s/ /, /g' +; the "We made it!" dict08 saves 8 bytes vs. the commented-out one. + dict00: dict01: .byte $98, $9d, $73, $54, $53, $80 ; "Li Yuen", 4 occurrences -;dict02: .byte $7c, $c1, $05, $4b, $57, $12, $3d, $42, $05, $48, $00 ; "Elder Brother", 3 dict02: .byte $7c, $c1, $05, $4b, $57, $12, $3f, $4a, $12, $00 ; "Elder Brother" dict03: .byte $64, $f5, $40 ; "you", 30 dict04: .byte $d7, $c1, $4d, $00 ; " 'em", 8 dict05: .byte $cc, $f5, $40 ; "You", 16 dict06: .byte $d4, $80, $56, $14, $00 ; " have", 11 dict07: .byte $d5, $32, $01, $30, $c0, $00 ; " shall", 6 -dict08: .byte $fb, $5c, $49, $50, $8d, $40 ; ") With ", 2 +;dict08: .byte $fb, $5c, $49, $50, $8d, $40 ; ") With ", 2 +dict08: .byte $c4, $5d, $4d, $04, $41, $75, $25, $4d, $80 ; "We made it!" dict09: .byte $05, $21, $cf, $00 ; "argo", 6 dict10: .byte $4c, $82, $50, $00 ; "ship", 10 dict11: .byte $d5, $70, $52, $14, $83, $d5, $4c, $50, $00 ; " warehouse", 4 @@ -82,7 +84,7 @@ dict20: .byte $04, $e1, $00 ; "and", 10 dict21: .byte $d4, $30, $53, $20, $00 ; " cash", 8 dict22: .byte $04, $41, $09, $50, $93, $ce, $04, $cd, $40 ; "additional ", 3 dict23: .byte $b8, $12, $50, $04, $e0, $00 ; "Taipan", 3 (but really many more!) -dict24: .byte $d4, $f3, $8c, $67, $50, $00; " only ", 3 +dict24: .byte $d4, $f3, $8c, $67, $50, $00 ; " only ", 3 dict25: .byte $d4, $25, $47, $1c, $54, $93, $00 ; " buggers", 3 dict26: .byte $5c, $95, $08, $d4, $00 ; "with ", 4 dict27: .byte $d4, $64, $8f, $37, $50, $00 ; " from ", 3 -- cgit v1.2.3