Skip to content

Commit 07cdcbb

Browse files
authored
OBJ_TILES_2D for addressing tiles by x,y coordinate in 2D mode (#210)
Co-authored-by: lif <>
1 parent 2740088 commit 07cdcbb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mmio.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ def_mmio!(0x0600_0000 = VIDEO4_VRAM: VolGrid2dStrided<u8x2, Safe, Safe, 120, 160
256256
def_mmio!(0x0600_0000 = VIDEO5_VRAM: VolGrid2dStrided<Color, Safe, Safe, 160, 128, 2, 0xA000>; "Video mode 5 bitmaps (frames 0 and 1).");
257257

258258
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.");
259+
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.");
259260

260261
// Object Attribute Memory (OAM)
261262

0 commit comments

Comments
 (0)