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:
649bb22
)
new version
author
Tobias Girstmair
<t@thi3nkpad.lan>
Tue, 13 Nov 2018 17:47:54 +0000
(18:47 +0100)
committer
Tobias Girstmair
<t@thi3nkpad.lan>
Tue, 13 Nov 2018 17:47:54 +0000
(18:47 +0100)
foo.c
patch
|
blob
|
blame
|
history
diff --git
a/foo.c
b/foo.c
index 11e8da1b51ae749d41e318c773bb737f9d31f85c..fbe306cf4e1f5c189c37a48f8302921e112d3d80 100644
(file)
--- a/
foo.c
+++ b/
foo.c
@@
-152,7
+152,17
@@
int main(void) {
LSR (tmp)
OR (Ml, tmp)
#undef tmp
- Mh = i3<<5 | i2>>3;
+ MOV (Mh, i3)
+ SWAP (Mh)
+ ANDI (Mh, 0xf0)
+ LSL (Mh)
+ #define tmp _
+ MOV (tmp, i2)
+ LSR (tmp)
+ LSR (tmp)
+ LSR (tmp)
+ OR (Mh, tmp)
+ #undef tmp
RCALL mod3();
ADD (t, n)
LDI (o, 2)