summaryrefslogtreecommitdiff
path: root/test/xdefine.asm
blob: 3b475864343dabea99c5c10b60be8aef0a8b4feb (plain)
1
2
3
4
5
6
7
8
9
10
11
%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