some docs for devs, added a few examples, implemented syscalls

This commit is contained in:
MCorange
2023-03-14 21:50:14 +02:00
parent 8d72420b04
commit 2c82aebd60
16 changed files with 516 additions and 8 deletions

18
examples/hello_world.mcl Normal file
View File

@@ -0,0 +1,18 @@
mem dup 72 @8
1 + dup 101 @8
1 + dup 110 @8
1 + dup 108 @8
1 + dup 111 @8
1 + dup 32 @8
1 + dup 119 @8
1 + dup 111 @8
1 + dup 114 @8
1 + dup 108 @8
1 + dup 100 @8
1 + dup 33 @8
1 + dup 10 @8
1 +
mem - mem 1 1 syscall3

1
examples/rule110.mcl Normal file
View File

@@ -0,0 +1 @@
// TODO: Make this

5
examples/seq_100.mcl Normal file
View File

@@ -0,0 +1,5 @@
0 while dup 100 < do
dup print
1 +
end