From 6a647f4c573c0d44e250fc99a69683a55b1afae6 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 30 Aug 2021 07:45:27 +0000 Subject: implemented simplistic register spilling first working binary produced with cc/fasm and run on emul --- miniany/c4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miniany/c4.c') diff --git a/miniany/c4.c b/miniany/c4.c index 70e6b63..8317947 100644 --- a/miniany/c4.c +++ b/miniany/c4.c @@ -737,7 +737,7 @@ int main(int argc, char **argv) case IALP: t = sp + pc[1]; a = isalpha( (int)t[-1]); break; case SCMP: t = sp + pc[1]; a = strcmp((char *)t[-1], (char *)t[-2]); break; case SDUP: t = sp + pc[1]; a = (int)strdup((char *)t[-1]); break; - case EXIT: printf("exit(%d) cycle = %d\n", *sp, cycle); return *sp; + case EXIT: /* printf("exit(%d) cycle = %d\n", *sp, cycle); */ return *sp; default: printf("unknown instruction = %d! cycle = %d\n", i, cycle); return -1; } } -- cgit v1.2.3-54-g00ecf