Category: English

  • Disassemble DOS/4GW

    A few months ago I started tinkering with an old DOS-based game trying to figure out its internal data structure. Progress was good in the beginning, and I was quickly able to alter the saved game to give myself some advantages.

    Long story short, after a while I needed to figure out how the game handled a particular part of the savegame, since I couldn’t figure it out using a hex editor. But since the game was using a DOS extender, also known as DOS/4GW, loading it directly into Ida Pro Free wouldn’t help. It only gave meaningless garbage in return.

    The solution

    I found the open source DOS extender DOS/32. This has a utility known as SUNSYS Bind Utility which can be used to “Unbind and discard existing Extender/Stub from LE/LX/LC executable” as it says in the documentation.

    Place the utility, along with the executable in question, in the same directory and fire up Dosbox (or the real thing) and enter the following command.

    SB /U filename.exe

    This will produce a unbinded file which can be loaded directly into Ida Pro Free. In my case I ended up with a file ending in .LE, which stands for “Linear Executable”.

    Hopefully this can help others who want to peak into old DOS games.

  • My Windows 8 Experience So Far.

    I’ve been using Windows 8 at work for a few months now, and everytime I try to use the Windows Store app, this happens:

    WindowsStore
    Your PC isn’t connected to the Internet. To use the Store, connect to the Internet and then try again.

    I guess Microsoft and I have a different view on what qualifies as “the Internet”.

  • Coffee All Over the Place

    Got a 10-minutes inspiration. Set up took 5, trail and error took 2, clean up broke the bank. So let’s say I used 15 – 20 minutes on this shoot in total. A lots of small mistakes where made, which I didn’t notice until after. But at least I got the focus right.

    coffeeI have coffee all over the place now… damn those beans can bounce.

  • Backup

    Because sometimes shit happens…

    Sunday 22th of September the disk in my server failed, and years and years of unique data dissapared with it. Projects, websites, bits and bytes. All gone. The only piece I did have backup of was the databases from MySQL, and those were 6 weeks old at the time.

    Thanks to my (irregular) backup of the SQL databases, this blog is now back online. I have re-uploaded some of the blog images from other sources, and over time I hope to reconstruct (most) of the rest.

    Conclusion: Shit happens. Be prepared.

    Update: Found backup of the home directories and web directory from june 2010. Only 3 years of files missing. Oh, and the subversion repository.

    Update 2: All visible images on this blog have been replaced. Yay!

  • Learning C

    Reading “The C Programming Language (2nd Edition)” by  by Brian Kernighan and Dennis Ritchie. Probably the best book I’ve read about programming so far. Straight to the point. And this from a book that was last revised in 1988.