Support for Win32 safeseh (BR 195417)
[nasm.git] / test / radix.asm
blobd5b6e0e722ab73d5e1835857d4076d8c77cd2248
1 ;; Integer constants...
3 dd 1010_0101 ; Decimal
4 dd 01010_0101 ; Decimal (*not* octal!)
5 dd 0d1010_0101 ; Decimal
6 dd 0t1010_0101 ; Decimal
7 dd 1010_0101d ; Decimal
8 dd 1010_0101t ; Decimal
10 dd 0b1010_0101 ; Binary
11 dd 0y1010_0101 ; Binary
12 dd 1010_0101b ; Binary
13 dd 1010_0101y ; Binary
15 dd 0o1010_0101 ; Octal
16 dd 0q1010_0101 ; Octal
17 dd 1010_0101o ; Octal
18 dd 1010_0101q ; Octal
20 dd 0h1010_0101 ; Hex
21 dd 0x1010_0101 ; Hex
22 dd 1010_0101h ; Hex
23 dd 1010_0101x ; Hex
24 dd $1010_0101 ; Hex
26 db 0h ; Zero!
27 db 0x ; Zero!
28 db 0b ; Zero!
29 db 0dh ; Hex
30 db 0bh ; Hex
31 db 0dx ; Hex
32 db 0bx ; Hex
33 db 0hd ; Hex
34 db 0hb ; Hex
35 db 0xd ; Hex
36 db 0xb ; Hex
38 ;; Floating-point constants
39 ;; All of these should output B4A21147
40 dd 3.7282705e+4 ; Decimal
41 dd 00003.7282705e+4 ; Decimal
42 dd 0d3.7282705e+4 ; Decimal
43 dd 0t3.7282705e+4 ; Decimal
45 dd 0x1.23456789p+15 ; Hex
46 dd 0h1.23456789p+15 ; Hex
48 dd 0o1.10642547422p+15 ; Octal
49 dd 0q1.10642547422p+15 ; Octal
51 dd 0b1.0010_0011_0100_0101_0110_0111_1000_1001p+15 ; Binary
52 dd 0y1.0010_0011_0100_0101_0110_0111_1000_1001p+15 ; Binary