home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / PROGRAM / C / 486DIS_C / TEST.ASM < prev   
Assembly Source File  |  1993-04-21  |  2KB  |  91 lines

  1. ; this is a *weird* listing file containing instructions which caused the
  2. ; disassembler grief at one time or another.  They all seem to work now.
  3.  
  4. .386
  5. .radix 16
  6. ; code segment use32
  7. code segment use16
  8.    rep lock test dword ptr es:[12345678], 87654321 ; 13 bytes
  9.                                           ; screws up CodeView <ha ha ha>
  10.    db 067h, 08bh, 0c1h
  11.    db 0,0
  12.    db 066,0,0             ; bug in TD ? yup!
  13.    mov ax, [bx]
  14.    mov ax, [ebx]
  15.    mov ax, [edi]
  16.    mov ax, [bp+1]
  17.    mov eax, [bx]
  18.    mov eax, [ebx]
  19.    mov eax, [edi]
  20.    mov eax, [bp+1]
  21.    push 12              ; sign extend
  22.  
  23.    push 0ca             ; sign extend
  24.    push 0cafe           ; no sign extend
  25.    push 12345678
  26.    db 0f6, 0c4, 08      ; test ah, 08
  27.    test dword ptr ds:[100], 12345678
  28.    test word ptr es:[100], 1
  29.    test byte ptr es:[100], 1
  30.    test word ptr ds:[100], 1     ; !
  31.    test byte ptr ds:[100], 1
  32.    test ax, 1
  33.    test al, 1
  34.    test eax, 1
  35.    test di, 80
  36.    test di, 0ff80          ; sign extension
  37. ; jecxz $-10
  38. ; jcxz $+10
  39. ; jmp short $+1
  40.  db 0f7, 0c7, 080, 00       ; oddball instructions
  41.  db 0f7, 046, 04, 40, 00
  42.  db 066, 0e3, 090
  43.  db 0e3, 090
  44.  db 084, 10, 90
  45.  db 085, 10, 90
  46.   db 83, 0f9, 02
  47.   db 83, 0f9, 0ca
  48.   db 20, 43, 6f
  49.   db 06a, 0ca
  50.   db 082, 047, 10, 20
  51.   test [bx-1f], ebp
  52.   db 8bh, 07
  53.   db 67, 8bh, 07
  54.   db 068, 0ca, 0, 068, 0fe, 99
  55.   db 066h, 00, 00
  56.   db 01, 00
  57.   db 066h, 01, 00
  58. ;  jecxz $+2
  59.   idiv dh
  60.   idiv si
  61.   db 06bh, 0c0h, 0d4h
  62.   db 06ah, 0c7h
  63.   db 0f, 020, 014
  64.   db 08e, 03e, 0, 0
  65.   db 08c, 0cbh
  66.  
  67.   db 0f6, 0f9
  68.   db 0f7, 0f9
  69.   db 0f6, 0f8
  70.   db 0f7, 0f8
  71.   db 0d0, 0f0
  72.   db 0d3, 0f3
  73.   db 0e8h, 0ebh, 0ebh
  74.   db 066, 020, 04d, 061
  75.   db 066, 020, 035
  76.   db 081, 03f, 0, 1
  77.   db 0fe, 07
  78.  db 080, 03e, 00, 00, 05a
  79.   db 0f6, 0b1, 0f1, 0af
  80.   db 026, 01, 06, 085, 0e
  81.   db 0c7, 06, 3, 0, 0ff, 0
  82.  db 08e, 05e, 0
  83.   db 26h, 89h, 0fh
  84.   db 08bh, 037h
  85.   db 08bh, 00Eh, 0d2h, 01h
  86.   db 3, 6, 3, 0
  87.  
  88.  
  89. code ends
  90. end
  91.