comment blink.asm a bit
This commit is contained in:
		
							parent
							
								
									9fa50e2f09
								
							
						
					
					
						commit
						33424e70b1
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
					@ -1,17 +1,25 @@
 | 
				
			||||||
.INCLUDE "tn13def.inc"
 | 
					.INCLUDE "tn13def.inc"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					; data direction = output
 | 
				
			||||||
	sbi DDRB, 1 ; PB1
 | 
						sbi DDRB, 1 ; PB1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
loop:
 | 
					loop:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					; clear bit
 | 
				
			||||||
	cbi PORTB, 1
 | 
						cbi PORTB, 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					; wait
 | 
				
			||||||
loop1:
 | 
					loop1:
 | 
				
			||||||
 	sbiw ZL, 1
 | 
					 	sbiw ZL, 1
 | 
				
			||||||
	brne loop1
 | 
						brne loop1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					; set bit
 | 
				
			||||||
	sbi PORTB, 1
 | 
						sbi PORTB, 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					; wait
 | 
				
			||||||
loop2:
 | 
					loop2:
 | 
				
			||||||
	sbiw ZL, 1
 | 
						sbiw ZL, 1
 | 
				
			||||||
	brne loop2
 | 
						brne loop2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					; again! again! again!
 | 
				
			||||||
	rjmp loop
 | 
						rjmp loop
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue