captainys / TOWNSEMU

FM Towns Emulator "Tsugaru"
BSD 3-Clause "New" or "Revised" License
236 stars 17 forks source link

"NMI write protect" not emulated #125

Open jckarter opened 1 month ago

jckarter commented 1 month ago

This is probably not a priority at all since I doubt any real TOWNS software is affected, but I noticed it while experimenting with some bare-metal code and trying to figure out why it worked in Tsugaru but not real hardware. When 0x80 is written to IO address 0x20, the hardware write-protects RAM at linear addresses [0x8, 0xC) to prevent clobbering the real mode NMI vector (for reference, see Databook section I 3.6, figure I-3-35, page 88). It looks like Tsugaru allows writes to that location even when write protect is enabled.