mli init - was reading unit as 16-bit quantity instead of 8-bit quantity.

This commit is contained in:
Kelvin Sherlock 2018-08-20 21:34:59 -04:00
parent 30491a39a0
commit 70578779e4

View File

@ -451,7 +451,7 @@ static int mli_atinit(unsigned dcb) {
if (!saved_mli_address) return paramRangeErr; if (!saved_mli_address) return paramRangeErr;
saved_unit = 0x80; 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; if (!saved_unit) return paramRangeErr;