home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 3 / FREEWARE.BIN / towns_os / tvi / tvi_src.lzh / ASM / TEST.ASM < prev    next >
Assembly Source File  |  1990-11-15  |  622b  |  28 lines

  1.     PAGE 255,132
  2.     extrn    tbl_compless:byte    ;(char *)
  3.  
  4.     .386p
  5. code    segment dword public use32 'code'
  6.     assume cs:code
  7.  
  8.     lodsd            ;eax=ds:[esi++]
  9.                 ;デジタイズデータだから(and eax,7fff7fffh)は不要
  10.     mov    bx,ax        ;eax下位16bit>bx下位16bit(※ebx=0にしておくこと)
  11.     mov    dl,byte ptr es:[ebx+edi]
  12.     shr    eax,cl        ;(cl=16)
  13.     mov    bx,ax        ;eax上位16bit>bx
  14.     mov    dh,byte ptr es:[ebx+edi]
  15.     shl    edx,cl        ;※10/28
  16.  
  17.     lodsd            ;eax=ds:[esi++]
  18.     shld    ebx,eax,cl    ;bx<eax上位16bit
  19.     mov    dh,byte ptr es:[ebx+edi]
  20.     mov    bx,ax        ;eax下位16bit>bx下位16bit
  21.     mov    dl,byte ptr es:[ebx+edi]
  22.     rol    edx,cl
  23.     mov    dword ptr [ebp+0],edx
  24.  
  25.  
  26. code    ends
  27.     end
  28.