Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .Init:
- push bp
- mov bp, sp
- push di
- push si
- mov cx, [bp + 4]
- mov si, [bp + 6]
- mov di, [bp + 8]
- xor ax, ax
- .CheckElement:
- inc ax
- mov dx, [si]
- cmp [di], dx
- jne .End
- .NextElement:
- add si, 2
- add di, 2
- loop .CheckElement
- .End:
- cmp cx, 0
- jne .Prologue
- xor ax, ax
- .Prologue:
- pop si
- pop di
- pop bp
- ret 6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement