# Quirks, contradictions, open items Everything here is either undocumented by Nintendo or disputed between sources. Each item names its source and the test that judges it. Test results quoted are this repository's own runs of 2026-10-21 ([validation.md](validation.md)): "NBA" = NanoBoyAdvance 1.8.3, "mGBA" = mGBA at `fd9dc5c` (2026-10-18), both with the retail BIOS unless stated. ## Quirks the board must have | # | Quirk | Source | Judge | | --- | --- | --- | --- | | 1 | BIOS read protection: data reads of the BIOS from outside it return the BIOS's last fetched opcode | GBATEK "GBA Unpredictable Things" | jsmolka `bios.gba`; Hades-Tests `bios-openbus` (NBA and mGBA 10/12, MAME 0/12); mGBA suite memory | | 2 | Open bus = the CPU's prefetched opcode(s), shaped by region and Thumb alignment; after a DMA, the DMA's latch | GBATEK; alyosha-tas `Bus/ReadMe.txt` | alyosha-tas `Bus/*` (6 ROMs: NBA fails 3, mGBA 5); `hw-test/dma/latch` (both pass) | | 3 | Unused or write-only I/O: open bus for wholly unused words, 0 for the unused half of a readable word | GBATEK | mGBA suite "I/O read" (both 130/130) | | 4 | 8-bit writes: palette and BG VRAM write the byte to both halves; OBJ VRAM and OAM ignore them | GBATEK | alyosha-tas `memory/PAL_8_bit_writes`, `VRAM_8_bit_writes` (both pass) | | 5 | VRAM `6018000`–`601FFFF` mirrors `6010000`; in bitmap modes accesses to `6018000`–`601BFFF` are dropped | `hw-test/ppu/vram-mirror` README (passes on GBA and GBA SP, **fails on DS and 3DS**) | `hw-test/ppu/vram-mirror` (both pass) | | 6 | SRAM region reads replicate the byte; writes store the addressed byte of the rotated value | GBATEK | jsmolka `save/sram.gba` | | 7 | Game Pak reads past the ROM's end return `(address/2) & FFFF` | GBATEK | mGBA suite "ROM out-of-bounds" (mGBA passes, **NBA fails 38**, C5) | | 8 | 128 KiB boundary forces N; DMA's next access after a boundary is N in every address mode | GBATEK; alyosha-tas `DMA/readme.txt` | `hw-test/bus/128kb-boundary` (both fail some DMA cases: NBA measures 70 where the test expects 68); alyosha-tas `DMA/DMA_ROM_Fixed` (both fail) | | 9 | Prefetch buffer: the rules in [timing.md](timing.md): it holds halfwords in either state, pauses when full or at a 128 KiB boundary (keeping its fetch rhythm), restarts N, flushes on a branch past what it holds, and a branch onto a fetch it has only now started, without ever having got ahead of the CPU, is the CPU's own N access | NBA's skeleton; alyosha-tas `prefetcher/readme.txt` | alyosha-tas `prefetcher/*` (18: the board 17, NBA fails 8, mGBA 16), `timing/prefetch_enable*`, `irq/IRQ_sub_2_slow`; the mGBA suite's timing group (2,020) | | 10 | DMA overlaps the CPU's internal cycles; the CPU's clock, and the IRQ synchronizer on it, stops only while the CPU waits for the bus: from the access that finds a DMA running, or from the end of the internal cycles a DMA overlapped, to the DMA's end. HALT counts as internal: the synchronizer runs through it, and a CPU that a wake-up reaches while a DMA has the bus goes on as the DMA's last write ends, with neither the wake-up's cycle nor the DMA's closing idle cycle to pay | alyosha-tas `Interactions/ReadMe.txt` ("the IRQ pipeline is stalled whenever the cpu is stalled ... not if it is doing internal cycles such as multiply. Halt counts as an internal cycle") | alyosha-tas `Interactions/*` (16: the board passes all, NBA fails 9, mGBA 14); seeded faults for the wait, the overlap, the wake-up and the closing cycle | | 11 | DMA start-up delay of 2 cycles; disabling before start-up | NBA `dma.cpp` | `hw-test/dma/start-delay` (NBA passes, mGBA fails); Hades-Tests `dma-start-delay` (NBA 4/8, mGBA 0/8) | | 12 | IRQ latency: IF→line in 3 cycles | NBA `irq.cpp` | `hw-test/irq/irq-delay` (NBA 3/3, mGBA 1/3) | | 13 | Timer register writes land a cycle late; a stopped timer still raises a pending overflow; ticking once before reload | NBA `timer.cpp`; alyosha-tas `timer/readme.txt`, `irq/readme.txt` | `hw-test/timer/*` (NBA passes all three; mGBA passes 1/2, 4/7, 0/2); Hades-Tests `timer-basic` (NBA 10/10, mGBA 2/10) | | 14 | DISPCNT layer enables take effect through a latch (two lines for BGs) | NBA `LatchDISPCNT` | `hw-test/ppu/dispcnt-latch` (photograph) | | 15 | Affine reference points latch at frame start and on writes | GBATEK; NBA | `hw-test/ppu/bgx`, `bgpd` (photographs) | | 16 | Green swap (`4000002`) | GBATEK "GREENSWAP" | `hw-test/ppu/greenswap` (photograph) | | 17 | Horizontal OBJ mosaic quirks | NBA | `hw-test/ppu/sprite-hmosaic` (photograph) | | 18 | CPU accesses to VRAM/palette/OAM wait while the PPU fetches: an access whose cycle is one the BG engine (BG VRAM), the merge (palette) or the OBJ engine (OAM, OBJ VRAM) used repeats the cycle (rung 4: NBA's fetch schedule, `ppu/dot.py`, `ppu/objects.py`) | NBA archived `ppu/mode*` READMEs | alyosha-tas `ppu/Sprite_Last_VRAM_Access` and `_Free` (OBJ VRAM; hardware-calibrated r12, both pass; NBA passes 1). `Sprite_Disable_*` are visual with no reference; `hw-test/ppu/ram-access-timing` draws its measurements and ships no reference. BG VRAM and palette waits: no hardware judge here (NBA lockstep only) | | 19 | Invalid tile numbers in text mode show the map entry as tile data (one layer) or something derived from the other layers | GBATEK "Using Invalid Tile Numbers" | no test found: open item | | 20 | Wave channel: two banks, 64-sample mode, forced 75 % volume | GBATEK | AGS aging cartridge sound tests | | 21 | Sound FIFO DMA request timing, FIFO reset, DMA disable while a request is pending | alyosha-tas `fifo_dma/*`, `unsafe/fifo_dma_disable_jam*` | those ROMs (NBA fails 6 of 9 `fifo_dma`) | | 22 | The LDM-to-user-registers glitch (the next register access sees the OR of user and banked) | alyosha-tas `LDM/ReadMe.txt` ("tested on GBP") | alyosha-tas `LDM/*` (both pass 8/8): a core item, recorded here because it needs the board to run | | 23 | The CPU looks at its IRQ input when it begins a bus cycle, wait states still to come, and the look at an instruction's last cycle decides whether the next instruction runs. The input follows `IE & IF & IME` by the one-cycle register update and one cycle of synchronizer (quirk 10 says when that stops). With no wait states this is NanoBoyAdvance's three cycles to the instruction boundary; in ROM with wait states an IRQ that rises during an opcode fetch is taken one instruction later. (Until 2026-11-12 the board sampled at the boundary and froze a two-cycle synchronizer in HALT instead; that passed `halt_pc` and failed the ROMs below) | alyosha-tas `Interactions/Internal_Cycle_DMA_IRQ*` (return addresses on hardware); GBAHawk's model, read for the idea: it latches the input at the first cycle of each access | alyosha-tas `Interactions/Internal_Cycle_DMA_IRQ`, `_ST`, `_ST_p3`, `_br` (fail with boundary sampling), `irq/halt_pc` 1-4, `irq/IRQ_sub_2_slow`'s return address (C22), `hw-test/irq/irq-delay`, the mGBA suite's 90 timer IRQ tests | | 24 | Open bus after a data cycle is that data, not the prefetch: until the CPU's next opcode fetch, an unused address reads what the CPU's last data access left on the bus. IWRAM has its own 32-bit bus that keeps each byte lane's last value, so a 16-bit read shows the read half and the other half from the access before; OAM shows its whole word; the Game Pak its 16 bits on both halves. (EWRAM, VRAM, palette and I/O data cycles: no test, the prefetch rule is kept) | alyosha-tas `Bus/ReadMe.txt`; GBAHawk's bus model, read for the idea | alyosha-tas `Bus/DMA_IWRAM_Bus`, `DMA_OAM_Bus`, `LDRSH_misaligned` (a DMA from 4001000h right after the CPU's load copies the bus); all six `Bus` ROMs, Hades `dma-latch` 4/4 and the mGBA suite's memory tests still pass | ## Contradictions and doubts **C1. When the HBlank flag rises.** GBATEK: the flag is 0 for 1,006 cycles; NBA sets it at 1,007; mGBA at 1,008 and raises the HBlank IRQ 6 cycles early ("TODO: Where does this fudge factor come from?", `src/gba/video.c`). **Both emulators fail the mGBA suite's six "H-blank bit start" cases.** *Settled for the flag, the IRQ and the DMA request (2026-10-22):* `hw-test/ppu/status-irq-dma` (hardware-captured; text, not a picture: its four menu tests print PASS/FAIL) passes on NBA 1.8.3 and on this board with the flag at line cycle 1,007, the HBlank IF bit at 1,008 and the HBlank DMA request at 1,007 (`scripts/run_test_roms.py hwtest`). The suite's six cases still fail here too: what they measure is open (read `misc-edge.c` before fitting anything to them). *Traced 2026-11-13.* The board's numbers (Got = expected, the second = the board): Hblank 4D0h/4D3h, Flip 1-6 87h/80h, 3ECh/3F5h, E5h/DBh, 3EBh/3F3h, E3h/E3h, 3F3h/3E9h. "Hblank" is the time between two timer reads, each after a HALT woken by the HBlank IRQ; the two wake paths are identical on the board, access for access, until they return to the test, where the second runs three more Thumb instructions in IWRAM before its read: the board's 1,235 is exactly that code. Hardware's 1,232 means its second wake-up lands three cycles earlier against the line than its first, and nothing on the board tells the two apart. The Flip cases are a DISPSTAT polling loop (8 cycles a pass) measuring how long the flag stays set and clear; clearing the flag 2-6 cycles into the next line moves only one of them and not Hblank, so it was not kept. **C2. HBlank IRQs during VBlank.** GBATEK: "no H-Blank interrupts are generated within V-Blank period". NBA and mGBA both raise them on lines 160–227. *Settled for line 160 (2026-10-22):* `status-irq-dma`'s "IRQ (IF)" test measures the HBlank IF bit rising on line 160, a VBlank line, at cycle 1,153 of its timer (hardware); the board passes it raising HBlank IRQs in VBlank as NBA does. Lines 161–227 are not measured; the board treats them like 160. **C3. The BIOS changes test results, not just boot.** Measured on the same emulator with three BIOS choices ([validation.md](validation.md)): | mGBA suite group | NBA, retail BIOS | NBA, Cult-of-GBA BIOS | mGBA retail | mGBA Cult | mGBA HLE (no BIOS) | | --- | --- | --- | --- | --- | --- | | Memory | 1514/1552 | 1468 | 1552 | 1506 | 1552 | | Timing | **2020/2020** | 1900 | 1768 | 1648 | 1768 | | Timer count-up | **936/936** | 847 | 744 | 692 | 639 | | BIOS math | 615/615 | 603 | 615 | 603 | 615 | and alyosha-tas's ROMs move in both directions on mGBA (49 pass with the retail BIOS, 59 with Cult-of-GBA: e.g. `Serial/serial_time*` pass only with the free BIOS). Reasons that are known: the free BIOS's SWIs take different cycle counts, return different last-fetched opcodes, and hand over at a different time, so the timer prescaler and the PPU are at a different phase when the test starts (alyosha-tas `timer/readme.txt`: the divider's state after power-on is observable). **Consequence: every judge run uses the retail BIOS; results with the free BIOS are only comparable with themselves.** **C4. Which BIOS were alyosha-tas's tests calibrated on?** The READMEs say "tested on GBP" (the Game Boy Player, GBA silicon inside a GameCube add-on). The Game Boy Player boots with its own BIOS variant (in the local set as "(GameCube)", SHA-1 `3d4b5d09…`), which does **not** boot standalone on NBA (every ROM reads r12 = `0x94`: it waits for the GameCube). If the boot-timing -sensitive tests encode the GBP's hand-over phase, a retail-BIOS run cannot match them all. Open: find which of alyosha-tas's tests depend on boot phase (the ones that flip between BIOSes above) and treat them as GBP-only until someone runs them on an AGB. **C5. ROM out-of-bounds reads.** GBATEK and mGBA: the address pattern; NBA 1.8.3 fails the suite's 38 "ROM out-of-bounds load" cases. Follow GBATEK and the suite (mGBA passes them). **C6. STMFD with the base in the list, not first (jsmolka `arm.gba` test 522).** NBA 1.8.3 passes; mGBA at `fd9dc5c` fails it, and MAME 0.285 fails earlier (test 225). A core item (arm7tdmi-python's corpus decides): recorded here because the board's first ROM run will show it. **C7. Flash chip IDs.** NBA reports SST `D4BF` (64K) and Macronix `09C2` (128K); mGBA reports Panasonic `1B32` and Sanyo `1362`. Real cartridges carry all of these; games accept the IDs their library knows. Keep a table, default to mGBA's (Pokémon's library accepts Sanyo/Macronix 128K), revisit per failing game. **C6b. Core items still open on the core side** (arm7tdmi-python `17fd0c8`): Thumb `DExx`/`E8xx` (mGBA and ares trap, NBA and the corpus branch; awaiting a hardware test ROM) and CP14 MRC/MCR, which do not trap on hardware (alyosha-tas `arm/Coprocessor_14`, four encodings tested; NBA passes it, mGBA fails at test 107). The board only runs them. **C8. Multiply-long flags.** NBA passes the suite's 72 multiply-long cases; mGBA 52. A core item (arm7tdmi-python rung 4, zayd's model). **C9. SIO register reads.** mGBA passes 61 of 90 "SIO register R/W" cases, NBA 18; both fail all 8 "SIO timing". Neither emulates a disconnected link port the way the suite expects; the suite's expectations are the judge. NBA 1.8.3 has no read cases at all for SIODATA32/SIOMULTI0-3/SIOMLT_SEND or the JOY bus registers (`bus/io.cpp`), so they read as open bus there; the board keeps them as GBATEK's R/W registers. JOYCNT bits 0-2 are event flags that a written 1 acknowledges, as in IF (GBATEK "JOYCNT"): the BIOS writes 7 and then reads JOYCNT to see which JOY bus events are pending, so a board that stores the 7 tells it all three happened. Fixed 2026-10-23; the board's "SIO register R/W" score went from 25 to 31 of 90 (seeded fault). **C10. MAME 0.285's GBA driver is far behind.** Fails jsmolka `arm` (225), `thumb` (221), `memory` (50), `bios` (1), `sram` (1), both flash tests, all of Hades-Tests `bios-openbus`, `hw-test/timer/reload`, AGBEEG; does not boot the free BIOS. Detector for gross faults only ([mame-oracle.md](mame-oracle.md)). **C11. AGBEEG vs the AGS aging cartridge.** AGBEEG (a free re-implementation of the AGS tests) passes on NBA and fails all three groups on mGBA. The AGS cartridges themselves (Nintendo's factory test, local dumps v7.0, v7.1, v9.0, v10.0) need a fresh EEPROM and a menu procedure (Hades' `accuracy/suite.py` has one); not yet run to a verdict here. **C12. Hades-Tests `dma-start-delay` test 2 (open, 2026-10-23).** An immediate DMA0 is enabled and the next instruction writes DMA0CNT = 0. Hardware (Hades' expectations) and this board agree on the DMA's own timing (it still runs: the timer value it copies, 16h in IWRAM, equals test 1's) and on the timer read just after the disable (20h). They part on the read after one `while (DMA0CNT & enable)` pass: hardware is later by 2 cycles in IWRAM and 12 in ROM (with or without prefetch) and EWRAM, which is two sequential ARM opcode fetches in each region, and the prefetch buffer does not hide them. One loop pass more would cost 11+ cycles in IWRAM, so it is not an extra iteration. NanoBoyAdvance and mGBA fail it the same way. No rule found that explains two un-prefetched fetches (GBATEK only notes "DMA lockup when stopping while starting ???"); nothing is fitted. Next step: a hardware test that separates "the CPU re-fetches after a control write to a just-finished DMA" from "the DMA0CNT read stalls the CPU". **C13. Which hw-test PPU references are hardware (2026-10-23).** Only `bgpd` and `greenswap` ship photographs of a GBA screen (4000x3000). `bgx` (1083x724) and `dispcnt-latch` (602x402) are clean screen captures whose source is not stated (the shallow clone has no history), and `sprite-hmosaic`'s `expected.png` is a **NanoBoyAdvance 1.8.2 window screenshot** (its title bar says so). So for `sprite-hmosaic` the reference is emulator-derived, a detector, and `bgx` and `dispcnt-latch` are references of unknown tier; the README claims of GBA/GBA SP results stand only for the two photographs. **C14. Colour-effect arithmetic.** GBATEK gives `I = MIN(31, I1*EVA + I2*EVB)`, `I + (31-I)*EVY`, `I - I*EVY` with no rounding. NanoBoyAdvance blends with 6-bit green (the colour's bit 15 as the low bit) and rounds (+8, or +7 for darken). The board follows NanoBoyAdvance (emulator-derived); no hardware evidence here separates them (one step of 31; a photograph cannot). **C15. The OBJ mosaic's vertical counter with "H-Blank interval free".** NanoBoyAdvance advances it at engine cycle 1192, which its engine never reaches when DISPCNT bit 5 cuts the window at 964, so its OBJ vertical mosaic stops in that mode. The board advances the counter every line in both modes; no hardware evidence either way. **C16. Register writes during a line (rung 4) — settled 2026-10-23.** The line-exact renderer drew each line from the registers at cycle 46, so two judges that change registers during the line differed: `hw-test/ppu/greenswap` (an HBlank DMA streams 309 writes to GREENSWAP across the line; the photograph shows the swap on about the left 88 dots) and alyosha-tas `ppu/stripes_x_offset` (BG0HOFS written early in lines 45 and 90). The dot engine reads each register when it uses it; both frames now equal NanoBoyAdvance's, `greenswap` matching the photograph. **C17. Where the OBJ engine stops with "H-Blank interval free" (2026-10-23).** NanoBoyAdvance runs the engine 964 cycles from cycle 40 (to line cycle 1004) when DISPCNT bit 5 is set, with a note in `sprite.cpp`: "in unlocked H-blank mode VRAM fetch appears to stop at cycle 960?". alyosha-tas `ppu/Sprite_Last_VRAM_Access_Free` (hardware-calibrated) times a CPU read of OBJ VRAM against the engine's last fetches: hardware 120 (0x78) timer ticks, NBA 121. With the window at 960 cycles the board gives 120 (and still passes `Sprite_Last_VRAM_Access`, the normal-mode test); at 962 or 964 it gives 121. The board stops the whole engine at 960, OAM fetches and drawing included; whether the attribute fetcher also stops there, and what that does to the last dots drawn in that mode, has no test here. GBATEK's budget for the mode, 954 cycles, counts OBJ rendering cycles, not the window. **C18. OAM waits and alyosha-tas `Interactions/Halt_DMA_IRQ_Read_OAM` (2026-10-23).** The ROM halts with an HBlank DMA streaming to OAM each line and the CPU storing to OAM in a loop around it; its verdict is TIM0 read when the loop sees line 131 of the next frame, right after a DMA that runs into the OBJ engine's first OAM reads at cycle 40. Hardware (calibrated on a Game Boy Player): 221 (0xDD). The board with NBA's OAM schedule (an attribute read per fetch step, quirk 18): 223. With no OAM waits at all: 221; with OAM waits only for the CPU, 219, only for the DMA, 223, only before the halt, 222. GBATEK states the wait exists ("a waitstate ... in case that the display controller was accessing memory simultaneously"), so the board keeps NBA's schedule: the ROM shows that schedule, or the waits' phase, is off by a cycle or two here, not that OAM never waits. The ROM is on the GBP-calibrated list (C4, decision 6: flagged, not fitted), and its verdict moves with the BIOS on this board too (the free BIOS gives 92, waits or none). Before rung 4 the board passed it with no OAM waits. NBA 1.8.3 fails it on the HALT wake (quirk 23). *Resolved 2026-11-12: it was not the OAM waits.* The IRQ that ends the HALT arrives while the HBlank DMA has the bus, and the board charged the wake-up's cycle after the DMA and held the synchronizer for it; with the wake-up's cycle spent during the DMA (quirk 10) and the CPU looking at its IRQ input at the start of an access (quirk 23) the ROM reads 221 with NBA's OAM schedule unchanged. **C19. What `skip_bios` leaves (settled 2026-10-25).** Found by the smoke set: Doom and Pinball Tycoon drew one colour, because the skip path left BG2/BG3 PA and PD at 0. Judge: the retail BIOS itself, run on this board to its first opcode fetch from 8000000 (`testrom.bios_handoff`, slow test `test_skip_bios_leaves_what_the_bios_leaves`). It leaves DISPCNT 0080h (forced blank), BG2/BG3 PA = PD = 0100h, SOUNDCNT_H 880Eh (reads 000Eh), SOUNDBIAS 0200h, RCNT 8000h, System-mode LR 8000000, RAM as at power-on. mGBA's `GBAIOInit` sets the same registers; NanoBoyAdvance's `SkipBootScreen` sets only the stacks and PC (its PPU reset sets PA = PD = 0100h). `skip_bios` now writes them (`board.SKIP_BIOS_IO`). Not copied: the PPU's position (the BIOS hands over at VCOUNT 126; mGBA copies that, NBA does not, and the smoke set's NBA comparison starts both at line 0) and timer 0's stopped counter (FF8Ah, the value the boot sound leaves). Development only, as before: judges boot the BIOS. **C20. A misaligned LDRH from the protected BIOS (2026-10-25).** Hades-Tests `bios-openbus` cases 5 and 11 read `*(vu16 *)0x1` and `0x3` from IWRAM code after the BIOS's last fetch was E3A02004h. The compiled code is a bare `ldrh r3, [r3]` followed by a store (traced on this board), so the test records the register as the CPU leaves it. Hades expects 00000020h and 000000E3h: the halfword shifted down, no rotation. The mGBA suite's "BIOS load" group expects 04000020h for the same read: the ARM7TDMI's usual LDRH rotation (ROR 8), which jsmolka's misaligned-load tests and the core's corpus also show for every other region. The board gives 04000020h and A00000E3h (Hades 10/12, as NBA and mGBA). Hades' tests state no hardware source; the mGBA suite's groups are hardware-checked. Kept as the mGBA suite says; a run of `bios-openbus.gba` on a GBA would settle it. **C21. What a DMA reads where nothing answers (2026-10-25).** alyosha-tas `Bus/ReadMe.txt` (hardware): "32 bit DMA from addresses it cannot access do not update the DMA bus, but do copy it to the cpu bus. 16 bit DMA from these addresses copy the read half of the DMA bus to both halves of the cpu bus." `DMA_IWRAM_Bus` shows it: a 32-bit DMA from 4001000h must write the previous DMA's word (51AEFF24h, from ROM 8000004h); the board writes the CPU's prefetched opcode (1C001C00h), as NBA and mGBA do. Treating every unanswered address (unused memory and unused I/O, as the BIOS already is) as a latch read passes `DMA_IWRAM_Bus` but fails `DMA_CPU_Bus_Interaction` and `Unused_location_update_bus` and takes Hades `dma-latch` from 4/4 to 3/4: `DMA_CPU_Bus_Interaction` needs a 16-bit DMA from 4010000h to read the CPU's prefetched opcode. Limiting the rule to unused I/O below 4010000h passes the first two and still loses the other two. No single rule tried fits all six `Bus` ROMs and `dma-latch`, so the board keeps its rule (the BIOS alone reads the latch) and fails `DMA_IWRAM_Bus`, `DMA_OAM_Bus` and `LDRSH_misaligned`, as NBA and mGBA do. *Resolved 2026-11-12: the DMA was not the odd one, the bus was.* Traced, the DMA in those three ROMs starts right after the CPU's load (`ldrh` from IWRAM or OAM, `ldrsh` from the ROM), before the next opcode fetch, and what it reads at 4001000h is the data that load left on the bus: 51AEh in the upper half is IWRAM's own bus still holding the earlier 32-bit write, not the DMA's latch. Quirk 24; the DMA's rule is unchanged and all six `Bus` ROMs and `dma-latch` pass. **C22. alyosha-tas `irq/IRQ_sub_2_slow` hangs on a two-cycle race (2026-10-25).** Its first loop polls VCOUNT for 160 with the VBlank IRQ enabled, and the IRQ handler clobbers the loop's pointer (r7). On hardware the poll sees 160 before the IRQ is taken; on the board (and NBA) the IRQ is taken first and the loop never exits. Traced: line 160 starts at cycle 76,041,730; the last poll read VCOUNT at 76,041,720 (159), and the IRQ is taken at the boundary before the next poll's read at 76,041,737. A poll lands in the window only if the loop's phase is 4 to 7 cycles earlier against the display, and that phase is set by everything since reset (the retail BIOS's boot included; nothing in the test syncs to the display first). Like the GBP-calibrated ROMs (C4), it is not fitted. *2026-11-12:* with quirk 23 the race goes hardware's way without fitting anything: the poll sees 160, the IRQ's return address is hardware's (D8h) and so is the timer the handler reads (B4h). The ROM still fails on its last number, the timer after the handler returns through eight NOPs in ROM with the prefetch buffer on: EAh for hardware's E1h, nine cycles. That is the prefetch buffer (the open prefetcher ROMs), not the interrupt. *Passes since the prefetch buffer's rules of the same day (quirk 9).* **C23. KEYCNT: what raises the keypad IRQ (2026-11-04).** GBATEK: "In logical AND mode, an interrupt is requested when ALL of the selected buttons are pressed." NanoBoyAdvance (which the board followed) asks for exactly the selected buttons, so holding A+B with only A selected raises nothing. mGBA's `keyirq` (steps 2 and 12) expects the IRQ there, as GBATEK says; the board now takes GBATEK's rule. Still open: step 4 expects that a KEYCNT write dropping a key from the selection (A+B to B, both held) does **not** raise it again, and step 3 that adding a key (A to A+B, both held) does. mGBA gets both by treating newly selected keys as newly pressed (`GBATestKeypadIRQ` with `keysLast`); the board raises on every write whose condition holds (13/14). Only mGBA's author's test says so, with no recorded hardware run, so the board's write rule is unchanged. **C24. Nintendo's Backup LIB sample fails its EEPROM test on the board (2026-11-04).** On entering a test it probes its development flash chip (DACS) by writing 90h then FFh to 0DFFFFFEh from the CPU and reading back. On a 16 MiB ROM that address is in the EEPROM's window, so the board's EEPROM takes three stray bits (1, 0, 1: a write command and the start of an address) and the library's first 73-bit DMA lands mid-command; block 0 is never written and the verify fails ("VERIFY ERROR. 8000"). Resetting the EEPROM's command at each DMA makes all three patterns pass, so the stray bits are the whole cause. mGBA resets its EEPROM command on a single CPU write in write mode (`GBASavedataWriteEEPROM`, `writeSize == 1`); NanoBoyAdvance's model, like the board's, does not. Whether a real EEPROM drops a half-sent command, and on what (a read, a pause, a CPU access), is not documented, and the ROM was presumably run on development hardware with a DACS chip. Not fixed. *Fixed 2026-11-13.* GBATEK's "GBA Cart Backup EEPROM" answers it: the chip's pins are ROMCS, RD, WR, AD0 and A23, and "transferring a bitstream ... must be done via DMA3 (manual transfers via LDRH/STRH won't work; probably because they don't keep /CS=LOW and A23=HIGH throughout the transfer)". A command lives within one /CS-low period: the board's EEPROM now drops a command still being shifted in at each non-sequential access (a new transfer), and keeps a finished one (a read waiting to be clocked out by the next DMA, a write programming). The library's three stray CPU writes are three transfers, so nothing of them reaches its first DMA. Backup LIB 12/12; the aging cartridges' EEPROM settings and every EEPROM game unchanged. **C25. The wave channel's two banks (2026-11-11).** GBATEK: the selected bank plays, the CPU reaches the other, wave RAM is a shift register ("there is no pointer"), and in 64-digit mode "output will start by replaying the currently selected bank". mGBA models the shift register but always starts 64-digit play at bank 0; NanoBoyAdvance keeps a pointer, rewinds it on a trigger and forces the bank bit to 0 on a 64-digit trigger (so SOUND3CNT_L reads back changed). The core (`gb-apu-python`, the AGB row) follows GBATEK on all three. No test ROM here measures any of it, and commercial music does not hear the difference (a driver writes the whole bank before it selects it). **C26. How loud the Game Boy channels are, and around what (2026-11-11).** Three models: NanoBoyAdvance sums each channel around zero (a pulse is +-8 x volume, the wave (digit - 8) x 4 x quarters) and scales by SOUNDCNT_H and NR50 with a shift; mGBA sums them from zero up (a pulse is 0 or volume) with the same scale, so the same music carries a DC level that moves with the envelopes; SameBoy's AGB model (an AGB running Game Boy software, measured by its author) has a per-channel bias equal to the envelope volume and an inverted wave channel. The board follows NanoBoyAdvance, the rung's referee: against it the levels agree to about 1 % (docs/validation.md, rung 5). Which DC behaviour the hardware has changes what clips at SOUNDBIAS's limits and the click when a channel starts; no test ROM here measures it. Also from NanoBoyAdvance and unmeasured: the prohibited PSG volume (3) is silent; turning the master enable off empties the FIFOs; the frame sequencer runs from power-on (not from the master enable) at 32,768-cycle steps. **C27. SOUNDBIAS's resolution (2026-11-11).** GBATEK: bits 14-15 trade depth for rate, 9 bits at 32,768 Hz down to 6 bits at 262,144 Hz. The board mixes at the selected rate and averages down to 32,768 Hz without dropping the low bits; mGBA and NanoBoyAdvance do not drop them either. The lost bits would be audible only as noise. **C28. FIFO DMA requests (2026-11-11).** alyosha-tas `fifo_dma` sweeps a timer overflow against the instruction stream and reads how long the refill DMA held the bus. Three rules come out of it, none of them in GBATEK: - **The request takes three cycles** to reach the DMA, one more than the other start conditions. With two (NanoBoyAdvance) `fifo_2`, `fifo_3` and `fifo_4` fail; GBAHawk, the tests' author's emulator, counts three (`FIFO_DMA_A_cd = 3`). - **A request that arrives while the channel is still refilling is not dropped.** `fifo.gba` lets timer 0 overflow every 32 cycles into an empty FIFO, and a refill from ROM takes 32, so the second request lands during the first refill's last word. Hardware then reads timer 1 as 68h and 8Bh (test 2), 68h (test 3), 68h and A5h (test 4). Dropping the request gives 62h and 6Ch. What fits all five: the channel goes on to read a fifth word (6 cycles from ROM), writes it nowhere, and the next request moves three words, not four (25 cycles). The FIFO still gets four words and then three, so it asks again at the third overflow as the numbers need. The board does that. It is a fit to one ROM's five numbers: A5h came out without tuning once 68h and 8Bh did, but no second ROM tests it, and whether the DMA's IRQ belongs to the four words or the three is not tested (the board raises it after the four). - The built `fifo.gba` does not compare test 2's second read (its `bne` follows a load), and its table still says 98h; the author's next commit fixed the compare and wrote 8Bh with "gives unexpected results on hardware" (alyosha-tas/gba-tests `3b40bb3`, a day after the binary). 8Bh is taken as the hardware value; `tests/test_apu.py` checks all five, since the ROM cannot. - Only a request that finds the refill *moving its words* counts. One that finds it still waiting (behind the CPU, or behind a channel above it) adds nothing, as before the rule: no test ROM covers that case. The first version of the rule took both, and Pokémon Mystery Dungeon showed the cost: at its start it runs a 32,768-cycle DMA0 that holds both FIFO channels through a dozen overflows, and each then read a fifth word and skipped a word of its music on the next refill (found by lockstep with NanoBoyAdvance, 12 cycles apart in frame 9; 2026-11-12). - The first version's comment guessed "fixed source address in ROM uses all non-sequential accesses". That gives 68h too (four words at 8 cycles) but then 98h for test 2's second read, not 8Bh, and GBAHawk reads a fixed ROM source sequentially. - **A DMA's IRQ is raised a cycle after its last write.** `fifo_6` (DMA 1 with its IRQ, the handler reads timer 1) expects 7Bh; raising it with the write gives 7Ah. GBAHawk delays it the same way (`DMA_IRQ_Delay`). The eight failing `Interactions/*DMA_IRQ*` ROMs and `DMA_pause_timing_end_4` are not changed by it. ## Open items - A hardware result for C1 and C2. - The EEPROM 512 B / 8 KiB split across the licensed set (needs a running board: the size is only visible in the first DMA). - The OBJ engine's exact per-sprite cycle costs (GBATEK gives the budget, not the per-sprite schedule; NBA's `sprite.cpp` is a model, not a measurement). - Whether "HALT counts as an internal cycle" (alyosha-tas) holds for STOP. - The interlace/ghosting of the LCD (GBATEK "Interlace"): presentation only, outside the board. **C29. Two cycles at a DMA's end (2026-11-12, both closed the same day).** `DMA/DMA_pause_timing_end_4`: an HBlank DMA's two-cycle start delay ends exactly as an immediate DMA's closing idle cycle does. Hardware reads the timer 0Ah: the HBlank DMA runs straight on (its opening cycle follows the other's closing cycle). The board let the CPU have its waiting opcode fetch first, four cycles (0Eh): it looked for a runnable channel before the closing cycle, not after. It now looks again. In the sibling `end_3` the delay ends a cycle later, the CPU's fetch has begun, and the DMA waits for it on hardware and here (0Dh). `Interactions/Halt_DMA_IRQ` read 136 for hardware's 135 after quirks 10 and 23; the cycle was the DMA's closing idle cycle, which a CPU woken from HALT during the transfer does not wait for (quirk 10). The same rule keeps `Halt_DMA_IRQ_Read_OAM` at hardware's 221. **C30. `prefetcher_branch_thumb_arm_3`: a ROM bug, and test 2 (2026-11-13).** The ROM's test-1 failure path is assembled two bytes off: `adr r7, f001a + 1` lands on the `bx r5` after `mov r12, r0`, so a failed test 1 ends with r12 = 0 and reads as a pass. The board "passed" it that way until the buffer held halfwords: test 1 read 4Eh (hardware 4Ch). Test 1 now reads 4Ch and the ROM runs test 2, which reads 66h for hardware's 6Ah: a `BX` from ARM to Thumb while the ARM buffer has just begun the word after the branch. Four cycles, not found. Two guesses broke other judges and were dropped: that a branch waits for an ARM word in flight to finish (alyosha-tas 104, mGBA timing 2,000), and the same only for ARM to Thumb (104, 2,012). `unsafe/prefetcher_branch_thumb_arm_2` (test 2: 4Eh for 53h) is a different case, traced: a `BX` from Thumb to ARM meets a full buffer of Thumb halfwords (paused), the ARM fetches take them two at a time in one cycle each, and the last one finds a single halfword left while the buffer stays paused; hardware is 5 cycles later. Flushing on the change of state (+11) and restarting the paused buffer N for the missing half (+1) do not give 5. The ROM is in the author's `unsafe` folder; not fitted.