Skip to content

Commit 74da4e1

Browse files
joevtdingusdev
authored andcommitted
debugger: Ensure cout fill changes back to right.
1 parent c0cd183 commit 74da4e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

debugger/debugger.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,14 @@ static uint32_t disasm_68k(uint32_t count, uint32_t address) {
160160
if (cs_disasm_iter(cs_handle, &code_ptr, &code_size, &dis_addr, insn)) {
161161
cout << COUTX << insn->address << " ";
162162
cout << setfill(' ');
163-
cout << setw(10) << left << insn->mnemonic << insn->op_str << endl;
163+
cout << setw(10) << left << insn->mnemonic << insn->op_str << right << endl;
164164
address = static_cast<uint32_t>(dis_addr);
165165
} else {
166166
print_bin:
167167
cout << COUTX << address << " ";
168168
cout << setfill(' ');
169169
cout << setw(10) << left << "dc.w" << "$" << hex <<
170-
((code[0] << 8) | code[1]) << endl;
170+
((code[0] << 8) | code[1]) << right << endl;
171171
address += 2;
172172
}
173173
}
@@ -435,7 +435,7 @@ static uint32_t disasm(uint32_t count, uint32_t address) {
435435
ctx.instr_code = READ_DWORD_BE_A(mmu_translate_imem(ctx.instr_addr));
436436
cout << COUT08X << ctx.instr_addr;
437437
cout << ": " << COUT08X << ctx.instr_code;
438-
cout << " " << disassemble_single(&ctx) << setfill(' ') << left << endl;
438+
cout << " " << disassemble_single(&ctx) << setfill(' ') << right << endl;
439439
}
440440
return ctx.instr_addr;
441441
}

0 commit comments

Comments
 (0)