Exemple #1
0
 def from_bitarray(instr, processor):
     imm12 = substring(instr, 11, 0)
     rd = substring(instr, 15, 12)
     rn = substring(instr, 19, 16)
     setflags = bit_at(instr, 20)
     imm32, carry = arm_expand_imm_c(imm12, processor.registers.cpsr.c)
     return EorImmediateA1(instr, setflags=setflags, d=rd, n=rn, imm32=imm32, carry=carry)
 def from_bitarray(instr, processor):
     imm12 = substring(instr, 11, 0)
     rn = substring(instr, 19, 16)
     imm32, carry = arm_expand_imm_c(imm12, processor.registers.cpsr.c)
     return TstImmediateA1(instr, n=rn, imm32=imm32, carry=carry)