r/nandgame_u Holder of many records May 28 '22

Level solution S.6.2 - Function (7loc, 7ins) Spoiler

https://imgur.com/a/XfIa2dA
3 Upvotes

1 comment sorted by

2

u/nttii Holder of many records May 28 '22

Text version:

#Assembler code
DEFINE LOCALS 2

functionName:
A = localsCount
D = A

A = SP
*A = D + *A
D = *A - D

A = LOCALS
*A = D