;*************************************************************************** ; Application: Led flasher ; Author: rue_mohr ; Date: ; Assembler: ; Target: Atmel ATtiny13. ;*************************************************************************** .device ATtiny13 ; ------------- Memory locations --------------- ; ; .def bar =r01 ; one byte ram location ; ; ---------------------------------------------- .def A = r16 .def B = r17 ; and logic instructions .def C = r18 .def D = r19 ; ------------- Equates ------------------ .equ INPUT = 0 .equ OUTPUT = 1 ;========================| SYSTEM VECTORS |=========================== ; .cseg ;CODE segment .org 0x0000 rjmp init ; RESET reti ; EXT_INT0 reti ; PCINT0 (pin change) reti ; TIM0_OVF reti ; EE_RDY reti ; ANA_COMP reti ; TIM0_COMPA reti ; TIM0_COMPB reti ; WATCHDOG reti ; ADC ;=============================| MAIN |================================ ; .org 0x000A init: ; Set up stack ldi A, low(RAMEND) ; load low address of ram to R16... out SPL, A ; Set Stack Pointer to top of RAM ; Disable interrupts cli ; Set up io ports ldi A, (0<