Implement the base offset parameter to 'struc'

This commit is contained in:
Simon Brenner 2011-10-02 05:39:11 +02:00
parent 716c17112d
commit 25a46fa5b0

View file

@ -25,14 +25,14 @@
__SECT__
%endmacro
%imacro struc 1.nolist
%imacro struc 1-2.nolist 0
%push struc
%define %$strucname %1
[absolute 0]
[absolute %2]
%$strucname: ; allow definition of `.member' to work sanely
%endmacro
%imacro endstruc 0.nolist
%{$strucname}_size:
%{$strucname}_size EQU $ - %$strucname
%pop
__SECT__
%endmacro