2 #include <pic12f1840.inc>
13 PSECT mytext,local,class=CODE,delta=2
15 ; send the whole pile of data
17 ; copy the led colour array into FSR0 for fast access
24 ; load next byte from array into working reg
28 MOVLW 8 ; reset bit count
32 ; you assume its a zero then test if its one
36 MOVLW 0xF8 ; 11111000B
38 ; // wait until the buffer is empty
45 MOVWF BANKMASK(SSP1BUF)