Actions

SCHG

Difference between revisions of "Sonic Jam 6/ROM Editing"

From Sonic Retro

m (rm useless heading)
(Editing to use the standard SCHG guide style, and heading levels)
Line 1: Line 1:
 +
__NOTOC__
 +
{{SCHG SJ6}}
 
==Values==
 
==Values==
 
{|class="prettytable"
 
{|class="prettytable"
Line 28: Line 30:
 
==Functions==
 
==Functions==
  
==Title Screen Functions==
+
===Title Screen Functions===
  
==Button check==
+
====Button check====
 
{|class="prettytable"
 
{|class="prettytable"
 
!Offset||Description
 
!Offset||Description
Line 64: Line 66:
 
|bra.w locret_B6A ; No button pressed, branch to this other one.
 
|bra.w locret_B6A ; No button pressed, branch to this other one.
 
|}
 
|}
 +
 +
[[Category:Sonic Community Hacking Guide]]

Revision as of 07:27, 30 October 2008

SCHG: Sonic Jam 6
Main Article
ROM Editing
Editing ROM
Values
Functions
Title Screen
Levels
Bonus Level
Sound Driver
Play BGM
Play SFX
RAM Editing
Editing RAM
Art Editing
Editing Art
Title Screen
Title Screen Palette
Levels
Level Palettes
Value Reference
Value Reference
Level Map Numbers
SFX Numbers

Values

Offset Description Note
0x1430 Array which contains music numbers for each map (WORD ARRAY).
0x0ad2 Demo properties (structure array, 0xe bytes long).
  • 0 (w), Level map number
  • 2 (w), ???
  • 4 (w), ???
  • 6 (w), ???
  • 8 (w), ???
  • A (w), ???
  • C (w), ???
0x0dde Level map world-level number (structure array, 0x4 bytes long).
  • 0 (w), World number tile
  • 2 (w), Level number tile
  • To put a number just write <number> + 0x1A, zero extended

Functions

Title Screen Functions

Button check

Offset Description
ROM:00000B18 title_screen_check_buttons CODE XREF: sub_84E+15C�p.
ROM:00000B18 btst #5,(word_FF001C).l ; Check C button.
ROM:00000B20 bne.w loc_B4C ; If it's pressed, branch.
ROM:00000B24 btst #7,(word_FF001C).l ; Check Start button.
ROM:00000B2C bne.w loc_B4C ; If it's pressed, branch.
ROM:00000B30 btst #6,(word_FF001C).l ; Check A button.
ROM:00000B38 bne.w loc_B4C ;If it's pressed, branch.
ROM:00000B3C btst #4,(word_FF001C).l ; Check B button.
ROM:00000B44 bne.w loc_B4C ; If it's pressed, branch.
ROM:00000B48 bra.w locret_B6A ; No button pressed, branch to this other one.