X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugin%2Fsaveasm.cpp;h=8e1bc953864afa5615a84fa3e4d757d62ec72590;hb=9aaf1dcfa0f5d7179634ab50d414f63ed6d9d0b2;hp=aee282f7581fefde4c6077f88cf10dd8357c282b;hpb=92d715b6fea5e3d8883b7f296b8b9b0246807896;p=ia32rtools.git diff --git a/plugin/saveasm.cpp b/plugin/saveasm.cpp index aee282f..8e1bc95 100644 --- 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) {