Advertisement
Guest User

Untitled

a guest
Apr 15th, 2015
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DOSSEG
  2. .MODEL SMALL
  3. .STACK 100h
  4. .DATA
  5. K   EQU 2513h
  6. A   dw  834Ah
  7. B   db  32h
  8. C   db  43h
  9. D   db  10h
  10. E   dw  12E3h
  11. Temp1   db  00h
  12. Temp2   db  00h
  13. Temp3   db  00h
  14. Temp4   dw  00h,00h
  15. X   dw  00h,00h
  16. .CODE  
  17. mov ax,@data       
  18. mov ds,ax
  19. mov ax,A
  20. mov bl,B
  21. div bl
  22. mov Temp1,al
  23. mov cx, D
  24. add dx, cx
  25. sub dx, K
  26. mov Temp4, dx
  27. mov al, C
  28. mul Temp4
  29. mov ax, Temp1
  30. add ax, Temp4
  31. mov X, ax
  32.     mov ah,4Ch
  33.     int 21h
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement