Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. START:
  2. MOV ACC,#0FFH ; all 1's into acc
  3. MOV R0,#080H ; port 0 sfr
  4. MOV @R0,ACC ; move FF into port 0
  5. MOV R0,#090H ; port 1
  6. MOV @R0,ACC
  7. MOV R0,#0A0H ; port 2
  8. MOV @R0,ACC
  9. MOV R0,#0B0H ; port 3
  10. MOV @R0,ACC
  11. MOV ACC,#000H ; all 0's into acc
  12. MOV R0,#080H ; port 0
  13. MOV @R0,ACC
  14. MOV R0,#090H ; port 1
  15. MOV @R0,ACC
  16. MOV R0,#0A0H ; port 2
  17. MOV @R0,ACC
  18. MOV R0,#0B0H ; port 3
  19. MOV @R0,ACC
  20. SJMP START
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement