mirror of
https://github.com/usatiuk/nand2tetris.git
synced 2025-10-28 16:17:48 +01:00
16 lines
195 B
Plaintext
16 lines
195 B
Plaintext
function Util.abs 0
|
|
push argument 0
|
|
push constant 0
|
|
lt
|
|
if-goto IF_TRUE0
|
|
goto IF_FALSE0
|
|
label IF_TRUE0
|
|
push argument 0
|
|
neg
|
|
return
|
|
goto IF_END0
|
|
label IF_FALSE0
|
|
push argument 0
|
|
return
|
|
label IF_END0
|