Jump to content
IGNORED

AtariProtos Updates


Tempest
 Share

Recommended Posts

On 11/12/2019 at 5:51 PM, Dutchman2000 said:

Here is a screenshot of the code for Super Cobra for the 8-bit. 

sc.png

I'm not familiar with the tools being used these days to extract code from 2600 carts. I suppose it's possible to get an assembly code listing generated from a ROM dump? If something like that is available I'd love to have a look at it.   ~Bob

Link to comment
Share on other sites

12 minutes ago, bobcurtiss said:

I'm not familiar with the tools being used these days to extract code from 2600 carts. I suppose it's possible to get an assembly code listing generated from a ROM dump? If something like that is available I'd love to have a look at it.   ~Bob

:idea: The best option is to use the Stella emulator. It has an integrated debugger which disassembles the code (static and at run time). You can then dump the code to a DASM compatible file.

 

Steps:

  1. Run the ROM in Stella (to improve run time disassembly, try to play all scenarios)
  2. Enter the debugger
  3. In the prompt enter 'savedis'
  4. Stella can only dump the current 4K. So you have to change the bank or slices in the Cartridge tab and repeat step 3.
  • Thanks 1
Link to comment
Share on other sites

...and if Stella misidentifies a stretch of memory (for example, data which is passed to Ram to be used as graphics, or program code which has not been allowed to run or intentionally bypassed), you can define those spots manually.  Just type code, data, gfx, or pgfx followed by the address range within the current bank.  Such changes will take effect immediately in the debugger window.

 

Keep in mind that such files are still far from looking anything like a source code listing.  Only close examination and reverse-engineering can accomplish that.

  • Thanks 1
Link to comment
Share on other sites

On 11/19/2019 at 11:52 AM, Nukey Shay said:

...and if Stella misidentifies a stretch of memory (for example, data which is passed to Ram to be used as graphics, or program code which has not been allowed to run or intentionally bypassed), you can define those spots manually.  Just type code, data, gfx, or pgfx followed by the address range within the current bank.  Such changes will take effect immediately in the debugger window.

 

Keep in mind that such files are still far from looking anything like a source code listing.  Only close examination and reverse-engineering can accomplish that.

Fortunately the code I want to examine is a game (Super Cobra) that I originally co-programmed, so that should (theoretically) make it a bit less difficult. Assuming, of course, that I will recognize assembly code that I wrote 36 years ago. Should be no problem, right?  LMAO  8^D

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...