commit 6f872feff5254d8aa16d92280c463b76d3c38b61
parent 8132a09e2136ca2fda3378ff8ea0d545ab82f94d
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date: Fri, 29 Oct 2021 16:02:07 -0700
Use Keep modes for byte and short literals
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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);
}