feat: добавил проверку на удлиненную инструкцию при обработке опокода
This commit is contained in:
@ -154,6 +154,8 @@ class VM:
|
|||||||
opdesc: OpcodeDescription,
|
opdesc: OpcodeDescription,
|
||||||
args: tuple[int, ...]
|
args: tuple[int, ...]
|
||||||
) -> None:
|
) -> None:
|
||||||
|
if not (OpF.QUICK in opdesc.flags or OpF.UNEXPANDED in opdesc.flags):
|
||||||
|
self._vm_flags |= VMFlags.EXPANDED_INSTR
|
||||||
if opdesc.layout == OpL.MATH:
|
if opdesc.layout == OpL.MATH:
|
||||||
assert len(args) == 4
|
assert len(args) == 4
|
||||||
_, r3, r1, r2_or_i8 = args
|
_, r3, r1, r2_or_i8 = args
|
||||||
|
|||||||
Reference in New Issue
Block a user