gameboy-rust/docs/research
0xrsydn 4e4dde742d fix(memory): return the Game Pak address pattern beyond the ROM chip
CPU and DMA reads past the supplied image returned Unmapped and stopped the
machine; a second game's boot code reads 0x09fe20f8 past a 16 MiB image. The
Game Pak shares data lines with the low address lines, so where no chip drives
the bus a read returns the halfword address, (A >> 1) & 0xffff, per lane
(GBATEK; mGBA uses the same pattern).

The chip is the image size rounded up to a power of two. Bytes between a
trimmed image's end and that boundary are unknown and stay diagnostic, as do
host reads and instruction fetches. Two truncation fixtures move into that gap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HhfHfHEuzv2AUTd6erW1gU
2026-10-14 14:28:41 +07:00
..
arm-instruction-buffer.md feat(cpu): retain fetch access kinds across instruction execution 2026-10-06 16:58:17 +07:00
bios-readback.md feat(memory): retain aligned Thumb BIOS prefetch words 2026-10-06 01:02:31 +07:00
boot-video.md fix(bios): initialize affine scales before cartridge boot 2026-10-06 22:35:27 +07:00
dma-data-latches.md feat(memory): retain IWRAM lane effects across DMA 2026-10-06 02:39:17 +07:00
dma-resume-timing.md feat(timing): implement nominal Game Pak opcode prefetch 2026-10-06 20:45:16 +07:00
emerald-empty-lz.md fix(bios): return cleanly for empty LZ77 streams 2026-10-07 09:06:00 +07:00
emerald-reset.md feat(desktop): add safe explicit Flash save-file persistence 2026-10-07 08:36:12 +07:00
emerald-visible-progress.md fix(memory): return the Game Pak address pattern beyond the ROM chip 2026-10-14 14:28:41 +07:00
emerald-wave.md feat(desktop): add opt-in Darwin audio output 2026-10-07 07:35:19 +07:00
fetch-access-sequencing.md feat(timing): implement nominal Game Pak opcode prefetch 2026-10-06 20:45:16 +07:00
fetch-address-timing.md feat(timing): implement nominal Game Pak opcode prefetch 2026-10-06 20:45:16 +07:00
fetch-region-boundaries.md feat(cpu): retain fetch access kinds across instruction execution 2026-10-06 16:58:17 +07:00
gamepak-prefetch.md fix(timers): apply machine accesses at bus completion 2026-10-06 21:52:09 +07:00
iwram-bus-history.md feat(cpu): account for source fetches in branch and IRQ refills 2026-10-06 16:37:30 +07:00
jev-smoke.md feat(tooling): add bounded Jev game-debugging workflow 2026-10-07 01:19:19 +07:00
ordered-timer-access.md fix(timers): retain shared free-running prescaler phase 2026-10-06 22:07:49 +07:00
prefetch-cancellation.md fix(timers): apply machine accesses at bus completion 2026-10-06 21:52:09 +07:00
refill-fetch-timing.md feat(timing): implement nominal Game Pak opcode prefetch 2026-10-06 20:45:16 +07:00
shared-fetch-samples.md feat(cpu): retain fetch access kinds across instruction execution 2026-10-06 16:58:17 +07:00
thumb-bios-prefetch.md feat(cpu): retain IWRAM bus history across execution states 2026-10-06 14:31:14 +07:00
thumb-instruction-buffer.md feat(cpu): retain fetch access kinds across instruction execution 2026-10-06 16:58:17 +07:00
timer-prescaler.md fix(timers): retain shared free-running prescaler phase 2026-10-06 22:07:49 +07:00