From 24e8c90e3498ab31d70757a9f29d777db4e4179f Mon Sep 17 00:00:00 2001 From: ElectronixTM Date: Sat, 29 Mar 2025 21:36:20 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=BF=D0=BE=D0=BC=D0=B5=D0=BD=D1=8F?= =?UTF-8?q?=D0=BB=20=D1=84=D0=BB=D0=B0=D0=B3=20"=D0=BF=D0=BE=D1=81=D0=BB?= =?UTF-8?q?=D0=B5=20=D0=BF=D0=B5=D1=80=D0=B5=D1=85=D0=BE=D0=B4=D0=B0"=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D1=84=D0=BB=D0=B0=D0=B3=20=D1=80=D0=B0=D0=B7?= =?UTF-8?q?=D0=BC=D0=B5=D1=80=D0=B0=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=D0=B4?= =?UTF-8?q?=D0=BD=D0=B5=D0=B9=20=D0=B8=D0=BD=D1=81=D1=82=D1=80=D1=83=D0=BA?= =?UTF-8?q?=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/vm.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vm.py b/src/vm.py index 0d30fb4..b46c9ed 100644 --- a/src/vm.py +++ b/src/vm.py @@ -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):