git://git.gir.st
/
Chiptunes-pms150c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
837c7d6
)
new version
author
Tobias Girstmair
<tobi@isticktoit.net>
Thu, 4 Mar 2021 13:05:26 +0000
(14:05 +0100)
committer
Tobias Girstmair
<tobi@isticktoit.net>
Thu, 4 Mar 2021 13:05:26 +0000
(14:05 +0100)
bsv.c
patch
|
blob
|
blame
|
history
diff --git
a/bsv.c
b/bsv.c
index dd971ab70b5cc5f3291498ffcd1532ee300c5012..7f0d22a437bd53369bc95937c715bc4105633d47 100644
(file)
--- a/
bsv.c
+++ b/
bsv.c
@@
-92,11
+92,12
@@
void main(void){
AND (acc, 3)
ADD (sample, acc)
- MOV (acc, n)
- ADD (acc, 8)
- { u8 tmp3 = ((i2<<6|i1>>2)&0x1fff)%3;
- SUB (acc, tmp3)
- } // tmp3
+ mod3hi = i2>>2;
+ mod3lo = i2<<6|i1>>2;
+ mod3();
+ acc -= n;
+ acc -= 8;
+ acc *= -1; //NEG acc
CALL (g)
SR (acc)
MOV (tmp_1, acc) // acc saved in tmp_1; fresh acc