Adding asm & hack samples

Those are the examples and the asm & hack (assembled) from the project 6 of
nand2tetris
This commit is contained in:
2026-05-19 18:57:20 +02:00
parent 0ace0f424a
commit ba4d9afda9
11 changed files with 83536 additions and 0 deletions

24
asm-samples/MaxL.asm Normal file
View File

@@ -0,0 +1,24 @@
// 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/6/max/MaxL.asm
// Symbol-less version of the Max.asm program.
// Designed for testing the basic version of the assembler.
@0
D=M
@1
D=D-M
@10
D;JGT
@1
D=M
@12
0;JMP
@0
D=M
@2
M=D
@14
0;JMP