Add printc and exit builtin functions
This commit is contained in:
5
tests/vm/exit_between_statements.elna
Normal file
5
tests/vm/exit_between_statements.elna
Normal file
@ -0,0 +1,5 @@
|
||||
proc main() {
|
||||
printc('c');
|
||||
exit();
|
||||
printi(1234);
|
||||
}
|
4
tests/vm/print_2_statements.elna
Normal file
4
tests/vm/print_2_statements.elna
Normal file
@ -0,0 +1,4 @@
|
||||
proc main() {
|
||||
printi(13);
|
||||
printi(2097150);
|
||||
}
|
3
tests/vm/print_char.elna
Normal file
3
tests/vm/print_char.elna
Normal file
@ -0,0 +1,3 @@
|
||||
proc main() {
|
||||
printc('x');
|
||||
}
|
3
tests/vm/print_product.elna
Normal file
3
tests/vm/print_product.elna
Normal file
@ -0,0 +1,3 @@
|
||||
proc main() {
|
||||
printi(20 * 50);
|
||||
}
|
3
tests/vm/printi_hex.elna
Normal file
3
tests/vm/printi_hex.elna
Normal file
@ -0,0 +1,3 @@
|
||||
proc main() {
|
||||
printi(0x81);
|
||||
}
|
Reference in New Issue
Block a user