No C++ comments, please!
[nasm.git] / test / expimp.asm
blob90d9aedc3ca150424df3b36d9f99dce11bf7c8f4
2 ; Test of explicitly and implicitly sized operands
4 start:
5 add esi,2 ; Implicit
6 add esi,123456h ; Implicit
7 add esi,byte 2 ; Explicit
8 add esi,dword 2 ; Explicit
9 add esi,dword 123456h ; Explicit
10 add esi,byte 123456h ; Explicit Truncation
12 add esi,strict 2 ; Implicit Strict
13 add esi,strict 123456h ; Implicit Strict
14 add esi,strict byte 2 ; Explicit Strict
15 add esi,strict dword 2 ; Explicit Strict
16 add esi,strict dword 123456h ; Explicit Strict
17 add esi,strict byte 123456h ; Explicit Strict Truncation
19 ; Same thing with branches
21 jmp short start ; Explicit
22 jmp near start ; Explicit
23 jmp word start ; Explicit
24 jmp dword start ; Explicit
25 jmp short forward ; Explicit
26 jmp near forward ; Explicit
27 jmp word forward ; Explicit
28 jmp dword forward ; Explicit
29 %ifdef ERROR
30 jmp short faraway ; Explicit (ERROR)
31 %endif
32 jmp near faraway ; Explicit
33 jmp word faraway ; Explicit
34 jmp dword faraway ; Explicit
35 jmp start ; Implicit
36 jmp forward ; Implicit
37 jmp faraway ; Implicit
39 jmp strict short start ; Explicit Strict
40 jmp strict near start ; Explicit Strict
41 jmp strict word start ; Explicit Strict
42 jmp strict dword start ; Explicit Strict
43 jmp strict short forward ; Explicit Strict
44 jmp strict near forward ; Explicit Strict
45 jmp strict word forward ; Explicit Strict
46 jmp strict dword forward ; Explicit Strict
47 %ifdef ERROR
48 jmp strict short faraway ; Explicit (ERROR)
49 %endif
50 jmp strict near faraway ; Explicit Strict
51 jmp strict word faraway ; Explicit Strict
52 jmp strict dword faraway ; Explicit Strict
53 jmp strict start ; Implicit Strict
54 jmp strict forward ; Implicit Strict
55 jmp strict faraway ; Implicit Strict
56 forward:
58 times 256 nop
59 faraway: