End: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
(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...")
(No difference)

Revision as of 08:23, 8 February 2021

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