| void Bios_Exit( |
| ) |
Handle clean exit form Basic or MSX-DOS environment
| ret u8 | Return value (for MSX-DOS environment) |
| inline void Bios_SetKeyClick( |
| ) |
Enable or disable key click
| enable bool | TRUE to enable and FALSE to disable |
Get MSX generation version
MSXVER_1 (0) for MSX1.
MSXVER_2 (1) for MSX2.
MSXVER_2P (2) for MSX2+.
MSXVER_TR (3) for MSX turbo R.
Tests RAM and sets RAM slot for the system. Wrapper for CHKRAM routine.
| u8 Bios_InterSlotRead( |
| ) |
Reads the value of an address in another slot. Wrapper for RDSLT routine.
| void Bios_InterSlotWrite( |
| ) |
Writes a value to an address in another slot. Wrapper for WRSLT routine.
| void Bios_InterSlotCall( |
| ) |
Executes inter-slot call. Wrapper for CALSLT routine.
| void Bios_SwitchSlot( |
| ) |
Switches to specified slot and page definitively. Wrapper for ENASLT routine.
Executes an interslot call. Wrapper for CALLF routine.
Inhibits the screen display. Wrapper for DISSCR routine.
Displays the screen. Wrapper for ENASCR routine.
| void Bios_WriteVDP( |
| ) |
Writes data in the VDP-register. Wrapper for WRTVDP routine.
| inline u8 Bios_ReadVRAM( |
| ) |
Reads the content of VRAM. Wrapper for RDVRM routine.
| void Bios_WriteVRAM( |
| ) |
Writes data in VRAM. Wrapper for WRTVRM routine.
| inline void Bios_SetAddressForRead( |
| ) |
Enables VDP to read. Wrapper for SETRD routine.
| inline void Bios_SetAddressForWrite( |
| ) |
Enables VDP to write. Wrapper for SETWRT routine.
| void Bios_FillVRAM( |
| ) |
Fills VRAM with value. Wrapper for FILVRM routine.
| void Bios_TransfertVRAMtoRAM( |
| ) |
Block transfer to memory from VRAM. Wrapper for LDIRMV routine.
| void Bios_TransfertRAMtoVRAM( |
| ) |
Block transfer to VRAM from memory. Wrapper for LDIRVM routine.
| inline void Bios_ChangeMode( |
| ) |
Switches to given screen mode. Wrapper for CHGMOD routine.
| void Bios_ChangeColor( |
| ) |
Changes the screen colors. Wrapper for CHGCLR routine.
Switches to SCREEN 0 (text screen with 40*24 characters). Wrapper for INITXT routine.
| void Bios_InitScreen0Ex( |
| ) |
Switches to SCREEN 0 (text screen with 40*24 characters). Wrapper for INITXT routine.
Switches to SCREEN 1 (text screen with 32*24 characters). Wrapper for INIT32 routine.
| void Bios_InitScreen1Ex( |
| ) |
Switches to SCREEN 1 (text screen with 32*24 characters). Wrapper for INIT32 routine.
Switches to SCREEN 2 (high resolution screen with 256*192 pixels). Wrapper for INIGRP routine.
| void Bios_InitScreen2Ex( |
| ) |
Switches to SCREEN 2 (high resolution screen with 256*192 pixels). Wrapper for INIGRP routine.
Switches to SCREEN 3 (multi-color screen 64*48 pixels). Wrapper for INIMLT routine.
| void Bios_InitScreen3Ex( |
| ) |
Switches to SCREEN 3 (multi-color screen 64*48 pixels). Wrapper for INIMLT routine.
Switches VDP in SCREEN 0 mode. Wrapper for SETTXT routine.
Switches VDP in SCREEN 1 mode. Wrapper for SETT32 routine.
Switches VDP to SCREEN 2 mode. Wrapper for SETGRP routine.
Switches VDP to SCREEN 3 mode. Wrapper for SETMLT routine.
| u16 Bios_GetPatternTableAddress( |
| ) __FASTCALL |
Returns the address of the sprite pattern table. Wrapper for CALPAT routine.
| u16 Bios_GetAttributeTableAddress( |
| ) __FASTCALL |
Returns the address of the sprite attribute table. Wrapper for CALATR routine.
Returns current sprite size. Wrapper for GSPSIZ routine.
| inline void Bios_GraphPrintChar( |
| ) |
Displays a character on the graphic screen. Wrapper for GRPPRT routine.
| void Bios_GraphPrintCharEx( |
| ) |
Displays a character on the graphic screen. Wrapper for GRPPRT routine.
Returns FALSE if no collision occured during the previous frame, otherwise returns S00_C. This function use value of VDP status register S#0 that BIOS backup in RAM (STATFL).
Returns FALSE if no over-scan occured during the previous frame (more than 4/8 sprites on the same line), otherwise returns S00_5S. This function use value of VDP status register S#0 that BIOS backup in RAM (STATFL).
Returns index of the over-scaned sprite (5th/8th sprite on line). Value is in 0-31 range. This function use value of VDP status register S#0 that BIOS backup in RAM (STATFL).
Initialises PSG and sets initial value for the PLAY statement. Wrapper for GICINI routine.
| void Bios_WritePSG( |
| ) |
Writes data to PSG-register. Wrapper for WRTPSG routine.
| inline u8 Bios_ReadPSG( |
| ) |
Reads value from PSG-register. Wrapper for RDPSG routine.
Tests whether the PLAY statement is being executed as a background task. Wrapper for STRTMS routine.
One character input (waiting). Wrapper for CHGET routine.
Get a character input (if any) or return 0.
| inline void Bios_TextPrintChar( |
| ) |
Displays one character. Wrapper for CHPUT routine.
| inline void Bios_TextPrintSting( |
| ) |
Displays a null-terminated string.
Generates beep. Wrapper for BEEP routine.
Clears the screen. Wrapper for CLS routine.
| void Bios_SetCursorPosition( |
| ) |
Moves cursor to the specified position. Wrapper for POSIT routine.
| inline u8 Bios_GetJoystickDirection( |
| ) |
Returns the joystick status. Wrapper for GTSTCK routine.
| inline bool Bios_GetJoystickTrigger( |
| ) |
Returns current trigger status. Wrapper for GTTRIG routine.
| inline u8 Bios_GetKeyboardMatrix( |
| ) |
Returns the value of the specified line from the keyboard matrix. Wrapper for SNSMAT routine.
| inline bool Bios_IsKeyPressed( |
| ) |
Check if the given key is pressed
| inline void Bios_SetCPUMode( |
| ) |
Changes CPU mode. Wrapper for CHGCPU routine.
Returns current CPU mode. Wrapper for GETCPU routine.