mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-13 22:32:03 +00:00
This seems to be right, per http://wiki.defence-force.org/doku.php?id=oric:hardware:floppy_disk_controller_wd1793
This commit is contained in:
parent
5ebc1c63ff
commit
7c2d9f3752
@ -48,7 +48,7 @@ void Microdisc::set_control_register(uint8_t control)
|
|||||||
|
|
||||||
// b7: EPROM select (0 = select)
|
// b7: EPROM select (0 = select)
|
||||||
// b1: ROM disable (0 = disable)
|
// b1: ROM disable (0 = disable)
|
||||||
int new_paging_flags = ((control & 0x02) ? 0 : BASICDisable) | ((control & 0x80) ? 0 : MicrodscDisable);
|
int new_paging_flags = ((control & 0x02) ? BASICDisable : 0) | ((control & 0x80) ? 0 : MicrodscDisable);
|
||||||
if(new_paging_flags != paging_flags_)
|
if(new_paging_flags != paging_flags_)
|
||||||
{
|
{
|
||||||
paging_flags_ = new_paging_flags;
|
paging_flags_ = new_paging_flags;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user