The CP/M library contains functions specific to the CP/M Operating system.
This is a quite common function in
Fill up the filename stuff
Write the file offset into the FCB
Write an offset as 3 bytes
Mark an FCB as being unused
Disk control (as for OSCA FLOS)
Current 'drive' (0..n)
This function set is also availble for OSCA FLOS target platform
Result: 0=normal, 1=directory
struct fcb *fc_dir;
Extensions introduced by Amstrad in its CP/M Plus implementation, used also on the Spectrum +3.
Enable/disable the bottom status line, no effect on some version.
Set keyboard speed
Set border color, 6 bit color encoding, (or 8 bit if ULA256.FID is installed)
Set paper color, 6 bit color encoding, (OS patch needed or 8 bit if ULA256.FID is installed)
Set ink color, 6 bit color encoding, (OS patch needed or 8 bit if ULA256.FID is installed)
Get x cursor position in viewport
Get y cursor position in viewport
Get the machine type on which the Amstrad CP/M implementation is running
#define M_CPC 0 // CPC6128 #define M_PCW 1 // PCW8000/9000/10 series #define M_SPECTRUM 3 // Spectrum +3 #define M_PCW16 65 // (65 = 'A', ie "Anne")
Get Machine HW version (or HW details on recent PCW versions)
Get BIOS version
Get system memory size
Are 2 drives available ?
Is the Serial Port available ?