Difference between revisions of "GSX"
From CPCWiki - THE Amstrad CPC encyclopedia!
(→Drivers) |
(→Example: Driver source code) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
GSX consists of: | 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 == | |
− | 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 == | ||
Line 16: | Line 24: | ||
Amstrad/Locomotive provided DDMODE0.PRL, DDMODE1.PRL and DDMODE2.PRL which implement drivers for each of the CPC's screen modes. | 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 | + | 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 its id. |
Example content of ASSIGN.SYS | Example content of ASSIGN.SYS | ||
Line 22: | Line 30: | ||
01 @:DDMODE0.PRL | 01 @:DDMODE0.PRL | ||
− | [[Category:CP/M]] | + | == Example == |
+ | [[Media:Gsxdemo.zip]] | ||
+ | [https://forum.classic-computing.de/forum/index.php?thread/18391-cp-m-80-erweiterung-gsx-quellcode/ Driver source code] | ||
+ | |||
+ | [[Category:CP/M]] [[Category:GSX]] |
Latest revision as of 05:41, 25 January 2021
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 its id.
Example content of ASSIGN.SYS
01 @:DDMODE0.PRL