fix: поменял флаг "после перехода" на флаг размера последней инструкции

This commit is contained in:
ElectronixTM
2025-03-29 21:36:20 +03:00
parent 5c47baa26f
commit 24e8c90e34

View File

@ -4,10 +4,12 @@ from typing import ClassVar, Callable
from ctypes import c_uint32, c_int32
import struct
from optable import OPCODES, OpcodeDescription, OpL, OpA, OpF, OpD
from enum import IntFlag, auto
from enum import IntFlag, Enum, auto
class VMFlags(IntFlag):
AFTER_BRANCH = auto()
# if last instruction is big, then you should
# skip more memory on step
EXPANDED_INSTR = auto()
class Condition:
def __init__(self, cond: int):