fork download
  1. .cseg
  2. .org 1
  3. .def count =r16
  4. .def temp =r17
  5. .def delayr1 =r20
  6. .def delayr2 =r21
  7. .def delayr3 =r22
  8. .def delayr4 =r23
  9. .equ PORTB =0x05
  10. .equ DDRB =0x04
  11.  
  12. ldi temp,0xFF
  13. out DDRB, temp
  14.  
  15. ldi count, 0x00
  16.  
  17. lp:
  18. clr delayr1
  19. clr delayr2
  20. clr delayr3
  21. clr delayr4
  22. out PORTB,count
  23. inc count
  24. rjmp delay1
  25.  
  26. delay1:
  27. inc delayr1
  28. CPI delayr1,255
  29. breq delay2
  30. rjmp delay1
  31.  
  32. delay2:
  33. inc delayr2
  34. CPI delayr2,255
  35. breq lp
  36. rjmp delay1
  37.  
  38. delay3:
  39. inc delayr3
  40. CPI delayr3,255
  41. breq delay4
  42. rjmp delay2
  43.  
  44. delay4:
  45. inc delayr4
  46. CPI delayr4,255
  47. breq lp
  48. rjmp delay3
  49.  
  50.  
  51.  
  52.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty