+/TECS
git clone https://git.julia.blue/+/TECS
3311316
master
1// This file is part of www.nand2tetris.org 2// and the book "The Elements of Computing Systems" 3// by Nisan and Schocken, MIT Press. 4// File name: projects/04/Mult.asm 5 6// Multiplies R0 and R1 and stores the result in R2. 7// (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.) 8 9@R2 10M =0 11( LOOP ) 12@R0 13D =M 14@END 15D ;JEQ 16@R0 17M =M -1 18@R2 19D =M 20@R1 21D =D + M 22@R2 23M =D 24 25@LOOP 260 ;JMP 27( END ) 28@END 290 ;JMP