Creating a new program for Magic‐1 in the linux environment - retrotruestory/M1DEV GitHub Wiki

Creating a new program for Magic-1 in the linux environment

If you want to see some Magic-1 assembly code, type in a helloworld.c:

#include 
int main() {
  printf("Hello World!\n");
  return 0;
}

then:
clcc -S helloworld.c

this should give you a helloworld.s.

Then, to see the assembled listing:
m1_as -l helloworld.s

and look at helloworld.lst
⚠️ **GitHub.com Fallback** ⚠️