nasm/travis/test/br3005117.asm
Cyrill Gorcunov 6144feac6a test: nasm-t -- Add br3005117
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2018-11-11 21:43:46 +03:00

25 lines
415 B
NASM

%macro B_STRUC 1-*
%push foo
%define %$strucname %1
%%top_%$strucname:
%rep %0 - 1
%rotate 1
resb %{$strucname}%1 - ($ - %%top_%$strucname)
%1:
%endrep
resb %{$strucname}_size - ($ - %%top_%$strucname)
%pop
%endmacro
struc timeval
.tv_sec resd 1
.tv_usec resd 1
endstruc
mov [timeval_struct.tv_sec], eax
section .bss
timeval_struct B_STRUC timeval, .tv_sec, .tv_usec
timeval_struct_len equ $ - timeval_struct