From 9577ae87d042b1262c15b22a530170ee790e0389 Mon Sep 17 00:00:00 2001 From: Ivan Kosarev Date: Thu, 18 Jul 2024 18:14:45 +0100 Subject: [PATCH] [Python][Machine] Add 'int_disabled' and 'halted' properties. --- z80/_machine.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/z80/_machine.py b/z80/_machine.py index 766634f..3b92ee7 100644 --- a/z80/_machine.py +++ b/z80/_machine.py @@ -292,6 +292,14 @@ def alt_hl(self): def alt_hl(self, value): _set_u16(self.__alt_hl, value) + @property + def int_disabled(self): + return self.__int_disabled[0] + + @property + def halted(self): + return self.__halted[0] + @property def index_rp_kind(self): IREGPS = {0: HL, 1: IX, 2: IY}