Skip to content

Format customization #496

Closed Answered by flobernd
440bx asked this question in Q&A
Mar 10, 2024 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

What I was trying to suggest is using the regular INTEL formatter style (not MASM) and use ZydisFormatterSetProperty to customize the hexadecimal value prefix/suffix and address padding (use the defaults from the MASM style here; but nothing else). This should allow you to get your desired address output.

The regular INTEL formatter should respect the runtime address.

As you suggested, I'm going to look into using Formatter hooks instead

That would be the recommended way of getting rid of the [ and ] tokens which as well would allow you to use the regular ZydisFormatterFormatInstruction instead of the tokenizing one.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@440bx
Comment options

@flobernd
Comment options

@440bx
Comment options

@flobernd
Comment options

Answer selected by 440bx
@440bx
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants