System
Function number: 128
This is a blanket routine to incorporate many system level functions of the GRAFIX package.
Register entry values
AX = EE80
BX = Action
0 = Return residency status in AX
1 = Return current graphics system status in AX
2 = Enter 320x200x16 graphics mode and enable all graphics functions
3 = Enter 80x25 text mode and disable all graphics functions
4 = Disable all current sound processing
5 = Enable sound buffer processing
6 = Disable sound buffer processing
7 = Disable all current noise processing
8 = Enable noise buffer processing
9 = Disable noise buffer processing
10 = Disable all current sound and noise processing
11 = Enter 640x200x16 graphics mode and enable all graphics functions
12 = Return if 640x200x16 color mode is supported
13 = Enter 160x200x16 graphics mode and enable all graphics functions
Register exit values
BX = 00 entry value
AX = DEAD indicates this package is resident
BX = 01 entry value
AX = 0 indicates graphics system is inactive
1 indicates graphics system is active
BX = 12 entry value
AX = 0 indicates 640x200x16 color graphics mode not supported
1 indicates 640x200x16 color graphics mode supported
Here is a list of each subfunction's description:
BX = 00: This will enable you to determine if the GRAFIX program is installed or not. If it is resident the AX register will contain the value 0DEADH to indicate this fact. This is useful to make sure the program you are going to run was loaded after the GRAFIX program.
BX = 01:
This will let you determine the current status of the graphics system. The system must be enabled before any of its functions can be used. This is a handy little item to have to make sure the graphics system is enabled before attempting to use any of the functions.
BX = 02:
This enables all functions in the graphics system and enters the Tandy 1000/PCjr's 320x200x16 color graphics mode. It also resets all the graphics variables to their default state.
BX = 03:
This disables all functions in the graphics system and enters the 80x25 text screen mode.
BX = 04:
This turns all current sound processing off. All current sounds are turned off, the sound buffer is cleared, and sound buffering is disabled.
BX = 05:
This turns sound buffering on allowing you to make sounds in background while your program is executing.
BX = 06:
This turns sound buffering off. The current sound is left alone, but the sound buffer is cleared of any remain sounds to make.
BX = 07:
This turns all current noise processing off. All current noises are turned off, the noise buffer is cleared, and noise buffering is disabled.
BX = 08:
This turns noise buffering on allowing you to make noises in background while your program is executing.
BX = 09:
This turns noise buffering off. The current noise is left alone, but the noise buffer is cleared of any remain noises to make.
BX = 10:
This turns all current noise and sound processing off. All current noises and sounds are turned off, the noise and sound buffers are cleared, and noise and sound buffering is disabled.
BX = 11:
This enables all functions in the graphics system and enters the Tandy 1000 SL/TL's 640x200x16 color graphics mode. It also resets all the graphics variables to their default state.
BX = 12:
This indicates whether the 640x200x16 color graphics mode functions are supported.
BX = 13:
This enables all functions in the graphics system and enters the Tandy 1000/PCjr's 160x200x16 color graphics mode. It also resets all the graphics variables to their default state.
Example
None
Comments
See chapter 6 for the default values for the GRAFIX program.