home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pctchnqs / 1991 / number6 / l2.asm < prev    next >
Assembly Source File  |  1991-11-11  |  590b  |  14 lines

  1. ScanLoop:
  2.         lodsw           ;get the next 2 bytes (AL = first, AH = 2nd)
  3.         xlat            ;look up first's char/not status
  4.         xor     dl,al   ;see if there's a new char/not status
  5.         add     di,dx   ;we add 1 for each char/not transition
  6.         mov     dl,al
  7.         mov     al,ah   ;look at the second byte
  8.         xlat            ;look up its char/not status
  9.         xor     dl,al   ;see if there's a new char/not status
  10.         add     di,dx   ;we add 1 for each char/not transition
  11.         mov     dl,al
  12.         dec     dx
  13.         jnz     ScanLoop
  14.