lensm
lensm copied to clipboard
Go assembly and source viewer
I think It would be great to use this tool on the web with webassembly.
Before hover:  After hover:  Notice the vertical line being drawn that wasn't drawn before coming out of the `JMP 0x514b2e` instruction.
Technically the core logic needs: 1. list of symbols (https://github.com/loov/lensm/blob/d9771339009f7ac9663afc6de248d7f98b63f011/internal/disasm/file.go#L3) 2. a way to disassemble and get line number for each instruction (https://github.com/loov/lensm/blob/main/internal/disasm/code.go#L1) Rest of the code should work fine.
Many instructions can be rewritten to be clearer for people, e.g. ``` MOV (R2), R1 ==> R1 := memory[R2] ADDQ $1, R1 ==> R1 := R1 + 1 LEAQ 0(R1)(R2*4),...
For people learning assembly it would be nice to have built in instructions descriptions that would be shown on hover.
Amazing & very helpful tool! Thank you for making & sharing it. It would be even more helpful if you could select & copy text. I want to copy blocks...