mirror of
https://github.com/CPunch/LuaDecompy.git
synced 2024-11-22 14:50:05 +00:00
lundump.py: Instruction.__readRK() should be a static method
This commit is contained in:
parent
ac0b7039d2
commit
2258888956
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user