Skip to content

B271: fast BIOS calls (Elvira, Tokimeki Bishoujo)

Choose a tag to compare

@Elrinth Elrinth released this 02 Nov 07:51
· 11 commits to main since this release

BIOS calls are much faster: the CPU now caches BIOS code.

  • The problem: Elvira's bottom panel flickered light blue, and Tokimeki Bishoujo seemed to stop after its ANSWER logo.
  • Why: BIOS code ran without the CPU's instruction cache, at about 0.7 µs per instruction. Elvira reads the clock through the BIOS about 38 times per frame, each time with interrupts off for about 400 µs, so timer ticks were lost and the panel's palette switch landed late. Tokimeki's drawing calls took about three minutes to reach the title.
  • The fix: the instruction cache now covers the BIOS area. Tokimeki shows its title after 30–45 seconds, and Elvira's panel switch lands on the right line in every frame.

Same placement as B270. The release bitstream is B270's FPGA placement with one logic cell changed. Every other cell works exactly as in B270 (checked across the whole netlist), and timing is unchanged.

Passes QUALIFY, boots Windows 95 5/5, opens a floppy disk under Windows 95, loads 10 times in a row, and shows Night Slave's mission start and Star Cruiser II's logo cleanly.

Use with Open BIOS 2026-11-01; the SD bundle below includes it.