Skip to content

Commit

Permalink
pawndisasm: Fix jump/call addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeex committed Aug 31, 2014
1 parent 2796907 commit ed0fdd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/compiler/pawndisasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ed0fdd9

Please sign in to comment.