We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A lot of assembly listings align instruction operands to aid in reading. For example:
and r8d, -86 imul r8, rax or r8, r9 and r8, rcx movzx r9d, byte ptr [rdi + rsi + 6] mov r10d, r9d and r10d, 85 imul r10, rax
to
I'd like to suggest a feature enhancement to align operands via an option, e.g. --align.
--align
The text was updated successfully, but these errors were encountered:
I thought about it. This only works for instructions that are one word long, but there are instructions that go with prefixes:
lock inc word [edi + r10d*4]
or
rep stosb
Those should be aligned to the second space if present at all...
Sorry, something went wrong.
I've made the following change for myself. Works okay for me.
$ git diff diff --git a/src/asm/statements.rs b/src/asm/statements.rs index 0635431..7e3fa0f 100644 --- a/src/asm/statements.rs +++ b/src/asm/statements.rs @@ -104,7 +104,7 @@ impl std::fmt::Display for Instruction<'_> { if self.op.starts_with("#DEBUG_VALUE:") { write!(f, "{}", color!(self.op, OwoColorize::blue))?; } else { - write!(f, "{}", color!(self.op, OwoColorize::bright_blue))?; + write!(f, "{:8}", color!(self.op, OwoColorize::bright_blue))?; } if let Some(args) = self.args { let args = demangle::contents(args, display);
No branches or pull requests
A lot of assembly listings align instruction operands to aid in reading. For example:
to
I'd like to suggest a feature enhancement to align operands via an option, e.g.
--align
.The text was updated successfully, but these errors were encountered: