mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-06-13 03:10:35 -05:00
Improved disassembled output when setting register values.
This commit is contained in:
parent
8923c93a66
commit
212ff2be4e
|
|
@ -2483,7 +2483,13 @@ class ByteCodeDecompiler(VerboseOutput):
|
|||
# multiple statements.
|
||||
set_value = stack.pop()
|
||||
if action.preserve_stack:
|
||||
stack.append(set_value)
|
||||
# If we are only initializing one register, put the register back
|
||||
# on the stack instead of the value, to make decompiled output
|
||||
# better. This helps a lot when we initialize to a function call return.
|
||||
if len(action.registers) == 1:
|
||||
stack.append(action.registers[0])
|
||||
else:
|
||||
stack.append(set_value)
|
||||
|
||||
store_actions: List[StoreRegisterStatement] = []
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user