CodeWalrus

Development => Calculators => Calc Projects, Programming & Tutorials => Topic started by: DarkestEx on January 23, 2016, 06:56:21 PM

Title: 8xpconv - Tool to convert 8xp files to bin
Post by: DarkestEx on January 23, 2016, 06:56:21 PM
Hello, I was in need for a program to convert .8xp files to .bin files to be able to disassemble them, so I created a small tool to do this task for me.
The tool runs on Windows, Linux and Mac, but for the latter two, the mono environment is required.
It is written in .NET (C#) which makes the tool portable.

Download is here: http://legacy.bmuessig.eu/media/Z80/Tools/TI-8x/8xpconv.exe
Syntax is: 8xpconv.exe <input file> [output file]

Have fun :)
Title: Re: 8xpconv - Tool to convert 8xp files to .bin
Post by: Dream of Omnimaga on January 23, 2016, 07:01:52 PM
Does this generate the ASM source? There was a similar tool by DWedit a few years ago but I think it only ran on Windows 98 or lower. There was also http://asmtools.omnimaga.org/ but it provides the ASM code in hexadecimal form. Hopefully your tool is useful to many coders :)
Title: Re: 8xpconv - Tool to convert 8xp files to .bin
Post by: DarkestEx on January 23, 2016, 07:03:59 PM
Quote from: DJ Omnimaga on January 23, 2016, 07:01:52 PM
Does this generate the ASM source? There was a similar tool by DWedit a few years ago but I think it only ran on Windows 98 or lower. There was also http://asmtools.omnimaga.org/ but it provides the ASM code in hexadecimal form. Hopefully your tool is useful to many coders :)
No it can't, but disassembying is now very easy. As soon as the file is .bin you can throw it into any Z80 disassembler such as dZ80 (http://www.inkland.org.uk/dz80/).
Title: Re: 8xpconv - Tool to convert 8xp files to .bin
Post by: Dream of Omnimaga on January 23, 2016, 07:04:48 PM
Ah that's good to hear. :)
Title: Re: 8xpconv - Tool to convert 8xp files to bin
Post by: alexgt on January 24, 2016, 04:03:01 AM
Sounds cool DarkestEx ;) I don't think I will be able to put it to good use though :(
Title: Re: 8xpconv - Tool to convert 8xp files to bin
Post by: SiphonicSugar on January 24, 2016, 06:31:27 PM
Hmm... So what did you need this for anyway?
Title: Re: 8xpconv - Tool to convert 8xp files to bin
Post by: DarkestEx on January 24, 2016, 06:38:17 PM
Thanks all :)

Quote from: SiphonicSugar on January 24, 2016, 06:31:27 PM
Hmm... So what did you need this for anyway?
Well if you want to disassemble and reverse engineer a TI-OS program that is assembly, you will need a disassembler. Z80 disassemblers don't support the input of .8xp files normally so I wrote a tool that brings the files into a compatible format, so that most Z80 disassemblers can deal with them.

I am not sure, whether i should strip more of the header. Do TI-OS Asm programs have any extra Asm header in the data part?
If so, i would need to look for that.
Title: Re: 8xpconv - Tool to convert 8xp files to bin
Post by: SiphonicSugar on January 24, 2016, 07:53:25 PM
No, I meant like a couple of days ago you wanted to know if there was a tool that could complete this job...
Title: Re: 8xpconv - Tool to convert 8xp files to bin
Post by: DarkestEx on January 24, 2016, 08:14:20 PM
Quote from: SiphonicSugar on January 24, 2016, 07:53:25 PM
No, I meant like a couple of days ago you wanted to know if there was a tool that could complete this job...
o
Nothing important really, just disasembling TwoStep to make some new photos for my site.
Title: Re: 8xpconv - Tool to convert 8xp files to bin
Post by: novenary on January 24, 2016, 08:42:46 PM
Quote from: DarkestEx on January 24, 2016, 06:38:17 PM
I am not sure, whether i should strip more of the header. Do TI-OS Asm programs have any extra Asm header in the data part?
If so, i would need to look for that.
There's the 2 byte header at the beginning of the program, you need to strip that as well. It's a token that allows the OS to be recognized as an assembly program (it causes a syntax error when you run it normally and the os checks for it when you run it with asm().
Title: Re: 8xpconv - Tool to convert 8xp files to bin
Post by: DarkestEx on January 25, 2016, 12:49:53 AM
Quote from: Streetwalrus on January 24, 2016, 08:42:46 PM
Quote from: DarkestEx on January 24, 2016, 06:38:17 PM
I am not sure, whether i should strip more of the header. Do TI-OS Asm programs have any extra Asm header in the data part?
If so, i would need to look for that.
There's the 2 byte header at the beginning of the program, you need to strip that as well. It's a token that allows the OS to be recognized as an assembly program (it causes a syntax error when you run it normally and the os checks for it when you run it with asm().
Thanks for letting me know :)
I just made the changes to compensate for it.
The new version is uploaded.
Title: Re: 8xpconv - Tool to convert 8xp files to bin
Post by: SiphonicSugar on January 25, 2016, 03:50:05 AM
Yay and congratulations to your quick success on this project! :P
Title: Re: 8xpconv - Tool to convert 8xp files to bin
Post by: DarkestEx on January 25, 2016, 06:07:15 AM
Thanks :D