DB updates

Update: Stella Glow (EUR) & The Legend of Zelda (NES VC) (USA)
Add: Kirby's Dream Land (GB VC) (USA) & Kirby's Dream Land 2 (GB VC) (USA)
pull/29/head
Journey 2018-04-21 10:07:37 -05:00
parent 20827f4331
commit 0d8b086295
5 changed files with 118 additions and 8 deletions

View File

@ -4,6 +4,8 @@
# CTRPluginFramework # # CTRPluginFramework #
############################### ###############################
Those codes are all supported by CTRPF Beta 0.4.1 and higher.
============== ==============
INFO INFO
============== ==============
@ -75,11 +77,6 @@ D9000000 XXXXXXXX (32bit) sets data to [XXXXXXXX+offset]
DA000000 XXXXXXXX (16bit) sets data to [XXXXXXXX+offset] & 0xFFFF DA000000 XXXXXXXX (16bit) sets data to [XXXXXXXX+offset] & 0xFFFF
DB000000 XXXXXXXX (8bit) sets data to [XXXXXXXX+offset] & 0xFF DB000000 XXXXXXXX (8bit) sets data to [XXXXXXXX+offset] & 0xFF
Patch Code:
--------------
EXXXXXXX YYYYYYYY - Copy Y bytes (Z) to [XXXXXXX + offset]
ZZZZZZZZ ZZZZZZZZ
Input Codes: Input Codes:
---------------- ----------------
DD000000 XXXXXXXX if KEYPAD has value XXXXXXXX execute next block (see SPECIAL KEY CODE for values) DD000000 XXXXXXXX if KEYPAD has value XXXXXXXX execute next block (see SPECIAL KEY CODE for values)
@ -121,7 +118,7 @@ DF000001 00020001 - Copy data #2 to offset #2
DF000002 00020000 - Copy data #1 to storage #1 DF000002 00020000 - Copy data #1 to storage #1
DF000002 00020001 - Copy data #2 to storage #2 DF000002 00020001 - Copy data #2 to storage #2
Custom Codes: Arithmetic Codes:
--------------- ---------------
F0000001 0000000X - Toggle float mode for F1, F2, F3, F4, F5 (X: 0 to disable, 1 to enable) F0000001 0000000X - Toggle float mode for F1, F2, F3, F4, F5 (X: 0 to disable, 1 to enable)
F1XXXXXX YYYYYYYY - *(XXXXXX + offset) += YYYYYYYY F1XXXXXX YYYYYYYY - *(XXXXXX + offset) += YYYYYYYY
@ -136,10 +133,33 @@ F9000000 00000000 - NOT - data = ~data
FA000000 YYYYYYYY - Left shift - data <<= YYYYYYYY FA000000 YYYYYYYY - Left shift - data <<= YYYYYYYY
FB000000 YYYYYYYY - Right shift - data >>= YYYYYYYY FB000000 YYYYYYYY - Right shift - data >>= YYYYYYYY
Patch Code:
--------------
EXXXXXXX YYYYYYYY - Copy Y bytes (Z) to [XXXXXXX + offset]
ZZZZZZZZ ZZZZZZZZ
Copy Code:
--------------
FC000000 YYYYYYYY - Copy YYYYYYYY bytes from [offset#2] to [offset#1] FC000000 YYYYYYYY - Copy YYYYYYYY bytes from [offset#2] to [offset#1]
Hook Code:
--------------
FD0000WX YYYYYYYY - Create a hook at offset to custom code (ZZZZ), YYY is code size in bytes
ZZZZZZZZ ZZZZZZZZ
W - Manual Return (don't allow the assisted bx lr), set 1 to enable (default: 0)
X - Don't Execute Overwritten Instruction Before custom code, set 1 to enable (default: 0)
See more informations below
FD100000 YYYYYYYY - Disable a hook at address YYYYYYYY if exists
Search Code:
--------------
FE00XXXX YYYYYYYY - Search pattern (Z) from offset to offset + Y, XXXX is pattern size (in bytes) FE00XXXX YYYYYYYY - Search pattern (Z) from offset to offset + Y, XXXX is pattern size (in bytes)
ZZZZZZZZ ZZZZZZZZ Next block of code is executed if the pattern is found and offset is updated with the address ZZZZZZZZ ZZZZZZZZ Next block of code is executed if the pattern is found and offset is updated with the address
Generator Code:
-----------------
FFXXXXXX YYYYYYYY - data = random number between XXXXXX and YYYYYYYY FFXXXXXX YYYYYYYY - data = random number between XXXXXX and YYYYYYYY
=================== ===================
@ -168,3 +188,12 @@ SPECIAL KEYPAD CODE
0x20000000 CPad-Left 0x20000000 CPad-Left
0x40000000 CPad-Up 0x40000000 CPad-Up
0x80000000 CPad-Down 0x80000000 CPad-Down
Note about the hook system:
----------------------------
- A hook can only be created if the target address isn't already hooked
- All hooks created by a code will be disabled when the code is disabled in the menu (or edited using the builtin code editor)
- With default parameters (and except for instructions which are PC dependent), the overwritten instruction is executed before executing the custom code (ZZZZ)
- A maximum of 90 enabled hooks is available in same time
- No need for a code cave, the code will be placed into CTRPF's memory (so you can do really long code)
- Without Manual Return bit enabled, LR is changed before jumping to the custom code, so you can return to the hook manager which will restore LR before returning to the game

View File

@ -0,0 +1,12 @@
[Inhale From Anywhere(Enemies and Items)]
D3000000 08000000
20814863 00000000
20814877 00000000
D2000000 00000000
[Hit Anywhere]
D3000000 08000000
208143F1 00000000
D2000000 00000000

View File

@ -0,0 +1,33 @@
[Inhale From Anywhere]
D3000000 08000000
208025CE 00000000
208025EF 00000000
D2000000 00000000
[Hit Anywhere]
D3000000 08000000
208026F5 00000000
20802714 00000018
D2000000 00000000
[Invincibility]
D3000000 08000000
208027B8 000000C9
D2000000 00000000
[Don't Get Move By Water Currents]
D3000000 08000000
20823255 000000C9
D2000000 00000000
[Disable Autoscroll]
D3000000 08000000
20822E68 000000FA
D2000000 00000000
[Break Blocks With Breath]
D3000000 08000000
20803BDC 00000000
D2000000 00000000

View File

@ -3,10 +3,18 @@
[Max Gold] [Max Gold]
080D4450 05F5E0FF 080D4450 05F5E0FF
[Infinite Free Time] [Free Time x3]
080D4440 00000000 080D4440 00000000
080D4444 00000000 080D4444 00000000
[Free Time x2]
080D4440 00000001
080D4444 00000001
[Free Time x1]
080D4440 00000002
080D4444 00000002
[Max Play Coins] [Max Play Coins]
102F66B4 000003E7 102F66B4 000003E7

View File

@ -34,3 +34,31 @@ D0000000 00000000
[Reset Amount of Rupees] [Reset Amount of Rupees]
2884CCCD 00000000 2884CCCD 00000000
[Hit Anywhere]
D3000000 08000000
208513C3 00000000
208513F8 000000AD
20812F6D 00000000
D2000000 00000000
[Walk Faster]
D3000000 08000000
208173A7 000000A9
208173A8 800000B0
00000000 00000000
[Invincibility]
D3000000 08000000
2085130A 00000060
D2000000 00000000
[Easier Lost Woods(Go left 4 times.)]
D3000000 08000000
20850D0E 00000000
D2000000 00000000
[Dark Rooms Are Always Lit]
D3000000 08000000
208143B0 000000C0
D2000000 00000000