;SimSam 1.0 ;by Dan Green, 4ms Pedals ;unveiled at Handmade Music Austin #4, Jan 17, 2010 .include "tn85def.inc" .EQU MYRAMSTART = 0x0070 .EQU MYRAMEND = 0x0180 .EQU MYRAMPLAYSTART = 0x0072 .EQU MYRAMPLAYEND = 0x017E .DEF button0downvar = R21 .DEF ADC_SCALE = R25 .DEF T1_SCALE = R20 ;Interrupt vector table rjmp init .org OC1Aaddr ; Interrupt vector for timer1 output compare match A rjmp OC1A_isr ;Main code init: ldi r16, HIGH(RAMEND) ; Initiate Stack pointer out SPH, r16 ldi r16, LOW(RAMEND) out SPL, r16 ldi r16, 0x00 out EEARH, r16 ldi r16, 0x10 ; Load oscillator calibration byte out EEARL, r16 ldi r16, (1<