Add printc and exit builtin functions

This commit is contained in:
2024-10-04 18:26:10 +02:00
parent fdf56ce9d0
commit 35742aa525
20 changed files with 139 additions and 53 deletions

View File

@ -0,0 +1,5 @@
proc main() {
printc('c');
exit();
printi(1234);
}

View File

@ -0,0 +1,4 @@
proc main() {
printi(13);
printi(2097150);
}

3
tests/vm/print_char.elna Normal file
View File

@ -0,0 +1,3 @@
proc main() {
printc('x');
}

View File

@ -0,0 +1,3 @@
proc main() {
printi(20 * 50);
}

3
tests/vm/printi_hex.elna Normal file
View File

@ -0,0 +1,3 @@
proc main() {
printi(0x81);
}