Merge pull request #236 from Daniel-Cortez/pawndisasm-patch

pawndisasm: Fix 'switch' argument
This commit is contained in:
Zeex 2018-01-07 08:30:15 +06:00 committed by GitHub
commit 3ee21806d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -355,7 +355,7 @@ cell do_sysreq(FILE *ftxt,const cell *params,cell opcode,cell cip)
cell do_switch(FILE *ftxt,const cell *params,cell opcode,cell cip)
{
print_opcode(ftxt,opcode,cip);
fprintf(ftxt,"%08"PRIxC"\n",*params+cip);
fprintf(ftxt,"%08"PRIxC"\n",*params);
return 2;
}