Qt: Initial CPU debugger widget implementation

Co-Authored-By: liuk707 <62625900+liuk7071@users.noreply.github.com>
This commit is contained in:
wheremyfoodat 2025-07-07 02:11:57 +03:00
parent 8e20bd6220
commit 9dc52577ea
8 changed files with 311 additions and 6 deletions

View file

@ -23,7 +23,7 @@ namespace Common {
// pc: program counter of the instruction to disassemble
// bytes: Byte representation of instruction
// buffer: text buffer to output the disassembly too
usize disassemble(std::string& buffer, u32 pc, std::span<u8> bytes, u64 offset = 0) {
usize disassemble(std::string& buffer, u32 pc, std::span<const u8> bytes, u64 offset = 0) {
if (!initialized) {
buffer = "Capstone was not properly initialized";
return 0;