pawndisasm: Fix jump/call addresses

This commit is contained in:
Zeex 2014-08-31 14:49:06 +07:00
parent 2796907cd7
commit ed0fdd91ef

View File

@ -296,14 +296,14 @@ cell do_proc(FILE *ftxt,const cell *params,cell opcode,cell cip)
cell do_call(FILE *ftxt,const cell *params,cell opcode,cell cip)
{
print_opcode(ftxt,opcode,cip);
fprintf(ftxt,"%08lx\n",*params+cip);
fprintf(ftxt,"%08lx\n",*params);
return 2;
}
cell do_jump(FILE *ftxt,const cell *params,cell opcode,cell cip)
{
print_opcode(ftxt,opcode,cip);
fprintf(ftxt,"%08lx\n",*params+cip);
fprintf(ftxt,"%08lx\n",*params);
return 2;
}