Browse Source

Print needs quotes; remove end since it is control flow

dynamic
Raphael Roberts 5 years ago
parent
commit
b115343516
  1. 6
      c2logic/instruction_definition.c

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

Loading…
Cancel
Save