Project 6
This commit is contained in:
6
projects/06/Asm/Add.hack
Normal file
6
projects/06/Asm/Add.hack
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
0000000000000010
|
||||||
|
1110110000010000
|
||||||
|
0000000000000011
|
||||||
|
1110000010010000
|
||||||
|
0000000000000000
|
||||||
|
1110001100001000
|
||||||
37
projects/06/max/MaxL.Hand.asm
Normal file
37
projects/06/max/MaxL.Hand.asm
Normal 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
|
||||||
Reference in New Issue
Block a user