GBDK 2020 Docs
4.1.1
API Documentation for GBDK 2020
|
#include <types.h>
Go to the source code of this file.
Macros | |
#define | __BYTES extern UBYTE |
#define | __BYTE_REG extern volatile UBYTE |
#define | MEMCTL_JOYON 0b00000000 |
#define | MEMCTL_JOYOFF 0b00000100 |
#define | MEMCTL_BASEON 0b00000000 |
#define | MEMCTL_BASEOFF 0b00001000 |
#define | MEMCTL_RAMON 0b00000000 |
#define | MEMCTL_RAMOFF 0b00010000 |
#define | MEMCTL_CROMON 0b00000000 |
#define | MEMCTL_CROMOFF 0b00100000 |
#define | MEMCTL_ROMON 0b00000000 |
#define | MEMCTL_ROMOFF 0b01000000 |
#define | MEMCTL_EXTON 0b00000000 |
#define | MEMCTL_EXTOFF 0b10000000 |
#define | JOY_P1_LATCH 0b00000010 |
#define | JOY_P2_LATCH 0b00001000 |
#define | PSG_LATCH 0x80 |
#define | PSG_CH0 0b00000000 |
#define | PSG_CH1 0b00100000 |
#define | PSG_CH2 0b01000000 |
#define | PSG_CH3 0b01100000 |
#define | PSG_VOLUME 0b00010000 |
#define | STATF_INT_VBL 0b10000000 |
#define | STATF_9_SPR 0b01000000 |
#define | STATF_SPR_COLL 0b00100000 |
#define | VDP_REG_MASK 0b10000000 |
#define | VDP_R0 0b10000000 |
#define | R0_DEFAULT 0b00000000 |
#define | R0_CB_OUTPUT 0b00000000 |
#define | R0_CB_INPUT 0b01000000 |
#define | R0_IE2_OFF 0b00000000 |
#define | R0_IE2 0b00100000 |
#define | R0_IE1_OFF 0b00000000 |
#define | R0_IE1 0b00010000 |
#define | R0_SCR_MODE1 0b00000000 |
#define | R0_SCR_MODE2 0b00000010 |
#define | R0_SCR_MODE3 0b00000100 |
#define | R0_ES_OFF 0b00000000 |
#define | R0_ES 0b00000001 |
#define | VDP_R1 0b10000001 |
#define | R1_DEFAULT 0b10000000 |
#define | R1_DISP_OFF 0b00000000 |
#define | R1_DISP_ON 0b01000000 |
#define | R1_IE_OFF 0b00000000 |
#define | R1_IE 0b00100000 |
#define | R1_SCR_MODE1 0b00010000 |
#define | R1_SCR_MODE2 0b00000000 |
#define | R1_SCR_MODE3 0b00000000 |
#define | R1_SPR_8X8 0b00000000 |
#define | R1_SPR_16X16 0b00000010 |
#define | R1_SPR_MAG 0b00000001 |
#define | R1_SPR_MAG_OFF 0b00000000 |
#define | VDP_R2 0b10000010 |
#define | R2_MAP_0x3800 0xFF |
#define | R2_MAP_0x3000 0xFD |
#define | R2_MAP_0x2800 0xFB |
#define | R2_MAP_0x2000 0xF9 |
#define | R2_MAP_0x1800 0xF7 |
#define | R2_MAP_0x1000 0xF5 |
#define | R2_MAP_0x0800 0xF3 |
#define | R2_MAP_0x0000 0xF1 |
#define | VDP_R3 0b10000011 |
#define | VDP_R4 0b10000100 |
#define | VDP_R5 0b10000101 |
#define | R5_SAT_0x3F00 0xFF |
#define | R5_SAT_MASK 0b10000001 |
#define | VDP_R6 0b10000110 |
#define | R6_BANK0 0xFB |
#define | R6_DATA_0x0000 0xFB |
#define | R6_BANK1 0xFF |
#define | R6_DATA_0x2000 0xFF |
#define | VDP_R7 0b10000111 |
#define | VDP_RBORDER 0b10000111 |
#define | R7_COLOR_MASK 0b11110000 |
#define | VDP_R8 0b10001000 |
#define | VDP_RSCX 0b10001000 |
#define | VDP_R9 0b10001001 |
#define | VDP_RSCY 0b10001001 |
#define | VDP_R10 0b10001010 |
#define | R10_INT_OFF 0xFF |
#define | R10_INT_EVERY 0x00 |
#define | JOY_P1_UP 0b00000001 |
#define | JOY_P1_DOWN 0b00000010 |
#define | JOY_P1_LEFT 0b00000100 |
#define | JOY_P1_RIGHT 0b00001000 |
#define | JOY_P1_SW1 0b00010000 |
#define | JOY_P1_TRIGGER 0b00010000 |
#define | JOY_P1_SW2 0b00100000 |
#define | JOY_P2_UP 0b01000000 |
#define | JOY_P2_DOWN 0b10000000 |
#define | JOY_P2_LEFT 0b00000001 |
#define | JOY_P2_RIGHT 0b00000010 |
#define | JOY_P2_SW1 0b00000100 |
#define | JOY_P2_TRIGGER 0b00000100 |
#define | JOY_P2_SW2 0b00001000 |
#define | JOY_RESET 0b00010000 |
#define | JOY_P1_LIGHT 0b01000000 |
#define | JOY_P2_LIGHT 0b10000000 |
#define | SYSTEM_PAL 0x00 |
#define | SYSTEM_NTSC 0x01 |
#define | VBK_TILES 0 |
#define | VBK_ATTRIBUTES 1 |
#define | VDP_SAT_TERM 0xD0 |
#define | DEVICE_SCREEN_PX_WIDTH (DEVICE_SCREEN_WIDTH * 8) |
#define | DEVICE_SCREEN_PX_HEIGHT (DEVICE_SCREEN_HEIGHT * 8) |
Defines that let the MSX hardware registers be accessed from C.
#define __BYTES extern UBYTE |
#define __BYTE_REG extern volatile UBYTE |
#define MEMCTL_JOYON 0b00000000 |
#define MEMCTL_JOYOFF 0b00000100 |
#define MEMCTL_BASEON 0b00000000 |
#define MEMCTL_BASEOFF 0b00001000 |
#define MEMCTL_RAMON 0b00000000 |
#define MEMCTL_RAMOFF 0b00010000 |
#define MEMCTL_CROMON 0b00000000 |
#define MEMCTL_CROMOFF 0b00100000 |
#define MEMCTL_ROMON 0b00000000 |
#define MEMCTL_ROMOFF 0b01000000 |
#define MEMCTL_EXTON 0b00000000 |
#define MEMCTL_EXTOFF 0b10000000 |
#define JOY_P1_LATCH 0b00000010 |
#define JOY_P2_LATCH 0b00001000 |
#define PSG_LATCH 0x80 |
#define PSG_CH0 0b00000000 |
#define PSG_CH1 0b00100000 |
#define PSG_CH2 0b01000000 |
#define PSG_CH3 0b01100000 |
#define PSG_VOLUME 0b00010000 |
#define STATF_INT_VBL 0b10000000 |
#define STATF_9_SPR 0b01000000 |
#define STATF_SPR_COLL 0b00100000 |
#define VDP_REG_MASK 0b10000000 |
#define VDP_R0 0b10000000 |
#define R0_DEFAULT 0b00000000 |
#define R0_CB_OUTPUT 0b00000000 |
#define R0_CB_INPUT 0b01000000 |
#define R0_IE2_OFF 0b00000000 |
#define R0_IE2 0b00100000 |
#define R0_IE1_OFF 0b00000000 |
#define R0_IE1 0b00010000 |
#define R0_SCR_MODE1 0b00000000 |
#define R0_SCR_MODE2 0b00000010 |
#define R0_SCR_MODE3 0b00000100 |
#define R0_ES_OFF 0b00000000 |
#define R0_ES 0b00000001 |
#define VDP_R1 0b10000001 |
#define R1_DEFAULT 0b10000000 |
#define R1_DISP_OFF 0b00000000 |
#define R1_DISP_ON 0b01000000 |
#define R1_IE_OFF 0b00000000 |
#define R1_IE 0b00100000 |
#define R1_SCR_MODE1 0b00010000 |
#define R1_SCR_MODE2 0b00000000 |
#define R1_SCR_MODE3 0b00000000 |
#define R1_SPR_8X8 0b00000000 |
#define R1_SPR_16X16 0b00000010 |
#define R1_SPR_MAG 0b00000001 |
#define R1_SPR_MAG_OFF 0b00000000 |
#define VDP_R2 0b10000010 |
#define R2_MAP_0x3800 0xFF |
#define R2_MAP_0x3000 0xFD |
#define R2_MAP_0x2800 0xFB |
#define R2_MAP_0x2000 0xF9 |
#define R2_MAP_0x1800 0xF7 |
#define R2_MAP_0x1000 0xF5 |
#define R2_MAP_0x0800 0xF3 |
#define R2_MAP_0x0000 0xF1 |
#define VDP_R3 0b10000011 |
#define VDP_R4 0b10000100 |
#define VDP_R5 0b10000101 |
#define R5_SAT_0x3F00 0xFF |
#define R5_SAT_MASK 0b10000001 |
#define VDP_R6 0b10000110 |
#define R6_BANK0 0xFB |
#define R6_DATA_0x0000 0xFB |
#define R6_BANK1 0xFF |
#define R6_DATA_0x2000 0xFF |
#define VDP_R7 0b10000111 |
#define VDP_RBORDER 0b10000111 |
#define R7_COLOR_MASK 0b11110000 |
#define VDP_R8 0b10001000 |
#define VDP_RSCX 0b10001000 |
#define VDP_R9 0b10001001 |
#define VDP_RSCY 0b10001001 |
#define VDP_R10 0b10001010 |
#define R10_INT_OFF 0xFF |
#define R10_INT_EVERY 0x00 |
#define JOY_P1_UP 0b00000001 |
#define JOY_P1_DOWN 0b00000010 |
#define JOY_P1_LEFT 0b00000100 |
#define JOY_P1_RIGHT 0b00001000 |
#define JOY_P1_SW1 0b00010000 |
#define JOY_P1_TRIGGER 0b00010000 |
#define JOY_P1_SW2 0b00100000 |
#define JOY_P2_UP 0b01000000 |
#define JOY_P2_DOWN 0b10000000 |
#define JOY_P2_LEFT 0b00000001 |
#define JOY_P2_RIGHT 0b00000010 |
#define JOY_P2_SW1 0b00000100 |
#define JOY_P2_TRIGGER 0b00000100 |
#define JOY_P2_SW2 0b00001000 |
#define JOY_RESET 0b00010000 |
#define JOY_P1_LIGHT 0b01000000 |
#define JOY_P2_LIGHT 0b10000000 |
#define SYSTEM_PAL 0x00 |
#define SYSTEM_NTSC 0x01 |
#define VBK_TILES 0 |
#define VBK_ATTRIBUTES 1 |
#define VDP_SAT_TERM 0xD0 |
#define DEVICE_SCREEN_PX_WIDTH (DEVICE_SCREEN_WIDTH * 8) |
#define DEVICE_SCREEN_PX_HEIGHT (DEVICE_SCREEN_HEIGHT * 8) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |