diff --git a/fxconv/fxconv.py b/fxconv/fxconv.py index 40ad28d..55024e3 100644 --- a/fxconv/fxconv.py +++ b/fxconv/fxconv.py @@ -169,6 +169,8 @@ def ref(base, offset=None, padding=None): raise FxconvError(f"invalid type {type(base)} for ref()") +ptr = ref + def sym(name): return Sym("_" + name) @@ -228,6 +230,8 @@ class ObjectData: assembly += f".long {name} + {offset}\n" return assembly +Structure = ObjectData + # # Area specifications #