mirror of
https://github.com/pret/pokediamond.git
synced 2026-09-30 12:26:48 -05:00
asm_processor: count bls, .word and .extern correctly
This commit is contained in:
@@ -584,8 +584,12 @@ class GlobalAsmBlock:
|
||||
elif line.startswith('.byte'):
|
||||
self.add_sized(len(line.split(',')), real_line)
|
||||
# Branches are 4 bytes long
|
||||
elif line.startswith('bl'):
|
||||
elif line.startswith('bl') and not line.startswith('bls'):
|
||||
self.add_sized(4, real_line)
|
||||
elif line.startswith('.word'):
|
||||
self.add_sized(4, real_line)
|
||||
elif line.startswith('.extern'):
|
||||
pass
|
||||
else:
|
||||
# Unfortunately, macros are hard to support for .rodata --
|
||||
# we don't know how how space they will expand to before
|
||||
|
||||
Reference in New Issue
Block a user