Disark is a new cross-platform software (for Windows/Linux/MacOsX) I developed because I needed it for Arkos Tracker 2.
It is a Z80 disassembler/
source converter. I have no idea if it's going to interest anyone, but I present it here.
You can
check its website here.
Besides the disassembling part, the main goal of Disark is to
convert a source into any other assembler's source.
For example, AT2 Z80 sources heavily rely on RASM macros, which are not understood by other assemblers. So the trick is:
- Assemble the player/music with Rasm (this gives a binary and a symbol file)
- Use Disark on the binary to recreate the source, without all the bothersome macros!
This is a solution for the many people that complained (and rightfully so) about the use of Rasm for AT2 (like
@reidrac @ronaldo @Rhino ) and the need to convert the source "manually" into their assembler syntax.
As an example, you can convert something complicated like this:
org #1000
REPEAT 5,counter ;Ooh, many assemblers don't understand that!
MyLabel{counter} ;Wow, generated labels on the fly!
ld hl,MyLabel{counter} ;... and a reference to them!
REND
Into this:
org #1000
MYLABEL1 ld hl,MYLABEL1 ;No more complicated macros!!
MYLABEL2 ld hl,MYLABEL2
MYLABEL3 ld hl,MYLABEL3
MYLABEL4 ld hl,MYLABEL4
MYLABEL5 ld hl,MYLABEL5
You get a
simple, relocatable source for both music and player!
Predefined profiles allows you to convert the sources to Winape, SDCC, Pasmo, Vasm, Orgams...
How does it work? Disark uses the binary and the symbol file, which contain "
semantic labels" to indicate which part of the source is a code area, or a byte area, or a reference area. My player and music sources already contain such "semantic labels", so you don't have to do anything more than the two steps explained above, and this must be done only once.
Of course, if you have the same problem (the need to share sources to other assembler's syntax), you can also use Disark for that purpose.
Everything is explained on the
website. You can also check the AT2 player sources to understand how it is done. And don't hesitate to contact me for more information.
Thanks for your attention

.