mirror of
https://github.com/usatiuk/nand2tetris.git
synced 2025-10-29 00:27:49 +01:00
move interesting projects to the root
This commit is contained in:
15
Arkanoid/Util.vm
Normal file
15
Arkanoid/Util.vm
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
Reference in New Issue
Block a user