dseight / vscode-disasexpl

Disassembly Explorer for VS Code
MIT License
48 stars 11 forks source link

Add suport for objdumped disassembly with visualize-jumps option #25

Closed LeoJhonSong closed 2 years ago

LeoJhonSong commented 2 years ago

regex of asmOpcodeRe is updated so disassembly generated by objdump with --visualize-jumps could be also parsed.

Here's a disassembly I generate with riscv64-linux-gnu-objdump build/bubble-sort-riscv64-nemu.elf -l --visualize-jumps=extended-color --disassemble=bubble_sort

image

--visualize-jumps will visualize jumps by drawing these nice ASCII art lines 🤩

LeoJhonSong commented 2 years ago

X added to match arrowhead in disassembly where is both a line to jump to and jump from.

LeoJhonSong commented 2 years ago

OK, that's interesting 😂