0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-07-24 10:25:42 -04:00
nasm/travis/test/xdefine.asm
Cyrill Gorcunov d9eed2bec7 travis: add xdefine test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 16:36:10 +03:00

16 lines
316 B
NASM

%idefine d dword
%define _1digits_nocheck(d) (((d)% 10)+'0')
%xdefine _1digits(d) (!!(d/10)*(1<<32)+ _1digits_nocheck(d))
db _1digits(8) ; Should be 0x38
%define n 0x21
%xdefine ctr n
%define n 0x22
db ctr, n ; Should be 0x21, 0x22
%define MNSUFFIX
%define MNCURRENT TEST%[MNSUFFIX]
%xdefine var MNCURRENT