end
Jump to navigation
Jump to search
#end is a ZZT-OOP command for ending code execution. It achieves this by setting the Object code position to -1. Execution can be restored by sending a message to the affected Object.
Quirks
- Unlike its companion command restart, #end does not act as a label that can be sent. Thus, the command
#all:end
will do nothing (except jumping to an:end
label for objects that have it). - The ZZT-OOP parser will treat the character 00h (a null terminator) as equivalent to #end. As object code strings are length-prefixed and not null-terminated, this allows storing 00h characters as part of the code and saving a few bytes per occurence.
ZZT-OOP | |
---|---|
Prefixes |
|
Messages | |
Directions | |
Flags | |
Commands |