Merge tag 'nasm-2.15'
[nasm.git] / test / xdefine.asm
blob180c03052a66c6ddd88ffa86cbaa4fd52c47a08a
1 %idefine d dword
2 %define _1digits_nocheck(d) (((d)% 10)+'0')
3 %xdefine _1digits(d) (!!(d/10)*(1<<32)+ _1digits_nocheck(d))
5 db _1digits(8) ; Should be 0x38
7 %define n 0x21
8 %xdefine ctr n
9 %define n 0x22
11 db ctr, n ; Should be 0x21, 0x22
13 %define MNSUFFIX
14 %define MNCURRENT TEST%[MNSUFFIX]
15 %xdefine var MNCURRENT