def do_setmode(self, arg):
        ''' shift from ASM to DISASM '''
        op_modes = config.get_op_modes()
        if arg in op_modes:
            op_mode = op_modes[arg]
            op_mode.cmdloop()
        else:
            print("Error: unknown operational mode, please use 'help setmode'.")
def do_setmode ( self , arg ) : op_modes = config . get_op_modes ( ) if arg in op_modes : op_mode = op_modes [ arg ] op_mode . cmdloop ( ) else : print ( "Error: unknown operational mode, please use 'help setmode'." )
shift from ASM to DISASM