summaryrefslogtreecommitdiff
path: root/projects/09/HelloWorld/Main.vm
diff options
context:
space:
mode:
Diffstat (limited to 'projects/09/HelloWorld/Main.vm')
-rw-r--r--projects/09/HelloWorld/Main.vm33
1 files changed, 33 insertions, 0 deletions
diff --git a/projects/09/HelloWorld/Main.vm b/projects/09/HelloWorld/Main.vm
new file mode 100644
index 0000000..32eb03f
--- /dev/null
+++ b/projects/09/HelloWorld/Main.vm
@@ -0,0 +1,33 @@
+function Main.main 0
+push constant 12
+call String.new 1
+push constant 72
+call String.appendChar 2
+push constant 101
+call String.appendChar 2
+push constant 108
+call String.appendChar 2
+push constant 108
+call String.appendChar 2
+push constant 111
+call String.appendChar 2
+push constant 32
+call String.appendChar 2
+push constant 119
+call String.appendChar 2
+push constant 111
+call String.appendChar 2
+push constant 114
+call String.appendChar 2
+push constant 108
+call String.appendChar 2
+push constant 100
+call String.appendChar 2
+push constant 33
+call String.appendChar 2
+call Output.printString 1
+pop temp 0
+call Output.println 0
+pop temp 0
+push constant 0
+return