def from_bitarray(instr, processor):
     rm = substring(instr, 3, 0)
     type_o = substring(instr, 6, 5)
     rs = substring(instr, 11, 8)
     rn = substring(instr, 19, 16)
     if rn == 0b1111 or rm == 0b1111 or rs == 0b1111:
         print('unpredictable')
     else:
         shift_t = decode_reg_shift(type_o)
         return CmpRegisterShiftedRegisterA1(instr, m=rm, s=rs, n=rn, shift_t=shift_t)
Пример #2
0
 def from_bitarray(instr, processor):
     rm = substring(instr, 3, 0)
     type_o = substring(instr, 6, 5)
     rs = substring(instr, 11, 8)
     rd = substring(instr, 15, 12)
     rn = substring(instr, 19, 16)
     s = bit_at(instr, 20)
     if rd == 0b1111 or rn == 0b1111 or rm == 0b1111 or rs == 0b1111:
         print('unpredictable')
     else:
         shift_t = decode_reg_shift(type_o)
         return SubRegisterShiftedRegisterA1(instr, setflags=s, m=rm, s=rs, d=rd, n=rn, shift_t=shift_t)