Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. proc calculate
  2.     push bp
  3.     mov bp, sp
  4.     push ax
  5.     push dx
  6.     push cx
  7.     push si
  8.     push di
  9.  
  10.     xor si, si
  11.     mov ax, [bp+6]
  12.     mov dx, [bp+4]
  13.     mov si, di
  14.     mov cx, ax
  15.     add cx, dx
  16.  
  17.     pop di
  18.     pop si
  19.     pop cx
  20.     pop dx
  21.     pop ax
  22.     pop bp
  23.     ret 2
  24. endp calculate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement