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

This commit is contained in:
ElectronixTM
2025-03-29 21:36:20 +03:00
parent 9c4b80bf68
commit f543952637

View File

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