Advertisement
shawonrog

1st code assembly LIPU VERSION

Sep 19th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. .STACK 100H
  2. .MODEL SMALL
  3. .DATA
  4. S DW "SCAN VALUE:$"
  5. P DW "PRINT SCAN VALUE :$"
  6.  
  7. .CODE
  8. MAIN PROC
  9. ;SCAN PRINT
  10. MOV AX,@DATA
  11. MOV DS,AX
  12. LEA DX,S
  13. MOV AH,9
  14. INT 21H
  15.  
  16.  
  17. ;scan
  18. MOV AH,1
  19. INT 21H
  20.  
  21. MOV BL,AL
  22.  
  23. ;NEW LINE
  24. MOV AH,2
  25. MOV DL,0DH
  26. INT 21H
  27. MOV DL,0AH
  28. INT 21H
  29.  
  30. ;PRINT P
  31.  
  32. LEA DX,P
  33. MOV AH,9
  34. INT 21H
  35.  
  36. ;PRINT
  37. MOV AH,2
  38. MOV DL,BL
  39. INT 21H
  40. MAIN ENDP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement