Changes

GSX

422 bytes added, 10:41, 25 January 2021
/* Example */ Driver source code
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.SYS ==
ASSIGNGSX.SYS - This is a text file which contains the mapping device independent part of devices to driver files that implement themGSX.
DDMODE0.PRL - An example of a driver== GENGRAF. COM ==
Make your GSXprogram like any other .SYS - The device independent part of COM file. Then use GENGRAF.COM to configure it for GSX. Now run the resulting COM file which will start GSXand 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 driverthat implements that GSX device. When you program GSX you open a device by its id.  Example content of ASSIGN.SYS
Example content 01 @:DDMODE0.PRL
01 @== Example ==[[Media:DDSCREENGsxdemo.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]]
897
edits