C instruction wip

This commit is contained in:
Hazem Krimi
2024-03-12 00:29:41 +01:00
parent 90b2a5f5e7
commit ac8a70f33d
5 changed files with 108 additions and 22 deletions
+25
View File
@@ -0,0 +1,25 @@
// 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/06/max/MaxL.asm
// Symbol-less version of the Max.asm program.
@0
D=M
@1
D=D-M
@12
D;JGT
@1
D=M
@2
M=D
@16
0;JMP
@0
D=M
@2
M=D
@16
0;JMP