Advertisement
dxvmxnd

Untitled

Mar 30th, 2024
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. org 100h
  2.  
  3. EntryPoint:
  4. mov ah, $0A
  5. mov dx, bufInput
  6. int 21h
  7.  
  8. mov ah, 09
  9. mov dx, newLine
  10. int 21h
  11.  
  12. mov ah, [bufInput+6]
  13. mov al, [bufInput+5]
  14.  
  15. mov [bufInput+6], al
  16. mov [bufInput+5], ah
  17.  
  18. mov al,[bufInput+7]
  19. sub al,[bufInput+9]
  20.  
  21. add al,[bufInput+10]
  22. mov [bufInput+2], ah
  23.  
  24.  
  25. mov ah, 09h
  26. mov dx, bufInput+2
  27. int 21h
  28.  
  29. mov ah, $08
  30. int 21h
  31. ret
  32.  
  33. bufInput: db 9,0,9 dup(?), '$' ;
  34. newLine db 13,10, 36
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement