projects
/
430.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6852ca5
)
msp4th: bugfix o2w, save some bytes
author
Dan White
<dan@whiteaudio.com>
Tue, 14 May 2013 16:32:41 +0000
(11:32 -0500)
committer
Dan White
<dan@whiteaudio.com>
Tue, 14 May 2013 16:32:41 +0000
(11:32 -0500)
msp4th/msp4th.c
patch
|
blob
|
history
diff --git
a/msp4th/msp4th.c
b/msp4th/msp4th.c
index 96b8e5b1be5b5bc3533ae843c25e992fc785acbe..432ea1519a571020736ab4339913306a8963fe4e 100644
(file)
--- a/
msp4th/msp4th.c
+++ b/
msp4th/msp4th.c
@@
-767,9
+767,10
@@
void opcode2wordFunc(void)
// walk list to get word
// skip to start of the expected location
while (n < opcode) {
- while (*list >
=
' ') {
+ while (*list > ' ') {
list++;
}
+ list++;
n++;
}
@@
-1007,7
+1008,6
@@
void printHexChar(int16_t n)
void printHexByte(int16_t n)
{
- n &= 0xFF;
printHexChar(n >> 4);
printHexChar(n);
}
@@
-1015,7
+1015,8
@@
void printHexByte(int16_t n)
void printHexWord(int16_t n)
{
- printHexByte(n >> 8);
+ // suppress sign bit extension
+ printHexByte((uint16_t)n >> 8);
printHexByte(n);
}