z80: fixed bug in "add iy,sp"

This commit is contained in:
Steven Hugg 2022-07-13 13:23:18 -05:00
parent e69a5d433d
commit 3766576bae
1 changed files with 1 additions and 1 deletions

View File

@ -1125,7 +1125,7 @@ let do_ix_add = function(operand)
flags.H = (((ix & 0xfff) + (operand & 0xfff)) & 0x1000) ? 1 : 0;
update_xy_flags((result & 0xff00) >>> 8);
ix = result;
ix = result & 0xffff;
};