Skip to content

Commit

Permalink
pawndisasm: Add "no-checks" and "sleep" flags
Browse files Browse the repository at this point in the history
#define AMX_FLAG_SLEEP    0x08  /* script uses the sleep instruction (possible re-entry or power-down mode) */
#define AMX_FLAG_NOCHECKS 0x10  /* no array bounds checking; no BREAK opcodes */
  • Loading branch information
Zeex committed Sep 1, 2014
1 parent ed0fdd9 commit b1fb273
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/compiler/pawndisasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,10 @@ int main(int argc,char *argv[])
fprintf(fplist,"compact-encoding ");
if ((amxhdr.flags & AMX_FLAG_DEBUG)!=0)
fprintf(fplist,"debug-info ");
if ((amxhdr.flags & AMX_FLAG_NOCHECKS)!=0)
fprintf(fplist,"no-checks ");
if ((amxhdr.flags & AMX_FLAG_SLEEP)!=0)
fprintf(fplist,"sleep ");
fprintf(fplist,"\n\n");
/* load the code block */
if ((code=malloc(codesize))==NULL) {
Expand Down

0 comments on commit b1fb273

Please sign in to comment.