-
Notifications
You must be signed in to change notification settings - Fork 5
/
186.s
287 lines (284 loc) · 3.12 KB
/
186.s
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
.86
aaa
aad
aam
aas
adc ax,1
adc bx,4
adc ax,bx
adc ax,[bx]
adc ax,[si]
adc ax,[di]
adc ax,[bx + di]
adc ax,[bx + si]
adc ax,[bp + di]
adc ax,[bp + si]
adc ax,[bp + 0]
adc ax,[bx + 1]
adc ax,[di + 2]
adc ax,[si + 3]
adc ax,[bx + di + 4]
adc ax,[bx + si + 5]
adc ax,[bp + di + 6]
adc ax,[bp + si + 7]
adc ax,[bp + 512]
adc ax,[bx + 513]
adc ax,[di + 514]
adc ax,[si + 515]
adc ax,[bx + di + 516]
adc ax,[bx + si + 517]
adc ax,[bp + di + 518]
adc ax,[bp + si + 519]
adc ax,[fred]
adc ax,cs:[fred]
adc ax,ds:[fred]
adc ax,es:[fred]
adc ax,ss:[fred]
adc [fred],ax
adc [fred],1
adc al,1
adc bl,4
adc al,bl
adc al,[fred]
adc [fred],al
add ax,1
add bx,4
add ax,bx
add ax,[fred]
add [fred],ax
add [fred],1
add al,1
add bl,4
add al,bl
add al,[fred]
add [fred],al
and ax,1
and bx,4
and ax,bx
and ax,[fred]
and [fred],ax
and [fred],1
and al,1
and bl,4
and al,bl
and al,[fred]
and [fred],al
call fred
call ds:fred
call [bx]
; callf
cbw
clc
cld
cli
cmc
cmp ax,1
cmp bx,4
cmp ax,bx
cmp ax,[fred]
cmp [fred],ax
cmp [fred],1
cmp al,1
cmp bl,4
cmp al,bl
cmp al,[fred]
cmp [fred],al
; cmps
cmpsb
cmpsw
cwd
daa
das
dec bx
dec al
dec [fred]
div bx
div [fred]
hlt
idiv bx
idiv [fred]
imul cx
imul [fred]
in ax,3
in ax,dx
in al,5
in al,dx
inc ax
dec al
inc [fred]
int 4
into
iret
fred:
ja fred
jae fred
jb fred
jbe fred
jcxz fred
je fred
jg fred
jge fred
jl fred
jle fred
jna fred
jnae fred
jnb fred
jne fred
jng fred
jnge fred
jnl fred
jno fred
jnp fred
jns fred
jnz fred
jo fred
jp fred
jpe fred
jpo fred
js fred
jz fred
jmp fred
jmp eric
jmp [bx] ;need to fix the jmp handling to not use TJCC
; jmpf fred
lahf
lds [fred]
lea ax,[fred]
les [fred]
lock nop
; lods
lodsb
lodsw
foo:
loop foo
loopz foo
loopnz foo
loope foo
loopne foo
mov es,ax
mov ax,ds
mov ax,11
mov al,12
mov ah,10
mov bx,12
mov ax,[0x1234]
mov al,[0x1234]
mov [0x1234],ax
mov [0x1234],al
mov bx,[0x1234]
mov [0x1234],bx
mov [bp + 4], 12
mov ax,[bx]
mov [bx],ax
mov [bx],12
mov [1234],12
; movs
movsb
movsw
mul ax
mul [fred]
neg al
neg ax
neg [fred]
nop
not bl
not cx
not [fred]
or ax,bx
or ax,0x1234
or al,5
or ax,6
out ax,12
out al,12
out al,dx
out ax,dx
pop ax
pop dx
pop [fred]
push [fred]
push ax
push dx
popf
pushf
rcl bx
rcr bl
rep nop
repe nop
repz nop
repne nop
repnz lock nop
ret
retf
ret 4
retf 12
rol ax
ror dl
sahf
sal cl
sar bx
sbb ax,1
sbb bx,4
sbb ax,bx
sbb ax,[fred]
sbb [fred],ax
sbb [fred],1
sbb al,1
sbb bl,4
sbb al,bl
sbb al,[fred]
sbb [fred],al
; scas
scasb
scasw
shl cx
shr cl
stc
std
sti
; stos
stosb
stosw
sub ax,1
sub bx,4
sub ax,bx
sub ax,[fred]
sub [fred],ax
sub [fred],1
sub al,1
sub bl,4
sub al,bl
sub al,[fred]
sub [fred],al
test ax,[bx]
test ax,0x1234
test ax,1
test al,0
wait
xchg ax,bx
xchg al,bl
xchg ax,[_fred]
xchg [_fred],ax
xlat
xor ax,1
xor bx,4
xor ax,bx
xor ax,[fred]
xor [fred],ax
xor [fred],1
xor al,1
xor bl,4
xor al,bl
xor al,[fred]
xor [fred],al
.186
bound cx,[bx]
enter 0,1
; ins
insb
insw
leave
; outs
outsb
outsw
popa
pusha