mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-14 05:19:36 +00:00
Fix ichaindis.py always outputting an unsigned value (#435)
This commit is contained in:
parent
686b44d8f8
commit
2cea0d8b82
1 changed files with 2 additions and 0 deletions
|
@ -92,6 +92,8 @@ def main():
|
||||||
t = (entry >> 27) & 0xF
|
t = (entry >> 27) & 0xF
|
||||||
offset = ((entry) >> 16) & 0x7FF
|
offset = ((entry) >> 16) & 0x7FF
|
||||||
value = (entry) & 0xFFFF
|
value = (entry) & 0xFFFF
|
||||||
|
if value >= 0x8000 and not ICHAIN_MACROS[t].startswith('ICHAIN_U'):
|
||||||
|
value -= 0x10000
|
||||||
|
|
||||||
var_name = '{0:X}'.format(offset)
|
var_name = '{0:X}'.format(offset)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue