DCPU16 23
[COAL] Reverse or SWAP characters using STACK Guest on 27th November 2020 01:19:44 PM
  1. .model small
  2. .stack 64
  3. .data
  4. .code
  5. main proc
  6.  
  7. mov ah,1
  8. int 21h
  9. mov ah,0
  10. push ax
  11.          
  12.          
  13. mov ah,1
  14. int 21h
  15. mov ah,0
  16. push ax
  17.  
  18. pop dx
  19. mov ah,2
  20. int 21h  
  21.  
  22. pop dx
  23. mov ah,2
  24. int 21h
  25.  
  26.  
  27.  
  28.  
  29.  
  30. mov ah,4ch
  31. int 21h
  32.    
  33.     main endp
  34. end main

Coding Base is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.