6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu May 09, 2024 10:53 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sat Jan 14, 2023 1:27 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10800
Location: England
There's an interesting ongoing thread over on stardot which I recommend to you:
Small 6502 disassembler

User 'gfoot' started off with a disassembler which is only 510 bytes long, which is interesting enough and hopefully even useful, and since then there's been some improvement in size which might lead to improved functionality. (There is also a setup binary, under one page, which is run before the main one, and uses the same location for code.)

Naturally, it's a minimal disassembler, so it doesn't (presently) cope too well with non-code, and indeed it only works on official 6502 opcodes.

The coding techniques in the original, and the optimisations applied since, will also be of interest, if you like that sort of thing.

(It's for the Beeb, but would surely be portable. The source is, of course, BBC Basic, but again surely not at all difficult to port such a small program.)

Edit: George has said he considers this work, and his other work posted to forums, as released into the public domain.


Top
 Profile  
Reply with quote  
PostPosted: Sat Jan 14, 2023 6:14 pm 
Offline
User avatar

Joined: Wed Feb 14, 2018 2:33 pm
Posts: 1405
Location: Scotland
Interesting - I'll check it shortly.

Meanwhile I've been using Jeff Tranters code in some versions of my RubyOS - it assembles to about 1600 bytes though, but I do like its output (and it's caters for 65C02 too)

Jeffs code is here for comparison: https://github.com/jefftranter/6502/tre ... asm/disasm

-Gordon

_________________
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 24 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: