Nintendo 64 Lockout Chips

Discussion in 'Nintendo Game Development' started by Markus1201, Oct 10, 2013.

  1. Markus1201

    Markus1201 Member

    Joined:
    Jun 6, 2012
    Messages:
    10
    Likes Received:
    0
    Hi!

    I'm currently doing some investigations on the N64 Cic Chips. When opening Pokémon Stadium, I found a NUS-CIC-7103A.
    Does someone know what the appended A stands for, if there are other numbers ending with A and how these differ compared to there A-less pedants?

    I did some reversing on the 7101 and would be happy to exchange information. If someone is interested, please let me know.
     
  2. dakooldog

    dakooldog <B>Site Supporter 2013</B><BR>

    Joined:
    Sep 20, 2012
    Messages:
    135
    Likes Received:
    1
    Keep us informed on your work, sounds interesting.
     
  3. Markus1201

    Markus1201 Member

    Joined:
    Jun 6, 2012
    Messages:
    10
    Likes Received:
    0
    As Marshallh suggested, these chips contain a Sharp SM5 4-bit microprocessor. I found some debug modes that may have been used for testing. Using these made me able to execute external code and see the results. I also read the ROM containing the machine code and a separate small section containing something like a key.

    Now I could try to emulate the whole chip using an FPGA and thus make devices like 64drive or everdrive64 able to run without those chips.
     
  4. MasterOfPuppets

    MasterOfPuppets Site Supporter 2013

    Joined:
    Apr 6, 2010
    Messages:
    549
    Likes Received:
    5
    Great to hear your progress! Keep up the work, it'll be nice to not have to use CICs.
     
  5. Bad_Ad84

    Bad_Ad84 The Tick

    Joined:
    May 26, 2011
    Messages:
    8,566
    Likes Received:
    1,309
    Surely you don't need an FPGA to emulate it, why not reverse what it's actually doing (especially if you have read it out) and do it on a PIC?
     
  6. Markus1201

    Markus1201 Member

    Joined:
    Jun 6, 2012
    Messages:
    10
    Likes Received:
    0
    Your absolutely right, a microcontroller would be powerful enough to emulate the protocol.
    The reason for using an FPGA is that most development cartridges have one built-in.

    I'd prefer to just handle the protocol over synthesising the whole microprocessor core anyway. Porting to your preferred architecture shouldn't be a problem.
     
  7. d235j

    d235j Newly Registered

    Joined:
    Sep 3, 2007
    Messages:
    2
    Likes Received:
    0
    Can you tell us about the debug modes, and how to use them? This would save us a ton of effort.

    From our research, the A represents a die shrink.
     
    Last edited: Oct 18, 2013
  8. Markus1201

    Markus1201 Member

    Joined:
    Jun 6, 2012
    Messages:
    10
    Likes Received:
    0
    Thanks for the clarification about the A letter.
    Maybe I'll decap one to verify that information.
    I wrote you a PM regarding the debug modes.
     
  9. motker

    motker Newly Registered

    Joined:
    Apr 19, 2011
    Messages:
    3
    Likes Received:
    0
    I'd also like to be informed about debug modes via PM.
     
  10. Markus1201

    Markus1201 Member

    Joined:
    Jun 6, 2012
    Messages:
    10
    Likes Received:
    0
    As there was some interest I'll write an how to when I've got some time left. Here is an overview of what I've found:

    There are 3 additional modes of operation that can be selected by tying Pin 6 or 7 to Vss. Two of these bypass the ROM and accept machine code directly from Port 5 (Pin 2 - 5). An execution cycle takes two clock cycles and the upper and lower instruction nibble can be latched in on the rising edges. In those modes Port 2 (Pin 12 - 15) is directly connected to the Areg or the program counter / stack pointer.
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page