Advertisement
SquirrelInBox

Untitled

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