mirror of
https://github.com/Zenithsiz/dcb.git
synced 2026-02-07 10:02:59 +00:00
Function and data instrutions are now prefixed by tabs.
This commit is contained in:
parent
7e9dec9659
commit
0924f1084b
@ -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!();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user