Lines Matching refs:read16
592 (read16(loc) & 0xfbc0) | // opcode cond in relocate()
609 bool isBlx = (read16(loc + 2) & 0x1000) == 0; in relocate()
619 write16(loc + 2, read16(loc + 2) & ~0x1000); in relocate()
621 write16(loc + 2, (read16(loc + 2) & ~0x1000) | 1 << 12); in relocate()
631 (read16(loc + 2) & 0xd000) | // opcode in relocate()
647 (read16(loc + 2) & 0xd000) | // opcode in relocate()
675 (read16(loc + 2) & 0x8f00) | // opcode in relocate()
688 (read16(loc + 2) & 0x8f00) | // opcode in relocate()
693 write16(loc, (read16(loc) &~ 0x00ff) | ((val >> 24) & 0x00ff)); in relocate()
696 write16(loc, (read16(loc) &~ 0x00ff) | ((val >> 16) & 0x00ff)); in relocate()
699 write16(loc, (read16(loc) &~ 0x00ff) | ((val >> 8) & 0x00ff)); in relocate()
702 write16(loc, (read16(loc) &~ 0x00ff) | (val & 0x00ff)); in relocate()
746 write16(loc, (read16(loc) & 0xfb0f) | sub | (imm & 0x800) >> 1); in relocate()
748 (read16(loc + 2) & 0x8f00) | (imm & 0x700) << 4 | (imm & 0xff)); in relocate()
760 write16(loc, (read16(loc) & 0xff00) | (val & 0x3fc) >> 2); in relocate()
777 write16(loc, read16(loc) | u); in relocate()
778 write16(loc + 2, (read16(loc + 2) & 0xf000) | imm12); in relocate()
821 return SignExtend64<9>(read16(buf) << 1); in getImplicitAddend()
823 return SignExtend64<12>(read16(buf) << 1); in getImplicitAddend()
826 uint16_t hi = read16(buf); in getImplicitAddend()
827 uint16_t lo = read16(buf + 2); in getImplicitAddend()
838 uint16_t hi = read16(buf); in getImplicitAddend()
839 uint16_t lo = read16(buf + 2); in getImplicitAddend()
848 uint16_t hi = read16(buf); in getImplicitAddend()
849 uint16_t lo = read16(buf + 2); in getImplicitAddend()
874 uint16_t hi = read16(buf); in getImplicitAddend()
875 uint16_t lo = read16(buf + 2); in getImplicitAddend()
885 return read16(buf) & 0xff; in getImplicitAddend()
922 uint16_t hi = read16(buf); in getImplicitAddend()
923 uint16_t lo = read16(buf + 2); in getImplicitAddend()
935 return ((((read16(buf) & 0xff) << 2) + 4) & 0x3ff) - 4; in getImplicitAddend()
938 bool u = read16(buf) & 0x0080; in getImplicitAddend()
939 uint64_t imm12 = read16(buf + 2) & 0x0fff; in getImplicitAddend()
1015 write16le(buf + i, read16(buf + i)); in toLittleEndianInstructions()