Project 6

This commit is contained in:
2025-04-16 05:23:34 +02:00
parent 3e40d5c61c
commit 27dd67816a
2 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
// 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
0000000000000000
D=M
1111110000010000X
@1
0000000000000001
D=D-M
1111010011010000
@10
0000000000001010
D;JGT
1110001100000001
@1
0000000000000001
D=M
1111110000010000
@12
0000000000001100
0;JMP
1110101010000111
@0
0000000000000000
D=M
1111110000010000
@2
0000000000000010
M=D
1111
@14
0;JMP