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}");