Advertisement
Guest User

ark 2k17

a guest
Mar 28th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. 4.1
  2. LJMP START; przejdź do etykiety start
  3. ORG 100H
  4. START:
  5. MOV R0,#CSDS
  6. MOV A,#00111111B
  7. MOVX @R0,A
  8. LOOP:
  9. MOV C,P3.5
  10. CPL C
  11. MOV P1.7,C
  12. LJMP LOOP
  13.  
  14. 4.2
  15.  
  16. LJMP START; przejdź do etykiety start
  17. ORG 100H
  18. START:
  19. LCALL LCD_CLR
  20. LCALL SKAN
  21. SKAN:
  22. MOV R0,#CSDS
  23. MOV R2,#6
  24. MOV R1,#00000001B
  25. MOV B,#00000000B
  26. NEXT:
  27. JNB P3.5,L1
  28. L0:
  29. MOV A,R1
  30. ORL A,B
  31. L1:
  32. MOV A,R1
  33. RL A
  34. MOV R1,A
  35. DJNZ R2,NEXT
  36. MOV A,B
  37. LCALL WRITE_HEX
  38. LJMP LOOP
  39. LOOP:
  40. SJMP LOOP
  41.  
  42.  
  43. 4.3
  44. LJMP START; przejdź do etykiety start
  45. ORG 100H
  46. START:
  47. LOOP:
  48. MOV R1,#00000000B
  49. MOV R0,#CSDS
  50. MOV A,#00000001B
  51. MOVX @R0,A
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement