mirror of
https://github.com/usatiuk/nand2tetris.git
synced 2025-10-28 16:17:48 +01:00
12 lines
161 B
Plaintext
12 lines
161 B
Plaintext
function Utils.mod 1
|
|
push argument 0
|
|
push argument 1
|
|
call Math.divide 2
|
|
pop local 0
|
|
push argument 0
|
|
push argument 1
|
|
push local 0
|
|
call Math.multiply 2
|
|
sub
|
|
return
|