Advertisement
Guest User

Untitled

a guest
Feb 13th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a: dw 1
  2. b: dw 1
  3. h: dw 1
  4. result: dw 1
  5.  
  6. mov word[a], 3
  7. mov word[b], 3
  8. mov word[h], 3
  9. mov ax, [a]
  10. mov bx, [b]
  11. add ax, bx
  12. mov bx, 2
  13. div bx
  14. mov bx, [h]
  15. mul bx
  16. and ax, 00ffh
  17. mov word[result], ax
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement