Jack language

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Jack language

aser58

Is Jack language has branching commands like "goto" ?

If not , how can I quit the program in certain condition ?
Reply | Threaded
Open this post in threaded view
|

Re: Jack language

WBahn
Administrator
The Sys OS library has a function called 'halt' which is specifically intended to halt program execution.

Under the hood, what this does is perform a return to the initialization function that is called when your program starts, at which point that program enters an infinite loop that does nothing except prevent code execution from wandering aimlessly through ROM.