Utility for converting a binary file to a .CAS file

Hardware Hacking, Programming and Game Solutions/Cheats
User avatar
robcfg
Posts: 1529
Joined: Sat Apr 04, 2009 10:16 pm
Location: Stockholm, Sweden
Contact:

Re: Utility for converting a binary file to a .CAS file

Post by robcfg »

Good morning!

@Zephyr:
I think the problem is that you may not have vs2010 runtime installed. I've compiled a version with vs2008, please check it.

@KenH:
Sure, would it be better to have a separate tool or integrate the new functionality into the current one?

@Tormod:
Thanks mate! I will integrate your changes in the next version.

Have a nice day!
Attachments
DrBinCas_v0.4_vs2008.7z
DrBinCas v0.4 (Compiled with vs2008)
(8.53 KiB) Downloaded 207 times
Rink
Posts: 236
Joined: Mon Sep 05, 2011 7:01 pm

Re: Utility for converting a binary file to a .CAS file

Post by Rink »

@Ken + Rob,

I think I've asked the same thing at one point and mentioned that I had to knock up a quick "DrCasBin" tool for something I was working on. I'd love to see the functionality built in to DrBinCas though. It doesn't make sense to me to have a separate tool.

I've never uploaded my crappy .exe file because I felt the functionality should be in DrBinCas, but if you need something right now to do that job then I can try to find my files on my subversion dumping ground.
zephyr
Posts: 1474
Joined: Mon Jul 21, 2008 1:18 am

Re: Utility for converting a binary file to a .CAS file

Post by zephyr »

robcfg wrote:Good morning!

@Zephyr:
I think the problem is that you may not have vs2010 runtime installed. I've compiled a version with vs2008, please check it.
No. It still crashes.
DrBinCas v0.4 wrote: DrBinCas v0.4 | Program for converting binary files to .CAS files by Robcfg
----------------------------------------------------------------------------


This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
tormod wrote: Did I ever send you this patch (Allow hexadecimal load/exec address)?
This is a good idea. I don't like to use decimal.
zephyr
Posts: 1474
Joined: Mon Jul 21, 2008 1:18 am

Re: Utility for converting a binary file to a .CAS file

Post by zephyr »

I compiled it myself with gcc. Although its still not working correctly, the following more useful information is returned.
DrBinCas v0.4 | Program for converting binary files to .CAS files by Robcfg
----------------------------------------------------------------------------

terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr

This application has requested the Runtime to terminate it in an unusual way
Please contact the application's support team for more information.
User avatar
robcfg
Posts: 1529
Joined: Sat Apr 04, 2009 10:16 pm
Location: Stockholm, Sweden
Contact:

Re: Utility for converting a binary file to a .CAS file

Post by robcfg »

Can you post the exact parameters you're using?

Most probably I'm trying to compare something with an invalid iterator, should be easy to fix once we spot it.
zephyr
Posts: 1474
Joined: Mon Jul 21, 2008 1:18 am

Re: Utility for converting a binary file to a .CAS file

Post by zephyr »

drbincas test.bin test 16128 16128
User avatar
robcfg
Posts: 1529
Joined: Sat Apr 04, 2009 10:16 pm
Location: Stockholm, Sweden
Contact:

Re: Utility for converting a binary file to a .CAS file

Post by robcfg »

Ok, got it!

The code for changing only the extension was done assuming you'll be giving a full path, but now I've fixed it.

Take a look at the attached version. Tell me if you have any other problem.
Attachments
DrBinCas_0.4b_vs2008.7z
DrBinCas v0.4 fixed version
(8.63 KiB) Downloaded 210 times
zephyr
Posts: 1474
Joined: Mon Jul 21, 2008 1:18 am

Re: Utility for converting a binary file to a .CAS file

Post by zephyr »

robcfg wrote:Ok, got it!

The code for changing only the extension was done assuming you'll be giving a full path, but now I've fixed it.

Take a look at the attached version. Tell me if you have any other problem.
It seems to be working correctly now. I will test it properly later tonight.
zephyr
Posts: 1474
Joined: Mon Jul 21, 2008 1:18 am

Re: Utility for converting a binary file to a .CAS file

Post by zephyr »

Its working perfectly now. Thanks, Rob. :D

I modified the source code with Tormod's strtoul patch, and compiled with gcc. Its much better having the choice of using hexadecimal or decimal for the load/exec addresses. Thanks, Tormod. 8-)
User avatar
robcfg
Posts: 1529
Joined: Sat Apr 04, 2009 10:16 pm
Location: Stockholm, Sweden
Contact:

Re: Utility for converting a binary file to a .CAS file

Post by robcfg »

That's great news!

I'll be adding Tormod's patch and endian support to the next version.

Thank you very much, guys!
Post Reply