Difference between revisions of "GSX"

From CPCWiki - THE Amstrad CPC encyclopedia!
Jump to: navigation, search
(Drivers)
Line 2: Line 2:
  
 
GSX consists of:
 
GSX consists of:
 +
* GENGRAF.COM
 +
* ASSIGN.SYS
 +
* GSX.SYS
 +
* Device drivers (e.g. DDMODE0.PRL)
  
GENGRAF.COM - This takes a .COM file and configures it for use with GSX. The resulting .COM file can be run without GENGRAF.COM and launches GSX before running your code.
+
== GSX.SYS ==
  
ASSIGN.SYS - This is a text file which contains the mapping of devices to driver files that implement them.
+
GSX.SYS is the device independent part of GSX.
  
DDMODE0.PRL - An example of a driver.  
+
== GENGRAF.COM ==
  
GSX.SYS - The device independent part of GSX.
+
Make your GSX program like any other .COM file. Then use GENGRAF.COM to configure it for GSX. Now run the resulting COM file which will start GSX and then your code.
 +
 
 +
e.g.
 +
A>GENGRAF GSXDEMO.COM
 +
A>GSXDEMO.COM
  
 
== Drivers and ASSIGN.SYS ==
 
== Drivers and ASSIGN.SYS ==

Revision as of 13:18, 13 January 2019

GSX is the standard graphics library for CP/M.

GSX consists of:

  • GENGRAF.COM
  • ASSIGN.SYS
  • GSX.SYS
  • Device drivers (e.g. DDMODE0.PRL)

GSX.SYS

GSX.SYS is the device independent part of GSX.

GENGRAF.COM

Make your GSX program like any other .COM file. Then use GENGRAF.COM to configure it for GSX. Now run the resulting COM file which will start GSX and then your code.

e.g.

A>GENGRAF GSXDEMO.COM
A>GSXDEMO.COM

Drivers and ASSIGN.SYS

Vendors provided platform specific drivers which implemented GSX.

Amstrad/Locomotive provided DDMODE0.PRL, DDMODE1.PRL and DDMODE2.PRL which implement drivers for each of the CPC's screen modes.

ASSIGN.SYS is a text file which must exist along side gsx.sys and which contains the mapping of device id to the driver that implements that GSX device. When you program GSX you open a device by it's id.

Example content of ASSIGN.SYS

01 @:DDMODE0.PRL