Skip to main content

List Interpreter and Mode Stack

A change to the NGLI is implied. Whenever an EXECUTE LIST command is encountered, the current state is saved, a new current origin is computed, NGLP is reset to zero, and new X and Y scale factors must be calculated to transform the coordinates in the new list to actual screen coordinates.

Another construct for graphics processing will be added. This is the mode stack for each graphics mode. It will be used for saving and restoring character and vector mode values as lists are recursively executed. Four new list items will be added to handle these operations.

PUSH CHARACTER MODE    (item type = 14)
PUSH VECTOR MODE (item type = 15)
POP CHARACTER MODE (item type = 16)
POP VECTOR MODE (item type = 17)