Added more wip items
authorLukas Krickl <lukas@krickl.dev>
Tue, 20 Feb 2024 12:34:06 +0000 (13:34 +0100)
committerLukas Krickl <lukas@krickl.dev>
Tue, 20 Feb 2024 12:34:06 +0000 (13:34 +0100)
src/ulas.c

index 0211b7616cee9cd026e18e1cd008d126f817c67a..864380425d52098db6aa3fed198bd4481f200472 100644 (file)
@@ -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) {