Page 4 of 5

Re: WFDis - 6502/65C02 interactive disassembler

Posted: Mon Nov 26, 2018 6:21 am
by White Flame
Alrighty, I added in importing label files. From the docs:
Quote:
A file defining labels can be imported, which affects only the current overlay. VICE label files (which can be generated by ca65) are supported, as well as a more freeform syntax. Semicolons indicate comments.

Sample lines:
  • al 000801 .foo ; VICE format, hexadecimal and an ignored dot
  • foo: $0801
  • foo = 2049 ; Freeform syntax defaults to decimal
  • foo EQU $0801
The regex for separating label & address is (=|:| \.?[eE][qQ][uU]? ) which should support enough variation for common cases.
The keystroke is Shift-I, and the labels will be imported into whatever overlay the cursor is on.

Let me know if there are any bugs, and thanks for using it!

Re: WFDis - 6502/65C02 interactive disassembler

Posted: Mon Nov 26, 2018 3:49 pm
by Konrad_B
Quick test with "label: $ADDR" formatted files - works nice.

Thanks for adding this :)

Re: WFDis - 6502/65C02 interactive disassembler

Posted: Tue Nov 27, 2018 12:32 pm
by Chromatix
There seem to be a few opcodes that WFDis has trouble decoding, such as 0x58 (CLI). For example:

Code: Select all

; raw bytes
28 58 08 68 48

; disassembly by WFDis
plp
$08,L0a9e
pha

; true disassembly (by hand)
plp
cli
php
pla
pha

Re: WFDis - 6502/65C02 interactive disassembler

Posted: Tue Nov 27, 2018 2:18 pm
by White Flame
I tried those bytes but didn't have any problems until I went through the list of CPU models, and the ones with the bit operations seemed to do that. I'll look into it.

Re: WFDis - 6502/65C02 interactive disassembler

Posted: Tue Nov 27, 2018 2:45 pm
by White Flame
Had a bungled parameter in initializing the bitop instructions, it's fixed now.

Re: WFDis - 6502/65C02 interactive disassembler

Posted: Tue Nov 27, 2018 2:47 pm
by Chromatix
Okay, maybe some of the things I've previously tried to disassemble will make more sense now.

Re: WFDis - 6502/65C02 interactive disassembler

Posted: Mon Dec 24, 2018 11:03 am
by White Flame
Having spent some time in profiling, rendering is now 40x faster, meaning a "large" file that took 200 seconds to load into the workspace now takes 5 seconds, making this MUCH more useful for Real Work™.

As always, it's still experimental and bug reports are welcome. Merry Christmas!

Re: WFDis - 6502/65C02 interactive disassembler

Posted: Mon Dec 24, 2018 3:21 pm
by Chromatix
Looking good in my tests. It loads the 64KB 6502-test images much faster than before.

Re: WFDis - 6502/65C02 interactive disassembler

Posted: Fri Apr 17, 2020 11:34 am
by Chromatix
A rather glaring omission so far is the ability to interpret bytes as ASCII text, rather than PETSCII. The latter is only relevant to Commodore machines, the former rather more broadly.

Re: WFDis - 6502/65C02 interactive disassembler

Posted: Mon Sep 14, 2020 6:28 pm
by kgreene
I recently found this when looking for a way to work on disassembling an apple II binary.

Is there a way to export raw text of the disassembly? The dump appears to save an internal binary format.

thanks

Re: WFDis - 6502/65C02 interactive disassembler

Posted: Mon Sep 14, 2020 9:27 pm
by White Flame
Not currently. And yes, the current save format is a compressed version of the entire workspace, retaining all the editable state.

Exporting to text is weird given all the display options, address overlaps/overlays, and assemblers out there. So as a stopgap, I ensured that copy/paste is sane, keeping linebreaks and not including the address prefixes.

Selecting all with Ctrl-A, Ctrl-C and pasting into a text editor gives a very usable text dump.

Re: WFDis - 6502/65C02 interactive disassembler

Posted: Mon Sep 14, 2020 9:36 pm
by kgreene
OK, that seems to be working now. I tried it several times and it just kept copying the URL (even clicking in the window, etc) but now it seems to work. Not sure what was going on.

Not sure if you are actively developing this still, any plans for enhancements?

thanks

Re: WFDis - 6502/65C02 interactive disassembler

Posted: Mon Sep 14, 2020 10:19 pm
by White Flame
I'm working on back-end AI stuff, which is taking pretty much all my time, and will feed into WFDis. I definitely am planning big enhancements, but they need a lot of core work done.

Certainly as users poke at me, that will keep smaller iterative changes coming as well. ;) But I really should add the suggestion to copy/paste into the help pane.

Re: WFDis - 6502/65C02 interactive disassembler

Posted: Mon Sep 14, 2020 10:35 pm
by kgreene
One feature that would be nice is to auto-split text blocks on return into separate strings. (ie, an alternate to the existing, shift-T or something).

For now the petscii is working for me as ascii uppercase text.

Re: WFDis - 6502/65C02 interactive disassembler

Posted: Tue Sep 15, 2020 12:30 am
by White Flame
A front-end feature I want is nested keystroke menus, because I'm quickly running out of sane standalone keybindings. But I'll bang something in soon.