Advertisement
fatalryuu

Untitled

May 30th, 2022
2,214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .Init:
  2.         push    bp
  3.         mov     bp, sp
  4.         push    di
  5.         push    si
  6.         mov     cx, [bp + 4]
  7.         mov     si, [bp + 6]
  8.         mov     di, [bp + 8]
  9.         xor     ax, ax
  10. .CheckElement:
  11.         inc     ax
  12.         mov     dx, [si]
  13.         cmp     [di], dx
  14.         jne     .End
  15. .NextElement:
  16.         add     si, 2
  17.         add     di, 2
  18.         loop    .CheckElement
  19. .End:
  20.         cmp     cx, 0
  21.         jne     .Prologue
  22.         xor     ax, ax
  23. .Prologue:
  24.         pop     si
  25.         pop     di
  26.         pop     bp
  27.         ret     6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement