mirror of
https://github.com/MiSTer-devel/PCjr_MiSTer.git
synced 2026-04-19 03:04:48 +00:00
The PCjr BIOS POST test writes directly to LSR and MSR registers to verify interrupt generation - a non-standard 8250 behavior that real hardware apparently supported. This change adds: - Writable LSR register with forced bits (DR, OE, PE, FE, BI, THRE) - Writable MSR register with forced delta bits (DCTS, DDSR, TERI, DDCD) - Standard 8250 clearing behavior: - DR cleared on RBR read - Error bits (OE, PE, FE, BI) cleared on LSR read - THRE cleared on THR write - MSR delta bits cleared on MSR read The forced bits are OR'd with real UART status, allowing the BIOS to inject interrupt conditions for testing. This resolves the POST "D" error (COM1 failure) on the PCjr core.