Talk:Petit Computer 3/@comment-14600979-20140627175136/@comment-15296152-20140627230213

Definitely looks like a function. I don't think the indenting has anything to do with the actual function, but probably just makes it easier to read. I think if it starts with DEF, then it'll likely end with END DEF, and maybe allow early exiting via EXIT DEF. One other thing. The name itself might be used as a variable too, in a way to return a value set in the function, like...

DEF ISNEG A

IF A<0 THEN ISNEG=1 ELSE ISNEG=0

END DEF

I'll assume that when executing code, it'll skip over all DEF areas except when called as such, or at least it looks like that as we see this is code right at the top with the CNT=0 preceding it.