end

From Wiki of ZZT
Revision as of 08:23, 8 February 2021 by Asie (talk | contribs) (Created page with "{{DISPLAYTITLE:end}} '''#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 b...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

  • 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.