From ea996c2c3f5a74d8127a00c0ceb60d08ebf2e116 Mon Sep 17 00:00:00 2001 From: neauoire Date: Wed, 15 Nov 2023 16:42:27 -0800 Subject: [PATCH] Renamed DICT opcode to CPY --- cli/lz/ulzdec.c | 2 +- cli/lz/ulzdec.tal | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/lz/ulzdec.c b/cli/lz/ulzdec.c index e444630..1841197 100644 --- a/cli/lz/ulzdec.c +++ b/cli/lz/ulzdec.c @@ -19,7 +19,7 @@ decode_ulz(FILE *src) short i, length; ptr = mem = malloc(0x10000); while((c = getc(src)) != EOF) { - if(c & 0x80) { /* DICT */ + if(c & 0x80) { /* CPY */ if(c & 0x40) length = (c & 0x3f) << 8 | getc(src); else diff --git a/cli/lz/ulzdec.tal b/cli/lz/ulzdec.tal index a55e200..5b53039 100644 --- a/cli/lz/ulzdec.tal +++ b/cli/lz/ulzdec.tal @@ -33,7 +33,7 @@ !&stream @decode_ulz_byte ( byte -- ) - DUP #80 AND ?op-dict + DUP #80 AND ?op-cpy @op-lit ( byte -- ) #00 SWP INC2 @@ -43,7 +43,7 @@ ADD2 .ptr STZ2 JMP2r -@op-dict ( byte -- ) +@op-cpy ( byte -- ) #7f AND DUP #40 AND ?&long #00 SWP !©