From 8abe3648857261eb8313845532cdb0b5d54e879e Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Tue, 20 Feb 2024 13:34:06 +0100 Subject: [PATCH] Added more wip items --- src/ulas.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ulas.c b/src/ulas.c index 0211b76..8643804 100644 --- a/src/ulas.c +++ b/src/ulas.c @@ -1803,6 +1803,7 @@ int ulas_asminstr(char *dst, unsigned long max, const char **line, } // expression results in order they appear + // TODO: this should probably become a union of sort to allow float expressions int exprres[ULAS_INSTRDATMAX]; int expridx = 0; memset(&exprres, 0, sizeof(int) * ULAS_INSTRDATMAX); @@ -1863,6 +1864,7 @@ int ulas_asminstr(char *dst, unsigned long max, const char **line, assert(datread < ULAS_INSTRDATMAX); assert(expridx < ULAS_INSTRDATMAX); + // TODO: implement big endian here if (dat[datread] == ULAS_E8 || dat[datread] == ULAS_A8) { dst[written] = (char)exprres[expridx++]; } else if (dat[datread] == ULAS_E16) { -- 2.30.2