From b11534351678efb0ff97647e7a5a5ddcb6a53a07 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Mon, 17 May 2021 11:02:24 -0500 Subject: [PATCH] Print needs quotes; remove end since it is control flow --- c2logic/instruction_definition.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/c2logic/instruction_definition.c b/c2logic/instruction_definition.c index c423ae0..2bf4045 100644 --- a/c2logic/instruction_definition.c +++ b/c2logic/instruction_definition.c @@ -1,7 +1,7 @@ struct MindustryObject {}; // builtin instructions void print(char* s) { - asm("print {s}"); + asm("print \"{s}\""); } void printd(double s) { asm("print {s}"); @@ -74,9 +74,7 @@ void drawimage(double x, double y, char* image, double size, double rotation) { void drawflush(struct MindustryObject display) { asm("drawflush {display}"); } -void end() { - asm("end"); -} + // unit commands (not complete; don't know how to return multiple values) void ubind(char* type) { asm("ubind @{type}");