Lines Matching refs:instruction

10 Regular expression based single instruction parsing utility.
18 The following constants culminate to valid_instruction_re, a regex search pattern, which is used to decipher an instruction mnemonic into the base instruction and all the
84 # The following regexes take the arguments of a specific instruction (whose
86 # from the instruction.
189 '''ARM ldr/str[bh] instruction.'''
262 '''ARM ldm*/stm* instruction.'''
321 # Translate us into a ldm/stm instruction.
337 '''ARM arithmetic instruction with 3 arguments and the result is stored
385 '''ARM move instruction with 2 arguments and the result is stored
400 '''ARM halfmove instruction (movt/movw).'''
418 '''ARM comparison instruction with 2 arguments and the result is stored
459 '''Implement the ARM nop instruction.'''
468 print 'Unhandled instruction "%s" at %#x' % (self.mnemonic, self.addr)
471 '''Provide a dummy implementation of the ARM mrc instruction.'''
481 '''Provide a dummy implementation of the ARM mcr instruction.'''
491 '''Implement ARM's ubfx/sbfx instruction.'''
508 '''Implement ARM's [us]xt[bh] instruction.'''
566 instruction, args = bits[0], []
568 instruction, args = bits
570 g = valid_instruction_re.match(instruction)
572 raise FatalError("Unknown instruction %s at address %#x" % (instruction, addr))
575 instruction = g.group('instruction1')
576 if instruction is None:
577 instruction = g.group('instruction2')
589 instruction = instruction[:-len(dirflags)]
591 instruction = instruction[:-len(cpsflags)]
592 #print 'instruction :' + instruction
593 cls = mnemonic_to_class_map.get(instruction, UnhandledInstruction)
594 #print '%s: %s \n instruction %s \n condition %s\n dirflags %s\n cpsflags %s\n setcc %s\n args %s\n' % (addr,decoding, instruction,condition,dirflags,cpsflags,setcc,args)
597 instruction, condition, dirflags, cpsflags, setcc, args)