Function and data instrutions are now prefixed by tabs.

This commit is contained in:
Filipe Rodrigues 2021-01-16 17:33:16 +00:00
parent 7e9dec9659
commit 0924f1084b

View File

@ -129,11 +129,11 @@ fn main() -> Result<(), anyhow::Error> {
// Write the position
if cli.print_inst_pos {
print!("{pos}: ");
print!("{pos}:");
}
// Write the instruction
print!("{}", self::inst_display(&inst, &exe, Some(func), pos));
print!("\t{}", self::inst_display(&inst, &exe, Some(func), pos));
// If there's a comment, print it
if let Some(comment) = func.comments.get(&pos) {
@ -154,11 +154,11 @@ fn main() -> Result<(), anyhow::Error> {
for (pos, inst) in insts {
// Write the position
if cli.print_inst_pos {
print!("{pos}: ");
print!("{pos}:");
}
// Write the instruction
print!("{}", self::inst_display(&inst, &exe, None, pos));
print!("\t{}", self::inst_display(&inst, &exe, None, pos));
println!();
}