Clean up disassembler output
This commit is contained in:
parent
9d1996c9ec
commit
ba904fdcd8
@ -342,7 +342,7 @@ impl<'a> ChunkDisassembler<'a> {
|
||||
"Instructions",
|
||||
"------------",
|
||||
"INDEX BYTECODE OPERATION INFO JUMP POSITION",
|
||||
"----- -------- --------------- ------------------------- -------------- --------",
|
||||
"----- -------- --------------- ------------------------- -------- --------",
|
||||
];
|
||||
|
||||
const CONSTANT_HEADER: [&'static str; 5] = [
|
||||
@ -445,7 +445,7 @@ impl<'a> ChunkDisassembler<'a> {
|
||||
};
|
||||
let bytecode = u32::from(instruction);
|
||||
let instruction_display = format!(
|
||||
"{index:<5} {bytecode:<08X} {operation:15} {info:25} {jump_offset:14} {position:8}"
|
||||
"{index:<5} {bytecode:<08X} {operation:15} {info:25} {jump_offset:8} {position:8}"
|
||||
);
|
||||
|
||||
disassembly.push_str(¢er(&instruction_display));
|
||||
|
Loading…
Reference in New Issue
Block a user