Jump to content
IGNORED

Secret chip


jindroush

Recommended Posts

Hi,

 

this chip is embedded in a cartridge I don't want to open.

 

I know it's a math chip, has 4 registers:

 

Input:

0,1,2 are for input, 3 is command.

 

Output:

1,2 are output, 3 is status.

 

I know that command 2 is multiplication of reg0 and reg2, result is stored in reg1 (hi), reg2 (lo).

 

Status is probably 0 if ok, 1 if error.

 

I also know that there is command 1, but I can't decode it's behaviour, it doesn't look like division...

 

Does this ring a bell? Cartridge was produced in 1984.

Link to comment
Share on other sites

I finally solved that, stupid me!

 

So command 2 is reg2 * reg0 -> reg1 (hi), reg2 (lo), multiplication

 

Command 1 is reg1 * 256 + reg2 / reg0 -> reg1 (remainder), reg2 (result), division. If there's division error (overflow, div by 0), reg3 is set to 1, otherwise 0. Maybe the error does also set other registers, but I didn't care.

 

I emulated the behavior and the game works fine.

 

Cartridge is called SuperCharger, was produced by MPP/Supra. Game is loaded from disk and is called Assault Force.

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.
Note: Your post will require moderator approval before it will be visible.

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...
  • Recently Browsing   0 members

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