]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Unmap Comspec $f0 ROM after autoconfig.
authorToni Wilen <twilen@winuae.net>
Sat, 6 Jan 2018 18:32:26 +0000 (20:32 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 6 Jan 2018 18:32:26 +0000 (20:32 +0200)
a2091.cpp

index a0ccf0da594156c8392b0589c72e41da11ff5a5e..e0eb62d75b7a8ae6067979f359a3ff6f79e0857b 100644 (file)
--- a/a2091.cpp
+++ b/a2091.cpp
@@ -2893,11 +2893,17 @@ static void REGPARAM2 comspec_bput(struct wd_state *wd, uaecptr addr, uae_u32 b)
                        map_banks_z2 (&wd->bank, b, 0x10000 >> 16);
                        wd->baseaddress = b << 16;
                        wd->configured = 1;
+                       if (!wd->rc->autoboot_disabled && wd->rc->subtype == 0) {
+                               map_banks(&dummy_bank, 0xf00000 >> 16, 1, 0);
+                       }
                        expamem_next (&wd->bank, NULL);
                        return;
                }
                if (addr == 0x4c && !wd->configured) {
                        wd->configured = 1;
+                       if (!wd->rc->autoboot_disabled && wd->rc->subtype == 0) {
+                               map_banks(&dummy_bank, 0xf00000 >> 16, 1, 0);
+                       }
                        expamem_shutup(&wd->bank);
                        return;
                }