-
Notifications
You must be signed in to change notification settings - Fork 9
/
recode1.asm
873 lines (861 loc) · 14.4 KB
/
recode1.asm
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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
; recompiler test code #1
org 0
_start:
; JMP [reg] 16-bit
jmp ax
jmp bx
jmp cx
jmp dx
jmp si
jmp di
jmp bp
jmp sp
; JMP [reg] 32-bit
jmp eax
jmp ebx
jmp ecx
jmp edx
jmp esi
jmp edi
jmp ebp
jmp esp
; JMP [addr] 16-bit single-memref
jmp [bx]
jmp [bp]
jmp [si]
jmp [di]
; JMP [addr] 16-bit single-memref with offset
jmp [bx+3]
jmp [bp+4]
jmp [si+5]
jmp [di+6]
; JMP [addr] 16-bit single-memref with large offset
jmp [bx+0x1111]
jmp [bp+0x2222]
jmp [si+0x3333]
jmp [di+0x4444]
; JMP [addr] 16-bit single-memref with negative offset
jmp [bx-3]
jmp [bp-4]
jmp [si-5]
jmp [di-6]
; JMP [addr] 16-bit single-memref with large negative offset
jmp [bx-0x1111]
jmp [bp-0x2222]
jmp [si-0x3333]
jmp [di-0x4444]
; JMP [addr] 16-bit double-memref
jmp [bx+si]
jmp [bx+di]
jmp [bp+si]
jmp [bp+di]
; JMP [addr] 16-bit double-memref and offset
jmp [bx+si+3]
jmp [bx+di+4]
jmp [bp+si+5]
jmp [bp+di+6]
; JMP [addr] 16-bit double-memref and large offset
jmp [bx+si+0x1111]
jmp [bx+di+0x2222]
jmp [bp+si+0x3333]
jmp [bp+di+0x4444]
; JMP [addr] 32-bit single-memref
jmp [eax]
jmp [ebx]
jmp [ecx]
jmp [edx]
jmp [esi]
jmp [edi]
jmp [esp]
jmp [ebp]
; JMP [addr] 32-bit single-memref with offset
jmp [eax+3]
jmp [ebx+4]
jmp [ecx+5]
jmp [edx+6]
jmp [esi+7]
jmp [edi+8]
jmp [esp+9]
jmp [ebp+10]
; JMP [addr] 32-bit single-memref with large offset
jmp [eax+0x11111111]
jmp [ebx+0x22222222]
jmp [ecx+0x33333333]
jmp [edx+0x44444444]
jmp [esi+0x55555555]
jmp [edi+0x66666666]
jmp [esp+0x77777777]
jmp [ebp+0x88888888]
; JMP [addr] 32-bit double-memref
jmp [eax+eax]
jmp [ebx+eax]
jmp [ecx+eax]
jmp [edx+eax]
jmp [esi+eax]
jmp [edi+eax]
jmp [esp+eax]
jmp [ebp+eax]
; JMP [addr] 32-bit double-memref
jmp [eax+ebx]
jmp [ebx+ebx]
jmp [ecx+ebx]
jmp [edx+ebx]
jmp [esi+ebx]
jmp [edi+ebx]
jmp [esp+ebx]
jmp [ebp+ebx]
; JMP [addr] 32-bit double-memref and scalar
jmp [eax*2+ebx]
jmp [ebx*2+ebx]
jmp [ecx*2+ebx]
jmp [edx*2+ebx]
jmp [esi*2+ebx]
jmp [edi*2+ebx]
jmp [ebp*2+ebx]
; JMP [addr] 32-bit double-memref and scalar
jmp [eax*2+ebx+4]
jmp [ebx*2+ebx+5]
jmp [ecx*2+ebx+6]
jmp [edx*2+ebx+7]
jmp [esi*2+ebx+8]
jmp [edi*2+ebx+9]
jmp [ebp*2+ebx+10]
; JMP <near>
jmp 0x1234
jmp 0x5678
; JMP <short>
jmp short $+1
jmp short $+2
; JMP <32-bit near>
jmp dword 0x12345678
jmp dword 0x89ABCDEF
; JMP <far immediate>
jmp 0x1234:0x5678
; jmp <32-bit far immediate>
jmp 0x1234:dword 0x89ABCDEF
; JMP <far [addr]>
jmp far [bx]
jmp far [si]
jmp far [bp]
jmp far [bx+si]
jmp far [bx+di]
; JMP <far [32-bit addr]>
jmp far [eax]
jmp far [ebx]
jmp far [ecx]
jmp far [edx]
jmp far [esi]
jmp far [edi]
jmp far [esp]
jmp far [ebp]
; JMP <32-bit far [addr]>
jmp far dword [bx]
jmp far dword [si]
jmp far dword [bp]
jmp far dword [bx+si]
jmp far dword [bx+di]
; JMP <32-bit far 32-bit addr>
jmp far dword [eax]
jmp far dword [ebx]
jmp far dword [ecx]
jmp far dword [edx]
jmp far dword [esi]
jmp far dword [edi]
jmp far dword [esp]
jmp far dword [ebp]
; JMP <addr>
jmp word [0x1234]
jmp [dword 0x12345678]
jmp far word [0x1234]
jmp far [dword 0x12345678]
; JMP [reg] 16-bit
call ax
call bx
call cx
call dx
call si
call di
call bp
call sp
; JMP [reg] 32-bit
call eax
call ebx
call ecx
call edx
call esi
call edi
call ebp
call esp
; JMP [addr] 16-bit single-memref
call [bx]
call [bp]
call [si]
call [di]
; JMP [addr] 16-bit single-memref with offset
call [bx+3]
call [bp+4]
call [si+5]
call [di+6]
; JMP [addr] 16-bit single-memref with large offset
call [bx+0x1111]
call [bp+0x2222]
call [si+0x3333]
call [di+0x4444]
; JMP [addr] 16-bit single-memref with negative offset
call [bx-3]
call [bp-4]
call [si-5]
call [di-6]
; JMP [addr] 16-bit single-memref with large negative offset
call [bx-0x1111]
call [bp-0x2222]
call [si-0x3333]
call [di-0x4444]
; JMP [addr] 16-bit double-memref
call [bx+si]
call [bx+di]
call [bp+si]
call [bp+di]
; JMP [addr] 16-bit double-memref and offset
call [bx+si+3]
call [bx+di+4]
call [bp+si+5]
call [bp+di+6]
; JMP [addr] 16-bit double-memref and large offset
call [bx+si+0x1111]
call [bx+di+0x2222]
call [bp+si+0x3333]
call [bp+di+0x4444]
; JMP [addr] 32-bit single-memref
call [eax]
call [ebx]
call [ecx]
call [edx]
call [esi]
call [edi]
call [esp]
call [ebp]
; JMP [addr] 32-bit single-memref with offset
call [eax+3]
call [ebx+4]
call [ecx+5]
call [edx+6]
call [esi+7]
call [edi+8]
call [esp+9]
call [ebp+10]
; JMP [addr] 32-bit single-memref with large offset
call [eax+0x11111111]
call [ebx+0x22222222]
call [ecx+0x33333333]
call [edx+0x44444444]
call [esi+0x55555555]
call [edi+0x66666666]
call [esp+0x77777777]
call [ebp+0x88888888]
; JMP [addr] 32-bit double-memref
call [eax+eax]
call [ebx+eax]
call [ecx+eax]
call [edx+eax]
call [esi+eax]
call [edi+eax]
call [esp+eax]
call [ebp+eax]
; JMP [addr] 32-bit double-memref
call [eax+ebx]
call [ebx+ebx]
call [ecx+ebx]
call [edx+ebx]
call [esi+ebx]
call [edi+ebx]
call [esp+ebx]
call [ebp+ebx]
; JMP [addr] 32-bit double-memref and scalar
call [eax*2+ebx]
call [ebx*2+ebx]
call [ecx*2+ebx]
call [edx*2+ebx]
call [esi*2+ebx]
call [edi*2+ebx]
call [ebp*2+ebx]
; JMP [addr] 32-bit double-memref and scalar
call [eax*2+ebx+4]
call [ebx*2+ebx+5]
call [ecx*2+ebx+6]
call [edx*2+ebx+7]
call [esi*2+ebx+8]
call [edi*2+ebx+9]
call [ebp*2+ebx+10]
; JMP <near>
call 0x1234
call 0x5678
; JMP <32-bit near>
call dword 0x12345678
call dword 0x89ABCDEF
; JMP <far immediate>
call 0x1234:0x5678
; call <32-bit far immediate>
call 0x1234:dword 0x89ABCDEF
; JMP <far [addr]>
call far [bx]
call far [si]
call far [bp]
call far [bx+si]
call far [bx+di]
; JMP <far [32-bit addr]>
call far [eax]
call far [ebx]
call far [ecx]
call far [edx]
call far [esi]
call far [edi]
call far [esp]
call far [ebp]
; JMP <32-bit far [addr]>
call far dword [bx]
call far dword [si]
call far dword [bp]
call far dword [bx+si]
call far dword [bx+di]
; JMP <32-bit far 32-bit addr>
call far dword [eax]
call far dword [ebx]
call far dword [ecx]
call far dword [edx]
call far dword [esi]
call far dword [edi]
call far dword [esp]
call far dword [ebp]
; JMP <addr>
call word [0x1234]
call [dword 0x12345678]
call far word [0x1234]
call far [dword 0x12345678]
; NOPs
nop
nop
; XCHG <8-bit>
xchg al,al
xchg al,bl
xchg al,cl
xchg al,dl
xchg al,ah
xchg al,bh
xchg al,ch
xchg al,dh
; XCHG ax,<16-bit>
xchg ax,ax
xchg ax,bx
xchg ax,cx
xchg ax,dx
xchg ax,si
xchg ax,di
xchg ax,sp
xchg ax,bp
; XCHG <16-bit>
xchg bx,ax
xchg cx,bx
xchg dx,cx
xchg si,dx
xchg di,si
xchg sp,di
xchg bp,sp
xchg ax,bp
; XCHG <8-bit w/ mem>
xchg [si],al
xchg [si],bl
xchg [si],cl
xchg [si],dl
xchg [si],ah
xchg [si],bh
xchg [si],ch
xchg [si],dh
; XCHG <8-bit w/ mem>
xchg [esi],al
xchg [esi],bl
xchg [esi],cl
xchg [esi],dl
xchg [esi],ah
xchg [esi],bh
xchg [esi],ch
xchg [esi],dh
; XCHG <16-bit w/ mem>
xchg [si],ax
xchg [si],bx
xchg [si],cx
xchg [si],dx
xchg [si],si
xchg [si],di
xchg [si],sp
xchg [si],bp
; XCHG eax,<32-bit>
xchg eax,eax
xchg eax,ebx
xchg eax,ecx
xchg eax,edx
xchg eax,esi
xchg eax,edi
xchg eax,esp
xchg eax,ebp
; XCHG <32-bit>
xchg ebx,eax
xchg ecx,ebx
xchg edx,ecx
xchg esi,edx
xchg edi,esi
xchg esp,edi
xchg ebp,esp
xchg eax,ebp
; XCHG <32-bit w/ mem>
xchg [si],eax
xchg [si],ebx
xchg [si],ecx
xchg [si],edx
xchg [si],esi
xchg [si],edi
xchg [si],ebp
xchg [si],esp
; XCHG <32-bit w/ 32-bit mem>
xchg [esi],eax
xchg [esi],ebx
xchg [esi],ecx
xchg [esi],edx
xchg [esi],esi
xchg [esi],edi
xchg [esi],ebp
xchg [esi],esp
; JMP <addr>
xchg [0x1234],ax
xchg [dword 0x12345678],ax
xchg [0x1234],eax
xchg [dword 0x12345678],eax
; MOV reg,reg
mov al,al
mov al,ah
mov al,bl
mov al,bh
mov al,cl
mov al,ch
mov al,dl
mov al,dh
; MOV reg,reg (other than AL)
mov bl,al
mov bh,ah
mov cl,bl
mov ch,bh
mov dl,cl
mov dh,ch
mov al,dl
mov ah,dh
; MOV reg,reg
mov ax,ax
mov ax,bx
mov ax,cx
mov ax,dx
mov ax,si
mov ax,di
mov ax,bp
mov ax,sp
; MOV reg,reg
mov cx,ax
mov dx,bx
mov si,cx
mov di,dx
mov sp,si
mov bp,di
mov ax,bp
mov bx,sp
; MOV reg,reg
mov eax,eax
mov eax,ebx
mov eax,ecx
mov eax,edx
mov eax,esi
mov eax,edi
mov eax,ebp
mov eax,esp
; MOV reg,reg
mov ecx,eax
mov edx,ebx
mov esi,ecx
mov edi,edx
mov esp,esi
mov ebp,edi
mov eax,ebp
mov ebx,esp
; MOV reg,imm (byte)
mov al,0
mov al,1
mov al,0xCC
mov ah,1
mov bl,2
mov cl,3
mov ch,4
mov dl,5
mov dh,6
; MOV reg,imm (word)
mov ax,0
mov bx,1
mov cx,2
mov dx,3
mov si,4
mov di,5
mov sp,6
mov bp,7
; MOV reg,imm (dword)
mov eax,0
mov ebx,1
mov ecx,2
mov edx,3
mov esi,4
mov edi,5
mov esp,6
mov ebp,7
; MOV r/m,imm (byte)
mov byte [si],1
mov byte [di],2
mov byte [bx],3
mov byte [bx+si],4
mov byte [bx+di],5
; MOV r/m,imm (byte 32-bit)
mov byte [eax],1
mov byte [ebx],2
mov byte [ecx],3
mov byte [edx],4
mov byte [esi],5
mov byte [edi],5
; MOV r/m,imm (word)
mov word [si],1
mov word [di],2
mov word [bx],3
mov word [bx+si],4
mov word [bx+di],5
; MOV r/m,imm (word 32-bit)
mov word [eax],1
mov word [ebx],2
mov word [ecx],3
mov word [edx],4
mov word [esi],5
mov word [edi],5
; MOV r/m,imm (dword)
mov dword [si],1
mov dword [di],2
mov dword [bx],3
mov dword [bx+si],4
mov dword [bx+di],5
; MOV r/m,imm (dword 32-bit)
mov dword [eax],1
mov dword [ebx],2
mov dword [ecx],3
mov dword [edx],4
mov dword [esi],5
mov dword [edi],5
; MOV AX <=> [mem addr]
mov al,[0x1234]
mov ax,[0x1234]
mov eax,[0x1234]
mov [0x1234],al
mov [0x1234],ax
mov [0x1234],eax
; MOV AX <=> [mem addr 32]
mov al,[dword 0x12345678]
mov ax,[dword 0x12345678]
mov eax,[dword 0x12345678]
mov [dword 0x12345678],al
mov [dword 0x12345678],ax
mov [dword 0x12345678],eax
; MOV reg,reg
mov [eax],eax
mov [ebx],ebx
mov [edx],ecx
mov [esi],edx
mov [edi],esi
mov [ebp],edi
mov [esi],ebp
mov [ecx],esp
; MOV reg,reg
mov eax,[edx]
mov ebx,[eax]
mov ecx,[ebx]
mov edx,[ecx]
mov esi,[edx]
mov edi,[eax]
mov ebp,[ebx]
mov esp,[ecx]
; MOV reg,reg
mov [si],ax
mov [si],bx
mov [si],cx
mov [si],dx
mov [si],si
mov [si],di
mov [si],bp
mov [si],sp
; MOV reg,reg
mov ax,[si]
mov bx,[si]
mov cx,[si]
mov dx,[si]
mov si,[si]
mov di,[si]
mov bp,[si]
mov sp,[si]
; XCHG <8-bit>
lock xchg al,al
lock xchg al,bl
lock xchg al,cl
lock xchg al,dl
lock xchg al,ah
lock xchg al,bh
lock xchg al,ch
lock xchg al,dh
; XCHG ax,<16-bit>
lock xchg ax,ax
lock xchg ax,bx
lock xchg ax,cx
lock xchg ax,dx
lock xchg ax,si
lock xchg ax,di
lock xchg ax,sp
lock xchg ax,bp
mov [es:si],ax
mov [es:si],bx
mov [es:si],cx
mov [es:si],dx
mov [es:si],si
mov [es:si],di
mov [es:si],bp
mov [es:si],sp
mov [es:esi],ax
mov [es:esi],bx
mov [es:esi],cx
mov [es:esi],dx
mov [es:esi],si
mov [es:esi],di
mov [es:esi],bp
mov [es:esi],sp
mov [es:esi],eax
mov [es:esi],ebx
mov [es:esi],ecx
mov [es:esi],edx
mov [es:esi],esi
mov [es:esi],edi
mov [es:esi],ebp
mov [es:esi],esp
mov [0x1234],al
mov [0x1234],ax
mov [0x1234],eax
mov [dword 0x12345678],al
mov [dword 0x12345678],ax
mov [dword 0x12345678],eax
mov al,[0x1234]
mov ax,[0x1234]
mov eax,[0x1234]
mov al,[dword 0x12345678]
mov ax,[dword 0x12345678]
mov eax,[dword 0x12345678]
; MOV with segment registers
mov ax,cs
mov cs,ax
mov ax,ds
mov ds,ax
mov ax,ss
mov ss,ax
mov ax,es
mov es,ax
; ... mem refs
mov [si],cs
mov cs,[si]
mov [di],ds
mov ds,[di]
mov [bx],es
mov es,[bx]
mov [bp],ss
mov ss,[bp]
mov [bp+di],ds
mov ds,[bp+di]
; ... mem refs and overrides
mov [si],cs ; the recoder will NOT generate the DS: prefix because it's not needed
mov cs,[si]
mov [es:di],ds
mov ds,[es:di]
mov [ss:bx],es
mov es,[ss:bx]
mov [cs:bp],ss
mov ss,[cs:bp]
mov [ds:bp+di],ds
mov ds,[ds:bp+di]
; ... mem refs and overrides
mov [esi],cs ; the recoder will NOT generate the DS: prefix because it's not needed
mov cs,[esi]
mov [es:edi],ds
mov ds,[es:edi]
mov [ss:ebx],es
mov es,[ss:ebx]
mov [cs:ebp],ss
mov ss,[cs:ebp]
mov [ds:esp],ds
mov ds,[ds:esp]
; ... mem refs and overrides
mov [eax*4+ebx+4],cs ; the recoder will NOT generate the DS: prefix because it's not needed
mov cs,[eax*4+ebx+4]
mov [es:edi*8+ecx-18],ds
mov ds,[es:edi*8+ecx-18]
; ... control registers <reg-reg>
mov eax,cr0
mov cr0,eax
mov ebx,cr0
mov cr0,ebx
mov eax,cr1
mov cr1,eax
mov ebx,cr2
mov cr2,ebx
mov eax,dr0
mov dr0,eax
mov ebx,dr1
mov dr1,ebx
mov eax,dr2
mov dr2,eax
mov ebx,dr3
mov dr3,ebx
mov tr0,eax
mov ebx,tr1
mov tr1,ebx
mov eax,tr2
mov tr2,eax
mov ebx,tr3
mov tr3,ebx
; push/pop
push ax
push bx
push cx
push dx
push si
push di
push bp
push sp
pop ax
pop bx
pop cx
pop dx
pop si
pop di
pop bp
pop sp
; push/pop
push eax
push ebx
push ecx
push edx
push esi
push edi
push ebp
push esp
pop eax
pop ebx
pop ecx
pop edx
pop esi
pop edi
pop ebp
pop esp
; push/pop mem word
push word [si]
push word [di]
push word [bx]
push word [bp]
push word [bx+si]
push word [bx+di]
push word [bp+si]
push word [bp+di]
pop word [si]
pop word [di]
pop word [bx]
pop word [bp] ; FIXME: this doesn't decode properly
pop word [bx+si]
pop word [bx+di]
pop word [bp+si]
pop word [bp+di]
; push/pop mem word
push dword [si]
push dword [di]
push dword [bx]
push dword [bp]
push dword [bx+si]
push dword [bx+di]
push dword [bp+si]
push dword [bp+di]
pop dword [si]
pop dword [di]
pop dword [bx]
; pop dword [bp] ; FIXME: this doesn't decode properly
pop dword [bx+si]
pop dword [bx+di]
pop dword [bp+si]
pop dword [bp+di]
; push/pop mem word
push word [eax]
push word [ebx]
push word [ecx]
push word [edx]
push word [esi]
push word [edi]
push word [ebp]
push word [esp]
pop word [eax]
pop word [ebx]
pop word [ecx]
pop word [edx]
pop word [esi]
pop word [edi]
; pop word [ebp] ; FIXME: this doesn't decode properly
pop word [esp]
; push/pop mem word
push dword [eax]
push dword [ebx]
push dword [ecx]
push dword [edx]
push dword [esi]
push dword [edi]
push dword [ebp]
push dword [esp]
pop dword [eax]
pop dword [ebx]
pop dword [ecx]
pop dword [edx]
pop dword [esi]
pop dword [edi]
; pop dword [ebp] ; FIXME: this doesn't decode properly
pop dword [esp]
; push imm (8-bit)
push byte 1
push byte 2
push byte 3
push byte 4
push byte -1
push byte -2
push byte -3
push byte -4
; push imm (16-bit)
push word 1111
push word 2222
push word 3333
push word 4444
; push imm (32-bit)
push dword 11111111
push dword 22222222
push dword 33333333
push dword 44444444
; push/pop segment
push cs
push ds
push es
push fs
push gs
push ss
pop ds
pop es
pop fs
pop gs
pop ss