Good luck with whatever you're working on.sirlemonhead wrote:I need a break from that stuff for a bitRed_Breast wrote:Alien vs Predator is not an adventure game!
Just kidding - I couldn't resist a little tease sirlemonhead
For most / the rest of you don't even try understanding this.
IDA database files for existing game ports
Moderator: ScummVM Team
- Red_Breast
- Posts: 775
- Joined: Tue Sep 30, 2008 10:33 pm
- Location: The Bar Of Gold, Upper Swandam Lane.
-
- Got a warning
- Posts: 173
- Joined: Thu Feb 25, 2010 7:44 am
-
- Posts: 4
- Joined: Tue Mar 08, 2011 1:22 pm
sirlemonhead, I'm sorry it took me so long to respond.
IDA allows you to specify a function prototype manually, but in order to do that you have to look inside the function and figure out exactly how many arguments it expects (which is, unfortunately, not always easy).
I've switched to The Lost Files of Sherlock Holmes: The Case of the Rose Tattoo. It's a 32-bit protected mode Watcom C program like CCS, but unlike CCS, it follows cdecl calling convention, which is a real blessing as it makes code much easier to explore. Not only that, it uses (E)BP-based stack frame, which also helps. Since, as I already mentioned, my primary goal is to learn, I'm not particularly picky about my choice of specimen.
IDA allows you to specify a function prototype manually, but in order to do that you have to look inside the function and figure out exactly how many arguments it expects (which is, unfortunately, not always easy).
I've switched to The Lost Files of Sherlock Holmes: The Case of the Rose Tattoo. It's a 32-bit protected mode Watcom C program like CCS, but unlike CCS, it follows cdecl calling convention, which is a real blessing as it makes code much easier to explore. Not only that, it uses (E)BP-based stack frame, which also helps. Since, as I already mentioned, my primary goal is to learn, I'm not particularly picky about my choice of specimen.
-
- Posts: 21
- Joined: Wed Sep 09, 2009 6:11 pm
- Location: Dublin, Ireland
-
- Posts: 21
- Joined: Wed Sep 09, 2009 6:11 pm
- Location: Dublin, Ireland
I don't think I can debug this at all using anything other than DosBox, as far as I know, as it's a 16 bit application.Serious Callers Only wrote:I have a small suggestion (not a very good one though). Since your doing a simple 2d game (no need for 3d acceleration) have you tried to use the your debugger + the virtualbox snapshot ability to "roll back" the debugger? Is this already possible?
Not really sure what you mean by rolling back
DOSBox + HeavyDebug may just fit the bill if you want to interactively disassemble the game (http://vogons.zetafleet.com/viewtopic.php?t=3944). I usually keep IDA open as well and add comments as I trace the program flowsirlemonhead wrote:I don't think I can debug this at all using anything other than DosBox, as far as I know, as it's a 16 bit application.Serious Callers Only wrote:I have a small suggestion (not a very good one though). Since your doing a simple 2d game (no need for 3d acceleration) have you tried to use the your debugger + the virtualbox snapshot ability to "roll back" the debugger? Is this already possible?
Not really sure what you mean by rolling back
-
- Posts: 4
- Joined: Tue Mar 08, 2011 1:22 pm
Sure, if it leads anywhere. And best of luck to you too!sirlemonhead wrote:Be sure to share your work when you're finished I guess!
P.S. As for debugging 16-bit applications, I suggest you try Insight debugger. It has a user-friendly interface and it works in DOSBox.