| Address | Size |
|---|---|
| 0x0400:0000h | 2KB |
Display Register
The display register is the register that is used for displaying things on the GBA as the name implies. You'll use it in every GBA program that you write. This page contains all of the information you'll need on the different options this register provides.
REG_DISP
Bit Labels
| F | E | D | C |
|---|---|---|---|
| OW | W1 | W0 | OBJ |
| B | A | 9 | 8 |
|---|---|---|---|
| BG3 | BG2 | BG1 | BG0 |
| 7 | 6 | 5 | 4 |
|---|---|---|---|
| FB | OM | HB | PS |
| 3 | 2 | 1 | 0 |
|---|---|---|---|
| GB | Mode | ||
Bit Definitions
| Bits | Name | Description |
|---|---|---|
| 0-2 | Mode | Set to mode 0-5 |
| 3 | GB | Read only! Gets set if the cartidge is a Gameboy or Gameboy Color. |
| 4 | PS | Page Select. Used only on modes 4 and 5. Used for smoother animation. |
| 5 | HB | Allows access to OAM in HBLANK which is normally locked in VDRAW. |
| 6 | OM | Object mapping mode. 0 = 2D mapping and 1 = 1D mapping. |
| 7 | FB | Force a screen blank. |
| 8-B | BG | Allows you to draw onto the backgrounds. Just set which background(s) you want to use. |
| C | OBJ | Allows you to draw sprites to the screen. |
| D-F | Windows | Enables windows which can be used for masking out certain areas. |
Calculator
0x0000
