I'm glad that i had learned some assembly language knowledge where i study ARM9 chip.
So i do not need to stop my pace to study assembly language.
First,we need to write a code to achieve mutiplication function.
Just make good use of loop can help you finish it.
Mult.asm
// 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[3], respectively.)
// Put your code here.
@0
D=M
@2
M=0
(LOOP)
@1
D=M
@END
D;JEQ
@1
M=M-1
@0
D=M
@2
M=M+D
@1
D=M
@LOO