Added todo for register lookup
authorLukas Krickl <lukas@krickl.dev>
Sat, 17 Feb 2024 05:18:52 +0000 (06:18 +0100)
committerLukas Krickl <lukas@krickl.dev>
Sat, 17 Feb 2024 05:18:52 +0000 (06:18 +0100)
src/ulas.c

index 6e7a1cb341ce968ef33312d87b4137f2d9f83169..ac3ebf092fba32ef25345e734ed0fd93c4fb1a74 100644 (file)
@@ -1764,6 +1764,10 @@ char *ulas_strexpr(const char **line, unsigned long n, int *rc) {
   return NULL;
 }
 
+// TODO: instead of hard-coding the 
+// registers
+// we should use a register table 
+// that is used to look up register tokens 
 const char *ulas_asmregstr(enum ulas_asmregs reg) {
   switch (reg) {
   case ULAS_REG_A: