| Version | all |
|---|---|
| Header | {z88dk}/include/msx.h |
| Source | {z88dk}/libsrc/msx |
| Include | #include <msx.h> |
| Linking | n/a |
| Compile | n/a |
| Supported | MSX |
| Comments | n/a |
Init the PSG (reset sound etc..)
Play a sound by PSG
Read the PSG register
Set the screen mode
Get the screen mode
VRAM read
VRAM write
Switch to text mode
Disable screen
Enable screen
Change the MSX color attributes
| Color | Value |
|---|---|
| TRANSPARENT | 0×00 |
| BLACK | 0×01 |
| MEDIUM_GREEN | 0×02 |
| LIGHT_GREEN | 0×03 |
| DARK_BLUE | 0×04 |
| LIGHT_BLUE | 0×05 |
| DARK_RED | 0×06 |
| CYAN | 0×07 |
| MEDIUM_RED | 0×08 |
| LIGHT_RED | 0×09 |
| DARK_YELLOW | 0x0A |
| LIGHT_YELLOW | 0x0B |
| DARK_GREEN | 0x0C |
| MAGENTA | 0x0D |
| GRAY | 0x0E |
| WHITE | 0x0F |
Check if MSX 1 or MSX 2
Detect the VRAM size (in KB)
Check if the line printer is ready (1=ready, 0 if not)
Check if Ctrl-STOP is being pressed (1=if pressed, 0 if not)
Clear the keyboard buffer
Disable the CTRL-STOP effect (when a BASIC routine is being called)
Restore the CTRL-STOP break command