Skip to content

Commit

Permalink
[Python][Machine] Add 'int_disabled' and 'halted' properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
kosarev committed Jul 18, 2024
1 parent 27af8c1 commit 9577ae8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions z80/_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 9577ae8

Please sign in to comment.