Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. ;Zad 4
  2.  
  3. CALL 10
  4. CALL 28
  5. CALL 4E
  6. JMP Koniec
  7.  
  8. ORG 10
  9. Start:
  10. MOV CL,70
  11. Podaj:
  12. IN 00
  13. MOV [CL],AL
  14. CMP CL,AF
  15. JZ Powrot1
  16. INC CL
  17. CMP AL,0D
  18. JZ Powrot1
  19. JMP Podaj
  20. Powrot1:
  21. RET
  22.  
  23. ORG 28
  24. MOV CL,6F
  25. Zmien:
  26. INC CL
  27. MOV AL,[CL]
  28. CMP AL,0D
  29. JZ Powrot2
  30. CMP AL,41
  31. JS Zmien
  32. CMP AL,5B
  33. JNS Zmien
  34. ADD AL,20
  35. MOV [CL],AL
  36. CMP CL,AF
  37. JZ Powrot2
  38. JMP Zmien
  39. Powrot2:
  40. RET
  41.  
  42. ORG 4E
  43. MOV CL,70
  44. MOV DL,C0
  45. Wyswietl:
  46. MOV AL,[CL]
  47. CMP AL,0D
  48. JZ Powrot3
  49. MOV [DL],AL
  50. CMP CL,AF
  51. JZ Powrot3
  52. INC CL
  53. INC DL
  54. JMP Wyswietl
  55. Powrot3:
  56. RET
  57.  
  58. Koniec:
  59. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement