mirror of
https://git.k-space.ee/arti/vt1200.git
synced 2026-10-30 12:03:54 +02:00
The level-0 I/O data path test writes one 0xE1 byte to DUART2-A THRA and demands exactly 10 bytes back; it checks only the count and never compares the content, and no documented keyboard/mouse/tablet message is 10 bytes. Add an opt-in stand-in that watches for that 0xE1 write and feeds 10 arbitrary (0x00) bytes on the channel's receive path via the SCN2681's public rx_fifo_push(), refilling the 4-deep FIFO on each RHRA read. This is explicitly NOT a keyboard model: it stands in for an unknown test fixture on the keyboard port. It replies only while the channel is polled (IMR=0x00), so it raises no interrupt; with the stub on the run clears level 0 and reaches level 1's HOST PORT - 15, but still no OS (SKIP_LEVEL1 remains the only route to X11). Default is unchanged: no env still fails level 0 honestly (progress.lua samples=198/3 PCs); stub-on is 53/75 PCs. See harness/mame/README.md.