From 407abeb4b6d936745bebaabc4091ca00aa28efd8 Mon Sep 17 00:00:00 2001 From: javi-s Date: Thu, 20 Oct 2022 00:18:02 +0200 Subject: [PATCH] Olivetti M24 DIP switch settings correction Fix to match RAM --- src/machine/m_xt_olivetti.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/machine/m_xt_olivetti.c b/src/machine/m_xt_olivetti.c index 1d53a588e..76e6cac4b 100644 --- a/src/machine/m_xt_olivetti.c +++ b/src/machine/m_xt_olivetti.c @@ -667,7 +667,7 @@ m24_read(uint16_t port, void *priv) ret |= 0x1; break; case 256: - ret |= 0x2 | 0x80; + ret |= 0x2; break; case 384: ret |= 0x1 | 0x2 | 0x80; @@ -676,10 +676,12 @@ m24_read(uint16_t port, void *priv) ret |= 0x8; break; case 640: - default: ret |= 0x1 | 0x8 | 0x80; break; + default: + break; } + break; /* * port 67: * DIPSW-1 on mainboard (off=present=1) @@ -721,6 +723,8 @@ m24_read(uint16_t port, void *priv) /* Switch 2 - Set fast startup */ ret |= 0x2; + + break; } return (ret);