// SPDX-License-Identifier: MIT // Text BG character data beyond 64 KB: an 8 bpp BG with character base 3 (48 KB) using // tiles 0-511 (tiles 256 on lie beyond BG VRAM; GBATEK §GBA Unpredictable Things), alone. #include "scene.h" int main(void) { DISPCNT = 0x0080; palette_fill(0, 256, 14); for (int t = 0; t < 256; t++) tile8(0xC000 + t * 64, t); volatile u16 *m = VRAM16 + 4 * 0x400; for (int i = 0; i < 0x400; i++) m[i] = (i * 3) % 512; BGCNT(0) = 0x80 | 3 << 2 | 4 << 8; DISPCNT = 0x0100; forever(); }