all repos — nand2tetris @ eba8ddfc31c4a7ad1a1cfdd0b3e9663b5e3f0312

my nand2tetris progress

Add project 4 skeleton files
x1phosura x1phosura@x1phosura.zone
Sat, 11 Dec 2021 17:15:16 -0800
commit

eba8ddfc31c4a7ad1a1cfdd0b3e9663b5e3f0312

parent

f75e04cfd808fd4827839ed6751d65227550fe8c

2 files changed, 26 insertions(+), 0 deletions(-)

jump to
A projects/04/fill/Fill.asm

@@ -0,0 +1,14 @@

+// 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/04/Fill.asm + +// Runs an infinite loop that listens to the keyboard input. +// When a key is pressed (any key), the program blackens the screen, +// i.e. writes "black" in every pixel; +// the screen should remain fully black as long as the key is pressed. +// When no key is pressed, the program clears the screen, i.e. writes +// "white" in every pixel; +// the screen should remain fully clear as long as no key is pressed. + +// Put your code here.
A projects/04/mult/Mult.asm

@@ -0,0 +1,12 @@

+// 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/04/Mult.asm + +// Multiplies R0 and R1 and stores the result in R2. +// (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.) +// +// This program only needs to handle arguments that satisfy +// R0 >= 0, R1 >= 0, and R0*R1 < 32768. + +// Put your code here.