From 7e4cd1bac23f7cc02d0f14bcc6ef00357377fc2a Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Mon, 8 Jan 2018 12:35:44 +0100 Subject: checkpoint finished first draft of Board.jack --- projects/09/HelloWorld/Main.vm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 projects/09/HelloWorld/Main.vm (limited to 'projects/09/HelloWorld/Main.vm') 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 -- cgit v1.2.3