NGDS Format and List Definition
The format of the NGDS can now be specified. The NGSI parses the NGDS into commands. The commands are in a prefix format with an eight bit command followed by the necessary parameters. Their descriptions follow the numerical order of the command codes.
ERASE (commands = 0) consists of a command byte and no parameters. Its effect is to erase the full NGS.
DEFINE LIST (commands = 1) has three parameters. A 16 bit integer for the list name is first. If the name has already been used, then this command redefines the list. The count of the items in the list is also a 16 bit integer defining the length of the list in items. The list items follow the count terminating with an end list item.
The items themselves are used to control the NGLI and the movement of the beam when drawing pictures. They are also in prefix format, with an eight bit item code followed by the necessary parameters. All names are 16 bit integers, coordinate data are 16 bit unsigned fractions as previously described. Any other parameters will have their type and size specified in individual descriptions.
a. OPEN IMAGE AREA (name) (item type = 0) instructs the NGLI that list commands which follow are to be adjusted to be contained within the named area. A nonexistent area name is treated as a NOP. If no image area is specified for the NGLI the default area is area 0, the NGS. This directive remains in effect until another type 0 item is encountered by the NGLI.
b. RESET IMAGE AREA (name) (item type = 1) causes the NGLI to move the beam to the lower left corner of the image area. A nonexistent name is again treated as a NOP.
c. CLEAR IMAGE AREA (name) (item type = 2) causes the NGLI to erase all graphical information in the specified area, and then to perform a reset command.