Lines Matching refs:buffer

44     ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)  in ZydisFormatterATTFormatInstruction()  argument
47 ZYAN_ASSERT(buffer); in ZydisFormatterATTFormatInstruction()
52 ZYAN_CHECK(formatter->func_print_prefixes(formatter, buffer, context)); in ZydisFormatterATTFormatInstruction()
53 ZYAN_CHECK(formatter->func_print_mnemonic(formatter, buffer, context)); in ZydisFormatterATTFormatInstruction()
56 ZYDIS_BUFFER_REMEMBER(buffer, state_mnemonic); in ZydisFormatterATTFormatInstruction()
71 ZYDIS_BUFFER_REMEMBER(buffer, buffer_state); in ZydisFormatterATTFormatInstruction()
75 ZYDIS_BUFFER_APPEND(buffer, DELIM_OPERAND); in ZydisFormatterATTFormatInstruction()
78 ZYDIS_BUFFER_APPEND(buffer, DELIM_MNEMONIC); in ZydisFormatterATTFormatInstruction()
87 status = formatter->func_pre_operand(formatter, buffer, context); in ZydisFormatterATTFormatInstruction()
90 ZYAN_CHECK(ZydisFormatterBufferRestore(buffer, buffer_state)); in ZydisFormatterATTFormatInstruction()
102 status = formatter->func_format_operand_reg(formatter, buffer, context); in ZydisFormatterATTFormatInstruction()
105 status = formatter->func_format_operand_mem(formatter, buffer, context); in ZydisFormatterATTFormatInstruction()
108 status = formatter->func_format_operand_ptr(formatter, buffer, context); in ZydisFormatterATTFormatInstruction()
111 status = formatter->func_format_operand_imm(formatter, buffer, context); in ZydisFormatterATTFormatInstruction()
118 ZYAN_CHECK(ZydisFormatterBufferRestore(buffer, buffer_state)); in ZydisFormatterATTFormatInstruction()
128 status = formatter->func_post_operand(formatter, buffer, context); in ZydisFormatterATTFormatInstruction()
131 ZYAN_CHECK(ZydisFormatterBufferRestore(buffer, buffer_state)); in ZydisFormatterATTFormatInstruction()
148 ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context, in ZydisFormatterATTFormatInstruction()
153 ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context, in ZydisFormatterATTFormatInstruction()
157 ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context, in ZydisFormatterATTFormatInstruction()
159 ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context, in ZydisFormatterATTFormatInstruction()
180 ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context, in ZydisFormatterATTFormatInstruction()
183 ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context, in ZydisFormatterATTFormatInstruction()
185 ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context, in ZydisFormatterATTFormatInstruction()
201 ZydisFormatterBuffer* buffer, ZydisFormatterContext* context) in ZydisFormatterATTFormatOperandMEM() argument
204 ZYAN_ASSERT(buffer); in ZydisFormatterATTFormatOperandMEM()
207 ZYAN_CHECK(formatter->func_print_segment(formatter, buffer, context)); in ZydisFormatterATTFormatOperandMEM()
218 ZYAN_CHECK(formatter->func_print_address_abs(formatter, buffer, context)); in ZydisFormatterATTFormatOperandMEM()
228 ZYAN_CHECK(formatter->func_print_address_abs(formatter, buffer, context)); in ZydisFormatterATTFormatOperandMEM()
231 ZYAN_CHECK(formatter->func_print_disp(formatter, buffer, context)); in ZydisFormatterATTFormatOperandMEM()
239 ZYDIS_BUFFER_APPEND(buffer, MEMORY_BEGIN_ATT); in ZydisFormatterATTFormatOperandMEM()
243 ZYAN_CHECK(formatter->func_print_register(formatter, buffer, context, in ZydisFormatterATTFormatOperandMEM()
248 ZYDIS_BUFFER_APPEND(buffer, DELIM_MEMORY); in ZydisFormatterATTFormatOperandMEM()
249 ZYAN_CHECK(formatter->func_print_register(formatter, buffer, context, in ZydisFormatterATTFormatOperandMEM()
255 ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_DELIMITER); in ZydisFormatterATTFormatOperandMEM()
256 ZYDIS_BUFFER_APPEND(buffer, DELIM_MEMORY); in ZydisFormatterATTFormatOperandMEM()
257 ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_IMMEDIATE); in ZydisFormatterATTFormatOperandMEM()
258 ZYAN_CHECK(ZydisStringAppendDecU(&buffer->string, context->operand->mem.scale, 0, in ZydisFormatterATTFormatOperandMEM()
263 ZYDIS_BUFFER_APPEND(buffer, MEMORY_END_ATT); in ZydisFormatterATTFormatOperandMEM()
275 ZydisFormatterBuffer* buffer, ZydisFormatterContext* context) in ZydisFormatterATTPrintMnemonic() argument
278 ZYAN_ASSERT(buffer); in ZydisFormatterATTPrintMnemonic()
287 ZYDIS_BUFFER_APPEND_CASE(buffer, INVALID_MNEMONIC, formatter->case_mnemonic); in ZydisFormatterATTPrintMnemonic()
291 ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_MNEMONIC); in ZydisFormatterATTPrintMnemonic()
294 ZYAN_CHECK(ZydisStringAppendShortCase(&buffer->string, &STR_FAR_ATT, in ZydisFormatterATTPrintMnemonic()
297 ZYAN_CHECK(ZydisStringAppendShortCase(&buffer->string, mnemonic, formatter->case_mnemonic)); in ZydisFormatterATTPrintMnemonic()
315 case 8: ZydisStringAppendShort(&buffer->string, &STR_SIZE_8_ATT ); break; in ZydisFormatterATTPrintMnemonic()
316 case 16: ZydisStringAppendShort(&buffer->string, &STR_SIZE_16_ATT ); break; in ZydisFormatterATTPrintMnemonic()
317 case 32: ZydisStringAppendShort(&buffer->string, &STR_SIZE_32_ATT ); break; in ZydisFormatterATTPrintMnemonic()
318 case 64: ZydisStringAppendShort(&buffer->string, &STR_SIZE_64_ATT ); break; in ZydisFormatterATTPrintMnemonic()
319 case 128: ZydisStringAppendShort(&buffer->string, &STR_SIZE_128_ATT); break; in ZydisFormatterATTPrintMnemonic()
320 case 256: ZydisStringAppendShort(&buffer->string, &STR_SIZE_256_ATT); break; in ZydisFormatterATTPrintMnemonic()
321 case 512: ZydisStringAppendShort(&buffer->string, &STR_SIZE_512_ATT); break; in ZydisFormatterATTPrintMnemonic()
333 return ZydisStringAppendShortCase(&buffer->string, &STR_SHORT, in ZydisFormatterATTPrintMnemonic()
336 return ZydisStringAppendShortCase(&buffer->string, &STR_NEAR, in ZydisFormatterATTPrintMnemonic()
347 ZydisFormatterBuffer* buffer, ZydisFormatterContext* context, ZydisRegister reg) in ZydisFormatterATTPrintRegister() argument
352 ZYAN_ASSERT(buffer); in ZydisFormatterATTPrintRegister()
355 ZYDIS_BUFFER_APPEND(buffer, REGISTER); in ZydisFormatterATTPrintRegister()
359 return ZydisStringAppendShortCase(&buffer->string, &STR_INVALID_REG, in ZydisFormatterATTPrintRegister()
362 return ZydisStringAppendShortCase(&buffer->string, str, formatter->case_registers); in ZydisFormatterATTPrintRegister()
366 ZydisFormatterBuffer* buffer, ZydisFormatterContext* context) in ZydisFormatterATTPrintAddressABS() argument
369 ZYAN_ASSERT(buffer); in ZydisFormatterATTPrintAddressABS()
375 ZYDIS_BUFFER_APPEND(buffer, MUL); in ZydisFormatterATTPrintAddressABS()
378 return ZydisFormatterBasePrintAddressABS(formatter, buffer, context); in ZydisFormatterATTPrintAddressABS()
382 ZydisFormatterBuffer* buffer, ZydisFormatterContext* context) in ZydisFormatterATTPrintDISP() argument
385 ZYAN_ASSERT(buffer); in ZydisFormatterATTPrintDISP()
388 ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_DISPLACEMENT); in ZydisFormatterATTPrintDISP()
393 ZYDIS_STRING_APPEND_NUM_S(formatter, formatter->disp_base, &buffer->string, in ZydisFormatterATTPrintDISP()
398 ZYDIS_STRING_APPEND_NUM_U(formatter, formatter->disp_base, &buffer->string, in ZydisFormatterATTPrintDISP()
410 ZydisFormatterBuffer* buffer, ZydisFormatterContext* context) in ZydisFormatterATTPrintIMM() argument
413 ZYAN_ASSERT(buffer); in ZydisFormatterATTPrintIMM()
416 ZYDIS_BUFFER_APPEND(buffer, IMMEDIATE); in ZydisFormatterATTPrintIMM()
417 return ZydisFormatterBasePrintIMM(formatter, buffer, context); in ZydisFormatterATTPrintIMM()