Welcome to Data Crystal's new home! Data Crystal is now part of the TCRF family (sort of).
The wiki has recently moved; please report any issues in Discord. Pardon the dust.

Teenage Mutant Ninja Turtles (NES)/RAM map: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
(Added in a lot more of the ZP)
(Converted to table format)
Line 1: Line 1:
{{rammap|game=Teenage Mutant Ninja Turtles}}
{{rammap|game=Teenage Mutant Ninja Turtles}}


  Address Size    Description
{| border="1" cellpadding="1" class="wikitable"
------- ----    -----------
! '''RAM Address''' !! '''Description'''
    00    $18    Temp/Scratch memory
|-
    19            Temp X Register Backup
| $0000 - $0017 || Temp/Scratch memory
    1a            Temp Y Register Backup
|-
    1b            Current Game State ID
| $0019        || Temp X Register Backup
    1c            Substate ID of Current Game State
|-
    1e            Global Timer
| $001a        || Temp Y Register Backup
    1f            NMI Ignore Flag
|-
    20            Disable Rendering Timer
| $001b        || Current Game State ID
    21            Current PRG Bank
|-
    27            Current CHR Bank 0
| $001c        || Substate ID of Current Game State
    28            Current CHR Bank 1
|-
    29    $2      HUD PPU Position (stored as big endian value)
| $001e        || Global Timer
    2c            Current Primary BG Color
|-
    30    $2      Current Buttons being Pressed
| $001f        || NMI Ignore Flag
    32    $2      Current Buttons being Held
|-
    35            Game is Paused Flag
| $0020        || Disable Rendering Timer
    36            Pausing is Disabled Flag
|-
    45            Random Number (used for things based on randomization)
| $0021        || Current PRG Bank
    46            Continues (You start with 3)
|-
    48            World Number
| $0027        || Current CHR Bank 0
    55            Technodrome Location Subarea ID (Can be 2, 3, or 4)
|-
    56            Has Rescued Captured Turtle in Level Flag
| $0028        || Current CHR Bank 1
    57            Captured Turtle ID
|-
    59            PRG Bank before Sound Engine Update
| $0029 - $002a  || HUD PPU Position (stored as big endian value)
    5b            Whether the special weapon is selected or not
|-
    5c            Is Inside Subarea Flag (0 if overworld, 1 if subarea)
| $002c        || Current Primary BG Color
    5d            Current side-scrolling area (0 in overhead areas)
|-
    5e            Is Mandatory Fight Flag (0 = false, 1 = fight queued, 2 = miniboss, 3 = boss)
| $0030 - $0031  || Current Buttons being Pressed
    67            Current Turtle Selected (0:Leo, 1:Raph, 2:Mike, 3:Don)
|-
    6e            Item(s) in Subarea Collect (bitwise and depends on subarea)
| $0032 - $0033  || Current Buttons being Held
    73            Leo's Special Weapon (0:Nothing, 1:Stars, 2:Triple Stars, 3:Boomerangs, 4:Scrolls)
|-
    74            Raph's Special Weapon
| $0035        || Game is Paused Flag
    75            Mike's Special Weapon
|-
    76            Don's Special Weapon
| $0036        || Pausing is Disabled Flag
    77            Leo's Energy ($00 - $80)
|-
    78            Raph's Energy
| $0045        || Random Number (used for things based on randomization)
    79            Mike's Energy
|-
    7a            Don's Energy
| $0046        || Continues (You start with 3)
    7d            Disarmed Bombs (bitwise)
|-
    80    $2      Destroyed Barricades (bitwise)
| $0048        || World Number
    a0            Last Turtle Selected Upon Pause (Set when pause screen starts. Mainly used for writing which turtle has been caught)
|-
    a7            Amount of Ropes ($00 - $63)
| $0055        || Technodrome Location Subarea ID (Can be 2, 3, or 4)
    a8            Leo's Special Weapon Quantity ($00 - $63)
|-
    a9            Raph's Special Weapon Quantity
| $0056        || Has Rescued Captured Turtle in Level Flag
    aa            Mike's Special Weapon Quantity
|-
    ab            Don's Special Weapon Quantity
| $0057        || Captured Turtle ID
    b5            Miscellaneous Game Scene ID (Can be $01-$10)
|-
    ba    $2      Dam Timer (first byte is countdown, second is for displaying the timer)
| $0059        || PRG Bank before Sound Engine Update
    bf            Turtle Van Missiles
|-
    c0            Score 99xxxx0
| $005b        || Whether the special weapon is selected or not
    c1            Score xx99xx0
|-
    c2            Score xxxx990
| $005c        || Is Inside Subarea Flag (0 if overworld, 1 if subarea)
    c3            Unknown Score 99xxxx0
|-
    c4            Unknown Score xx99xx0
| $005d        || Current side-scrolling area (0 in overhead areas)
    c5            Unknown Score xxxx990
|-
    c6            High Score 99xxxx0
| $005e        || Is Mandatory Fight Flag (0 = false, 1 = fight queued, 2 = miniboss, 3 = boss)
    c7            High Score xx99xx0
|-
    c8            High Score xxxx990
| $0067        || Current Turtle Selected (0:Leo, 1:Raph, 2:Mike, 3:Don)
    d0            Pause Screen State ID
|-
    d4            Is Attacking While Ducking Flag
| $006e        || Item(s) in Subarea Collect (bitwise and depends on subarea)
    f0            Skip Music Engine Update Flag
|-
    fc            PPU Scroll X
| $0073        || Leo's Special Weapon (0:Nothing, 1:Stars, 2:Triple Stars, 3:Boomerangs, 4:Scrolls)
    fd            PPU Scroll Y
|-
    fe            PPU Mask
| $0074        || Raph's Special Weapon
    ff            PPU Control
|-
 
| $0075        || Mike's Special Weapon
  200  $100    Sprite Memory
|-
  460            Turtle Y Position
| $0076        || Don's Special Weapon
  480            Turtle X Position
|-
  4B0            Turtle Y Velocity
| $0077        || Leo's Energy ($00 - $80)
  4E0            Turtle X Velocity
|-
  500            Invincibility Timeout
| $0078        || Raph's Energy
  56X            Enemy Hit Points
|-
  630            Invincibility Timeout
| $0079        || Mike's Energy
  631  $5      Timer for items disappearing
|-
| $007a        || Don's Energy
|-
| $007d        || Disarmed Bombs (bitwise)
|-
| $0080 - $0081  || Destroyed Barricades (bitwise)
|-
| $00a0        || Last Turtle Selected Upon Pause (Set when pause screen starts. Mainly used for writing which turtle has been caught)
|-
| $00a7        || Amount of Ropes ($00 - $63)
|-
| $00a8        || Leo's Special Weapon Quantity ($00 - $63)
|-
| $00a9        || Raph's Special Weapon Quantity
|-
| $00aa        || Mike's Special Weapon Quantity
|-
| $00ab        || Don's Special Weapon Quantity
|-
| $00b5        || Miscellaneous Game Scene ID (Can be $01-$10)
|-
| $00ba - $00bb  || Dam Timer (first byte is countdown, second is for displaying the timer)
|-
| $00bf        || Turtle Van Missiles
|-
| $00c0        || Score 99xxxx0
|-
| $00c1        || Score xx99xx0
|-
| $00c2        || Score xxxx990
|-
| $00c3        || Unknown Score 99xxxx0
|-
| $00c4        || Unknown Score xx99xx0
|-
| $00c5        || Unknown Score xxxx990
|-
| $00c6        || High Score 99xxxx0
|-
| $00c7        || High Score xx99xx0
|-
| $00c8        || High Score xxxx990
|-
| $00d0        || Pause Screen State ID
|-
| $00d4        || Is Attacking While Ducking Flag
|-
| $00f0        || Skip Music Engine Update Flag
|-
| $00fc        || PPU Scroll X
|-
| $00fd        || PPU Scroll Y
|-
| $00fe        || PPU Mask
|-
| $00ff        || PPU Control
|-
| $0200 || Sprite Memory
|-
| $0460 || Turtle Y Position
|-
| $0480 || Turtle X Position
|-
| $04B0 || Turtle Y Velocity
|-
| $04E0 || Turtle X Velocity
|-
| $0500 || Invincibility Timeout
|-
| $056X || Enemy Hit Points
|-
| $0630 || Invincibility Timeout
|-
| $0631 || Timer for items disappearing
|-
|}

Revision as of 12:52, 9 October 2023

Chip tiny.png The following article is a RAM map for Teenage Mutant Ninja Turtles (NES).

RAM Address Description
$0000 - $0017 Temp/Scratch memory
$0019 Temp X Register Backup
$001a Temp Y Register Backup
$001b Current Game State ID
$001c Substate ID of Current Game State
$001e Global Timer
$001f NMI Ignore Flag
$0020 Disable Rendering Timer
$0021 Current PRG Bank
$0027 Current CHR Bank 0
$0028 Current CHR Bank 1
$0029 - $002a HUD PPU Position (stored as big endian value)
$002c Current Primary BG Color
$0030 - $0031 Current Buttons being Pressed
$0032 - $0033 Current Buttons being Held
$0035 Game is Paused Flag
$0036 Pausing is Disabled Flag
$0045 Random Number (used for things based on randomization)
$0046 Continues (You start with 3)
$0048 World Number
$0055 Technodrome Location Subarea ID (Can be 2, 3, or 4)
$0056 Has Rescued Captured Turtle in Level Flag
$0057 Captured Turtle ID
$0059 PRG Bank before Sound Engine Update
$005b Whether the special weapon is selected or not
$005c Is Inside Subarea Flag (0 if overworld, 1 if subarea)
$005d Current side-scrolling area (0 in overhead areas)
$005e Is Mandatory Fight Flag (0 = false, 1 = fight queued, 2 = miniboss, 3 = boss)
$0067 Current Turtle Selected (0:Leo, 1:Raph, 2:Mike, 3:Don)
$006e Item(s) in Subarea Collect (bitwise and depends on subarea)
$0073 Leo's Special Weapon (0:Nothing, 1:Stars, 2:Triple Stars, 3:Boomerangs, 4:Scrolls)
$0074 Raph's Special Weapon
$0075 Mike's Special Weapon
$0076 Don's Special Weapon
$0077 Leo's Energy ($00 - $80)
$0078 Raph's Energy
$0079 Mike's Energy
$007a Don's Energy
$007d Disarmed Bombs (bitwise)
$0080 - $0081 Destroyed Barricades (bitwise)
$00a0 Last Turtle Selected Upon Pause (Set when pause screen starts. Mainly used for writing which turtle has been caught)
$00a7 Amount of Ropes ($00 - $63)
$00a8 Leo's Special Weapon Quantity ($00 - $63)
$00a9 Raph's Special Weapon Quantity
$00aa Mike's Special Weapon Quantity
$00ab Don's Special Weapon Quantity
$00b5 Miscellaneous Game Scene ID (Can be $01-$10)
$00ba - $00bb Dam Timer (first byte is countdown, second is for displaying the timer)
$00bf Turtle Van Missiles
$00c0 Score 99xxxx0
$00c1 Score xx99xx0
$00c2 Score xxxx990
$00c3 Unknown Score 99xxxx0
$00c4 Unknown Score xx99xx0
$00c5 Unknown Score xxxx990
$00c6 High Score 99xxxx0
$00c7 High Score xx99xx0
$00c8 High Score xxxx990
$00d0 Pause Screen State ID
$00d4 Is Attacking While Ducking Flag
$00f0 Skip Music Engine Update Flag
$00fc PPU Scroll X
$00fd PPU Scroll Y
$00fe PPU Mask
$00ff PPU Control
$0200 Sprite Memory
$0460 Turtle Y Position
$0480 Turtle X Position
$04B0 Turtle Y Velocity
$04E0 Turtle X Velocity
$0500 Invincibility Timeout
$056X Enemy Hit Points
$0630 Invincibility Timeout
$0631 Timer for items disappearing