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:
197a541
)
new version
author
Tobias Girstmair
<t@thi3nkpad.lan>
Tue, 13 Nov 2018 17:38:27 +0000
(18:38 +0100)
committer
Tobias Girstmair
<t@thi3nkpad.lan>
Tue, 13 Nov 2018 17:38:27 +0000
(18:38 +0100)
foo.c
patch
|
blob
|
blame
|
history
diff --git
a/foo.c
b/foo.c
index b123d05b19d9ac7b25f213412ba97d5f8f337975..8aac4a8f071143c6b65d9d6e753ba70deec49a3e 100644
(file)
--- a/
foo.c
+++ b/
foo.c
@@
-141,7
+141,17
@@
int main(void) {
LSR (tmp)
MOV (x, tmp)
#undef tmp
- Ml = i2<<5 | i1>>3;
+ MOV (Ml, i2)
+ SWAP (Ml)
+ ANDI (Ml, 0xf0)
+ LSL (Ml)
+ #define tmp Mh
+ MOV (tmp, i1)
+ LSR (tmp)
+ LSR (tmp)
+ LSR (tmp)
+ OR (Ml, tmp)
+ #undef tmp
Mh = i3<<5 | i2>>3;
RCALL mod3();
ADD (t, n)