Lines Matching refs:code
134 static void decode_token(uint32_t code, char *token, char *instr_part) in decode_token() argument
137 sprintf(instr_part, "0x%x", bits_unsigned(code, 21,10)); in decode_token()
139 sprintf(instr_part, "0x%x", bits_unsigned(code, 20,5)); in decode_token()
141 sprintf(instr_part, "lsl #%d", bits_unsigned(code, 23,22) * 12); in decode_token()
145 sprintf(instr_part, "%s", shift2_table[bits_unsigned(code, 23,22)]); in decode_token()
148 sprintf(instr_part, "%d", bits_unsigned(code, 22,21) * 16); in decode_token()
150 sprintf(instr_part, "%d", bits_unsigned(code, 15,10)); in decode_token()
152 sprintf(instr_part, "%d", bits_unsigned(code, 12,12) * 2); in decode_token()
154 sprintf(instr_part, "%d", bits_unsigned(code, 12,12) * 3); in decode_token()
156 sprintf(instr_part, "%d", bits_unsigned(code, 12,10)); in decode_token()
160 sprintf(instr_part, "%s", amt5_table[bits_unsigned(code, 12,12)]); in decode_token()
163 sprintf(instr_part, "%d", bits_unsigned(code, 12,12)); in decode_token()
165 sprintf(instr_part, "%d", bits_signed(code, 20,12)); in decode_token()
167 sprintf(instr_part, "%d", bits_unsigned(code, 21,16)); in decode_token()
169 sprintf(instr_part, "%d", bits_unsigned(code, 15,10)); in decode_token()
171 sprintf(instr_part, "%d", bits_unsigned(code, 15,10)); in decode_token()
173 sprintf(instr_part, "%s", token_cc_table[bits_unsigned(code, 15,12)]); in decode_token()
175 sprintf(instr_part, "%s", token_cc_table[bits_unsigned(code, 4,0)]); in decode_token()
183 sprintf(instr_part, "%s", token_r1_table[bits_unsigned(code, 15,13)]); in decode_token()
191 sprintf(instr_part, "%s", token_r2_table[bits_unsigned(code, 15,13)]); in decode_token()
195 uint32_t reg = bits_unsigned(code, 20,16); in decode_token()
208 sprintf(instr_part, "%s", token_ext1_table[bits_unsigned(code, 15,13)]); in decode_token()
217 sprintf(instr_part, "%s", token_ext2_table[bits_unsigned(code, 15,13)]); in decode_token()
221 int32_t offset = bits_signed(code, 23,5) * 4; in decode_token()
229 uint32_t reg = bits_unsigned(code, 9, 5); in decode_token()
237 uint32_t reg = bits_unsigned(code, 4, 0); in decode_token()
244 decode_rx_zr_token(bits_unsigned(code, 9, 5), "x", instr_part); in decode_token()
246 decode_rx_zr_token(bits_unsigned(code, 4, 0), "x", instr_part); in decode_token()
248 decode_rx_zr_token(bits_unsigned(code, 20, 16), "x", instr_part); in decode_token()
250 decode_rx_zr_token(bits_unsigned(code, 14, 10), "x", instr_part); in decode_token()
252 decode_rx_zr_token(bits_unsigned(code, 4, 0), "x", instr_part); in decode_token()
254 decode_rx_zr_token(bits_unsigned(code, 9, 5), "w", instr_part); in decode_token()
256 decode_rx_zr_token(bits_unsigned(code, 4, 0), "w", instr_part); in decode_token()
258 decode_rx_zr_token(bits_unsigned(code, 20, 16), "w", instr_part); in decode_token()
260 decode_rx_zr_token(bits_unsigned(code, 14, 10), "w", instr_part); in decode_token()
262 decode_rx_zr_token(bits_unsigned(code, 4, 0), "w", instr_part); in decode_token()
270 int arm64_disassemble(uint32_t code, char* instr) in arm64_disassemble() argument
284 if((code & entry->mask) == entry->value) in arm64_disassemble()
305 decode_token(code, token, instr_part); in arm64_disassemble()