git://git.gir.st
/
Chiptunes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5700437
)
new version
author
Tobias Girstmair
<t@thi3nkpad.lan>
Sat, 17 Nov 2018 19:42:04 +0000
(20:42 +0100)
committer
Tobias Girstmair
<t@thi3nkpad.lan>
Sat, 17 Nov 2018 19:42:04 +0000
(20:42 +0100)
foo.c
patch
|
blob
|
blame
|
history
diff --git
a/foo.c
b/foo.c
index 0e8162e0b2b51ba3ae7a9464f04d8a9826ac512b..9a7bbe9e5a4e74128f8f282ebe93ea7007d707c4 100644
(file)
--- a/
foo.c
+++ b/
foo.c
@@
-83,8
+83,8
@@
void g(void) {
for (u8 loop = 0; loop < 8; loop++) { //Note: t&2 always zero
if (t & 1) {
- a2 += i1 + ((a1+i0)>>8); //2. ADC a2, i1
- a1 += i0; //1. ADD a1, i0
+ ADD (a1, i0)
+ ADC (a2, i1, carry)
}
t >>= 1; t|=a1<<7; //3. ROR t
a1>>= 1;a1|=a2<<7; //2. ROR a1