stl.startup (arity 1)¶
startup Macro - Should be the first piece of code in your program.
Inits the IO variable, and jumps to the given code start.
Signature¶
def startup code_start > IO { ... }
Defined in runlib.fj — lines 22–26 (view on GitHub).
Complexity¶
Time:
2Space:
2
See the complexity glossary for what @, w, dw, dbit, n mean.
Output labels¶
This macro exposes labels into the caller’s scope via >:
IO— the address of the opcode that’s reserved for Input/Output. More info in https://esolangs.org/wiki/FlipJump#Input_/_Output
Source¶
Click to view the macro body
def startup code_start > IO {
;code_start // 0w;1w : first code to run
IO:
;0 // 2w;3w : sets the io_handler to address 0 (good for a future wflip)
}
Used by¶
Example uses¶
stl.startupinrunlib.fjstl.startup_and_init_pointersinrunlib.fj
← Previous: stl.startup/0
Next: stl.startup_and_init_pointers/0 →