summaryrefslogtreecommitdiff
path: root/tests/examplefiles/nasm/nasm_objexe.asm.output
blob: c8b7a59f74620e390768a4a9767c56ff1915b329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
'; Demonstration of how to write an entire .EXE format program as a .OBJ' Comment.Single
'\n'          Text.Whitespace

'; file to be linked. Tested with the VAL free linker.' Comment.Single
'\n'          Text.Whitespace

'; To build:' Comment.Single
'\n'          Text.Whitespace

';    nasm -fobj objexe.asm' Comment.Single
'\n'          Text.Whitespace

';    val objexe.obj,objexe.exe;' Comment.Single
'\n'          Text.Whitespace

'; To test:'  Comment.Single
'\n'          Text.Whitespace

';    objexe' Comment.Single
'\n'          Text.Whitespace

"; (should print `hello, world')" Comment.Single
'\n'          Text.Whitespace

'\t  '        Text.Whitespace
'\n'          Text.Whitespace

'\t  '        Text.Whitespace
'segment'     Keyword
' '           Text.Whitespace
'code'        Name.Variable
'\n\n'        Text.Whitespace

'..start:'    Name.Label
'  '          Text.Whitespace
'mov'         Name.Function
' '           Text.Whitespace
'ax'          Name.Builtin
','           Punctuation
'data'        Name.Variable
'\n'          Text.Whitespace

'\t  '        Text.Whitespace
'mov'         Name.Function
' '           Text.Whitespace
'ds'          Name.Builtin
','           Punctuation
'ax'          Name.Builtin
'\n'          Text.Whitespace

'\t  '        Text.Whitespace
'mov'         Name.Function
' '           Text.Whitespace
'ax'          Name.Builtin
','           Punctuation
'stack'       Name.Variable
'\n'          Text.Whitespace

'\t  '        Text.Whitespace
'mov'         Name.Function
' '           Text.Whitespace
'ss'          Name.Builtin
','           Punctuation
'ax'          Name.Builtin
'\n'          Text.Whitespace

'\t  '        Text.Whitespace
'mov'         Name.Function
' '           Text.Whitespace
'sp'          Name.Builtin
','           Punctuation
'stacktop'    Name.Variable
'\n\n'        Text.Whitespace

'\t  '        Text.Whitespace
'mov'         Name.Function
' '           Text.Whitespace
'dx'          Name.Builtin
','           Punctuation
'hello'       Name.Variable
'\n'          Text.Whitespace

'\t  '        Text.Whitespace
'mov'         Name.Function
' '           Text.Whitespace
'ah'          Name.Builtin
','           Punctuation
'9'           Literal.Number.Integer
'\n'          Text.Whitespace

'\t  '        Text.Whitespace
'int'         Name.Function
' '           Text.Whitespace
'0x21'        Literal.Number.Hex
'\n\n'        Text.Whitespace

'\t  '        Text.Whitespace
'mov'         Name.Function
' '           Text.Whitespace
'ax'          Name.Builtin
','           Punctuation
'0x4c00'      Literal.Number.Hex
'\n'          Text.Whitespace

'\t  '        Text.Whitespace
'int'         Name.Function
' '           Text.Whitespace
'0x21'        Literal.Number.Hex
'\n\n'        Text.Whitespace

'\t  '        Text.Whitespace
'segment'     Keyword
' '           Text.Whitespace
'data'        Name.Variable
'\n'          Text.Whitespace

'hello:'      Name.Label
'\t  '        Text.Whitespace
'db'          Keyword.Declaration
' '           Text.Whitespace
"'hello, world'" Literal.String
','           Punctuation
' '           Text.Whitespace
'13'          Literal.Number.Integer
','           Punctuation
' '           Text.Whitespace
'10'          Literal.Number.Integer
','           Punctuation
' '           Text.Whitespace
"'$'"         Literal.String
'\n\n'        Text.Whitespace

'\t  '        Text.Whitespace
'segment'     Keyword
' '           Text.Whitespace
'stack'       Name.Variable
' '           Text.Whitespace
'stack'       Name.Variable
'\n'          Text.Whitespace

'\t  '        Text.Whitespace
'resb'        Keyword.Declaration
' '           Text.Whitespace
'64'          Literal.Number.Integer
'\n'          Text.Whitespace

'stacktop:'   Name.Label
'\n'          Text.Whitespace