lundump.py: Instruction.__readRK() should be a static method

This commit is contained in:
CPunch 2022-08-11 16:19:21 -05:00
parent ac0b7039d2
commit 2258888956
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ class Instruction:
self.C: int = None
# 'RK's are special in because can be a register or a konstant. a bitflag is read to determine which
def __readRK(self, rk: int) -> str:
@staticmethod
def __readRK(rk: int) -> str:
if (rk & (1 << 8)) > 0:
return "K[" + str((rk & ~(1 << 8))) + "]"
else: