Home | History | Annotate | Download | only in tests
      1 [bits 16]
      2 mov al, 0
      3 mov byte al, 0
      4 mov al, byte 0
      5 mov byte al, byte 0
      6 ;mov al, word 0
      7 mov byte [0], 0
      8 mov [0], word 0
      9 mov dword [0], dword 0
     10 ;mov [0], 0
     11 mov eax, 0
     12 mov dword eax, 0
     13 mov eax, dword 0
     14 ;mov eax, word 0
     15 mov dword eax, dword 0
     16 mov bx, 1h
     17 mov cr0, eax
     18 mov cr2, ebx
     19 mov cr4, edx
     20 mov ecx, cr4
     21 mov dr3, edx
     22 mov eax, dr7
     23 
     24 mov [0], al
     25 mov [0], bl
     26 mov [1], al
     27 mov [1], bl
     28 mov ecx, edx
     29 movsx ax, [ecx]
     30 ;movzx eax, [edx]
     31 movzx ebx, word [eax]
     32 movzx ecx, byte [ebx]
     33 fnstenv [es:ecx+5]
     34 nop
     35 
     36 push cs
     37 push word cs
     38 push dword cs ; NASM unsupported
     39 push ds
     40 push es
     41 push fs
     42 push gs
     43 pop ds
     44 pop es
     45 pop fs
     46 pop gs
     47 xchg al, bl
     48 xchg al, [0]
     49 xchg [0], al
     50 xchg ax, bx
     51 xchg cx, ax
     52 xchg [0], ax
     53 xchg [0], cx
     54 xchg cx, [0]
     55 xchg eax, edx
     56 xchg ebx, eax
     57 xchg ecx, ebx
     58 xchg [0], ecx
     59 xchg eax, [0]
     60 in al, 55
     61 in ax, 99
     62 in eax, 100
     63 in al, dx
     64 in ax, dx
     65 in eax, dx
     66 out 55, al
     67 out 66, ax
     68 out 77, eax
     69 out dx, al
     70 out dx, ax
     71 out dx, eax
     72 lea bx, [5]
     73 lea ebx, [32]
     74 lds si, [0]
     75 lds ax, [1]
     76 ;lds ax, dword [1]
     77 les di, [5]
     78 lds eax, [7]
     79 les ebx, [9]
     80 lss esp, [11]
     81 lfs ecx, [13]
     82 lgs edx, [15]
     83 ;; TODO: add arith stuff
     84 imul eax, 4
     85 aad
     86 aam
     87 aad 5
     88 aam 10
     89 shl al, 5
     90 shl bl, 1
     91 shl cl, cl
     92 shr ax, 5
     93 shr bx, 1
     94 shr cx, cl
     95 shld ax, bx, 5
     96 shrd cx, dx, cl
     97 shld ecx, edx, 10
     98 shld eax, ebx, cl
     99 retn
    100 retf
    101 retn 8
    102 retf 16
    103 enter 10, 12
    104 setc al
    105 setc [0]
    106 ;; TODO: add bit manip
    107 int 10
    108 ;; TODO: add bound
    109 ;; TODO: add protection control
    110 fld dword [0]
    111 fld qword [4]
    112 fld tword [16]
    113 fld st2
    114 fstp dword [0]
    115 fstp st4
    116 fild word [0]
    117 fild dword [4]
    118 fild qword [8]
    119 fbld [100]
    120 fbld tword [10]
    121 fst dword [1]
    122 fst qword [8]
    123 fst st1
    124 fxch
    125 fxch st1
    126 fxch st0, st2
    127 fxch st2, st0
    128 fcom dword [0]
    129 fcom qword [8]
    130 fcom st1
    131 fcom st0, st0
    132 fucom st7
    133 fucomp st0, st5
    134 fadd dword [10]
    135 fadd qword [5]
    136 fadd st0
    137 fadd st0, st5
    138 fadd to st7
    139 fadd st6, st0
    140 faddp ;NASM unsupported
    141 faddp st2
    142 faddp st5, st0
    143 fiadd word [10]
    144 fisub dword [4]
    145 fldcw [0]
    146 fnstcw [4]
    147 fstcw word [4]
    148 fnstsw [8]
    149 fnstsw ax
    150 fstsw word [0]
    151 fstsw ax
    152 ffree st1
    153 ffreep st0 ;NASM unsupported
    154 jc short label
    155 jc label
    156 label:
    157 jz label
    158 jz near label
    159 loop label
    160 jcxz label
    161 jecxz label
    162 call label
    163 call [label]
    164 call dword [label]
    165 ;jmp label
    166 jmp short label
    167 jmp near label
    168 jmp far [label]
    169 jmp far dword [label]
    170 call far word [label]
    171 loop short label
    172 jcxz short label
    173 jecxz short label
    174 [bits 16]
    175 push si
    176 push esi
    177 [bits 32]
    178 push esi
    179