NASM 0.98.03
[nasm/avx512.git] / test / test1.asm
blobce24ca153b7541aa546cb8a6a7b09ee67cee09b4
1 segment text
2 bits 16
4 imul edx,[addr],10
5 imul eax,20
6 imul edx,eax,130
8 push 0x40
9 push word 0x40
10 push word 4095
11 push byte 0x40
12 push dword 0x40
13 push dword 4095
15 add ax,1
16 add bx,1
17 cmp cx,0
18 sub dx,3
19 sbb si,-1
20 xor ax,0xffff
21 xor ax,-1
22 xor bx,0xffff
23 xor bx,-1
26 adc bx,add1
27 adc bx,-7
28 adc bx,-128
29 adc bx,-129
30 adc bx,addr
31 adc bx,byte -7
32 add1: adc bx,word -7
33 adc bx,add1
34 resb 256
35 addr: nop
36 adc bx,addr
37 adc eax,5
38 adc eax,500
39 adc eax,byte 5
40 adc ax,4
41 adc ebx,7
42 adc ebx,700
43 adc ebx,byte 7
44 adc ecx,1
45 adc eax,1
47 shr edx,mmm
48 shr edx,one
49 adc ebx,byte mmm
50 m1: adc ebx,mmm
51 mmm equ 9
52 m2: adc ebx,mmm
53 one equ 1
54 shr edx,mmm
55 shr edx,one
56 shr edx,1
57 tend dw tend
59 segment data
60 db 'abc'
61 db '', 12, 13, 0