From: Lukas Krickl Date: Tue, 20 Feb 2024 12:34:06 +0000 (+0100) Subject: Added more wip items X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=8abe3648857261eb8313845532cdb0b5d54e879e;p=ulas%2F.git Added more wip items --- 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) {