diff options
author | Yuchen Pei <me@ypei.me> | 2018-01-08 12:35:44 +0100 |
---|---|---|
committer | Yuchen Pei <me@ypei.me> | 2018-01-08 12:35:44 +0100 |
commit | 7e4cd1bac23f7cc02d0f14bcc6ef00357377fc2a (patch) | |
tree | 4d843698e8763dcbe0bdefb22712432cd5273605 /projects/09/HelloWorld/Main.vm | |
parent | 29a1931f2ee4e72ddd240096bf6fe9a04668f131 (diff) |
checkpoint finished first draft of Board.jack
Diffstat (limited to 'projects/09/HelloWorld/Main.vm')
-rw-r--r-- | projects/09/HelloWorld/Main.vm | 33 |
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 |