1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-22 14:33:51 +00:00

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

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;
};