Difference between revisions of "Sonic the Hedgehog CD/MMD Tweaking"
From Sonic Retro
(Major cleanup) |
(On second thought ...) |
||
Line 1: | Line 1: | ||
Here are some locations in an European Sonic CD level MMD which contain tweakable code (in 68k assembly). | Here are some locations in an European Sonic CD level MMD which contain tweakable code (in 68k assembly). | ||
− | + | ==Maximum rings allowed== | |
$AEFA: | $AEFA: | ||
move.w (word_FF1512).l,d1 ; Move number of rings into d1 | move.w (word_FF1512).l,d1 ; Move number of rings into d1 | ||
Line 9: | Line 9: | ||
move.w d1,(word_FF1512).l ; Move d1 back to the address where the number of rings is at | move.w d1,(word_FF1512).l ; Move d1 back to the address where the number of rings is at | ||
− | + | ==Lowest number of rings required to access the special stage== | |
$D50C: | $D50C: | ||
cmpi.w #$32,(word_FF1512).l ; Compare 50 with the number of rings | cmpi.w #$32,(word_FF1512).l ; Compare 50 with the number of rings | ||
Line 15: | Line 15: | ||
jmp sub_20788C ; Otherwise jump here | jmp sub_20788C ; Otherwise jump here | ||
− | + | ==Number of rings you get when you break the ring monitor== | |
$A88E: | $A88E: | ||
addi.w #$A,(word_FF1512).l ; Add 10 to the current number of rings | addi.w #$A,(word_FF1512).l ; Add 10 to the current number of rings |
Revision as of 09:09, 7 August 2008
Here are some locations in an European Sonic CD level MMD which contain tweakable code (in 68k assembly).
Maximum rings allowed
$AEFA: move.w (word_FF1512).l,d1 ; Move number of rings into d1 cmpi.w #$3E8,d1 ; Compare $3E8 (1000) with d1 (number of rings) bcs.s loc_20AF10 ; If the number of rings is < 1000, branch move.w #$3E7,d1 ; Move $3E7 (999) into d1 move.w d1,(word_FF1512).l ; Move d1 back to the address where the number of rings is at
Lowest number of rings required to access the special stage
$D50C: cmpi.w #$32,(word_FF1512).l ; Compare 50 with the number of rings bcc.s loc_20D51C ; If number of rings >= 50, allow entrance to the special stage. jmp sub_20788C ; Otherwise jump here
Number of rings you get when you break the ring monitor
$A88E: addi.w #$A,(word_FF1512).l ; Add 10 to the current number of rings