6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 11:24 am

All times are UTC




Post new topic Reply to topic  [ 70 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
PostPosted: Mon Nov 26, 2018 6:21 am 
Offline

Joined: Tue Jul 24, 2012 2:27 am
Posts: 679
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!

_________________
WFDis Interactive 6502 Disassembler
AcheronVM: A Reconfigurable 16-bit Virtual CPU for the 6502 Microprocessor


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 26, 2018 3:49 pm 
Offline
User avatar

Joined: Tue Sep 11, 2007 8:48 am
Posts: 27
Location: Pruszków/Poland
Quick test with "label: $ADDR" formatted files - works nice.

Thanks for adding this :)

_________________
Practice safe HEX !


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 27, 2018 12:32 pm 
Offline

Joined: Mon May 21, 2018 8:09 pm
Posts: 1462
There seem to be a few opcodes that WFDis has trouble decoding, such as 0x58 (CLI). For example:
Code:
; raw bytes
28 58 08 68 48

; disassembly by WFDis
plp
$08,L0a9e
pha

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


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 27, 2018 2:18 pm 
Offline

Joined: Tue Jul 24, 2012 2:27 am
Posts: 679
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.

_________________
WFDis Interactive 6502 Disassembler
AcheronVM: A Reconfigurable 16-bit Virtual CPU for the 6502 Microprocessor


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 27, 2018 2:45 pm 
Offline

Joined: Tue Jul 24, 2012 2:27 am
Posts: 679
Had a bungled parameter in initializing the bitop instructions, it's fixed now.

_________________
WFDis Interactive 6502 Disassembler
AcheronVM: A Reconfigurable 16-bit Virtual CPU for the 6502 Microprocessor


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 27, 2018 2:47 pm 
Offline

Joined: Mon May 21, 2018 8:09 pm
Posts: 1462
Okay, maybe some of the things I've previously tried to disassemble will make more sense now.


Top
 Profile  
Reply with quote  
PostPosted: Mon Dec 24, 2018 11:03 am 
Offline

Joined: Tue Jul 24, 2012 2:27 am
Posts: 679
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!

_________________
WFDis Interactive 6502 Disassembler
AcheronVM: A Reconfigurable 16-bit Virtual CPU for the 6502 Microprocessor


Top
 Profile  
Reply with quote  
PostPosted: Mon Dec 24, 2018 3:21 pm 
Offline

Joined: Mon May 21, 2018 8:09 pm
Posts: 1462
Looking good in my tests. It loads the 64KB 6502-test images much faster than before.


Top
 Profile  
Reply with quote  
PostPosted: Fri Apr 17, 2020 11:34 am 
Offline

Joined: Mon May 21, 2018 8:09 pm
Posts: 1462
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.


Attachments:
Screenshot 2020-04-17 14.33.48.png
Screenshot 2020-04-17 14.33.48.png [ 38.73 KiB | Viewed 1926 times ]
Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 14, 2020 6:28 pm 
Offline

Joined: Sat Nov 19, 2005 2:28 am
Posts: 7
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


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 14, 2020 9:27 pm 
Offline

Joined: Tue Jul 24, 2012 2:27 am
Posts: 679
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.

_________________
WFDis Interactive 6502 Disassembler
AcheronVM: A Reconfigurable 16-bit Virtual CPU for the 6502 Microprocessor


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 14, 2020 9:36 pm 
Offline

Joined: Sat Nov 19, 2005 2:28 am
Posts: 7
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


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 14, 2020 10:19 pm 
Offline

Joined: Tue Jul 24, 2012 2:27 am
Posts: 679
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.

_________________
WFDis Interactive 6502 Disassembler
AcheronVM: A Reconfigurable 16-bit Virtual CPU for the 6502 Microprocessor


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 14, 2020 10:35 pm 
Offline

Joined: Sat Nov 19, 2005 2:28 am
Posts: 7
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.


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 15, 2020 12:30 am 
Offline

Joined: Tue Jul 24, 2012 2:27 am
Posts: 679
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.

_________________
WFDis Interactive 6502 Disassembler
AcheronVM: A Reconfigurable 16-bit Virtual CPU for the 6502 Microprocessor


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 70 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: