From b1fb2739cbf6e44ae9d9aeab6c92f3879ebe7bcf Mon Sep 17 00:00:00 2001 From: Zeex Date: Mon, 1 Sep 2014 16:28:45 +0700 Subject: [PATCH] pawndisasm: Add "no-checks" and "sleep" flags #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 */ --- source/compiler/pawndisasm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/compiler/pawndisasm.c b/source/compiler/pawndisasm.c index fd963f8..dadd1b9 100644 --- a/source/compiler/pawndisasm.c +++ b/source/compiler/pawndisasm.c @@ -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) {