// SPDX-License-Identifier: MIT // Mode 6 (prohibited, GBATEK §LCD I/O Display Control) with all BGs and OBJs enabled. #include "scene.h" int main(void) { DISPCNT = 0x0080; palette_fill(0, 256, 15); palette_fill(256, 256, 16); for (int t = 0; t < 32; t++) tile4(t * 32, t); map_text(16, 1, 32, 2); BGCNT(0) = 16 << 8; BGCNT(2) = 16 << 8; for (int t = 0; t < 64; t++) tile4(0x14000 + t * 32, t); obj_clear(); obj_set(0, 40, 40 | 3 << 14, 512); PAL16[0] = rgb(25, 25, 0); DISPCNT = 0x0006 | 0x1F00 | 0x0040; forever(); }