]>
git.gir.st - Chiptunes-pms150c.git/blob - bsv.c
4adf7a8725a2502d1b487c0efee8c014618fa1b9
3 typedef unsigned char u8
;
12 0x84, 0x9d, 0xb0, 0x69, 0x9d, 0x84, 0x69, 0x58,
13 0x75, 0x8c, 0xb0, 0x69, 0x8c, 0x75, 0x69, 0x58
17 u8 notes_ix
= acc
& 0x7;
20 u8 result
= ((i1
<<8|i0
)*notes
[notes_ix
])>>8; // keep hi byte
28 /*n = i2<<2 | i1>>6;*/
49 MOV (tmp_1
, acc
) // fresh tmp_1:
54 OR (acc
, tmp_1
) // tmp_1 done.
63 { u8 tmp2
= (i2
<<5|i1
>>3)%3;//TODO
70 MOV (tmp_1
, acc
) // acc saved in tmp_1; fresh acc
72 // shift-divide by six
75 AND (acc
, tmp_1
) // acc restored from tmp_1
80 { u8 tmp3
= (i2
<<6|i1
>>2)%3;
86 MOV (tmp_1
, acc
) // acc saved in tmp_1; fresh acc
87 // shift-divide by ten
90 AND (acc
, tmp_1
) // acc restored from tmp_1
100 i2
+= !i1
&& !i0
; // ADDC i2