Advertisement
Guest User

Askisi_fanaria-ledakia

a guest
Nov 16th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PORTD.DATA      EQU             $0003
  2. PORTD.DIRECTION EQU             $0007
  3. COUNTER1       EQU             $0040
  4. COUNTER2       EQU             $0041
  5. COUNTER3       EQU             $0042
  6. COUNTER4       EQU             $0043
  7. COUNTER5       EQU             $0044  
  8. COUNTER6       EQU             $0045
  9. ROM.START      EQU             $8000
  10. RESET.VECTOR    EQU             $FFFE
  11.  
  12.                 ORG             ROM.START
  13.  
  14.                 BSET            0,$001F
  15.                 MOV             #$1F,$003C
  16.  
  17.                 BSET            4,PORTD.DIRECTION
  18.                 BSET            5,PORTD.DIRECTION
  19.  
  20. LOOP           BSET            4,PORTD.DATA
  21.                 JSR             DELAY.10SEC
  22.                 BCLR            4,PORTD.DATA
  23.                 BSET            5,PORTD.DATA
  24.                 JSR             DELAY.7SEC
  25.                 BCLR            5,PORTD.DATA
  26.                
  27.                 JMP             LOOP
  28.  
  29. DELAY.10SEC    MOV             #!153,COUNTER3
  30. LOAD.COUNTER2  MOV             #!255,COUNTER2
  31. LOAD.COUNTER1  MOV             #!255,COUNTER1
  32. DELAY.LOOP     DBNZ            COUNTER1,DELAY.LOOP
  33.                 DBNZ            COUNTER2,LOAD.COUNTER1
  34.                 DBNZ            COUNTER3,LOAD.COUNTER2
  35.                 RTS
  36.  
  37. DELAY.7SEC     MOV             #!107,COUNTER6
  38. LOAD.COUNTER5  MOV             #!255,COUNTER5
  39. LOAD.COUNTER6  MOV             #!255,COUNTER4
  40. DELAY.LOOP1    DBNZ            COUNTER4,DELAY.LOOP1
  41.                 DBNZ            COUNTER5,LOAD.COUNTER5
  42.                 DBNZ            COUNTER6,LOAD.COUNTER6
  43.                 RTS
  44.  
  45.                 ORG             RESET.VECTOR
  46.                 FDB             ROM.START
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement