17.2 Loading and saving. 4tH 4tH Forth compiler
Reklam
Reklam
CHAPTER 17. SHELL MANUAL
17.2
Loading and saving
load” s” compile” s” n save” s” n write” s” n1 n2 see
357
Loads HX file s from disk and leaves the task number on the stack.
Loads and compiles source file s and leaves the task number on the stack.
Saves task number n to HX file s.
Generates C source file s from task number n.
Decompiles task number n1 from opcode n2 on.
17.3
Task management
task boot pause n pauses n run n awake n sleep n kill tasks halt
Leaves the task number of the current monitor on the stack.
Starts a new monitor and runs the boot scripts.
Deactivates the monitor for one cycle.
Deactivates the monitor for n cycles.
Awakes and switches to task number n.
Awakes task number n.
Deactivates task number n, but leaves it in memory.
Deactivates task number n and removes it from memory.
Lists all tasks.
Kills all tasks and shuts down 4tsh.
17.4
Scripting
script” s" n load
:: s goto s n if then n not n status done running sleeping
Run script s. Does only work in interactive mode.
Load and interpret block n. Does not work in interactive mode.
Define label s.
Goto label s. Works in interactive mode, but only if s resides on the same line.
Execute the words between if and the corresponding then, but only if n is non-zero. Works in interactive mode. If you fail to provide a corresponding then you will be prompted to provide it manually.
Marker for if.
Leaves a non-zero value on the stack if n is zero, otherwise zero.
Leaves the status of task number n on the stack.
Constant holding the termination status returned by status.
Constant holding the active status returned by status.
Constant holding the inactive status returned by status.
İndir
Reklam