git://git.gir.st
/
Chiptunes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
new version
[Chiptunes.git]
/
foo.c
diff --git
a/foo.c
b/foo.c
index fbe306cf4e1f5c189c37a48f8302921e112d3d80..a9b356b5a6262a542812db847958dbc146b4313a 100644
(file)
--- a/
foo.c
+++ b/
foo.c
@@
-198,7
+198,17
@@
int main(void) {
LSR (tmp)
OR (Ml, tmp)
#undef tmp
- Mh = i3<<6 | i2>>2;
+ MOV (Mh, i3)
+ SWAP (Mh)
+ ANDI (Mh, 0xf0)
+ LSL (Mh)
+ LSL (Mh)
+ #define tmp _
+ MOV (tmp, i2)
+ LSR (tmp)
+ LSR (tmp)
+ OR (Mh, tmp)
+ #undef tmp
RCALL mod3();
SUB (t, n)
NEG (t)