SquirrelInBox

Untitled

Apr 18th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. get_nums proc
  2. push -1
  3. @@loop:
  4. mov bx, 10h
  5. div bx
  6. push dx
  7. cmp ax, 0
  8. jne @@loop
  9. ret
  10. get_nums endp
  11.  
  12.  
  13. write_nums proc
  14. xor cx, cx
  15. mov cx, 4
  16. xor dx, dx
  17. @@loop:
  18. pop dx
  19. cmp dx, -1
  20. je @@end
  21.  
  22. cmp dl, 0ah
  23. jge @@more
  24.  
  25. add dl, 30h
  26. jmp @@write
  27. @@more:
  28. add dl, 37h
  29.  
  30. @@write:
  31. mov ah, 02h
  32. int 21h
  33. jmp @@loop
  34. @@end:
  35. ret
  36. write_nums endp
  37.  
  38. finish proc
  39. mov dx, word ptr[oldVec2f]
  40. mov ds, word ptr [oldVec2f + 2]
  41.  
  42. mov ax, dx
  43. call get_nums
  44. call write_nums
  45. mov ah, 02h
  46. mov dl, 3ah
  47. int 21h
  48.  
  49. mov ax, ds
  50. call get_nums
  51. call write_nums
  52.  
  53. lea dx, msg_inst
  54. int 21h
  55. ret
  56. finish endp
Advertisement
Add Comment
Please, Sign In to add comment