Advertisement
shawonrog

REVERSE CODE IN ASM LIPU VERSION

Nov 27th, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. .MODEL SMALL
  2. .STACK 100H
  3. .DATA
  4. MSG1 DW "INPUT:$"
  5. MSG2 DW "OUTPUT:$"
  6. .CODE
  7. MAIN PROC
  8. MOV AX,@DATA
  9. MOV DS,AX
  10.  
  11. XOR CX,CX
  12. MOV AH,1
  13. INT 21H
  14.  
  15. WHILE_:
  16. CMP AL,0DH
  17. JE POP_
  18. PUSH AX
  19. INC CX
  20. INT 21H
  21. JMP WHILE_
  22.  
  23. POP_:
  24. POP DX
  25. MOV AH,2
  26. INT 21H
  27. LOOP POP_
  28.  
  29. MAIN ENDP
  30. END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement