]>
git.gir.st - Chiptunes.git/blob - foo.c
3 typedef unsigned char u8
;
6 0x84, 0x9d, 0xb0, 0x69, 0x9d, 0x84, 0x69, 0x58,
7 0x75, 0x8c, 0xb0, 0x69, 0x8c, 0x75, 0x69, 0x58
27 t
= (((i1
&0x1f)<<8|i0
)*t
)>>8 >> o
;
37 //TODO: clear all vars/registers
89 //NOTE: we only need 1 bit of the upper byte. instead of using a u16 and LSR'ing,
90 //we can use a u8 for sum and use ROR (which shifts the carry in)
110 t
= ((i3
&0x01)<<13 | i2
<<5 | i1
>>3) % 3;
120 unsigned short sum
= 0; //XXX
139 t
= ((i3
&0x01)<<14 | i2
<<6 | i1
>>2) % 3;
152 ADC (i2
, tmp
, !i0
&&!i1
)
153 ADC (i3
, tmp
, !i0
&&!i1
&&!i2
)