mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2024-12-29 13:03:37 +01:00
fxconv: add synonyms Structure=ObjectData and ptr=ref
This commit is contained in:
parent
0fc48f3c4d
commit
bc7cd928f4
1 changed files with 4 additions and 0 deletions
|
@ -169,6 +169,8 @@ def ref(base, offset=None, padding=None):
|
||||||
|
|
||||||
raise FxconvError(f"invalid type {type(base)} for ref()")
|
raise FxconvError(f"invalid type {type(base)} for ref()")
|
||||||
|
|
||||||
|
ptr = ref
|
||||||
|
|
||||||
def sym(name):
|
def sym(name):
|
||||||
return Sym("_" + name)
|
return Sym("_" + name)
|
||||||
|
|
||||||
|
@ -228,6 +230,8 @@ class ObjectData:
|
||||||
assembly += f".long {name} + {offset}\n"
|
assembly += f".long {name} + {offset}\n"
|
||||||
return assembly
|
return assembly
|
||||||
|
|
||||||
|
Structure = ObjectData
|
||||||
|
|
||||||
#
|
#
|
||||||
# Area specifications
|
# Area specifications
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue