Skip to content

Flags

description = 'Modify the flags register.' module-attribute

epilog = 'Examples:\n On X86/X64:\n setflag ZF 1 -- set zero flag\n setflag CF 0 -- unset carry flag\n\n On ARM:\n setflag Z 0 -- unset the Z cpsr/xpsr flag\n\n To see flags registers:\n info reg eflags -- on x86/x64\n info reg cpsr/xpsr -- on ARM (specific register may vary)\n\n(This command supports flags registers that are defined for architectures in the pwndbg/regs.py file)\n ' module-attribute

parser = argparse.ArgumentParser(description=description, epilog=epilog, formatter_class=RawTextHelpFormatter) module-attribute

setflag(flag, value)