From ed0fdd91ef6115e1d72a99163b86daab0756cd57 Mon Sep 17 00:00:00 2001 From: Zeex Date: Sun, 31 Aug 2014 14:49:06 +0700 Subject: [PATCH] pawndisasm: Fix jump/call addresses --- source/compiler/pawndisasm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/compiler/pawndisasm.c b/source/compiler/pawndisasm.c index e6ef24c..fd963f8 100644 --- a/source/compiler/pawndisasm.c +++ b/source/compiler/pawndisasm.c @@ -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; }