1
0
mirror of https://github.com/simh/simh.git synced 2026-01-11 23:52:58 +00:00

DUP: Fix byte writes to odd addresses

Typo.
This commit is contained in:
Timothe Litt 2013-07-08 09:38:59 -04:00
parent cd86bc5448
commit 317efadcdc

View File

@ -503,7 +503,7 @@ if (dup >= dup_desc.lines) /* validate line number
orig_val = regs[(PA >> 1) & 03][dup];
if (PA & 1) /* unaligned byte access? */
data = ((data << 8) & (orig_val & 0xFF)) & 0xFFFF; /* Merge with original word */
data = ((data << 8) | (orig_val & 0xFF)) & 0xFFFF; /* Merge with original word */
else
if (access == WRITEB) /* byte access? */
data = (orig_val & 0xFF00) | (data & 0xFF); /* Merge with original high word */