Guest User

Untitled

a guest
Dec 11th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         org     100h
  2. l0:     mov     si,array
  3.         mov     dx,3
  4.         xor     cx,cx
  5.         xor     bx,bx
  6. l1:     cmp     cx,3
  7.         jb      l3
  8. l2:     xor     bx,ax
  9.         shl     ax,3
  10.         sub     cx,3
  11.         jmp     l1
  12. l3:     dec     dx
  13.         js      l4
  14.         push    cx
  15.         xor     cx,3
  16.         shr     ax,cl
  17.         lodsb
  18.         shl     ax,cl
  19.         pop     cx
  20.         add     cx,8
  21.         jmp     l2
  22. l4:     shr     bx,8
  23.         and     bx,3
  24.         int3    ; Вывод BX сам.
  25.         retn
  26.  
  27. array   db      11001100b,10101011b,00011101b
Advertisement
Add Comment
Please, Sign In to add comment