use of the ORG macro (several user comments about the lack of this) and the
initial value of the __SECT__ macro (used by ENDSTRUC among other macros).
Fortunately, for all current objfmts, __SECT__ is currently defined as
[section .text], so one common definition can be used for now.
FIXME: remove this workaround when a better solution has been implemented.
svn path=/trunk/yasm/; revision=1087
%define __FILE__
%define __LINE__
-%define __SECT__ ; it ought to be defined, even if as nothing
+%define __SECT__ [section .text] ; it ought to be defined, even if as nothing
%imacro section 1+.nolist
%define __SECT__ [section %1]
[cpu %1]
%endmacro
+%imacro org 1+.nolist
+[org %1]
+%endmacro
EXTRA_DIST += modules/preprocs/nasm/tests/ifcritical-err.errwarn
EXTRA_DIST += modules/preprocs/nasm/tests/noinclude-err.asm
EXTRA_DIST += modules/preprocs/nasm/tests/noinclude-err.errwarn
+EXTRA_DIST += modules/preprocs/nasm/tests/orgsect.asm
+EXTRA_DIST += modules/preprocs/nasm/tests/orgsect.errwarn
+EXTRA_DIST += modules/preprocs/nasm/tests/orgsect.hex
--- /dev/null
+ORG 100h
+label:
+db 5
+STRUC Foo
+.bar resb 4
+ENDSTRUC
+dw label
--- /dev/null
+05
+00
+01