lensm icon indicating copy to clipboard operation
lensm copied to clipboard

Go assembly and source viewer

Results 7 lensm issues
Sort by recently updated
recently updated
newest added

I think It would be great to use this tool on the web with webassembly.

Before hover: ![image](https://user-images.githubusercontent.com/96925/179418006-87168a2a-f1c7-4839-89f4-777aa2c9987c.png) After hover: ![image](https://user-images.githubusercontent.com/96925/179418054-389a8e04-81cf-4d51-9951-2422cb82a289.png) 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...