Actions

SCHG

Difference between revisions of "Equivalent Subroutines"

From Sonic Retro

m (S3K routine of Solidobject added, but due there is no tab for S3K, it is on SK tab. I am lazy :/)
(Added an S3K column to allow adding S3K subroutines.)
Line 8: Line 8:
  
 
{| class="prettytable"
 
{| class="prettytable"
! S1 || S2B || S2 || S2K || S3 || S&K
+
! S1 || S2B || S2 || S2K || S3 || S&K || S3K
 
|-
 
|-
 
|Demo_Time
 
|Demo_Time
Line 18: Line 18:
 
|?
 
|?
 
|$95A
 
|$95A
 +
|?
 
|-
 
|-
 
|Demo_TimeEnd
 
|Demo_TimeEnd
Line 26: Line 27:
 
|?
 
|?
 
|$976
 
|$976
 +
|?
 
|-
 
|-
 
|JoypadInit
 
|JoypadInit
Line 34: Line 36:
 
|1342
 
|1342
 
|$10AE
 
|$10AE
 +
|?
 
|-
 
|-
 
|ReadJoypads
 
|ReadJoypads
Line 42: Line 45:
 
|1372
 
|1372
 
|$10DE
 
|$10DE
 +
|?
 
|-
 
|-
 
|Joypad_Read
 
|Joypad_Read
Line 51: Line 55:
 
|?
 
|?
 
|$10EC
 
|$10EC
 +
|?
 
|-
 
|-
 
|VDPSetupGame
 
|VDPSetupGame
Line 59: Line 64:
 
|13AE
 
|13AE
 
|$111A
 
|$111A
 +
|?
 
|-
 
|-
 
|VDP_Loop
 
|VDP_Loop
Line 68: Line 74:
 
|?
 
|?
 
|$112E
 
|$112E
 +
|?
 
|-
 
|-
 
|VDP_ClrCRAM
 
|VDP_ClrCRAM
Line 77: Line 84:
 
|?
 
|?
 
|$1162
 
|$1162
 +
|?
 
|-
 
|-
 
|VDPSetupArray
 
|VDPSetupArray
Line 85: Line 93:
 
|?
 
|?
 
|$11A4
 
|$11A4
 +
|?
 
|-
 
|-
 
|ClearScreen
 
|ClearScreen
Line 93: Line 102:
 
|14D4, and 1502
 
|14D4, and 1502
 
|$11CA
 
|$11CA
 +
|?
 
|-
 
|-
 
|PlaySound
 
|PlaySound
Line 101: Line 111:
 
|?
 
|?
 
|$1358
 
|$1358
 +
|?
 
|-
 
|-
 
|PlaySound_Special
 
|PlaySound_Special
Line 109: Line 120:
 
|?
 
|?
 
|$1380
 
|$1380
 +
|?
 
|-
 
|-
 
|PauseGame
 
|PauseGame
Line 117: Line 129:
 
|?
 
|?
 
|$13E4
 
|$13E4
 +
|?
 
|-
 
|-
 
|NemDec
 
|NemDec
Line 125: Line 138:
 
|?
 
|?
 
|$15BA
 
|$15BA
 +
|?
 
|-
 
|-
 
|LoadPLC
 
|LoadPLC
Line 134: Line 148:
 
|?
 
|?
 
|$16FA
 
|$16FA
 +
|?
 
|-
 
|-
 
|LoadPLC2
 
|LoadPLC2
Line 143: Line 158:
 
|?
 
|?
 
|$1746
 
|$1746
 +
|?
 
|-
 
|-
 
|ClearPLC
 
|ClearPLC
Line 151: Line 167:
 
|?
 
|?
 
|$1772
 
|$1772
 +
|?
 
|-
 
|-
 
|ClearPLC_Loop
 
|ClearPLC_Loop
Line 159: Line 176:
 
|?
 
|?
 
|$1778
 
|$1778
 +
|?
 
|-
 
|-
 
|RunPLC_RAM
 
|RunPLC_RAM
Line 168: Line 186:
 
|?
 
|?
 
|$1780
 
|$1780
 +
|?
 
|-
 
|-
 
|RunPLC_ROM
 
|RunPLC_ROM
Line 177: Line 196:
 
|?
 
|?
 
|$1882'''/'''$1892
 
|$1882'''/'''$1892
 +
|?
 
|-
 
|-
 
|Pal_FadeTo
 
|Pal_FadeTo
Line 186: Line 206:
 
|?
 
|?
 
|$3AF0
 
|$3AF0
 +
|?
 
|-
 
|-
 
|Pal_ToBlack
 
|Pal_ToBlack
Line 195: Line 216:
 
|?
 
|?
 
|$3B80
 
|$3B80
 +
|?
 
|-
 
|-
 
|Pal_FadeFrom
 
|Pal_FadeFrom
Line 204: Line 226:
 
|?
 
|?
 
|$3BE4
 
|$3BE4
 +
|?
 
|-
 
|-
 
|Pal_FadeOut
 
|Pal_FadeOut
Line 213: Line 236:
 
|?
 
|?
 
|$3C04
 
|$3C04
 +
|?
 
|-
 
|-
 
|PalLoad1
 
|PalLoad1
Line 221: Line 245:
 
|?
 
|?
 
|$3DBE
 
|$3DBE
 +
|?
 
|-
 
|-
 
|PalLoad2
 
|PalLoad2
Line 229: Line 254:
 
|?
 
|?
 
|$3DDA
 
|$3DDA
 +
|?
 
|-
 
|-
 
|PalLoad3_Water
 
|PalLoad3_Water
Line 237: Line 263:
 
|?
 
|?
 
|$3DF2
 
|$3DF2
 +
|?
 
|-
 
|-
 
|PalLoad4_Water
 
|PalLoad4_Water
Line 245: Line 272:
 
|?
 
|?
 
|$3E0E
 
|$3E0E
 +
|?
 
|-
 
|-
 
|DelayProgram
 
|DelayProgram
Line 255: Line 283:
 
|?
 
|?
 
|$1D18
 
|$1D18
 +
|?
 
|-
 
|-
 
|RandomNumber
 
|RandomNumber
Line 263: Line 292:
 
|?
 
|?
 
|$1D24
 
|$1D24
 +
|?
 
|-
 
|-
 
|CalcSine
 
|CalcSine
Line 271: Line 301:
 
|?
 
|?
 
|$1D4C
 
|$1D4C
 +
|?
 
|-
 
|-
 
|ObjectFall
 
|ObjectFall
Line 279: Line 310:
 
|?
 
|?
 
|$1AB32
 
|$1AB32
 +
|?
 
|-
 
|-
 
|SpeedToPos
 
|SpeedToPos
Line 287: Line 319:
 
|?
 
|?
 
|$1AB52
 
|$1AB52
 +
|?
 
|-
 
|-
 
|MarkObjGone
 
|MarkObjGone
Line 296: Line 329:
 
|?
 
|?
 
|$1B588
 
|$1B588
 +
|?
 
|-
 
|-
 
|DisplaySprite
 
|DisplaySprite
Line 304: Line 338:
 
|19240
 
|19240
 
|$1ABC6
 
|$1ABC6
 +
|?
 
|-
 
|-
 
|DeleteObject
 
|DeleteObject
Line 312: Line 347:
 
|?
 
|?
 
|$1ABB6
 
|$1ABB6
 +
|?
 
|-
 
|-
 
|DeleteObject2
 
|DeleteObject2
Line 320: Line 356:
 
|?
 
|?
 
|$1ABB8
 
|$1ABB8
 +
|?
 
|-
 
|-
 
|AnimateSprite
 
|AnimateSprite
Line 328: Line 365:
 
|AnimateSprite
 
|AnimateSprite
 
|$1ABE8
 
|$1ABE8
 +
|?
 
|-
 
|-
 
|SingleObjLoad
 
|SingleObjLoad
Line 336: Line 374:
 
|?
 
|?
 
|$1BAF2
 
|$1BAF2
 +
|?
 
|-
 
|-
 
|SingleObjLoad2
 
|SingleObjLoad2
Line 344: Line 383:
 
|?
 
|?
 
|$1BAFA
 
|$1BAFA
 +
|?
 
|-
 
|-
 
|SolidObject
 
|SolidObject
Line 350: Line 390:
 
{{grey|SolidObject}}
 
{{grey|SolidObject}}
 
|SolidObject
 
|SolidObject
 +
|?
 
|?
 
|?
 
|sub_1DC56
 
|sub_1DC56
Line 358: Line 399:
 
{{grey|PlatformObject}}
 
{{grey|PlatformObject}}
 
|PlatformObject
 
|PlatformObject
 +
|?
 
|?
 
|?
 
|?
 
|?
Line 367: Line 409:
 
{{grey|ObjCheckFloorDist}}
 
{{grey|ObjCheckFloorDist}}
 
|ObjCheckFloorDist
 
|ObjCheckFloorDist
 +
|?
 
|?
 
|?
 
|?
 
|?
Line 374: Line 417:
 
|loc_2D6CC
 
|loc_2D6CC
 
{{green|BossLoadExplosion}}
 
{{green|BossLoadExplosion}}
 +
|?
 
|?
 
|?
 
|?
 
|?
Line 381: Line 425:
 
|?
 
|?
 
|loc_2DB0E
 
|loc_2DB0E
 +
|?
 
|?
 
|?
 
|?
 
|?
Line 392: Line 437:
 
|?
 
|?
 
|$DCCA
 
|$DCCA
 +
|?
 
|-
 
|-
 
|KillSonic
 
|KillSonic
Line 400: Line 446:
 
|?
 
|?
 
|$10366
 
|$10366
 +
|?
 
|-
 
|-
 
|Sonic_Move
 
|Sonic_Move
Line 408: Line 455:
 
|?
 
|?
 
|$11060
 
|$11060
 +
|?
 
|-
 
|-
 
|Sonic_MoveLeft
 
|Sonic_MoveLeft
Line 414: Line 462:
 
{{grey|Sonic_MoveLeft}}
 
{{grey|Sonic_MoveLeft}}
 
|Knuckles_MoveLeft
 
|Knuckles_MoveLeft
 +
|?
 
|?
 
|?
 
|?
 
|?
Line 422: Line 471:
 
{{grey|Sonic_MoveRight}}
 
{{grey|Sonic_MoveRight}}
 
|Knuckles_MoveRight
 
|Knuckles_MoveRight
 +
|?
 
|?
 
|?
 
|?
 
|?
Line 432: Line 482:
 
|?
 
|?
 
|$92A0E
 
|$92A0E
 +
|?
 
|-
 
|-
 
|Touch_Monitor
 
|Touch_Monitor
Line 441: Line 492:
 
|?
 
|?
 
|$1001A
 
|$1001A
 +
|?
 
|-
 
|-
 
|Touch_Enemy
 
|Touch_Enemy
Line 450: Line 502:
 
|?
 
|?
 
|$100BC
 
|$100BC
 +
|?
 
|-
 
|-
 
|Touch_ChkValue
 
|Touch_ChkValue
Line 459: Line 512:
 
|?
 
|?
 
|$FFD4
 
|$FFD4
 +
|?
 
|-
 
|-
 
|LevSelControls
 
|LevSelControls
Line 467: Line 521:
 
|loc_6B4A
 
|loc_6B4A
 
|sub_7E64
 
|sub_7E64
 +
|?
 
|-
 
|-
 
|Sonic_ChgJumpDir
 
|Sonic_ChgJumpDir
Line 476: Line 531:
 
|?
 
|?
 
|$1164E
 
|$1164E
 +
|?
 
|-
 
|-
 
|Sonic_RollLeft
 
|Sonic_RollLeft
Line 482: Line 538:
 
{{grey|Sonic_RollLeft}}
 
{{grey|Sonic_RollLeft}}
 
|Knuckles_RollLeft
 
|Knuckles_RollLeft
 +
|?
 
|?
 
|?
 
|?
 
|?
Line 490: Line 547:
 
{{grey|Sonic_RollRight}}
 
{{grey|Sonic_RollRight}}
 
|Knuckles_RollRight
 
|Knuckles_RollRight
 +
|?
 
|?
 
|?
 
|?
 
|?
Line 500: Line 558:
 
|?
 
|?
 
|$116DE
 
|$116DE
 +
|?
 
|-
 
|-
 
|Boundary_Bottom
 
|Boundary_Bottom
Line 509: Line 568:
 
|?
 
|?
 
|$1172C
 
|$1172C
 +
|?
 
|-
 
|-
 
|Sonic_Jump
 
|Sonic_Jump
Line 517: Line 577:
 
|?
 
|?
 
|$117DA
 
|$117DA
 +
|?
 
|-
 
|-
 
|Sonic_Floor
 
|Sonic_Floor
Line 523: Line 584:
 
{{grey|Sonic_DoLevelCollision}}
 
{{grey|Sonic_DoLevelCollision}}
 
|Knuckles_DoLevelCollision
 
|Knuckles_DoLevelCollision
 +
|?
 
|?
 
|?
 
|?
 
|?

Revision as of 21:44, 19 March 2013

Please add more subroutines if you know them.

Label format details:

Sonic 1: Hivebrain 2005 label/SVN label (where applicable)

Sonic 2: Nemesis label/Xenowhirl 2007 label/SVN label (where applicable)

S1 S2B S2 S2K S3 S&K S3K
Demo_Time E56 sub_7E6

DemoTime Do_Updates

DemoTime ? $95A ?
Demo_TimeEnd E70 locret_800

DemoTime_End

return_300504 ? $976 ?
JoypadInit 12FC 10EC

JoypadInit

JoypadInit 1342 $10AE ?
ReadJoypads 132C 111C

ReadJoypads

ReadJoypads 1372 $10DE ?
Joypad_Read

@read

133A sub_112A

Joypad_Read

Joypad_Read ? $10EC ?
VDPSetupGame 1368 sub_1158

VDPSetupGame

VDPSetupGame 13AE $111A ?
VDP_Loop

@setreg

137C loc_116C

VDP_Loop

? ? $112E ?
VDP_ClrCRAM

@clrCRAM

13B0 loc_11A0

VDP_ClrCRAM

? ? $1162 ?
VDPSetupArray 13F2 word_11E2

VDPSetupArray

VDPSetupArray ? $11A4 ?
ClearScreen 142A, and 1458 1248, and 1276

ClearScreen

ClearScreen 14D4, and 1502 $11CA ?
PlaySound 14C0 sub_135E

PlayMusic

PlayMusic ? $1358 ?
PlaySound_Special 14C6 sub_1370

PlaySound

PlaySound ? $1380 ?
PauseGame 14DC sub_1388

PauseGame

PauseGame ? $13E4 ?
NemDec 15FC NemDec_14DE

NemDec

NemDec ? $15BA ?
LoadPLC

AddPLC

173C sub_161E

LoadPLC

LoadPLC ? $16FA ?
LoadPLC2

NewPLC

176E sub_1650

LoadPLC2

LoadPLC2 ? $1746 ?
ClearPLC 179A sub_167C

ClearPLC

ClearPLC ? $1772 ?
ClearPLC_Loop

@loop

17A0 loc_1682 ? ? $1778 ?
RunPLC_RAM

RunPLC

17A8 sub_168A

RunPLC_RAM

RunPLC_RAM ? $1780 ?
RunPLC_ROM

QuickPLC

18A8 sub_178A

RunPLC_ROM

RunPLC_ROM ? $1882/$1892 ?
Pal_FadeTo

PaletteFadeIn

2596 sub_23C6

Pal_FadeTo

Pal_FadeTo ? $3AF0 ?
Pal_ToBlack

@fill

25AE loc_23DE

Pal_ToBlack

Pal_ToBlack ? $3B80 ?
Pal_FadeFrom

PaletteFadeOut

263A sub_246A

Pal_FadeFrom

Pal_FadeFrom ? $3BE4 ?
Pal_FadeOut

FadeOut_ToBlack

265A sub_248A

Pal_FadeOut

Pal_FadeOut ? $3C04 ?
PalLoad1 28E2 2712

PalLoad1

PalLoad1 ? $3DBE ?
PalLoad2 28FE 272E

PalLoad2

PalLoad2 ? $3DDA ?
PalLoad3_Water 2916 2746

PalLoad3_Water

PalLoad3_Water ? $3DF2 ?
PalLoad4_Water 2932 2764

PalLoad4_Water

PalLoad4_Water ? $3E0E ?
DelayProgram

WaitForVBla

31D8 sub_3384

DelayProgram WaitForVint

DelayProgram ? $1D18 ?
RandomNumber 31E4 sub_3390

RandomNumber

RandomNumber ? $1D24 ?
CalcSine 320A sub_33B6

CalcSine

CalcSine ? $1D4C ?
ObjectFall D24E sub_16380

ObjectMoveAndFall

ObjectMoveAndFall ? $1AB32 ?
SpeedToPos D27A sub_163AC

ObjectMove

ObjectMove ? $1AB52 ?
MarkObjGone

RememberState

D2A0 loc_163D2

MarkObjGone

MarkObjGone ? $1B588 ?
DisplaySprite D3C2 sub_164F4

DisplaySprite

DisplaySprite 19240 $1ABC6 ?
DeleteObject D3B4 loc_164E6

DeleteObject

DeleteObject ? $1ABB6 ?
DeleteObject2 Offset_0x00D3B6 sub_164E8

DeleteObject2

DeleteObject2 ? $1ABB8 ?
AnimateSprite D412 sub_16544

AnimateSprite

AnimateSprite AnimateSprite $1ABE8 ?
SingleObjLoad SingleObjectLoad loc_17FDA

SingleObjLoad

SingleObjLoad ? $1BAF2 ?
SingleObjLoad2 E788 loc_17FFA

SingleObjLoad2

SingleObjLoad2 ? $1BAFA ?
SolidObject SolidObject loc_19718

SolidObject

SolidObject ? ? sub_1DC56
PlatformObject ? loc_19C32

PlatformObject

PlatformObject ? ? ?
ObjHitFloor

ObjFloorDist

13898 loc_1EDFA

ObjCheckFloorDist

ObjCheckFloorDist ? ? ?
BossDefeated none loc_2D6CC

BossLoadExplosion

? ? ? ?
BossMove ? loc_2DB0E ? ? ? ?
AddPoints AddPoints sub_40D06

AddPoints

? ? $DCCA ?
KillSonic ? loc_3F926

KillCharacter

KillCharacter ? $10366 ?
Sonic_Move ? loc_1A35A

Sonic_Move

Knuckles_Move ? $11060 ?
Sonic_MoveLeft ? loc_1A6C0

Sonic_MoveLeft

Knuckles_MoveLeft ? ? ?
Sonic_MoveRight Sonic_MoveRight loc_1A746

Sonic_MoveRight

Knuckles_MoveRight ? ? ?
DebugMode Debug_Mode loc_41A78

DebugMode

DebugMode ? $92A0E ?
Touch_Monitor

React_Monitor

? loc_3F73C

TouchMonitor

Touch_Monitor ? $1001A ?
Touch_Enemy

React_Enemy

? loc_3F78C

TouchEnemy

Touch_Enemy ? $100BC ?
Touch_ChkValue

@withiny

? loc_3F6F2

Touch_ChkValue

Touch_ChkValue ? $FFD4 ?
LevSelControls ? loc_94DC

LevSelControls

LevSelControls loc_6B4A sub_7E64 ?
Sonic_ChgJumpDir

Sonic_JumpDirection

? loc_1A8E8

Sonic_ChgJumpDir

Knuckles_ChgJumpDir ? $1164E ?
Sonic_RollLeft ? loc_1A8A2

Sonic_RollLeft

Knuckles_RollLeft ? ? ?
Sonic_RollRight ? loc_1A8C6

Sonic_RollRight

Knuckles_RollRight ? ? ?
Sonic_LevelBound ? loc_1A974

Sonic_LevelBound

Knuckles_LevelBoundaries ? $116DE ?
Boundary_Bottom

@bottom

? loc_1A9B6

Sonic_Boundary_Bottom

Knuckles_Boundary_Bottom ? $1172C ?
Sonic_Jump ? loc_1AA38

Sonic_Jump

Knuckles_Jump ? $117DA ?
Sonic_Floor ? loc_1AEAA

Sonic_DoLevelCollision

Knuckles_DoLevelCollision ? ? ?
Sonic Community Hacking Guide
General
Sonic Music Hacking Guide | SonED2 Manual
Game-Specific
Sonic the Hedgehog (16-bit) | Sonic the Hedgehog (8-bit) | Sonic Eraser | Sonic CD (prototype 510) | Sonic CD | Sonic CD (PC) | Sonic CD (2011) | Sonic 2 (Nick Arcade prototype) | Sonic 2 (Simon Wai prototype) | Sonic 2 (16-bit) | Sonic 2 (8-bit) | Sonic 2 & Knuckles | Dr. Robotnik's Mean Bean Machine | Sonic Triple Trouble | Sonic 3 | Sonic & Knuckles | Sonic the Hedgehog 3 & Knuckles | Sonic & Knuckles Collection | Sonic Crackers | Sonic 3D: Flickies' Island | Chaotix | Sonic R PC | Sonic Jam 6 | Sonic Advance | Sonic Advance 2 | Sonic Advance 3 | Sonic Battle | Sonic Adventure | Sonic Adventure DX: Director's Cut | Sonic Adventure DX: PC | Sonic Adventure (2010) | Sonic Shuffle | Sonic Adventure 2 | Sonic Adventure 2: Battle | Sonic Adventure 2 (PC) | Sonic Heroes | Shadow the Hedgehog | Sonic Riders | Sonic the Hedgehog (2006) | Sonic & Sega All-Stars Racing | Sonic Unleashed (Xbox 360/PS3) | Sonic Colours | Sonic Generations | Sonic Lost World | Sonic Forces
Legacy Guides
The Nemesis Hacking Guides The Esrael Hacking Guides
ROM: Sonic 1 | Sonic 2 | Sonic 2 Beta | Sonic 3

Savestate: Sonic 1 | Sonic 2 Beta/Final | Sonic 3

Sonic 1 (English / Portuguese) | Sonic 2 Beta (English / Portuguese) | Sonic 2 and Knuckles (English / Portuguese)
Move to Sega Retro
Number Systems (or scrap) | Assembly Hacking Guide | Subroutine Equivalency List | 68000 Instruction Set | 68000 ASM-to-Hex Code Reference | VDP Documentation | Official Sega 32X Documentation | Official Mega-CD Documentation | Official Sega Mega Drive Documentation