Oam Registers - Nintendo GAME BOY Programming Manual

Hide thumbs Also See for GAME BOY:
Table of Contents

Advertisement

Game Boy Programming Manual

1.7 OAM Registers

OBJ (Object)
!
Data for 40 objects (OBJ) can be loaded into internal OAM RAM in the CPU
(FE00h-FE9Fh), and 40 objects can be displayed to the LCD.
can be displayed on the same Y line.
!
Each object consists of a y-coordinate (8 bits), x-coordinate (8 bits), and CHR code
(8 bits) and specifications for BG and OBJ display priority (1 bit), vertical flip (1bit),
horizontal flip (1 bit), DMG-mode palette, (1 bit), character bank (1bit), and color
palette (3 bits), for a total of 32 bits.
!
An 8 x 8- or 8 x 16-bit block composition can be specified for an OBJ using bit 2 of
the LCDC register. With an 8 x 16-bit composition, the CHR code is specifed as
an even number, as in DMG.
62
Up to 10 objects

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents