Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OBJ_TILES_2D for addressing tiles by x,y coordinate in 2D mode #210

Merged
merged 1 commit into from
Feb 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/mmio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ def_mmio!(0x0600_0000 = VIDEO4_VRAM: VolGrid2dStrided<u8x2, Safe, Safe, 120, 160
def_mmio!(0x0600_0000 = VIDEO5_VRAM: VolGrid2dStrided<Color, Safe, Safe, 160, 128, 2, 0xA000>; "Video mode 5 bitmaps (frames 0 and 1).");

def_mmio!(0x0601_0000 = OBJ_TILES: VolBlock<Tile4, Safe, Safe, 1024>; "Object tiles. In video modes 3, 4, and 5 only indices 512..=1023 are available.");
def_mmio!(0x0601_0000 = OBJ_TILES_2D: VolGrid2d<Tile4, Safe, Safe, 32, 32>; "Object tiles for DISPCNT.obj_vram_1d = false. In video modes 3, 4, and 5 only rows 16..=31 are available.");

// Object Attribute Memory (OAM)

Expand Down
Loading