notaz.gp2x.de
/
ia32rtools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92d715b
)
plugin: don't overapply near ptr
author
notaz
<notasas@gmail.com>
Tue, 25 Mar 2014 01:41:13 +0000
(
03:41
+0200)
committer
notaz
<notasas@gmail.com>
Tue, 25 Mar 2014 01:41:13 +0000
(
03:41
+0200)
plugin/saveasm.cpp
patch
|
blob
|
blame
|
history
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) {
- p = strchr(fw, 'j');
+ p = NULL;
+ if (fw != buf && fw[0] == 'j')
+ p = fw;
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);
+ jmp_near = 0;
}
}
if (word_imm) {