From 6f872feff5254d8aa16d92280c463b76d3c38b61 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Fri, 29 Oct 2021 16:02:07 -0700 Subject: [PATCH] Use Keep modes for byte and short literals --- src/uxnasm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uxnasm.c b/src/uxnasm.c index a2eec4e..3692e09 100644 --- a/src/uxnasm.c +++ b/src/uxnasm.c @@ -112,7 +112,7 @@ findopcode(char *s) static void pushbyte(Uint8 b, int lit) { - if(lit) pushbyte(findopcode("LIT"), 0); + if(lit) pushbyte(findopcode("LITk"), 0); p.data[p.ptr++] = b; p.length = p.ptr; } @@ -120,7 +120,7 @@ pushbyte(Uint8 b, int lit) static void pushshort(Uint16 s, int lit) { - if(lit) pushbyte(findopcode("LIT2"), 0); + if(lit) pushbyte(findopcode("LIT2k"), 0); pushbyte((s >> 8) & 0xff, 0); pushbyte(s & 0xff, 0); }