Fix long relative jmp assemble in x86.nz plugin

This commit is contained in:
pancake 2014-09-09 01:06:21 +02:00
parent 32173be9ee
commit 0343c97b71

View File

@ -1040,9 +1040,10 @@ return -1;
data[l++] = (char)(dst-2);
return l;
} else {
/* absolute address */
addr-=5;
data[l++]= 0xe9;
/* relative address */
addr -= offset;
addr -= 5;
data[l++] = 0xe9;
data[l++] = ptr[0];
data[l++] = ptr[1];
data[l++] = ptr[2];