This makes it so that the word size of the memory operand is assumed as there is a form with r/m16 and OP_IMMS8 immediate operand. The flag should actually only be cleared for push imm8 albeit it doesn't cause any problems to clear it for imul with an imm8 operand either.
MSDebug does not accept this instruction.
This is caused by OP_IMMS8 clearing the VAR_SIZ_NEED flag unconditionally: https://github.com/Baron-von-Riedesel/DOS-debug/blob/ef6ef1047749e6e66fd109cb6e8e7cf8da9e0b76/src/LINEASM.INC#L2017-L2020
This makes it so that the word size of the memory operand is assumed as there is a form with r/m16 and
OP_IMMS8
immediate operand. The flag should actually only be cleared forpush imm8
albeit it doesn't cause any problems to clear it forimul
with an imm8 operand either.lDebug introduced the OP_IMMS8_EXTEND for this purpose, it simply doesn't clear this flag: https://hg.pushbx.org/ecm/ldebug/rev/c40bd4d0c8e2 It was introduced in 2021 specifically to fix this bug: https://hg.pushbx.org/ecm/ldebug/rev/e720cb74a547