notaz.gp2x.de
/
ia32rtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
plugin: don't overapply near ptr
[ia32rtools.git]
/
plugin
/
saveasm.cpp
diff --git
a/plugin/saveasm.cpp
b/plugin/saveasm.cpp
index
aee282f
..
8e1bc95
100644
(file)
--- a/
plugin/saveasm.cpp
+++ b/
plugin/saveasm.cpp
@@
-548,7
+548,9
@@
pass:
}
}
else if (jmp_near) {
}
}
else if (jmp_near) {
- p = strchr(fw, 'j');
+ p = NULL;
+ if (fw != buf && fw[0] == 'j')
+ p = fw;
while (p && *p != ' ')
p++;
while (p && *p == ' ')
while (p && *p != ' ')
p++;
while (p && *p == ' ')
@@
-556,6
+558,7
@@
pass:
if (p != NULL) {
memmove(p + 9, p, strlen(p) + 1);
memcpy(p, "near ptr ", 9);
if (p != NULL) {
memmove(p + 9, p, strlen(p) + 1);
memcpy(p, "near ptr ", 9);
+ jmp_near = 0;
}
}
if (word_imm) {
}
}
if (word_imm) {