From 70578779e40b151c59d8fd3f35f2293fc005db44 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Mon, 20 Aug 2018 21:34:59 -0400 Subject: [PATCH] mli init - was reading unit as 16-bit quantity instead of 8-bit quantity. --- src/host_mli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/host_mli.c b/src/host_mli.c index 4802467..2d2c0e2 100644 --- a/src/host_mli.c +++ b/src/host_mli.c @@ -451,7 +451,7 @@ static int mli_atinit(unsigned dcb) { if (!saved_mli_address) return paramRangeErr; saved_unit = 0x80; - if (pcount >= 4) saved_unit = get_memory16_c(dcb + 6, 0); + if (pcount >= 4) saved_unit = get_memory_c(dcb + 6, 0) & 0xf0; if (!saved_unit) return paramRangeErr;