Common values for hardware registers. More...
Macros | |
| #define | BGMODE_MODE0 0 |
| #define | BGMODE_MODE1 1 |
| #define | BGMODE_MODE2 2 |
| #define | BGMODE_MODE3 3 |
| #define | BGMODE_MODE7 7 |
| #define | INIDISP_BRIGHTNESS(n) ((n) & 0x0F) |
| #define | INIDISP_FORCE_BLANK 0x80 |
| #define | NMITIMEN_JOY_ENABLE 0x01 |
| #define | NMITIMEN_NMI_ENABLE 0x80 |
| #define | TM_BG1 BIT(0) |
| #define | TM_BG2 BIT(1) |
| #define | TM_BG3 BIT(2) |
| #define | TM_BG4 BIT(3) |
| #define | TM_OBJ BIT(4) |
Common values for hardware registers.
| #define BGMODE_MODE0 0 |
4 BG layers, 4 colors each
| #define BGMODE_MODE1 1 |
2 BG 16-color, 1 BG 4-color (most common)
| #define BGMODE_MODE2 2 |
2 BG 16-color with offset-per-tile
| #define BGMODE_MODE3 3 |
1 BG 256-color, 1 BG 16-color
| #define BGMODE_MODE7 7 |
Mode 7 (rotation/scaling)
| #define INIDISP_FORCE_BLANK 0x80 |
Force screen blank
| #define NMITIMEN_JOY_ENABLE 0x01 |
Enable auto joypad read
| #define NMITIMEN_NMI_ENABLE 0x80 |
Enable NMI on VBlank