fork download
  1. .cseg
  2. .org 0
  3.  
  4. .def led1 =r16
  5. .def led2 =r17
  6. .def led3 =r18
  7. .def temp =r19
  8. .def lop1 =r20
  9. .def lop2 =r21
  10. .def lop3 =r22
  11.  
  12. .equ DDRB = 0x17
  13. .equ PORTB = 0x18
  14.  
  15.  
  16. ldi temp,0xFF
  17. ldi led1,0x1F
  18. ldi led2,0xC3
  19. ldi led3,0xF8
  20. out DDRB,temp
  21. out PORTB,temp
  22.  
  23. loop:
  24. out PORTB,temp
  25. out PORTB,led1
  26. rjmp delay1
  27. out PORTB,temp
  28. out PORTB,led2
  29. call delay1
  30. out PORTB,temp
  31. out PORTB,led3
  32. call delay1
  33. ret
  34.  
  35. delay1:
  36. ldi lop3,0x02
  37. delay:
  38. ldi lop2,0x02
  39. outter:
  40. ldi lop1,0x02
  41. inner:
  42. dec lop1
  43. brne inner
  44. dec lop2
  45. brne outter
  46. dec lop3
  47. brne delay
  48. ret
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty