This commit is contained in:
QkoSad
2025-07-16 13:00:37 +03:00
commit 7894b48931
806 changed files with 162532 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/11/Seven/Main.jack
/**
* Computes the value of 1 + (2 * 3) and prints the result
* at the top-left of the screen.
*/
class Main {
function void main() {
do Output.printInt(1 + (2 * 3));
return;
}
}
+10
View File
@@ -0,0 +1,10 @@
function Main.main 0
push constant 1
push constant 2
push constant 3
call Math.multiply 2
add
call Output.printInt 1
pop temp 0
push constant 0
return