Demon's Souls: Difference between revisions

From RPCS3 Wiki
No edit summary
mNo edit summary
 
(36 intermediate revisions by 8 users not shown)
Line 8: Line 8:
|genre    = Action, Role-playing
|genre    = Action, Role-playing
|modes    = Single-player, Multiplayer
|modes    = Single-player, Multiplayer
|gameid    = {{gameid|id=BLES00932, BLUS30443, NPEB01202, NPUB30910|oid=BCAS20071|ird=Yes}}
|gameid    = {{gameid|id=BLES00932, BLUS30443, BCJS30022, NPEB01202, NPUB30910, NPJA00102|oid=BCAS20071|ird=Yes}}<br>'''''Trade Demo'''''<br>{{gameid|id=BLUD80018|ird=Yes}}
|internal resolution = 1280x720
}}
}}


Line 16: Line 17:
<!-- Enter mandatory non-default settings to be used. Recommendatory or default settings can be entered only on exceptional basis. -->{{config
<!-- Enter mandatory non-default settings to be used. Recommendatory or default settings can be entered only on exceptional basis. -->{{config
<!-- CPU configuration -->
<!-- CPU configuration -->
|ppu decoder                          = <!-- Interpreter (precise), Interpreter (fast), Recompiler (LLVM) -->
|ppu decoder                          = <!-- Interpreter (static), Interpreter (dynamic), Recompiler (LLVM) -->
|ppu decoder notes                    =  
|ppu decoder notes                    =  
|spu decoder                          = <!-- Interpreter (precise), Interpreter (fast), Recompiler (ASMJIT), Recompiler (LLVM) -->
|spu decoder                          = <!-- Interpreter (static), Interpreter (dynamic), Recompiler (ASMJIT), Recompiler (LLVM) -->
|spu decoder notes                    =  
|spu decoder notes                    =  
|preferred spu threads                = <!-- Auto, Single digit between 1 to 6 (e.g. 3), Range between 1 to 6 (e.g. 1 - 3) -->
|preferred spu threads                = <!-- Auto, Single digit between 1 to 6 (e.g. 3), Range between 1 to 6 (e.g. 1 - 3) -->
Line 24: Line 25:
|thread scheduler                      = <!-- Operating System, RPCS3 Scheduler, RPCS3 Alternative Scheduler -->
|thread scheduler                      = <!-- Operating System, RPCS3 Scheduler, RPCS3 Alternative Scheduler -->
|thread scheduler notes                =  
|thread scheduler notes                =  
|lower spu thread priority            = <!-- On, Off -->
|lower spu thread priority notes      =
|enable spu loop detection            = <!-- On, Off -->
|enable spu loop detection            = <!-- On, Off -->
|enable spu loop detection notes      =  
|enable spu loop detection notes      =  
|spu cache                            = <!-- On, Off -->
|spu xfloat accuracy                  = <!-- Accurate, Approximate, Relaxed -->
|spu cache notes                      =
|spu xfloat accuracy notes             =  
|accurate xfloat                      = <!-- On, Off -->
|spu block size                        = Safe<!-- Safe, Mega, Giga -->
|accurate xfloat notes                 =  
|spu block size notes                  = Mega and Giga are unstable with Demon's Souls at the moment.
|spu block size                        = <!-- Safe, Mega, Giga -->
|spu block size notes                  =  
|tsx instructions                      = <!-- Enabled, Disabled, Forced -->
|tsx instructions                      = <!-- Enabled, Disabled, Forced -->
|tsx instructions notes                =  
|tsx instructions notes                =  
Line 41: Line 38:
|aspect ratio                          = <!-- 4:3, 16:9 -->
|aspect ratio                          = <!-- 4:3, 16:9 -->
|aspect ratio notes                    =  
|aspect ratio notes                    =  
|framelimit                            = <!-- Off, 59.94, 50, 60, 30, Auto -->
|framelimit                            = <!-- Off, 50, 60, 30, Auto, PS3 Native, Infinite -->
|framelimit notes                      =  
|framelimit notes                      =  
|anisotropic filter                    = <!-- Auto, 2x, 4x, 8x, 16x -->
|anisotropic filter                    = <!-- Auto, 2x, 4x, 8x, 16x -->
Line 47: Line 44:
|anti-aliasing                        = <!-- Auto, Disabled -->
|anti-aliasing                        = <!-- Auto, Disabled -->
|anti-aliasing notes                  =  
|anti-aliasing notes                  =  
|zcull accuracy                        = <!-- Precise, Approximate, Relaxed -->
|zcull accuracy notes                  =
|shader quality                        = <!-- High, Low, Auto -->
|shader quality notes                  =
|3d rendering mode                    = <!-- Disabled, Anaglyph, Side-by-side, Over-under -->
|3d rendering mode notes              =
|default resolution                    = <!-- 1920x1080, 1280x720, 720x480, 720x576, 1600x1080, 1440x1080, 1280x1080, 960x1080 -->
|default resolution                    = <!-- 1920x1080, 1280x720, 720x480, 720x576, 1600x1080, 1440x1080, 1280x1080, 960x1080 -->
|default resolution notes              =  
|default resolution notes              =  
|resolution scale                      = <!-- Value between 50% to 800% -->
|resolution scale                      = <!-- Value between 50% to 800% -->
|resolution scale notes                =  
|resolution scale notes                =  
|resolution scale threshold            = 640 x 640<!-- Value between 1 to 1024 in the format 16 x 16 -->
|resolution scale threshold            = 640 x 640 <!-- Value between 1 to 1024 in the format 16 x 16 -->
|resolution scale threshold notes      = Properly scales the depth of field effect at resolution scales higher than the default 1280x720.
|resolution scale threshold notes      = Properly scales the depth of field effect at resolution scales higher than the default 1280x720.
|shader mode                          = <!-- Legacy (singlethreaded), Async (multithreaded), Async with Shader Interpreter, Shader Interpreter only -->
|shader mode                          = <!-- Legacy (singlethreaded), Async (multithreaded), Async with Shader Interpreter, Shader Interpreter only -->
Line 63: Line 66:
|stretch to display area              = <!-- On, Off -->
|stretch to display area              = <!-- On, Off -->
|stretch to display area notes        =  
|stretch to display area notes        =  
|enable 3d                            = <!-- On, Off -->
|enable 3d notes                      =
|disable vertex cache                  = <!-- On, Off -->
|disable vertex cache notes            =
|multithreaded rsx                    = <!-- On, Off -->
|multithreaded rsx                    = <!-- On, Off -->
|multithreaded rsx notes              =  
|multithreaded rsx notes              =  
Line 72: Line 71:
|asynchronous texture streaming notes  =  
|asynchronous texture streaming notes  =  
<!-- Audio configuration -->
<!-- Audio configuration -->
|audio out windows                    = <!-- XAudio2, OpenAL, Disabled -->
|audio out windows                    = <!-- Cubeb, XAudio2, Disabled -->
|audio out windows notes              =  
|audio out windows notes              =  
|audio out linux                      = <!-- OpenAL, PulseAudio, ALSA, Disabled -->
|audio out linux                      = <!-- Cubeb, FAudio, Disabled -->
|audio out linux notes                =  
|audio out linux notes                =  
|audio channels                        = <!-- Surround 7.1, Downmix to Stereo, Downmix to 5.1 -->
|audio format                          = <!-- Stereo, Surround 5.1, Surround 7.1, Automatic, Manual -->
|audio channels notes                 =  
|audio format notes                   =  
|dump to file                          = <!-- On, Off -->
|dump to file                          = <!-- On, Off -->
|dump to file notes                    =  
|dump to file notes                    =  
Line 101: Line 100:
|camera input                          = <!-- Unknown, EyeToy, PS Eye, UVC 1.1 -->
|camera input                          = <!-- Unknown, EyeToy, PS Eye, UVC 1.1 -->
|camera input notes                    =  
|camera input notes                    =  
|camera settings                      = <!-- Null, Fake -->
|camera settings                      = <!-- Null, Fake, Qt -->
|camera settings notes                =  
|camera settings notes                =  
|move handler                          = <!-- Null, Fake, Mouse -->
|move handler                          = <!-- Null, Fake, Mouse -->
|move handler notes                    =  
|move handler notes                    =  
<!-- Network configuration -->
|network status                        = <!-- Disconnected, Connected -->
|network status notes                  =
|psn status                            = <!-- Disconnected, Simulated, RPCN -->
|psn status notes                      =
<!-- Advanced configuration -->
<!-- Advanced configuration -->
|debug console mode                    = <!-- On, Off -->
|debug console mode                    = <!-- On, Off -->
Line 110: Line 114:
|accurate llvm dfma                    = <!-- On, Off -->
|accurate llvm dfma                    = <!-- On, Off -->
|accurate llvm dfma notes              =  
|accurate llvm dfma notes              =  
|accurate getllar                      = <!-- On, Off -->
|accurate getllar notes                =
|accurate rsx reservation access      = <!-- On, Off -->
|accurate rsx reservation access      = <!-- On, Off -->
|accurate rsx reservation access notes =  
|accurate rsx reservation access notes =  
|accurate spu dma                      = <!-- On, Off -->
|accurate spu dma notes                =
|ppu llvm accurate vector nans        = <!-- On, Off -->
|ppu llvm accurate vector nans        = <!-- On, Off -->
|ppu llvm accurate vector nans notes  =  
|ppu llvm accurate vector nans notes  =  
|ppu llvm java mode handling          = <!-- On, Off -->
|ppu llvm java mode handling notes    =
|silence all logs                      = <!-- On, Off -->
|silence all logs                      = <!-- On, Off -->
|silence all logs notes                =  
|silence all logs notes                =  
Line 119: Line 129:
|sleep timers accuracy notes          =  
|sleep timers accuracy notes          =  
|maximum spurs threads                = 3 <!-- Unlimited, Single digit between 0 to 5 (e.g. 3) -->
|maximum spurs threads                = 3 <!-- Unlimited, Single digit between 0 to 5 (e.g. 3) -->
|maximum spurs threads notes          = Helps with performance. Don’t mess with this if you have a CPU with more than 6 cores and 12 threads as you may experience performance loss.  
|maximum spurs threads notes          = Helps with performance. Don’t mess with this if you have a CPU with more than 6 cores and 12 threads as you may experience performance loss.
|firmware libraries                    = <!-- Switch to LLE, Switch to HLE -->
|firmware libraries                    = <!-- Switch to LLE, Switch to HLE -->
|firmware libraries notes              = <!-- Mention the libraries to be manually selected here -->
|firmware libraries notes              = <!-- Mention the libraries to be manually selected here -->
Line 130: Line 140:
|disable on-disk shader cache          = <!-- On, Off -->
|disable on-disk shader cache          = <!-- On, Off -->
|disable on-disk shader cache notes    =  
|disable on-disk shader cache notes    =  
|disable native float16 support        = <!-- On, Off -->
|disable vertex cache                  = <!-- On, Off -->
|disable native float16 support notes =  
|disable vertex cache notes           =  
|relaxed zcull sync                    = <!-- On, Off -->
|rsx fifo accuracy                    = <!-- Fast, Atomic, Ordered & Atomic -->
|relaxed zcull sync notes             =  
|rsx fifo accuracy notes               =  
|driver wake-up delay                  = <!-- Value between 0 to 7000 -->
|driver wake-up delay                  = <!-- Value between 0 to 7000 -->
|driver wake-up delay notes            =  
|driver wake-up delay notes            =  
|vblank rate                          = <!-- Value between 1 to 500 -->
|vblank rate                          = <!-- Value between 1 to 500 -->
|vblank rate notes                    =  
|vblank rate notes                    =  
|vblank ntsc fixup                    = <!-- On, Off -->
|vblank ntsc fixup notes              =
|clocks scale                          = <!-- Value between 10 to 1000 -->
|clocks scale                          = <!-- Value between 10 to 1000 -->
|clocks scale notes                    =  
|clocks scale notes                    =  
Line 145: Line 157:
|force cpu blit emulation              = <!-- On, Off -->
|force cpu blit emulation              = <!-- On, Off -->
|force cpu blit emulation notes        =  
|force cpu blit emulation notes        =  
|use gpu texture scaling               = <!-- On, Off -->
|force gpu texture scaling             = <!-- On, Off -->
|use gpu texture scaling notes         =
|force gpu texture scaling notes       =  
|accurate getllar                      = <!-- On, Off -->
|accurate getllar notes                =  
|hook static functions                = <!-- On, Off -->
|hook static functions                = <!-- On, Off -->
|hook static functions notes          =  
|hook static functions notes          =  
|accurate ppu 128 reservations        = <!-- Always Enabled, Disabled, Value between 1 to 8 -->
|accurate ppu 128 reservations        = <!-- Always Enabled, Disabled, Value between 1 to 8 -->
|accurate ppu 128 reservations notes  =  
|accurate ppu 128 reservations notes  =  
|ppu llvm java mode handling          = <!-- True, False -->
|ppu thread count                      = <!-- Value between 1 to 8 -->
|ppu llvm java mode handling notes     =  
|ppu thread count notes                =
<!-- Recommended patches -->
|highly recommended patch              = Unlock FPS<!-- Mention patch names -->
|highly recommended patch notes        = Can make certain shortcuts/skips more difficult to do.
|recommended patch                    = Skip Intro Videos, Disable Motion Blur<!-- Mention patch names -->
|recommended patch notes               =  
}}
}}


==Known Issues==
==Known Issues==
<!-- There are no reported issues with this title. -->
<!-- There are no reported issues with this title. -->
 
There are no reported issues with this title.
===Missing Geometry===
{{issue|4302}} - There are certain situations when the game doesn't send geometry to be rendered (like the invisible soldier shield). Can be fixed with [https://www.nexusmods.com/demonssouls/mods/39 this mod]. Be sure to read the readme file included with the mod carefully when applying this mod.  


==Special Notes==
==Special Notes==
Line 167: Line 180:


===Gray Outline Removal When Upscaling===
===Gray Outline Removal When Upscaling===
When upscaling in this game, gray outlines appear in the hud while in-game and in certain UI elements. You can use [https://www.nexusmods.com/demonssouls/mods/8 this mod] to eliminate that. Be sure to read the installation instruction in the description tab of the linked page carefully when applying this mod.
When upscaling in this game, gray outlines appear in the hud while in-game and in certain UI elements. You can use [https://www.nexusmods.com/demonssouls/mods/8 this mod] to eliminate that. Be sure to read the installation instruction in the description tab of the linked page carefully when applying this mod.


===Disable Depth of Field===
===Disable Depth of Field===
If you don't want to adjust resolution scale threshold for proper DoF scaling when upscaling (as mentioned in the configuration section above), then alternatively you can use [https://www.nexusmods.com/demonssouls/mods/1 this mod] to disable this effect entirely. Be sure to read the installation instruction in the description tab of the linked page carefully when applying this mod.  
If you don't want to adjust resolution scale threshold for proper DoF scaling when upscaling (as mentioned in the configuration section above), then alternatively you can use [https://www.nexusmods.com/demonssouls/mods/1 this mod] to disable this effect entirely. Be sure to read the installation instruction in the description tab of the linked page carefully when applying this mod.


===Incorrect FPS counter===
Demon's Souls has an internal technique where it will output duplicate frames if the games performance is not at the FPS cap. This makes the FPS counters report that the game is running at 30 FPS or 60 FPS at all times while the actual performance could be 15 FPS as the game is outputting duplicate frames if your performance is too low. This is not a bug. It's just an unfortunate result of how Demon's Souls works. The reliable way to check true performance is to record gameplay footage and then use tools to analyze the frame-rate from the footage. However, users may use the FPS patch which disables the game's internal frame duplication logic to check performance levels.


{{netplay
|gamever        = 1.00
|rpcs3 version  = N/A
|connect        = Yes<!-- Yes, No, Partial, Untested, N/A -->
|lobbies        = Yes<!-- Yes, No, Partial, Untested, N/A -->
|match          = Yes<!-- Yes, No, Partial, Untested, N/A -->
|features      = Yes<!-- Yes, No, Partial, Untested, N/A -->
|custom servers = Available<!-- Available, Not available, Not required, Untested -->
|notes    = Requires custom IP/Hosts switches. [https://thearchstones.com/serverinfo.html More info]<br> Alternatively players can host their own [https://github.com/ymgve/desse server.]
}}
===Netplay IP/Host Switches===
This title requires a private server to access all Netplay features. Enter the below text in the '''IP/Host Switches''' section:
<pre>ds-eu-c.scej-online.jp=206.189.232.242&&ds-eu-g.scej-online.jp=206.189.232.242&&c.demons-souls.com=206.189.232.242&&g.demons-souls.com=206.189.232.242&&cmnap.scej-online.jp=206.189.232.242&&demons-souls.scej-online.jp=206.189.232.242</pre>
[[Category:Custom servers (Netplay)]]


{{patch
{{patch
|type    = PPU
|type    = PPU
|version = 1.2
|version = 1.2
|content =  
|content =
Anchors:
Anchors:
   BLUS30443_FpsUnlock: &BLUS30443_FpsUnlock
   BLUS30443_FpsUnlock: &BLUS30443_FpsUnlock
   # Set 60FPS with no frameskip
   # Set 60 FPS with no frameskip
   # by Gibbed
   # by Gibbed
     - [ be16, 0x25ed8, 0x981f ]
     - [ be16, 0x00025ed8, 0x981f ]
 
   # delta time
   # delta time
   # by Whatcookie
   # by Whatcookie
     - [ be32, 0x0001b964, 0x496ac2cd ] # jump to code cave
     - [ be32, 0x0001b964, 0x496ac2cd ] # jump to code cave
 
   # get mftb
   # get mftb
     - [ be32, 0x016c7c30, 0x7eac42e6 ] # mftb r21              // Move from timebase register (clock)
     - [ be32, 0x016c7c30, 0x7eac42e6 ] # mftb r21              // move from timebase register (clock)
 
   # get mftb delta
   # get mftb delta
     - [ be32, 0x016c7c34, 0x3ec00185 ] # lis r22,0x0185        // load high bits of address
     - [ be32, 0x016c7c34, 0x3ec00185 ] # lis r22,0x0185        // load high bits of address
Line 197: Line 224:
     - [ be32, 0x016c7c40, 0xfab60000 ] # std r21,0x0(r22)      // store this frames mftb reading
     - [ be32, 0x016c7c40, 0xfab60000 ] # std r21,0x0(r22)      // store this frames mftb reading
     - [ be32, 0x016c7c44, 0x7e74a850 ] # subf r19,r21,r20      // subtract previous mftb reading from this mftb frames reading
     - [ be32, 0x016c7c44, 0x7e74a850 ] # subf r19,r21,r20      // subtract previous mftb reading from this mftb frames reading
 
   # mftb delta to float
   # mftb delta to float
     - [ be32, 0x016c7c48, 0xfa760018 ] # std r19,0x18(r22)    // store mftb delta (to be loaded into FPR)
     - [ be32, 0x016c7c48, 0xfa760018 ] # std r19,0x18(r22)    // store mftb delta (to be loaded into FPR)
Line 203: Line 229:
     - [ be32, 0x016c7c50, 0xffc0f69c ] # fcfid f30,f30        // convert integer to double
     - [ be32, 0x016c7c50, 0xffc0f69c ] # fcfid f30,f30        // convert integer to double
     - [ be32, 0x016c7c54, 0xffc0f018 ] # frsp f30,f30          // round to single precision
     - [ be32, 0x016c7c54, 0xffc0f018 ] # frsp f30,f30          // round to single precision
 
   # mftb delta to seconds
   # mftb delta to seconds
     - [ be32, 0x016c7c58, 0x3e40016c ] # r18,0x16c            // load high bits constants pointer
     - [ be32, 0x016c7c58, 0x3e40016c ] # r18,0x16c            // load high bits constants pointer
Line 210: Line 235:
     - [ be32, 0x016c7c64, 0xc3920058 ] # lfs f28,0x58(r18)    // load maximum timestep size
     - [ be32, 0x016c7c64, 0xc3920058 ] # lfs f28,0x58(r18)    // load maximum timestep size
     - [ be32, 0x016c7c68, 0xeffee824 ] # fdivs f31,f30,f29    // divide timebase delta by timebase frequency
     - [ be32, 0x016c7c68, 0xeffee824 ] # fdivs f31,f30,f29    // divide timebase delta by timebase frequency
 
   # check timestep size
   # check timestep size
     - [ be32, 0x016c7c6c, 0xff9fe000 ] # fcmpu cr7,f31,f28    // compare current delta time to maximum timestep
     - [ be32, 0x016c7c6c, 0xff9fe000 ] # fcmpu cr7,f31,f28    // compare current delta time to maximum timestep
     - [ be32, 0x016c7c70, 0x419c0008 ] # blt +0x08            // don't return the maximum timestep size
     - [ be32, 0x016c7c70, 0x419c0008 ] # blt +0x08            // don't return the maximum timestep size
 
   # set maximum timestep
   # set maximum timestep
     - [ be32, 0x016c7c74, 0xffe0e090 ] # fmr f31,f28          // move maximum timestep to be returned
     - [ be32, 0x016c7c74, 0xffe0e090 ] # fmr f31,f28          // move maximum timestep to be returned
 
   # cleanup
   # cleanup
     - [ be32, 0x016c7c78, 0x7e94a278 ] # xor r20,r20,r20      // zero r20
     - [ be32, 0x016c7c78, 0x7e94a278 ] # xor r20,r20,r20      // zero r20
     - [ be32, 0x016c7c7c, 0x7e94a278 ] # xor r19,r19,r19      // zero r19
     - [ be32, 0x016c7c7c, 0x7e94a278 ] # xor r19,r19,r19      // zero r19
     - [ be32, 0x016c7c80, 0x4e800020 ] # blr                  // return
     - [ be32, 0x016c7c80, 0x4e800020 ] # blr                  // return
 
   # constants
   # constants
     - [ be32, 0x016c7c84, 0x4c989680 ] # timebase frequency as hexfloat (80mhz)
     - [ be32, 0x016c7c84, 0x4c989680 ] # timebase frequency as hexfloat (80mhz)
     - [ bef32, 0x016c7c88, 0.05000000 ] # maximum timestep size (50ms or 20FPS)
     - [ bef32, 0x016c7c88, 0.05 ]     # maximum timestep size (50ms or 20 FPS)
 
 
   BLES00932_FpsUnlock: &BLES00932_FpsUnlock
   BLES00932_FpsUnlock: &BLES00932_FpsUnlock
   # Set 60FPS with no frameskip
   # Set 60 FPS with no frameskip
   # by Gibbed
   # by Gibbed
     - [ be16, 0x26ac0, 0x981f ]
     - [ be16, 0x00026ac0, 0x981f ]
 
   # delta time
   # delta time
   # by Whatcookie
   # by Whatcookie
     - [ be32, 0x0001c534, 0x496ada1d ] # jump to code cave
     - [ be32, 0x0001c534, 0x496ada1d ] # jump to code cave
 
   # get mftb
   # get mftb
     - [ be32, 0x016c9f50, 0x7eac42e6 ] # mftb r21              // Move from timebase register (clock)
     - [ be32, 0x016c9f50, 0x7eac42e6 ] # mftb r21              // move from timebase register (clock)
 
   # get mftb delta
   # get mftb delta
     - [ be32, 0x016c9f54, 0x3ec00185 ] # lis r22,0x0185        // load high bits of address
     - [ be32, 0x016c9f54, 0x3ec00185 ] # lis r22,0x0185        // load high bits of address
Line 245: Line 263:
     - [ be32, 0x016c9f60, 0xfab60000 ] # std r21,0x0(r22)      // store this frames mftb reading
     - [ be32, 0x016c9f60, 0xfab60000 ] # std r21,0x0(r22)      // store this frames mftb reading
     - [ be32, 0x016c9f64, 0x7e74a850 ] # subf r19,r21,r20      // subtract previous mftb reading from this mftb frames reading
     - [ be32, 0x016c9f64, 0x7e74a850 ] # subf r19,r21,r20      // subtract previous mftb reading from this mftb frames reading
 
   # mftb delta to float
   # mftb delta to float
     - [ be32, 0x016c9f68, 0xfa760018 ] # std r19,0x18(r22)    // store mftb delta (to be loaded into FPR)
     - [ be32, 0x016c9f68, 0xfa760018 ] # std r19,0x18(r22)    // store mftb delta (to be loaded into FPR)
Line 251: Line 268:
     - [ be32, 0x016c9f70, 0xffc0f69c ] # fcfid f30,f30        // convert integer to double
     - [ be32, 0x016c9f70, 0xffc0f69c ] # fcfid f30,f30        // convert integer to double
     - [ be32, 0x016c9f74, 0xffc0f018 ] # frsp f30,f30          // round to single precision
     - [ be32, 0x016c9f74, 0xffc0f018 ] # frsp f30,f30          // round to single precision
 
   # mftb delta to seconds
   # mftb delta to seconds
     - [ be32, 0x016c9f78, 0x3e40016c ] # r18,0x16c            // load high bits constants pointer
     - [ be32, 0x016c9f78, 0x3e40016c ] # r18,0x16c            // load high bits constants pointer
Line 258: Line 274:
     - [ be32, 0x016c9f84, 0xc3920058 ] # lfs f28,0x58(r18)    // load maximum timestep size
     - [ be32, 0x016c9f84, 0xc3920058 ] # lfs f28,0x58(r18)    // load maximum timestep size
     - [ be32, 0x016c9f88, 0xeffee824 ] # fdivs f31,f30,f29    // divide timebase delta by timebase frequency
     - [ be32, 0x016c9f88, 0xeffee824 ] # fdivs f31,f30,f29    // divide timebase delta by timebase frequency
 
   # check timestep size
   # check timestep size
     - [ be32, 0x016c9f8c, 0xff9fe000 ] # fcmpu cr7,f31,f28    // compare current delta time to maximum timestep
     - [ be32, 0x016c9f8c, 0xff9fe000 ] # fcmpu cr7,f31,f28    // compare current delta time to maximum timestep
     - [ be32, 0x016c9f90, 0x419c0008 ] # blt +0x08            // don't return the maximum timestep size
     - [ be32, 0x016c9f90, 0x419c0008 ] # blt +0x08            // don't return the maximum timestep size
 
   # set maximum timestep
   # set maximum timestep
     - [ be32, 0x016c9f94, 0xffe0e090 ] # fmr f31,f28          // move maximum timestep to be returned
     - [ be32, 0x016c9f94, 0xffe0e090 ] # fmr f31,f28          // move maximum timestep to be returned
 
   # cleanup
   # cleanup
     - [ be32, 0x016c9f98, 0x7e94a278 ] # xor r20,r20,r20      // zero r20
     - [ be32, 0x016c9f98, 0x7e94a278 ] # xor r20,r20,r20      // zero r20
     - [ be32, 0x016c9f9c, 0x7e94a278 ] # xor r19,r19,r19      // zero r19
     - [ be32, 0x016c9f9c, 0x7e94a278 ] # xor r19,r19,r19      // zero r19
     - [ be32, 0x016c9fa0, 0x4e800020 ] # blr                  // return
     - [ be32, 0x016c9fa0, 0x4e800020 ] # blr                  // return
 
   # constants
   # constants
     - [ be32, 0x016c9fa4, 0x4c989680 ] # timebase frequency as hexfloat (80mhz)
     - [ be32, 0x016c9fa4, 0x4c989680 ] # timebase frequency as hexfloat (80mhz)
     - [ bef32, 0x016c9fa8, 0.05000000 ] # maximum timestep size (50ms or 20FPS)
     - [ bef32, 0x016c9fa8, 0.05 ]     # maximum timestep size (50ms or 20 FPS)
 
 
   BCAS20071_FpsUnlock: &BCAS20071_FpsUnlock
   BCAS20071_FpsUnlock: &BCAS20071_FpsUnlock
   # Set 60FPS with no frameskip
   # Set 60 FPS with no frameskip
   # by Gibbed, KokutouKiritsugu port to BCAS20071
   # by Gibbed, KokutouKiritsugu port to BCAS20071
     - [ be16, 0x24148, 0x981f ]
     - [ be16, 0x00024148, 0x981f ]
 
   # delta time
   # delta time
   # by Whatcookie
   # by Whatcookie
     - [ be32, 0x00019794, 0x496af37d ] # jump to code cave
     - [ be32, 0x00019794, 0x496af37d ] # jump to code cave
 
   # get mftb
   # get mftb
     - [ be32, 0x016c8b10, 0x7eac42e6 ] # mftb r21              // Move from timebase register (clock)
     - [ be32, 0x016c8b10, 0x7eac42e6 ] # mftb r21              // move from timebase register (clock)
 
   # get mftb delta
   # get mftb delta
     - [ be32, 0x016c8b14, 0x3ec00185 ] # lis r22,0x0185        // load high bits of address
     - [ be32, 0x016c8b14, 0x3ec00185 ] # lis r22,0x0185        // load high bits of address
Line 293: Line 302:
     - [ be32, 0x016c8b20, 0xfab60000 ] # std r21,0x0(r22)      // store this frames mftb reading
     - [ be32, 0x016c8b20, 0xfab60000 ] # std r21,0x0(r22)      // store this frames mftb reading
     - [ be32, 0x016c8b24, 0x7e74a850 ] # subf r19,r21,r20      // subtract previous mftb reading from this mftb frames reading
     - [ be32, 0x016c8b24, 0x7e74a850 ] # subf r19,r21,r20      // subtract previous mftb reading from this mftb frames reading
 
   # mftb delta to float
   # mftb delta to float
     - [ be32, 0x016c8b28, 0xfa760018 ] # std r19,0x18(r22)    // store mftb delta (to be loaded into FPR)
     - [ be32, 0x016c8b28, 0xfa760018 ] # std r19,0x18(r22)    // store mftb delta (to be loaded into FPR)
Line 299: Line 307:
     - [ be32, 0x016c8b30, 0xffc0f69c ] # fcfid f30,f30        // convert integer to double
     - [ be32, 0x016c8b30, 0xffc0f69c ] # fcfid f30,f30        // convert integer to double
     - [ be32, 0x016c8b34, 0xffc0f018 ] # frsp f30,f30          // round to single precision
     - [ be32, 0x016c8b34, 0xffc0f018 ] # frsp f30,f30          // round to single precision
 
   # mftb delta to seconds
   # mftb delta to seconds
     - [ be32, 0x016c8b38, 0x3e40016c ] # r18,0x16c            // load high bits constants pointer
     - [ be32, 0x016c8b38, 0x3e40016c ] # r18,0x16c            // load high bits constants pointer
     - [ be32, 0x016c8b3c, 0x62528b10 ] # ori r18,r18,0x8b10   // load low bits of constants pointer
     - [ be32, 0x016c8b3c, 0x62528b10 ] # ori r18,r18,0x8b10   // load low bits of constants pointer
     - [ be32, 0x016c8b40, 0xc3b20054 ] # lfs f29,0x54(r18)    // load timebase frequency constant
     - [ be32, 0x016c8b40, 0xc3b20054 ] # lfs f29,0x54(r18)    // load timebase frequency constant
     - [ be32, 0x016c8b44, 0xc3920058 ] # lfs f28,0x58(r18)    // load maximum timestep size
     - [ be32, 0x016c8b44, 0xc3920058 ] # lfs f28,0x58(r18)    // load maximum timestep size
     - [ be32, 0x016c8b48, 0xeffee824 ] # fdivs f31,f30,f29    // divide timebase delta by timebase frequency
     - [ be32, 0x016c8b48, 0xeffee824 ] # fdivs f31,f30,f29    // divide timebase delta by timebase frequency
 
   # check timestep size
   # check timestep size
     - [ be32, 0x016c8b4c, 0xff9fe000 ] # fcmpu cr7,f31,f28    // compare current delta time to maximum timestep
     - [ be32, 0x016c8b4c, 0xff9fe000 ] # fcmpu cr7,f31,f28    // compare current delta time to maximum timestep
     - [ be32, 0x016c8b50, 0x419c0008 ] # blt +0x08            // don't return the maximum timestep size
     - [ be32, 0x016c8b50, 0x419c0008 ] # blt +0x08            // don't return the maximum timestep size
 
   # set maximum timestep
   # set maximum timestep
     - [ be32, 0x016c8b54, 0xffe0e090 ] # fmr f31,f28          // move maximum timestep to be returned
     - [ be32, 0x016c8b54, 0xffe0e090 ] # fmr f31,f28          // move maximum timestep to be returned
 
   # cleanup
   # cleanup
     - [ be32, 0x016c8b58, 0x7e94a278 ] # xor r20,r20,r20      // zero r20
     - [ be32, 0x016c8b58, 0x7e94a278 ] # xor r20,r20,r20      // zero r20
     - [ be32, 0x016c8b5c, 0x7e94a278 ] # xor r19,r19,r19      // zero r19
     - [ be32, 0x016c8b5c, 0x7e94a278 ] # xor r19,r19,r19      // zero r19
     - [ be32, 0x016c8b60, 0x4e800020 ] # blr                  // return
     - [ be32, 0x016c8b60, 0x4e800020 ] # blr                  // return
 
   # constants
   # constants
     - [ be32, 0x016c8b64, 0x4c989680 ] # timebase frequency as hexfloat (80mhz)
     - [ be32, 0x016c8b64, 0x4c989680 ] # timebase frequency as hexfloat (80mhz)
     - [ bef32, 0x016c8b68, 0.05000000 ] # maximum timestep size (50ms or 20FPS)
     - [ bef32, 0x016c8b68, 0.05 ]     # maximum timestep size (50ms or 20 FPS)


   DeS_FPS_Notes: &DeS_FPS_Notes "Patch version 2.0 and above is not compatible with the settings used for the previous patch. Clocks scale and Vblank rate must be set to the defaults. Vblank rate can be modified to increase the framelimit beyond 60FPS, however it's not recommended as users may encounter physics issues."
   DeS_FPS_Notes: &DeS_FPS_Notes
    "Patch version 2.0 and above is not compatible with the settings used for the previous patch. Clocks scale and Vblank rate must be set to the defaults. Vblank rate can be modified to increase the framelimit beyond 60 FPS. However, it's not recommended as users may encounter physics issues."


   DeS_DDE_Notes: &DeS_DDE_Notes "Can disable Write Color Buffers for 20% faster performance. Please note this patch gives a slightly darker tone to the game."
   DeS_DDE_Notes: &DeS_DDE_Notes
    "Can disable Write Color Buffers for 20% faster performance. Please note this patch gives a slightly darker tone to the game."


   DeS_AR_Notes: &DeS_AR_Notes "UI Elements will be stretched"
   DeS_AR_Notes: &DeS_AR_Notes
    "Requires \"Stretch To Display Area\" checked in the GPU settings. UI elements will be stretched."
 
  DeS_AR_Configurable_Values: &DeS_AR_Configurable_Values
    "Aspect Ratio":
      Type: double_enum
      Value: &32_9_value 3.555555555555556
      Allowed Values:
        "32:9": *32_9_value
        "21:9 (3840x1600)": 2.4
        "21:9 (3440x1440)": 2.388888888888889
        "21:9 (2560x1080)": 2.37037037037037
        "16:10": 1.6
        "4:3": 1.333333333333333
        "5:4": 1.25


   BLUS30443_FreeCam: &BLUS30443_FreeCam
   BLUS30443_FreeCam: &BLUS30443_FreeCam
   # Thanks to Meow for original DS1 code
   # Thanks to Meow for original DS1 code
     - [ be32, 0x14422C, 0x480DB26D ] # branch to hork's cave
     - [ be32, 0x0014422c, 0x480db26d ] # branch to hork's cave
     - [ be32, 0x21F498, 0xF821FF61 ]
     - [ be32, 0x0021f498, 0xf821ff61 ]
     - [ be32, 0x21F49C, 0x7C0802A6 ]
     - [ be32, 0x0021f49c, 0x7c0802a6 ]
     - [ be32, 0x21F4A0, 0xF80100B0 ]
     - [ be32, 0x0021f4a0, 0xf80100b0 ]
     - [ be32, 0x21F4A4, 0x38600000 ]
     - [ be32, 0x0021f4a4, 0x38600000 ]
     - [ be32, 0x21F4A8, 0x4BFA5639 ] # PadMan::GetPadDeviceForIdx
     - [ be32, 0x0021f4a8, 0x4bfa5639 ] # PadMan::GetPadDeviceForIdx
     - [ be32, 0x21F4AC, 0x60000000 ]
     - [ be32, 0x0021f4ac, 0x60000000 ]
     - [ be32, 0x21F4B0, 0x813E203C ]
     - [ be32, 0x0021f4b0, 0x813e203c ]
     - [ be32, 0x21F4B4, 0x38000000 ]
     - [ be32, 0x0021f4b4, 0x38000000 ]
     - [ be32, 0x21F4B8, 0x91210090 ]
     - [ be32, 0x0021f4b8, 0x91210090 ]
     - [ be32, 0x21F4BC, 0x90610094 ]
     - [ be32, 0x0021f4bc, 0x90610094 ]
     - [ be32, 0x21F4C0, 0x90010098 ]
     - [ be32, 0x0021f4c0, 0x90010098 ]
     - [ be32, 0x21F4C4, 0x81630004 ]
     - [ be32, 0x0021f4c4, 0x81630004 ]
     - [ be32, 0x21F4C8, 0xA06B0120 ]
     - [ be32, 0x0021f4c8, 0xa06b0120 ]
     - [ be32, 0x21F4CC, 0x7863BFE2 ]
     - [ be32, 0x0021f4cc, 0x7863bfe2 ]
     - [ be32, 0x21F4D0, 0x60000000 ]
     - [ be32, 0x0021f4d0, 0x60000000 ]
     - [ be32, 0x21F4D4, 0x5463063E ]
     - [ be32, 0x0021f4d4, 0x5463063e ]
     - [ be32, 0x21F4D8, 0x2F830000 ]
     - [ be32, 0x0021f4d8, 0x2f830000 ]
     - [ be32, 0x21F4DC, 0x419E0034 ]
     - [ be32, 0x0021f4dc, 0x419e0034 ]
     - [ be32, 0x21F4E0, 0xA00B011E ]
     - [ be32, 0x0021f4e0, 0xa00b011e ]
     - [ be32, 0x21F4E4, 0x2F80000A ]
     - [ be32, 0x0021f4e4, 0x2f80000a ]
     - [ be32, 0x21F4E8, 0x409E0028 ]
     - [ be32, 0x0021f4e8, 0x409e0028 ]
     - [ be32, 0x21F4EC, 0x813F0034 ]
     - [ be32, 0x0021f4ec, 0x813f0034 ]
     - [ be32, 0x21F4F0, 0x800901FC ]
     - [ be32, 0x0021f4f0, 0x800901fc ]
     - [ be32, 0x21F4F4, 0x38600001 ]
     - [ be32, 0x0021f4f4, 0x38600001 ]
     - [ be32, 0x21F4F8, 0x7C001A14 ]
     - [ be32, 0x0021f4f8, 0x7c001a14 ]
     - [ be32, 0x21F4FC, 0x900901FC ]
     - [ be32, 0x0021f4fc, 0x900901fc ]
     - [ be32, 0x21F500, 0x2F800004 ]
     - [ be32, 0x0021f500, 0x2f800004 ]
     - [ be32, 0x21F504, 0x409E000C ]
     - [ be32, 0x0021f504, 0x409e000c ]
     - [ be32, 0x21F508, 0x38000000 ]
     - [ be32, 0x0021f508, 0x38000000 ]
     - [ be32, 0x21F50C, 0x900901FC ]
     - [ be32, 0x0021f50c, 0x900901fc ]
     - [ be32, 0x21F510, 0x813F0034 ]
     - [ be32, 0x0021f510, 0x813f0034 ]
     - [ be32, 0x21F514, 0x800901FC ]
     - [ be32, 0x0021f514, 0x800901fc ]
     - [ be32, 0x21F518, 0x2F800001 ]
     - [ be32, 0x0021f518, 0x2f800001 ]
     - [ be32, 0x21F51C, 0x419E005C ]
     - [ be32, 0x0021f51c, 0x419e005c ]
     - [ be32, 0x21F520, 0x2F800002 ]
     - [ be32, 0x0021f520, 0x2f800002 ]
     - [ be32, 0x21F524, 0x419E007C ]
     - [ be32, 0x0021f524, 0x419e007c ]
     - [ be32, 0x21F528, 0x2F800003 ]
     - [ be32, 0x0021f528, 0x2f800003 ]
     - [ be32, 0x21F52C, 0x419E0080 ]
     - [ be32, 0x0021f52c, 0x419e0080 ]
     - [ be32, 0x21F530, 0x80690204 ]
     - [ be32, 0x0021f530, 0x80690204 ]
     - [ be32, 0x21F534, 0x80890008 ]
     - [ be32, 0x0021f534, 0x80890008 ]
     - [ be32, 0x21F538, 0x38630010 ]
     - [ be32, 0x0021f538, 0x38630010 ]
     - [ be32, 0x21F53C, 0x38840010 ]
     - [ be32, 0x0021f53c, 0x38840010 ]
     - [ be32, 0x21F540, 0x38A00010 ]
     - [ be32, 0x0021f540, 0x38a00010 ]
     - [ be32, 0x21F544, 0x38C00020 ]
     - [ be32, 0x0021f544, 0x38c00020 ]
     - [ be32, 0x21F548, 0x38E00030 ]
     - [ be32, 0x0021f548, 0x38e00030 ]
     - [ be32, 0x21F54C, 0x7C2020CE ]
     - [ be32, 0x0021f54c, 0x7c2020ce ]
     - [ be32, 0x21F550, 0x7C2019CE ]
     - [ be32, 0x0021f550, 0x7c2019ce ]
     - [ be32, 0x21F554, 0x7C2428CE ]
     - [ be32, 0x0021f554, 0x7c2428ce ]
     - [ be32, 0x21F558, 0x7C2329CE ]
     - [ be32, 0x0021f558, 0x7c2329ce ]
     - [ be32, 0x21F55C, 0x7C2430CE ]
     - [ be32, 0x0021f55c, 0x7c2430ce ]
     - [ be32, 0x21F560, 0x7C2331CE ]
     - [ be32, 0x0021f560, 0x7c2331ce ]
     - [ be32, 0x21F564, 0x7C2438CE ]
     - [ be32, 0x0021f564, 0x7c2438ce ]
     - [ be32, 0x21F568, 0x7C2339CE ]
     - [ be32, 0x0021f568, 0x7c2339ce ]
     - [ be32, 0x21F56C, 0x9B7F0058 ]
     - [ be32, 0x0021f56c, 0x9b7f0058 ]
     - [ be32, 0x21F570, 0x9B7F0059 ]
     - [ be32, 0x0021f570, 0x9b7f0059 ]
     - [ be32, 0x21F574, 0x480000A0 ]
     - [ be32, 0x0021f574, 0x480000a0 ]
     - [ be32, 0x21F578, 0xA06B0122 ]
     - [ be32, 0x0021f578, 0xa06b0122 ]
     - [ be32, 0x21F57C, 0x7863E7E2 ]
     - [ be32, 0x0021f57c, 0x7863e7e2 ]
     - [ be32, 0x21F580, 0x5463063E ]
     - [ be32, 0x0021f580, 0x5463063e ]
     - [ be32, 0x21F584, 0x2F830000 ]
     - [ be32, 0x0021f584, 0x2f830000 ]
     - [ be32, 0x21F588, 0x419E0008 ]
     - [ be32, 0x0021f588, 0x419e0008 ]
     - [ be32, 0x21F58C, 0x48000014 ]
     - [ be32, 0x0021f58c, 0x48000014 ]
     - [ be32, 0x21F590, 0x38000001 ]
     - [ be32, 0x0021f590, 0x38000001 ]
     - [ be32, 0x21F594, 0x981F0058 ]
     - [ be32, 0x0021f594, 0x981f0058 ]
     - [ be32, 0x21F598, 0x981F0059 ]
     - [ be32, 0x0021f598, 0x981f0059 ]
     - [ be32, 0x21F59C, 0x48000058 ]
     - [ be32, 0x0021f59c, 0x48000058 ]
     - [ be32, 0x21F5A0, 0x9B7F0058 ]
     - [ be32, 0x0021f5a0, 0x9b7f0058 ]
     - [ be32, 0x21F5A4, 0x9B7F0059 ]
     - [ be32, 0x0021f5a4, 0x9b7f0059 ]
     - [ be32, 0x21F5A8, 0x4800004C ]
     - [ be32, 0x0021f5a8, 0x4800004c ]
     - [ be32, 0x21F5AC, 0x8069000C ]
     - [ be32, 0x0021f5ac, 0x8069000c ]
     - [ be32, 0x21F5B0, 0x80890204 ]
     - [ be32, 0x0021f5b0, 0x80890204 ]
     - [ be32, 0x21F5B4, 0x38630010 ]
     - [ be32, 0x0021f5b4, 0x38630010 ]
     - [ be32, 0x21F5B8, 0x38840010 ]
     - [ be32, 0x0021f5b8, 0x38840010 ]
     - [ be32, 0x21F5BC, 0x38A00010 ]
     - [ be32, 0x0021f5bc, 0x38a00010 ]
     - [ be32, 0x21F5C0, 0x38C00020 ]
     - [ be32, 0x0021f5c0, 0x38c00020 ]
     - [ be32, 0x21F5C4, 0x38E00030 ]
     - [ be32, 0x0021f5c4, 0x38e00030 ]
     - [ be32, 0x21F5C8, 0x7C2020CE ]
     - [ be32, 0x0021f5c8, 0x7c2020ce ]
     - [ be32, 0x21F5CC, 0x7C2019CE ]
     - [ be32, 0x0021f5cc, 0x7c2019ce ]
     - [ be32, 0x21F5D0, 0x7C2428CE ]
     - [ be32, 0x0021f5d0, 0x7c2428ce ]
     - [ be32, 0x21F5D4, 0x7C2329CE ]
     - [ be32, 0x0021f5d4, 0x7c2329ce ]
     - [ be32, 0x21F5D8, 0x7C2430CE ]
     - [ be32, 0x0021f5d8, 0x7c2430ce ]
     - [ be32, 0x21F5DC, 0x7C2331CE ]
     - [ be32, 0x0021f5dc, 0x7c2331ce ]
     - [ be32, 0x21F5E0, 0x7C2438CE ]
     - [ be32, 0x0021f5e0, 0x7c2438ce ]
     - [ be32, 0x21F5E4, 0x7C2339CE ]
     - [ be32, 0x0021f5e4, 0x7c2339ce ]
     - [ be32, 0x21F5E8, 0x9B7F0058 ]
     - [ be32, 0x0021f5e8, 0x9b7f0058 ]
     - [ be32, 0x21F5EC, 0x9B7F0059 ]
     - [ be32, 0x0021f5ec, 0x9b7f0059 ]
     - [ be32, 0x21F5F0, 0x48000024 ]
     - [ be32, 0x0021f5f0, 0x48000024 ]
     - [ be32, 0x21F5F4, 0x38000001 ]
     - [ be32, 0x0021f5f4, 0x38000001 ]
     - [ be32, 0x21F5F8, 0x901F0044 ]
     - [ be32, 0x0021f5f8, 0x901f0044 ]
     - [ be32, 0x21F5FC, 0x38C00000 ]
     - [ be32, 0x0021f5fc, 0x38c00000 ]
     - [ be32, 0x21F600, 0x38A00000 ]
     - [ be32, 0x0021f600, 0x38a00000 ]
     - [ be32, 0x21F604, 0x80810094 ]
     - [ be32, 0x0021f604, 0x80810094 ]
     - [ be32, 0x21F608, 0x80690204 ]
     - [ be32, 0x0021f608, 0x80690204 ]
     - [ be32, 0x21F60C, 0x4BF0BCED ] # DbgCamControls
     - [ be32, 0x0021f60c, 0x4bf0bced ] # DbgCamControls
     - [ be32, 0x21F610, 0x60000000 ]
     - [ be32, 0x0021f610, 0x60000000 ]
     - [ be32, 0x21F614, 0x80610094 ]
     - [ be32, 0x0021f614, 0x80610094 ]
     - [ be32, 0x21F618, 0xE80100B0 ]
     - [ be32, 0x0021f618, 0xe80100b0 ]
     - [ be32, 0x21F61C, 0x7C0803A6 ]
     - [ be32, 0x0021f61c, 0x7c0803a6 ]
     - [ be32, 0x21F620, 0x382100A0 ]
     - [ be32, 0x0021f620, 0x382100a0 ]
     - [ be32, 0x21F624, 0x4E800020 ]
     - [ be32, 0x0021f624, 0x4e800020 ]
   
 
   BLES00932_FreeCam: &BLES00932_FreeCam
   BLES00932_FreeCam: &BLES00932_FreeCam
     - [ be32, 0x1451F4, 0x480DB12D ] # branch to hork's cave
     - [ be32, 0x001451f4, 0x480db12d ] # branch to hork's cave
     - [ be32, 0x220320, 0xF821FF61 ]
     - [ be32, 0x00220320, 0xf821ff61 ]
     - [ be32, 0x220324, 0x7C0802A6 ]
     - [ be32, 0x00220324, 0x7c0802a6 ]
     - [ be32, 0x220328, 0xF80100B0 ]
     - [ be32, 0x00220328, 0xf80100b0 ]
     - [ be32, 0x22032C, 0x38600000 ]
     - [ be32, 0x0022032c, 0x38600000 ]
     - [ be32, 0x220330, 0x4BFA5639 ] # PadMan::GetPadDeviceForIdx
     - [ be32, 0x00220330, 0x4bfa5639 ] # PadMan::GetPadDeviceForIdx
     - [ be32, 0x220334, 0x60000000 ]
     - [ be32, 0x00220334, 0x60000000 ]
     - [ be32, 0x220338, 0x813E203C ]
     - [ be32, 0x00220338, 0x813e203c ]
     - [ be32, 0x22033C, 0x38000000 ]
     - [ be32, 0x0022033c, 0x38000000 ]
     - [ be32, 0x220340, 0x91210090 ]
     - [ be32, 0x00220340, 0x91210090 ]
     - [ be32, 0x220344, 0x90610094 ]
     - [ be32, 0x00220344, 0x90610094 ]
     - [ be32, 0x220348, 0x90010098 ]
     - [ be32, 0x00220348, 0x90010098 ]
     - [ be32, 0x22034C, 0x81630004 ]
     - [ be32, 0x0022034c, 0x81630004 ]
     - [ be32, 0x220350, 0xA06B0120 ]
     - [ be32, 0x00220350, 0xa06b0120 ]
     - [ be32, 0x220354, 0x7863BFE2 ]
     - [ be32, 0x00220354, 0x7863bfe2 ]
     - [ be32, 0x220358, 0x60000000 ]
     - [ be32, 0x00220358, 0x60000000 ]
     - [ be32, 0x22035C, 0x5463063E ]
     - [ be32, 0x0022035c, 0x5463063e ]
     - [ be32, 0x220360, 0x2F830000 ]
     - [ be32, 0x00220360, 0x2f830000 ]
     - [ be32, 0x220364, 0x419E0034 ]
     - [ be32, 0x00220364, 0x419e0034 ]
     - [ be32, 0x220368, 0xA00B011E ]
     - [ be32, 0x00220368, 0xa00b011e ]
     - [ be32, 0x22036C, 0x2F80000A ]
     - [ be32, 0x0022036c, 0x2f80000a ]
     - [ be32, 0x220370, 0x409E0028 ]
     - [ be32, 0x00220370, 0x409e0028 ]
     - [ be32, 0x220374, 0x813F0034 ]
     - [ be32, 0x00220374, 0x813f0034 ]
     - [ be32, 0x220378, 0x800901FC ]
     - [ be32, 0x00220378, 0x800901fc ]
     - [ be32, 0x22037C, 0x38600001 ]
     - [ be32, 0x0022037c, 0x38600001 ]
     - [ be32, 0x220380, 0x7C001A14 ]
     - [ be32, 0x00220380, 0x7c001a14 ]
     - [ be32, 0x220384, 0x900901FC ]
     - [ be32, 0x00220384, 0x900901fc ]
     - [ be32, 0x220388, 0x2F800004 ]
     - [ be32, 0x00220388, 0x2f800004 ]
     - [ be32, 0x22038C, 0x409E000C ]
     - [ be32, 0x0022038c, 0x409e000c ]
     - [ be32, 0x220390, 0x38000000 ]
     - [ be32, 0x00220390, 0x38000000 ]
     - [ be32, 0x220394, 0x900901FC ]
     - [ be32, 0x00220394, 0x900901fc ]
     - [ be32, 0x220398, 0x813F0034 ]
     - [ be32, 0x00220398, 0x813f0034 ]
     - [ be32, 0x22039C, 0x800901FC ]
     - [ be32, 0x0022039c, 0x800901fc ]
     - [ be32, 0x2203A0, 0x2F800001 ]
     - [ be32, 0x002203a0, 0x2f800001 ]
     - [ be32, 0x2203A4, 0x419E005C ]
     - [ be32, 0x002203a4, 0x419e005c ]
     - [ be32, 0x2203A8, 0x2F800002 ]
     - [ be32, 0x002203a8, 0x2f800002 ]
     - [ be32, 0x2203AC, 0x419E007C ]
     - [ be32, 0x002203ac, 0x419e007c ]
     - [ be32, 0x2203B0, 0x2F800003 ]
     - [ be32, 0x002203b0, 0x2f800003 ]
     - [ be32, 0x2203B4, 0x419E0080 ]
     - [ be32, 0x002203b4, 0x419e0080 ]
     - [ be32, 0x2203B8, 0x80690204 ]
     - [ be32, 0x002203b8, 0x80690204 ]
     - [ be32, 0x2203BC, 0x80890008 ]
     - [ be32, 0x002203bc, 0x80890008 ]
     - [ be32, 0x2203C0, 0x38630010 ]
     - [ be32, 0x002203c0, 0x38630010 ]
     - [ be32, 0x2203C4, 0x38840010 ]
     - [ be32, 0x002203c4, 0x38840010 ]
     - [ be32, 0x2203C8, 0x38A00010 ]
     - [ be32, 0x002203c8, 0x38a00010 ]
     - [ be32, 0x2203CC, 0x38C00020 ]
     - [ be32, 0x002203cc, 0x38c00020 ]
     - [ be32, 0x2203D0, 0x38E00030 ]
     - [ be32, 0x002203d0, 0x38e00030 ]
     - [ be32, 0x2203D4, 0x7C2020CE ]
     - [ be32, 0x002203d4, 0x7c2020ce ]
     - [ be32, 0x2203D8, 0x7C2019CE ]
     - [ be32, 0x002203d8, 0x7c2019ce ]
     - [ be32, 0x2203DC, 0x7C2428CE ]
     - [ be32, 0x002203dc, 0x7c2428ce ]
     - [ be32, 0x2203E0, 0x7C2329CE ]
     - [ be32, 0x002203e0, 0x7c2329ce ]
     - [ be32, 0x2203E4, 0x7C2430CE ]
     - [ be32, 0x002203e4, 0x7c2430ce ]
     - [ be32, 0x2203E8, 0x7C2331CE ]
     - [ be32, 0x002203e8, 0x7c2331ce ]
     - [ be32, 0x2203EC, 0x7C2438CE ]
     - [ be32, 0x002203ec, 0x7c2438ce ]
     - [ be32, 0x2203F0, 0x7C2339CE ]
     - [ be32, 0x002203f0, 0x7c2339ce ]
     - [ be32, 0x2203F4, 0x9B7F0058 ]
     - [ be32, 0x002203f4, 0x9b7f0058 ]
     - [ be32, 0x2203F8, 0x9B7F0059 ]
     - [ be32, 0x002203f8, 0x9b7f0059 ]
     - [ be32, 0x2203FC, 0x480000A0 ]
     - [ be32, 0x002203fc, 0x480000a0 ]
     - [ be32, 0x220400, 0xA06B0122 ]
     - [ be32, 0x00220400, 0xa06b0122 ]
     - [ be32, 0x220404, 0x7863E7E2 ]
     - [ be32, 0x00220404, 0x7863e7e2 ]
     - [ be32, 0x220408, 0x5463063E ]
     - [ be32, 0x00220408, 0x5463063e ]
     - [ be32, 0x22040C, 0x2F830000 ]
     - [ be32, 0x0022040c, 0x2f830000 ]
     - [ be32, 0x220410, 0x419E0008 ]
     - [ be32, 0x00220410, 0x419e0008 ]
     - [ be32, 0x220414, 0x48000014 ]
     - [ be32, 0x00220414, 0x48000014 ]
     - [ be32, 0x220418, 0x38000001 ]
     - [ be32, 0x00220418, 0x38000001 ]
     - [ be32, 0x22041C, 0x981F0058 ]
     - [ be32, 0x0022041c, 0x981f0058 ]
     - [ be32, 0x220420, 0x981F0059 ]
     - [ be32, 0x00220420, 0x981f0059 ]
     - [ be32, 0x220424, 0x48000058 ]
     - [ be32, 0x00220424, 0x48000058 ]
     - [ be32, 0x220428, 0x9B7F0058 ]
     - [ be32, 0x00220428, 0x9b7f0058 ]
     - [ be32, 0x22042C, 0x9B7F0059 ]
     - [ be32, 0x0022042c, 0x9b7f0059 ]
     - [ be32, 0x220430, 0x4800004C ]
     - [ be32, 0x00220430, 0x4800004c ]
     - [ be32, 0x220434, 0x8069000C ]
     - [ be32, 0x00220434, 0x8069000c ]
     - [ be32, 0x220438, 0x80890204 ]
     - [ be32, 0x00220438, 0x80890204 ]
     - [ be32, 0x22043C, 0x38630010 ]
     - [ be32, 0x0022043c, 0x38630010 ]
     - [ be32, 0x220440, 0x38840010 ]
     - [ be32, 0x00220440, 0x38840010 ]
     - [ be32, 0x220444, 0x38A00010 ]
     - [ be32, 0x00220444, 0x38a00010 ]
     - [ be32, 0x220448, 0x38C00020 ]
     - [ be32, 0x00220448, 0x38c00020 ]
     - [ be32, 0x22044C, 0x38E00030 ]
     - [ be32, 0x0022044c, 0x38e00030 ]
     - [ be32, 0x220450, 0x7C2020CE ]
     - [ be32, 0x00220450, 0x7c2020ce ]
     - [ be32, 0x220454, 0x7C2019CE ]
     - [ be32, 0x00220454, 0x7c2019ce ]
     - [ be32, 0x220458, 0x7C2428CE ]
     - [ be32, 0x00220458, 0x7c2428ce ]
     - [ be32, 0x22045C, 0x7C2329CE ]
     - [ be32, 0x0022045c, 0x7c2329ce ]
     - [ be32, 0x220460, 0x7C2430CE ]
     - [ be32, 0x00220460, 0x7c2430ce ]
     - [ be32, 0x220464, 0x7C2331CE ]
     - [ be32, 0x00220464, 0x7c2331ce ]
     - [ be32, 0x220468, 0x7C2438CE ]
     - [ be32, 0x00220468, 0x7c2438ce ]
     - [ be32, 0x22046C, 0x7C2339CE ]
     - [ be32, 0x0022046c, 0x7c2339ce ]
     - [ be32, 0x220470, 0x9B7F0058 ]
     - [ be32, 0x00220470, 0x9b7f0058 ]
     - [ be32, 0x220474, 0x9B7F0059 ]
     - [ be32, 0x00220474, 0x9b7f0059 ]
     - [ be32, 0x220478, 0x48000024 ]
     - [ be32, 0x00220478, 0x48000024 ]
     - [ be32, 0x22047C, 0x38000001 ]
     - [ be32, 0x0022047c, 0x38000001 ]
     - [ be32, 0x220480, 0x901F0044 ]
     - [ be32, 0x00220480, 0x901f0044 ]
     - [ be32, 0x220484, 0x38C00000 ]
     - [ be32, 0x00220484, 0x38c00000 ]
     - [ be32, 0x220488, 0x38A00000 ]
     - [ be32, 0x00220488, 0x38a00000 ]
     - [ be32, 0x22048C, 0x80810094 ]
     - [ be32, 0x0022048c, 0x80810094 ]
     - [ be32, 0x220490, 0x80690204 ]
     - [ be32, 0x00220490, 0x80690204 ]
     - [ be32, 0x220494, 0x4BF0BE2D ] # DbgCamControls
     - [ be32, 0x00220494, 0x4bf0be2d ] # DbgCamControls
     - [ be32, 0x220498, 0x60000000 ]
     - [ be32, 0x00220498, 0x60000000 ]
     - [ be32, 0x22049C, 0x80610094 ]
     - [ be32, 0x0022049c, 0x80610094 ]
     - [ be32, 0x2204A0, 0xE80100B0 ]
     - [ be32, 0x002204a0, 0xe80100b0 ]
     - [ be32, 0x2204A4, 0x7C0803A6 ]
     - [ be32, 0x002204a4, 0x7c0803a6 ]
     - [ be32, 0x2204A8, 0x382100A0 ]
     - [ be32, 0x002204a8, 0x382100a0 ]
     - [ be32, 0x2204AC, 0x4E800020 ]
     - [ be32, 0x002204ac, 0x4e800020 ]
   
 
   BCAS20071_FreeCam: &BCAS20071_FreeCam
   BCAS20071_FreeCam: &BCAS20071_FreeCam
     - [ be32, 0x142304, 0x480DB26D ] # branch to hork's cave
     - [ be32, 0x00142304, 0x480db26d ] # branch to hork's cave
     - [ be32, 0x21D570, 0xF821FF61 ]
     - [ be32, 0x0021d570, 0xf821ff61 ]
     - [ be32, 0x21D574, 0x7C0802A6 ]
     - [ be32, 0x0021d574, 0x7c0802a6 ]
     - [ be32, 0x21D578, 0xF80100B0 ]
     - [ be32, 0x0021d578, 0xf80100b0 ]
     - [ be32, 0x21D57C, 0x38600000 ]
     - [ be32, 0x0021d57c, 0x38600000 ]
     - [ be32, 0x21D580, 0x4BFA5639 ] # PadMan::GetPadDeviceForIdx
     - [ be32, 0x0021d580, 0x4bfa5639 ] # PadMan::GetPadDeviceForIdx
     - [ be32, 0x21D584, 0x60000000 ]
     - [ be32, 0x0021d584, 0x60000000 ]
     - [ be32, 0x21D588, 0x813E203C ]
     - [ be32, 0x0021d588, 0x813e203c ]
     - [ be32, 0x21D58C, 0x38000000 ]
     - [ be32, 0x0021d58c, 0x38000000 ]
     - [ be32, 0x21D590, 0x91210090 ]
     - [ be32, 0x0021d590, 0x91210090 ]
     - [ be32, 0x21D594, 0x90610094 ]
     - [ be32, 0x0021d594, 0x90610094 ]
     - [ be32, 0x21D598, 0x90010098 ]
     - [ be32, 0x0021d598, 0x90010098 ]
     - [ be32, 0x21D59C, 0x81630004 ]
     - [ be32, 0x0021d59c, 0x81630004 ]
     - [ be32, 0x21D5A0, 0xA06B0120 ]
     - [ be32, 0x0021d5a0, 0xa06b0120 ]
     - [ be32, 0x21D5A4, 0x7863BFE2 ]
     - [ be32, 0x0021d5a4, 0x7863bfe2 ]
     - [ be32, 0x21D5A8, 0x60000000 ]
     - [ be32, 0x0021d5a8, 0x60000000 ]
     - [ be32, 0x21D5AC, 0x5463063E ]
     - [ be32, 0x0021d5ac, 0x5463063e ]
     - [ be32, 0x21D5B0, 0x2F830000 ]
     - [ be32, 0x0021d5b0, 0x2f830000 ]
     - [ be32, 0x21D5B4, 0x419E0034 ]
     - [ be32, 0x0021d5b4, 0x419e0034 ]
     - [ be32, 0x21D5B8, 0xA00B011E ]
     - [ be32, 0x0021d5b8, 0xa00b011e ]
     - [ be32, 0x21D5BC, 0x2F80000A ]
     - [ be32, 0x0021d5bc, 0x2f80000a ]
     - [ be32, 0x21D5C0, 0x409E0028 ]
     - [ be32, 0x0021d5c0, 0x409e0028 ]
     - [ be32, 0x21D5C4, 0x813F0034 ]
     - [ be32, 0x0021d5c4, 0x813f0034 ]
     - [ be32, 0x21D5C8, 0x800901FC ]
     - [ be32, 0x0021d5c8, 0x800901fc ]
     - [ be32, 0x21D5CC, 0x38600001 ]
     - [ be32, 0x0021d5cc, 0x38600001 ]
     - [ be32, 0x21D5D0, 0x7C001A14 ]
     - [ be32, 0x0021d5d0, 0x7c001a14 ]
     - [ be32, 0x21D5D4, 0x900901FC ]
     - [ be32, 0x0021d5d4, 0x900901fc ]
     - [ be32, 0x21D5D8, 0x2F800004 ]
     - [ be32, 0x0021d5d8, 0x2f800004 ]
     - [ be32, 0x21D5DC, 0x409E000C ]
     - [ be32, 0x0021d5dc, 0x409e000c ]
     - [ be32, 0x21D5E0, 0x38000000 ]
     - [ be32, 0x0021d5e0, 0x38000000 ]
     - [ be32, 0x21D5E4, 0x900901FC ]
     - [ be32, 0x0021d5e4, 0x900901fc ]
     - [ be32, 0x21D5E8, 0x813F0034 ]
     - [ be32, 0x0021d5e8, 0x813f0034 ]
     - [ be32, 0x21D5EC, 0x800901FC ]
     - [ be32, 0x0021d5ec, 0x800901fc ]
     - [ be32, 0x21D5F0, 0x2F800001 ]
     - [ be32, 0x0021d5f0, 0x2f800001 ]
     - [ be32, 0x21D5F4, 0x419E005C ]
     - [ be32, 0x0021d5f4, 0x419e005c ]
     - [ be32, 0x21D5F8, 0x2F800002 ]
     - [ be32, 0x0021d5f8, 0x2f800002 ]
     - [ be32, 0x21D5FC, 0x419E007C ]
     - [ be32, 0x0021d5fc, 0x419e007c ]
     - [ be32, 0x21D600, 0x2F800003 ]
     - [ be32, 0x0021d600, 0x2f800003 ]
     - [ be32, 0x21D604, 0x419E0080 ]
     - [ be32, 0x0021d604, 0x419e0080 ]
     - [ be32, 0x21D608, 0x80690204 ]
     - [ be32, 0x0021d608, 0x80690204 ]
     - [ be32, 0x21D60C, 0x80890008 ]
     - [ be32, 0x0021d60c, 0x80890008 ]
     - [ be32, 0x21D610, 0x38630010 ]
     - [ be32, 0x0021d610, 0x38630010 ]
     - [ be32, 0x21D614, 0x38840010 ]
     - [ be32, 0x0021d614, 0x38840010 ]
     - [ be32, 0x21D618, 0x38A00010 ]
     - [ be32, 0x0021d618, 0x38a00010 ]
     - [ be32, 0x21D61C, 0x38C00020 ]
     - [ be32, 0x0021d61c, 0x38c00020 ]
     - [ be32, 0x21D620, 0x38E00030 ]
     - [ be32, 0x0021d620, 0x38e00030 ]
     - [ be32, 0x21D624, 0x7C2020CE ]
     - [ be32, 0x0021d624, 0x7c2020ce ]
     - [ be32, 0x21D628, 0x7C2019CE ]
     - [ be32, 0x0021d628, 0x7c2019ce ]
     - [ be32, 0x21D62C, 0x7C2428CE ]
     - [ be32, 0x0021d62c, 0x7c2428ce ]
     - [ be32, 0x21D630, 0x7C2329CE ]
     - [ be32, 0x0021d630, 0x7c2329ce ]
     - [ be32, 0x21D634, 0x7C2430CE ]
     - [ be32, 0x0021d634, 0x7c2430ce ]
     - [ be32, 0x21D638, 0x7C2331CE ]
     - [ be32, 0x0021d638, 0x7c2331ce ]
     - [ be32, 0x21D63C, 0x7C2438CE ]
     - [ be32, 0x0021d63c, 0x7c2438ce ]
     - [ be32, 0x21D640, 0x7C2339CE ]
     - [ be32, 0x0021d640, 0x7c2339ce ]
     - [ be32, 0x21D644, 0x9B7F0058 ]
     - [ be32, 0x0021d644, 0x9b7f0058 ]
     - [ be32, 0x21D648, 0x9B7F0059 ]
     - [ be32, 0x0021d648, 0x9b7f0059 ]
     - [ be32, 0x21D64C, 0x480000A0 ]
     - [ be32, 0x0021d64c, 0x480000a0 ]
     - [ be32, 0x21D650, 0xA06B0122 ]
     - [ be32, 0x0021d650, 0xa06b0122 ]
     - [ be32, 0x21D654, 0x7863E7E2 ]
     - [ be32, 0x0021d654, 0x7863e7e2 ]
     - [ be32, 0x21D658, 0x5463063E ]
     - [ be32, 0x0021d658, 0x5463063e ]
     - [ be32, 0x21D65C, 0x2F830000 ]
     - [ be32, 0x0021d65c, 0x2f830000 ]
     - [ be32, 0x21D660, 0x419E0008 ]
     - [ be32, 0x0021d660, 0x419e0008 ]
     - [ be32, 0x21D664, 0x48000014 ]
     - [ be32, 0x0021d664, 0x48000014 ]
     - [ be32, 0x21D668, 0x38000001 ]
     - [ be32, 0x0021d668, 0x38000001 ]
     - [ be32, 0x21D66C, 0x981F0058 ]
     - [ be32, 0x0021d66c, 0x981f0058 ]
     - [ be32, 0x21D670, 0x981F0059 ]
     - [ be32, 0x0021d670, 0x981f0059 ]
     - [ be32, 0x21D674, 0x48000058 ]
     - [ be32, 0x0021d674, 0x48000058 ]
     - [ be32, 0x21D678, 0x9B7F0058 ]
     - [ be32, 0x0021d678, 0x9b7f0058 ]
     - [ be32, 0x21D67C, 0x9B7F0059 ]
     - [ be32, 0x0021d67c, 0x9b7f0059 ]
     - [ be32, 0x21D680, 0x4800004C ]
     - [ be32, 0x0021d680, 0x4800004c ]
     - [ be32, 0x21D684, 0x8069000C ]
     - [ be32, 0x0021d684, 0x8069000c ]
     - [ be32, 0x21D688, 0x80890204 ]
     - [ be32, 0x0021d688, 0x80890204 ]
     - [ be32, 0x21D68C, 0x38630010 ]
     - [ be32, 0x0021d68c, 0x38630010 ]
     - [ be32, 0x21D690, 0x38840010 ]
     - [ be32, 0x0021d690, 0x38840010 ]
     - [ be32, 0x21D694, 0x38A00010 ]
     - [ be32, 0x0021d694, 0x38a00010 ]
     - [ be32, 0x21D698, 0x38C00020 ]
     - [ be32, 0x0021d698, 0x38c00020 ]
     - [ be32, 0x21D69C, 0x38E00030 ]
     - [ be32, 0x0021d69c, 0x38e00030 ]
     - [ be32, 0x21D6A0, 0x7C2020CE ]
     - [ be32, 0x0021d6a0, 0x7c2020ce ]
     - [ be32, 0x21D6A4, 0x7C2019CE ]
     - [ be32, 0x0021d6a4, 0x7c2019ce ]
     - [ be32, 0x21D6A8, 0x7C2428CE ]
     - [ be32, 0x0021d6a8, 0x7c2428ce ]
     - [ be32, 0x21D6AC, 0x7C2329CE ]
     - [ be32, 0x0021d6ac, 0x7c2329ce ]
     - [ be32, 0x21D6B0, 0x7C2430CE ]
     - [ be32, 0x0021d6b0, 0x7c2430ce ]
     - [ be32, 0x21D6B4, 0x7C2331CE ]
     - [ be32, 0x0021d6b4, 0x7c2331ce ]
     - [ be32, 0x21D6B8, 0x7C2438CE ]
     - [ be32, 0x0021d6b8, 0x7c2438ce ]
     - [ be32, 0x21D6BC, 0x7C2339CE ]
     - [ be32, 0x0021d6bc, 0x7c2339ce ]
     - [ be32, 0x21D6C0, 0x9B7F0058 ]
     - [ be32, 0x0021d6c0, 0x9b7f0058 ]
     - [ be32, 0x21D6C4, 0x9B7F0059 ]
     - [ be32, 0x0021d6c4, 0x9b7f0059 ]
     - [ be32, 0x21D6C8, 0x48000024 ]
     - [ be32, 0x0021d6c8, 0x48000024 ]
     - [ be32, 0x21D6CC, 0x38000001 ]
     - [ be32, 0x0021d6cc, 0x38000001 ]
     - [ be32, 0x21D6D0, 0x901F0044 ]
     - [ be32, 0x0021d6d0, 0x901f0044 ]
     - [ be32, 0x21D6D4, 0x38C00000 ]
     - [ be32, 0x0021d6d4, 0x38c00000 ]
     - [ be32, 0x21D6D8, 0x38A00000 ]
     - [ be32, 0x0021d6d8, 0x38a00000 ]
     - [ be32, 0x21D6DC, 0x80810094 ]
     - [ be32, 0x0021d6dc, 0x80810094 ]
     - [ be32, 0x21D6E0, 0x80690204 ]
     - [ be32, 0x0021d6e0, 0x80690204 ]
     - [ be32, 0x21D6E4, 0x4BF0BCED ] # DbgCamControls
     - [ be32, 0x0021d6e4, 0x4bf0bced ] # DbgCamControls
     - [ be32, 0x21D6E8, 0x60000000 ]
     - [ be32, 0x0021d6e8, 0x60000000 ]
     - [ be32, 0x21D6EC, 0x80610094 ]
     - [ be32, 0x0021d6ec, 0x80610094 ]
     - [ be32, 0x21D6F0, 0xE80100B0 ]
     - [ be32, 0x0021d6f0, 0xe80100b0 ]
     - [ be32, 0x21D6F4, 0x7C0803A6 ]
     - [ be32, 0x0021d6f4, 0x7c0803a6 ]
     - [ be32, 0x21D6F8, 0x382100A0 ]
     - [ be32, 0x0021d6f8, 0x382100a0 ]
     - [ be32, 0x21D6FC, 0x4E800020 ]
     - [ be32, 0x0021d6fc, 0x4e800020 ]
 
  FreeCam_Notes: &FreeCam_Notes
    "Activate and cycle through modes with X + L3. Advance frames in time stop mode with Cross. L2/R2 to move down/up, L1/R1 to slow down/speed up movement."
 
  des_US100title: &des_US100title
    "Demon's Souls":
      BLUS30443: [ 01.00 ]


   FreeCam_Notes: &FreeCam_Notes "Activate and cycle through modes with X + L3. Advance frames in time stop mode with Cross. L2/R2 to move down/up, L1/R1 to slow down/speed up movement."
   des_EU100title: &des_EU100title
    "Demon's Souls":
      BLES00932: [ 01.00 ]
 
  des_AS104title: &des_AS104title
    "Demon's Souls":
      BCAS20071: [ 01.04 ]
 
  des_USDemo101title: &des_USDemo101title
    "Demon's Souls Trade Demo":
      BLUD80018: [ 01.01 ]


PPU-83681f6110d33442329073b72b8dc88a2f677172:
PPU-83681f6110d33442329073b72b8dc88a2f677172:
   Unlock FPS:
   "Unlock FPS":
     Games:
     Games: *des_US100title
      "Demon's Souls":
     Author: "Whatcookie, Gibbed"
        BLUS30443: [ 01.00 ]
     Author: Whatcookie, Gibbed
     Notes: *DeS_FPS_Notes
     Notes: *DeS_FPS_Notes
     Patch Version: 2.1
     Patch Version: 2.1
     Patch:
     Patch:
       - [ load, *BLUS30443_FpsUnlock ]
       - [ load, *BLUS30443_FpsUnlock ]
   Disable Dynamic Exposure:
   "Disable Dynamic Exposure":
     Games:
     Games: *des_US100title
      "Demon's Souls":
     Author: "Whatcookie"
        BLUS30443: [ 01.00 ]
     Author: Whatcookie
     Notes: *DeS_DDE_Notes
     Notes: *DeS_DDE_Notes
     Patch Version: 1.0.1
     Patch Version: 1.1
     Patch:
     Patch:
       - [ be16, 0x00025edc, 0x981f ]
       - [ be16, 0x00025edc, 0x981f ]
   Skip Intro Videos:
   "Skip Intro Videos":
     Games:
     Games: *des_US100title
      "Demon's Souls":
     Author: "GalCiv"
        BLUS30443: [ 01.00 ]
     Notes:
     Author: GalCiv
     Notes:  
     Patch Version: 1.0
     Patch Version: 1.0
     Patch:
     Patch:
       - [ be32, 0x008eef78, 0x38000003 ] # Intro logos skip
       - [ be32, 0x008eef78, 0x38000003 ] # Intro logos skip
       - [ be32, 0x008eef7c, 0x901c0100 ]
       - [ be32, 0x008eef7c, 0x901c0100 ]
   21:9 Aspect Ratio:
   "Aspect Ratio":
     Games:
     Games: *des_US100title
      "Demon's Souls":
     Author: "Whatcookie"
        BLUS30443: [ 01.00 ]
     Author: Whatcookie
    Notes: *DeS_AR_Notes
    Patch Version: 1.0
    Group: AR
    Patch:
      - [ be32, 0x018cefbc, 0x4017b9aa ] # 21:9 aspect ratio
      - [ be32, 0x0190433c, 0x4017b9aa ]
  32:9 Aspect Ratio:
    Games:
      "Demon's Souls":
        BLUS30443: [ 01.00 ]
    Author: Whatcookie
     Notes: *DeS_AR_Notes
     Notes: *DeS_AR_Notes
    Configurable Values: *DeS_AR_Configurable_Values
     Patch Version: 1.0
     Patch Version: 1.0
    Group: AR
     Patch:
     Patch:
       - [ bef32, 0x018cefbc, 3.5555556 ] # 32:9 aspect ratio
       - [ bef32, 0x018cefbc, "Aspect Ratio" ]
       - [ bef32, 0x0190433c, 3.5555556 ]
       - [ bef32, 0x0190433c, "Aspect Ratio" ]
   Disable Motion Blur:
   "Disable Motion Blur":
     Games:
     Games: *des_US100title
      "Demon's Souls":
     Author: "illusion"
        BLUS30443: [ 01.00 ]
     Notes:
     Author: illusion
     Notes:  
     Patch Version: 1.0
     Patch Version: 1.0
     Patch:
     Patch:
       - [ byte, 0x00217e7c, 0x41 ]
       - [ byte, 0x00217e7c, 0x41 ]
   Enable FreeCam:
   "Enable FreeCam":
     Games:
     Games: *des_US100title
      "Demon's Souls":
    Author: "horkrux"
        BLUS30443: [ 01.00 ]
     Notes: *FreeCam_Notes
     Author: horkrux
     Patch Version: 1.0
     Patch Version: 1.0
    Group:
    Notes: *FreeCam_Notes
     Patch:
     Patch:
       - [ load, *BLUS30443_FreeCam ]  
       - [ load, *BLUS30443_FreeCam ]


PPU-5446a2645880eefa75f7e374abd6b7818511e2ef:
PPU-5446a2645880eefa75f7e374abd6b7818511e2ef:
   Unlock FPS:
   "Unlock FPS":
     Games:
     Games: *des_EU100title
      "Demon's Souls":
     Author: "Whatcookie, Gibbed"
        BLES00932: [ 01.00 ]
     Author: Whatcookie, Gibbed
     Notes: *DeS_FPS_Notes
     Notes: *DeS_FPS_Notes
     Patch Version: 2.1
     Patch Version: 2.1
     Patch:
     Patch:
       - [ load, *BLES00932_FpsUnlock ]
       - [ load, *BLES00932_FpsUnlock ]
   Disable Dynamic Exposure:
   "Disable Dynamic Exposure":
     Games:
     Games: *des_EU100title
      "Demon's Souls":
     Author: "Whatcookie"
        BLES00932: [ 01.00 ]
     Author: Whatcookie
     Notes: *DeS_DDE_Notes
     Notes: *DeS_DDE_Notes
     Patch Version: 1.0.1
     Patch Version: 1.1
     Patch:
     Patch:
       - [ be16, 0x00026ac4, 0x981f ]
       - [ be16, 0x00026ac4, 0x981f ]
   Skip Intro Videos:
   "Skip Intro Videos":
     Games:
     Games: *des_EU100title
      "Demon's Souls":
     Author: "GalCiv"
        BLES00932: [ 01.00 ]
     Notes:
     Author: GalCiv
     Notes:  
     Patch Version: 1.0
     Patch Version: 1.0
     Patch:
     Patch:
       - [ be32, 0x008f0928, 0x38000003 ] # Intro logos skip
       - [ be32, 0x008f0928, 0x38000003 ] # Intro logos skip
       - [ be32, 0x008f092c, 0x901c0100 ]
       - [ be32, 0x008f092c, 0x901c0100 ]
   21:9 Aspect Ratio:
   "Aspect Ratio":
     Games:
     Games: *des_EU100title
      "Demon's Souls":
     Author: "Whatcookie"
        BLES00932: [ 01.00 ]
     Author: Whatcookie
    Notes: *DeS_AR_Notes
    Patch Version: 1.0
    Group: AR
    Patch:
      - [ be32, 0x018cf13c, 0x4017b9aa ] # 21:9 aspect ratio
      - [ be32, 0x01904494, 0x4017b9aa ]
  32:9 Aspect Ratio:
    Games:
      "Demon's Souls":
        BLES00932: [ 01.00 ]
    Author: Whatcookie
     Notes: *DeS_AR_Notes
     Notes: *DeS_AR_Notes
    Configurable Values: *DeS_AR_Configurable_Values
     Patch Version: 1.0
     Patch Version: 1.0
    Group: AR
     Patch:
     Patch:
       - [ bef32, 0x018cf13c, 3.5555556 ] # 32:9 aspect ratio
       - [ bef32, 0x018cf13c, "Aspect Ratio" ]
       - [ bef32, 0x01904494, 3.5555556 ]
       - [ bef32, 0x01904494, "Aspect Ratio" ]
   Disable Motion Blur:
   "Disable Motion Blur":
     Games:
     Games: *des_EU100title
      "Demon's Souls":
     Author: "illusion"
        BLES00932: [ 01.00 ]
     Notes:
     Author: illusion
     Notes:  
     Patch Version: 1.0
     Patch Version: 1.0
     Patch:
     Patch:
       - [ byte, 0x00218d04, 0x41 ]
       - [ byte, 0x00218d04, 0x41 ]
   Enable FreeCam:
   "Enable FreeCam":
     Games:
     Games: *des_EU100title
      "Demon's Souls":
    Author: "horkrux"
        BLES00932: [ 01.00 ]
     Notes: *FreeCam_Notes
     Author: horkrux
     Patch Version: 1.0
     Patch Version: 1.0
    Group:
    Notes: *FreeCam_Notes
     Patch:
     Patch:
       - [ load, *BLES00932_FreeCam ]  
       - [ load, *BLES00932_FreeCam ]


PPU-9403fe1678487def5d7f3c380b4c4fb275035378:
PPU-9403fe1678487def5d7f3c380b4c4fb275035378:
   Unlock FPS:
   "Unlock FPS":
     Games:
     Games: *des_AS104title
      "Demon's Souls":
     Author: "Whatcookie, Gibbed, KokutouKiritsugu port to BCAS20071"
        BCAS20071: [ 01.04 ]
     Author: Whatcookie, Gibbed, KokutouKiritsugu port to BCAS20071
     Notes: *DeS_FPS_Notes
     Notes: *DeS_FPS_Notes
     Patch Version: 2.1
     Patch Version: 2.1
     Patch:
     Patch:
       - [ load, *BCAS20071_FpsUnlock ]
       - [ load, *BCAS20071_FpsUnlock ]
   Disable Dynamic Exposure:
   "Disable Dynamic Exposure":
     Games:
     Games: *des_AS104title
      "Demon's Souls":
     Author: "Whatcookie, KokutouKiritsugu port to BCAS20071"
        BCAS20071: [ 01.04 ]
     Author: Whatcookie, KokutouKiritsugu port to BCAS20071
     Notes: *DeS_DDE_Notes
     Notes: *DeS_DDE_Notes
     Patch Version: 1.0.1
     Patch Version: 1.1
     Patch:
     Patch:
       - [ be16, 0x0002414c, 0x981f ]
       - [ be16, 0x0002414c, 0x981f ]
   Skip Intro Videos:
   "Skip Intro Videos":
     Games:
     Games: *des_AS104title
      "Demon's Souls":
     Author: "GalCiv, KokutouKiritsugu port to BCAS20071"
        BCAS20071: [ 01.04 ]
     Notes:
     Author: GalCiv, KokutouKiritsugu port to BCAS20071
     Notes:  
     Patch Version: 1.0
     Patch Version: 1.0
     Patch:
     Patch:
       - [ be32, 0x008efecc, 0x38000003 ] # Intro logos skip
       - [ be32, 0x008efecc, 0x38000003 ] # Intro logos skip
       - [ be32, 0x008efed0, 0x901c0100 ]
       - [ be32, 0x008efed0, 0x901c0100 ]
   21:9 Aspect Ratio:
   "Aspect Ratio":
     Games:
     Games: *des_AS104title
      "Demon's Souls":
     Author: "Whatcookie, KokutouKiritsugu port to BCAS20071"
        BCAS20071: [ 01.04 ]
     Author: Whatcookie, KokutouKiritsugu port to BCAS20071
     Notes: *DeS_AR_Notes
     Notes: *DeS_AR_Notes
    Configurable Values: *DeS_AR_Configurable_Values
    Patch Version: 1.0
    Patch:
      - [ bef32, 0x018cee14, "Aspect Ratio" ]
      - [ bef32, 0x0190430c, "Aspect Ratio" ]
  "Disable Motion Blur":
    Games: *des_AS104title
    Author: "illusion, KokutouKiritsugu port to BCAS20071"
    Notes:
    Patch Version: 1.0
    Patch:
      - [ byte, 0x00215f54, 0x41 ]
  "Enable FreeCam":
    Games: *des_AS104title
    Author: "horkrux"
    Notes: *FreeCam_Notes
     Patch Version: 1.0
     Patch Version: 1.0
    Group: AR
     Patch:
     Patch:
       - [ be32, 0x018Cee14, 0x4017b9aa ] # 21:9 aspect ratio
       - [ load, *BCAS20071_FreeCam ]
       - [ be32, 0x0190430c, 0x4017b9aa ]
 
   32:9 Aspect Ratio:
PPU-f965a746d844cd0c572a7e8731b5b3b7a81f7bdd:
     Games:
  "Unlock FPS":
      "Demon's Souls":
    Games: *des_USDemo101title
        BCAS20071: [ 01.04 ]
    Author: "Whatcookie, Gibbed"
     Author: Whatcookie, KokutouKiritsugu port to BCAS20071
    Notes: *DeS_FPS_Notes
    Patch Version: 2.1
    Patch:
      - [ load, *BLUS30443_FpsUnlock ]
  "Disable Dynamic Exposure":
    Games: *des_USDemo101title
    Author: "Whatcookie"
    Notes: *DeS_DDE_Notes
    Patch Version: 1.1
    Patch:
       - [ be16, 0x00025edc, 0x981f ]
   "Skip Intro Videos":
     Games: *des_USDemo101title
    Author: "GalCiv"
    Notes:
    Patch Version: 1.0
    Patch:
      - [ be32, 0x008eef78, 0x38000003 ] # Intro logos skip
      - [ be32, 0x008eef7c, 0x901c0100 ]
  "Aspect Ratio":
    Games: *des_USDemo101title
     Author: "Whatcookie"
     Notes: *DeS_AR_Notes
     Notes: *DeS_AR_Notes
    Configurable Values: *DeS_AR_Configurable_Values
     Patch Version: 1.0
     Patch Version: 1.0
    Group: AR
     Patch:
     Patch:
       - [ bef32, 0x018Cee14, 3.5555556 ] # 32:9 aspect ratio
       - [ bef32, 0x018cefbc, "Aspect Ratio" ]
       - [ bef32, 0x0190430c, 3.5555556 ]
       - [ bef32, 0x0190433c, "Aspect Ratio" ]
   Disable Motion Blur:
   "Disable Motion Blur":
     Games:
     Games: *des_USDemo101title
      "Demon's Souls":
     Author: "illusion"
        BCAS20071: [ 01.04 ]
     Notes:
     Author: illusion, KokutouKiritsugu port to BCAS20071
     Notes:  
     Patch Version: 1.0
     Patch Version: 1.0
     Patch:
     Patch:
       - [ byte, 0x00215f54, 0x41 ]
       - [ byte, 0x00217e7c, 0x41 ]
   Enable FreeCam:
   "Enable FreeCam":
     Games:
     Games: *des_USDemo101title
      "Demon's Souls":
    Author: "horkrux"
        BCAS20071: [ 01.04 ]
     Notes: *FreeCam_Notes
     Author: horkrux
     Patch Version: 1.0
     Patch Version: 1.0
    Group:
    Notes: *FreeCam_Notes
     Patch:
     Patch:
       - [ load, *BCAS20071_FreeCam ]  
       - [ load, *BLUS30443_FreeCam ]
}}
}}
===Incorrect FPS counter===
Demon's Souls has an internal technique where it will output duplicate frames if the games performance is not at the FPS cap. This makes the FPS counters report that the game is running at 30FPS (or 60FPS) at all times while the actual performance could be 15FPS as the game is outputting duplicate frames if your performance is too low. This is not a bug, its just an unfortunate result of how Demon's Souls works. The reliable way to check true performance is to record gameplay footage and then use tools to analyze the frame-rate from the footage. However, users may use the FPS patch, which disables the game's internal frame duplication logic, to check performance levels.
{{netplay
|gamever  = 1.00
|connect  = Yes <!-- Yes, No, Partial, Untested, N/A -->
|lobbies  = Yes <!-- Yes, No, Partial, Untested, N/A -->
|match    = Yes <!-- Yes, No, Partial, Untested, N/A -->
|features = Yes <!-- Yes, No, Partial, Untested, N/A -->
|notes    = Requires custom IP/Hosts switches. [https://thearchstones.com/serverinfo.html More info]
}}
===Netplay IP/Host Switches===
This title requires a private server to access all Netplay features. Enter the below text in the '''IP/Host Switches''' section:
<pre>ds-eu-c.scej-online.jp=206.189.232.242&&ds-eu-g.scej-online.jp=206.189.232.242&&c.demons-souls.com=206.189.232.242&&g.demons-souls.com=206.189.232.242&&cmnap.scej-online.jp=206.189.232.242&&demons-souls.scej-online.jp=206.189.232.242</pre>
[[Category:Custom servers (Netplay)]]

Latest revision as of 03:09, 29 April 2024

Demon's Souls
DeS PS3.jpg
Developer(s) FromSoftware
Publisher(s) JP Sony Computer Entertainment
NA Atlus USA
AU/EU Bandai Namco Games
Series Souls
Release date(s) JP February 5, 2009
NA October 6, 2009
AU June 23, 2010
EU June 25, 2010
Release type PlayStation 3 exclusive
Genre(s) Action, Role-playing
Mode(s) Single-player, Multiplayer
GameID(s) BLES00932 (IRD), BLUS30443 (IRD), BCJS30022 (IRD), NPEB01202, NPUB30910, NPJA00102, BCAS20071 (IRD)
Trade Demo
BLUD80018 (IRD)
Internal resolution 1280x720
Quick links Check Compatibility
Open Issues
Search Google
Wikipedia Page

Demon's Souls is the first installment in the Souls series of games created by game director Hidetaka Miyazaki, and was produced under supervision by Sony's Japan Studio. Set in a dark fantasy world, players take control of a hero who has journeyed to the fictional kingdom of Boletaria, which is being ravaged by a cursed fog that brings forth demons who feast on the souls of mortals. The gameplay involves a character-creation system and emphasizes gathering loot through combat with enemies in a non-linear series of varied locations, with a heavy emphasis on challenging combat. It has a unique online multiplayer system integrated into the single-player where players can leave useful messages and warnings for other players' single-player game worlds, as well as joining other players in their world to assist and/or kill them.

Configuration

Options that deviate from RPCS3's default settings and provide the best experience with this title are listed below.

CPU configuration

Setting Option Notes
SPU block size Safe Mega and Giga are unstable with Demon's Souls at the moment.

GPU configuration

Setting Option Notes
Resolution scale threshold 640 x 640 Properly scales the depth of field effect at resolution scales higher than the default 1280x720.
Write color buffers On Fixes missing graphics ingame.

Advanced configuration

Setting Option Notes
Maximum SPURS threads 3 Helps with performance. Don’t mess with this if you have a CPU with more than 6 cores and 12 threads as you may experience performance loss.

Recommended patches

Game patches are available through the RPCS3 Patch Manager. To enable them, right-click a game in RPCS3 then select "Manage Game Patches". Game Patches are created by RPCS3's community, and can alter how a game runs. More information can be found here.

Recommendation Patch name Notes
Highly recommended patch Unlock FPS Can make certain shortcuts/skips more difficult to do.
Recommended patch Skip Intro Videos, Disable Motion Blur

Known Issues

There are no reported issues with this title.

Special Notes

Gray Outline Removal When Upscaling

When upscaling in this game, gray outlines appear in the hud while in-game and in certain UI elements. You can use this mod to eliminate that. Be sure to read the installation instruction in the description tab of the linked page carefully when applying this mod.

Disable Depth of Field

If you don't want to adjust resolution scale threshold for proper DoF scaling when upscaling (as mentioned in the configuration section above), then alternatively you can use this mod to disable this effect entirely. Be sure to read the installation instruction in the description tab of the linked page carefully when applying this mod.

Incorrect FPS counter

Demon's Souls has an internal technique where it will output duplicate frames if the games performance is not at the FPS cap. This makes the FPS counters report that the game is running at 30 FPS or 60 FPS at all times while the actual performance could be 15 FPS as the game is outputting duplicate frames if your performance is too low. This is not a bug. It's just an unfortunate result of how Demon's Souls works. The reliable way to check true performance is to record gameplay footage and then use tools to analyze the frame-rate from the footage. However, users may use the FPS patch which disables the game's internal frame duplication logic to check performance levels.

Netplay testing

For the complete list of games tested with RPCN, please check the RPCN Compatibility List.

Game Version RPCS3 Version Connects? Create/Join lobbies? Match with others? Online features working? Requires custom servers? Notes
1.00 N/A Yes Yes Yes Yes Available Requires custom IP/Hosts switches. More info
Alternatively players can host their own server.

Netplay IP/Host Switches

This title requires a private server to access all Netplay features. Enter the below text in the IP/Host Switches section:

ds-eu-c.scej-online.jp=206.189.232.242&&ds-eu-g.scej-online.jp=206.189.232.242&&c.demons-souls.com=206.189.232.242&&g.demons-souls.com=206.189.232.242&&cmnap.scej-online.jp=206.189.232.242&&demons-souls.scej-online.jp=206.189.232.242

Patches

Anchors:
  BLUS30443_FpsUnlock: &BLUS30443_FpsUnlock
  # Set 60 FPS with no frameskip
  # by Gibbed
    - [ be16, 0x00025ed8, 0x981f ]
  # delta time
  # by Whatcookie
    - [ be32, 0x0001b964, 0x496ac2cd ] # jump to code cave
  # get mftb
    - [ be32, 0x016c7c30, 0x7eac42e6 ] # mftb r21              // move from timebase register (clock)
  # get mftb delta
    - [ be32, 0x016c7c34, 0x3ec00185 ] # lis r22,0x0185        // load high bits of address
    - [ be32, 0x016c7c38, 0x3ad62608 ] # addi r22,r22,0x2608   // load low bits of address
    - [ be32, 0x016c7c3c, 0x7e96a02a ] # ldx r20,r22,r20       // load previous frames mftb reading
    - [ be32, 0x016c7c40, 0xfab60000 ] # std r21,0x0(r22)      // store this frames mftb reading
    - [ be32, 0x016c7c44, 0x7e74a850 ] # subf r19,r21,r20      // subtract previous mftb reading from this mftb frames reading
  # mftb delta to float
    - [ be32, 0x016c7c48, 0xfa760018 ] # std r19,0x18(r22)     // store mftb delta (to be loaded into FPR)
    - [ be32, 0x016c7c4c, 0xcbd60018 ] # lfd f30,0x18(r22)     // load mftb delta into FPR
    - [ be32, 0x016c7c50, 0xffc0f69c ] # fcfid f30,f30         // convert integer to double
    - [ be32, 0x016c7c54, 0xffc0f018 ] # frsp f30,f30          // round to single precision
  # mftb delta to seconds
    - [ be32, 0x016c7c58, 0x3e40016c ] # r18,0x16c             // load high bits constants pointer
    - [ be32, 0x016c7c5c, 0x3a527c30 ] # addi r18,r18,0x7c30   // load low bits of constants pointer
    - [ be32, 0x016c7c60, 0xc3b20054 ] # lfs f29,0x54(r18)     // load timebase frequency constant
    - [ be32, 0x016c7c64, 0xc3920058 ] # lfs f28,0x58(r18)     // load maximum timestep size
    - [ be32, 0x016c7c68, 0xeffee824 ] # fdivs f31,f30,f29     // divide timebase delta by timebase frequency
  # check timestep size
    - [ be32, 0x016c7c6c, 0xff9fe000 ] # fcmpu cr7,f31,f28     // compare current delta time to maximum timestep
    - [ be32, 0x016c7c70, 0x419c0008 ] # blt +0x08             // don't return the maximum timestep size
  # set maximum timestep
    - [ be32, 0x016c7c74, 0xffe0e090 ] # fmr f31,f28           // move maximum timestep to be returned
  # cleanup
    - [ be32, 0x016c7c78, 0x7e94a278 ] # xor r20,r20,r20       // zero r20
    - [ be32, 0x016c7c7c, 0x7e94a278 ] # xor r19,r19,r19       // zero r19
    - [ be32, 0x016c7c80, 0x4e800020 ] # blr                   // return
  # constants
    - [ be32, 0x016c7c84, 0x4c989680 ] # timebase frequency as hexfloat (80mhz)
    - [ bef32, 0x016c7c88, 0.05 ]      # maximum timestep size (50ms or 20 FPS)

  BLES00932_FpsUnlock: &BLES00932_FpsUnlock
  # Set 60 FPS with no frameskip
  # by Gibbed
    - [ be16, 0x00026ac0, 0x981f ]
  # delta time
  # by Whatcookie
    - [ be32, 0x0001c534, 0x496ada1d ] # jump to code cave
  # get mftb
    - [ be32, 0x016c9f50, 0x7eac42e6 ] # mftb r21              // move from timebase register (clock)
  # get mftb delta
    - [ be32, 0x016c9f54, 0x3ec00185 ] # lis r22,0x0185        // load high bits of address
    - [ be32, 0x016c9f58, 0x3ad62608 ] # addi r22,r22,0x2608   // load low bits of address
    - [ be32, 0x016c9f5c, 0x7e96a02a ] # ldx r20,r22,r20       // load previous frames mftb reading
    - [ be32, 0x016c9f60, 0xfab60000 ] # std r21,0x0(r22)      // store this frames mftb reading
    - [ be32, 0x016c9f64, 0x7e74a850 ] # subf r19,r21,r20      // subtract previous mftb reading from this mftb frames reading
  # mftb delta to float
    - [ be32, 0x016c9f68, 0xfa760018 ] # std r19,0x18(r22)     // store mftb delta (to be loaded into FPR)
    - [ be32, 0x016c9f6c, 0xcbd60018 ] # lfd f30,0x18(r22)     // load mftb delta into FPR
    - [ be32, 0x016c9f70, 0xffc0f69c ] # fcfid f30,f30         // convert integer to double
    - [ be32, 0x016c9f74, 0xffc0f018 ] # frsp f30,f30          // round to single precision
  # mftb delta to seconds
    - [ be32, 0x016c9f78, 0x3e40016c ] # r18,0x16c             // load high bits constants pointer
    - [ be32, 0x016c9f7c, 0x62529f50 ] # ori r18,r18,0x9f50    // load low bits of constants pointer
    - [ be32, 0x016c9f80, 0xc3b20054 ] # lfs f29,0x54(r18)     // load timebase frequency constant
    - [ be32, 0x016c9f84, 0xc3920058 ] # lfs f28,0x58(r18)     // load maximum timestep size
    - [ be32, 0x016c9f88, 0xeffee824 ] # fdivs f31,f30,f29     // divide timebase delta by timebase frequency
  # check timestep size
    - [ be32, 0x016c9f8c, 0xff9fe000 ] # fcmpu cr7,f31,f28     // compare current delta time to maximum timestep
    - [ be32, 0x016c9f90, 0x419c0008 ] # blt +0x08             // don't return the maximum timestep size
  # set maximum timestep
    - [ be32, 0x016c9f94, 0xffe0e090 ] # fmr f31,f28           // move maximum timestep to be returned
  # cleanup
    - [ be32, 0x016c9f98, 0x7e94a278 ] # xor r20,r20,r20       // zero r20
    - [ be32, 0x016c9f9c, 0x7e94a278 ] # xor r19,r19,r19       // zero r19
    - [ be32, 0x016c9fa0, 0x4e800020 ] # blr                   // return
  # constants
    - [ be32, 0x016c9fa4, 0x4c989680 ] # timebase frequency as hexfloat (80mhz)
    - [ bef32, 0x016c9fa8, 0.05 ]      # maximum timestep size (50ms or 20 FPS)

  BCAS20071_FpsUnlock: &BCAS20071_FpsUnlock
  # Set 60 FPS with no frameskip
  # by Gibbed, KokutouKiritsugu port to BCAS20071
    - [ be16, 0x00024148, 0x981f ]
  # delta time
  # by Whatcookie
    - [ be32, 0x00019794, 0x496af37d ] # jump to code cave
  # get mftb
    - [ be32, 0x016c8b10, 0x7eac42e6 ] # mftb r21              // move from timebase register (clock)
  # get mftb delta
    - [ be32, 0x016c8b14, 0x3ec00185 ] # lis r22,0x0185        // load high bits of address
    - [ be32, 0x016c8b18, 0x3ad62608 ] # addi r22,r22,0x2608   // load low bits of address
    - [ be32, 0x016c8b1c, 0x7e96a02a ] # ldx r20,r22,r20       // load previous frames mftb reading
    - [ be32, 0x016c8b20, 0xfab60000 ] # std r21,0x0(r22)      // store this frames mftb reading
    - [ be32, 0x016c8b24, 0x7e74a850 ] # subf r19,r21,r20      // subtract previous mftb reading from this mftb frames reading
  # mftb delta to float
    - [ be32, 0x016c8b28, 0xfa760018 ] # std r19,0x18(r22)     // store mftb delta (to be loaded into FPR)
    - [ be32, 0x016c8b2c, 0xcbd60018 ] # lfd f30,0x18(r22)     // load mftb delta into FPR
    - [ be32, 0x016c8b30, 0xffc0f69c ] # fcfid f30,f30         // convert integer to double
    - [ be32, 0x016c8b34, 0xffc0f018 ] # frsp f30,f30          // round to single precision
  # mftb delta to seconds
    - [ be32, 0x016c8b38, 0x3e40016c ] # r18,0x16c             // load high bits constants pointer
    - [ be32, 0x016c8b3c, 0x62528b10 ] # ori r18,r18,0x8b10    // load low bits of constants pointer
    - [ be32, 0x016c8b40, 0xc3b20054 ] # lfs f29,0x54(r18)     // load timebase frequency constant
    - [ be32, 0x016c8b44, 0xc3920058 ] # lfs f28,0x58(r18)     // load maximum timestep size
    - [ be32, 0x016c8b48, 0xeffee824 ] # fdivs f31,f30,f29     // divide timebase delta by timebase frequency
  # check timestep size
    - [ be32, 0x016c8b4c, 0xff9fe000 ] # fcmpu cr7,f31,f28     // compare current delta time to maximum timestep
    - [ be32, 0x016c8b50, 0x419c0008 ] # blt +0x08             // don't return the maximum timestep size
  # set maximum timestep
    - [ be32, 0x016c8b54, 0xffe0e090 ] # fmr f31,f28           // move maximum timestep to be returned
  # cleanup
    - [ be32, 0x016c8b58, 0x7e94a278 ] # xor r20,r20,r20       // zero r20
    - [ be32, 0x016c8b5c, 0x7e94a278 ] # xor r19,r19,r19       // zero r19
    - [ be32, 0x016c8b60, 0x4e800020 ] # blr                   // return
  # constants
    - [ be32, 0x016c8b64, 0x4c989680 ] # timebase frequency as hexfloat (80mhz)
    - [ bef32, 0x016c8b68, 0.05 ]      # maximum timestep size (50ms or 20 FPS)

  DeS_FPS_Notes: &DeS_FPS_Notes
    "Patch version 2.0 and above is not compatible with the settings used for the previous patch. Clocks scale and Vblank rate must be set to the defaults. Vblank rate can be modified to increase the framelimit beyond 60 FPS. However, it's not recommended as users may encounter physics issues."

  DeS_DDE_Notes: &DeS_DDE_Notes
    "Can disable Write Color Buffers for 20% faster performance. Please note this patch gives a slightly darker tone to the game."

  DeS_AR_Notes: &DeS_AR_Notes
    "Requires \"Stretch To Display Area\" checked in the GPU settings. UI elements will be stretched."

  DeS_AR_Configurable_Values: &DeS_AR_Configurable_Values
    "Aspect Ratio":
      Type: double_enum
      Value: &32_9_value 3.555555555555556
      Allowed Values:
        "32:9": *32_9_value
        "21:9 (3840x1600)": 2.4
        "21:9 (3440x1440)": 2.388888888888889
        "21:9 (2560x1080)": 2.37037037037037
        "16:10": 1.6
        "4:3": 1.333333333333333
        "5:4": 1.25

  BLUS30443_FreeCam: &BLUS30443_FreeCam
  # Thanks to Meow for original DS1 code
    - [ be32, 0x0014422c, 0x480db26d ] # branch to hork's cave
    - [ be32, 0x0021f498, 0xf821ff61 ]
    - [ be32, 0x0021f49c, 0x7c0802a6 ]
    - [ be32, 0x0021f4a0, 0xf80100b0 ]
    - [ be32, 0x0021f4a4, 0x38600000 ]
    - [ be32, 0x0021f4a8, 0x4bfa5639 ] # PadMan::GetPadDeviceForIdx
    - [ be32, 0x0021f4ac, 0x60000000 ]
    - [ be32, 0x0021f4b0, 0x813e203c ]
    - [ be32, 0x0021f4b4, 0x38000000 ]
    - [ be32, 0x0021f4b8, 0x91210090 ]
    - [ be32, 0x0021f4bc, 0x90610094 ]
    - [ be32, 0x0021f4c0, 0x90010098 ]
    - [ be32, 0x0021f4c4, 0x81630004 ]
    - [ be32, 0x0021f4c8, 0xa06b0120 ]
    - [ be32, 0x0021f4cc, 0x7863bfe2 ]
    - [ be32, 0x0021f4d0, 0x60000000 ]
    - [ be32, 0x0021f4d4, 0x5463063e ]
    - [ be32, 0x0021f4d8, 0x2f830000 ]
    - [ be32, 0x0021f4dc, 0x419e0034 ]
    - [ be32, 0x0021f4e0, 0xa00b011e ]
    - [ be32, 0x0021f4e4, 0x2f80000a ]
    - [ be32, 0x0021f4e8, 0x409e0028 ]
    - [ be32, 0x0021f4ec, 0x813f0034 ]
    - [ be32, 0x0021f4f0, 0x800901fc ]
    - [ be32, 0x0021f4f4, 0x38600001 ]
    - [ be32, 0x0021f4f8, 0x7c001a14 ]
    - [ be32, 0x0021f4fc, 0x900901fc ]
    - [ be32, 0x0021f500, 0x2f800004 ]
    - [ be32, 0x0021f504, 0x409e000c ]
    - [ be32, 0x0021f508, 0x38000000 ]
    - [ be32, 0x0021f50c, 0x900901fc ]
    - [ be32, 0x0021f510, 0x813f0034 ]
    - [ be32, 0x0021f514, 0x800901fc ]
    - [ be32, 0x0021f518, 0x2f800001 ]
    - [ be32, 0x0021f51c, 0x419e005c ]
    - [ be32, 0x0021f520, 0x2f800002 ]
    - [ be32, 0x0021f524, 0x419e007c ]
    - [ be32, 0x0021f528, 0x2f800003 ]
    - [ be32, 0x0021f52c, 0x419e0080 ]
    - [ be32, 0x0021f530, 0x80690204 ]
    - [ be32, 0x0021f534, 0x80890008 ]
    - [ be32, 0x0021f538, 0x38630010 ]
    - [ be32, 0x0021f53c, 0x38840010 ]
    - [ be32, 0x0021f540, 0x38a00010 ]
    - [ be32, 0x0021f544, 0x38c00020 ]
    - [ be32, 0x0021f548, 0x38e00030 ]
    - [ be32, 0x0021f54c, 0x7c2020ce ]
    - [ be32, 0x0021f550, 0x7c2019ce ]
    - [ be32, 0x0021f554, 0x7c2428ce ]
    - [ be32, 0x0021f558, 0x7c2329ce ]
    - [ be32, 0x0021f55c, 0x7c2430ce ]
    - [ be32, 0x0021f560, 0x7c2331ce ]
    - [ be32, 0x0021f564, 0x7c2438ce ]
    - [ be32, 0x0021f568, 0x7c2339ce ]
    - [ be32, 0x0021f56c, 0x9b7f0058 ]
    - [ be32, 0x0021f570, 0x9b7f0059 ]
    - [ be32, 0x0021f574, 0x480000a0 ]
    - [ be32, 0x0021f578, 0xa06b0122 ]
    - [ be32, 0x0021f57c, 0x7863e7e2 ]
    - [ be32, 0x0021f580, 0x5463063e ]
    - [ be32, 0x0021f584, 0x2f830000 ]
    - [ be32, 0x0021f588, 0x419e0008 ]
    - [ be32, 0x0021f58c, 0x48000014 ]
    - [ be32, 0x0021f590, 0x38000001 ]
    - [ be32, 0x0021f594, 0x981f0058 ]
    - [ be32, 0x0021f598, 0x981f0059 ]
    - [ be32, 0x0021f59c, 0x48000058 ]
    - [ be32, 0x0021f5a0, 0x9b7f0058 ]
    - [ be32, 0x0021f5a4, 0x9b7f0059 ]
    - [ be32, 0x0021f5a8, 0x4800004c ]
    - [ be32, 0x0021f5ac, 0x8069000c ]
    - [ be32, 0x0021f5b0, 0x80890204 ]
    - [ be32, 0x0021f5b4, 0x38630010 ]
    - [ be32, 0x0021f5b8, 0x38840010 ]
    - [ be32, 0x0021f5bc, 0x38a00010 ]
    - [ be32, 0x0021f5c0, 0x38c00020 ]
    - [ be32, 0x0021f5c4, 0x38e00030 ]
    - [ be32, 0x0021f5c8, 0x7c2020ce ]
    - [ be32, 0x0021f5cc, 0x7c2019ce ]
    - [ be32, 0x0021f5d0, 0x7c2428ce ]
    - [ be32, 0x0021f5d4, 0x7c2329ce ]
    - [ be32, 0x0021f5d8, 0x7c2430ce ]
    - [ be32, 0x0021f5dc, 0x7c2331ce ]
    - [ be32, 0x0021f5e0, 0x7c2438ce ]
    - [ be32, 0x0021f5e4, 0x7c2339ce ]
    - [ be32, 0x0021f5e8, 0x9b7f0058 ]
    - [ be32, 0x0021f5ec, 0x9b7f0059 ]
    - [ be32, 0x0021f5f0, 0x48000024 ]
    - [ be32, 0x0021f5f4, 0x38000001 ]
    - [ be32, 0x0021f5f8, 0x901f0044 ]
    - [ be32, 0x0021f5fc, 0x38c00000 ]
    - [ be32, 0x0021f600, 0x38a00000 ]
    - [ be32, 0x0021f604, 0x80810094 ]
    - [ be32, 0x0021f608, 0x80690204 ]
    - [ be32, 0x0021f60c, 0x4bf0bced ] # DbgCamControls
    - [ be32, 0x0021f610, 0x60000000 ]
    - [ be32, 0x0021f614, 0x80610094 ]
    - [ be32, 0x0021f618, 0xe80100b0 ]
    - [ be32, 0x0021f61c, 0x7c0803a6 ]
    - [ be32, 0x0021f620, 0x382100a0 ]
    - [ be32, 0x0021f624, 0x4e800020 ]

  BLES00932_FreeCam: &BLES00932_FreeCam
    - [ be32, 0x001451f4, 0x480db12d ] # branch to hork's cave
    - [ be32, 0x00220320, 0xf821ff61 ]
    - [ be32, 0x00220324, 0x7c0802a6 ]
    - [ be32, 0x00220328, 0xf80100b0 ]
    - [ be32, 0x0022032c, 0x38600000 ]
    - [ be32, 0x00220330, 0x4bfa5639 ] # PadMan::GetPadDeviceForIdx
    - [ be32, 0x00220334, 0x60000000 ]
    - [ be32, 0x00220338, 0x813e203c ]
    - [ be32, 0x0022033c, 0x38000000 ]
    - [ be32, 0x00220340, 0x91210090 ]
    - [ be32, 0x00220344, 0x90610094 ]
    - [ be32, 0x00220348, 0x90010098 ]
    - [ be32, 0x0022034c, 0x81630004 ]
    - [ be32, 0x00220350, 0xa06b0120 ]
    - [ be32, 0x00220354, 0x7863bfe2 ]
    - [ be32, 0x00220358, 0x60000000 ]
    - [ be32, 0x0022035c, 0x5463063e ]
    - [ be32, 0x00220360, 0x2f830000 ]
    - [ be32, 0x00220364, 0x419e0034 ]
    - [ be32, 0x00220368, 0xa00b011e ]
    - [ be32, 0x0022036c, 0x2f80000a ]
    - [ be32, 0x00220370, 0x409e0028 ]
    - [ be32, 0x00220374, 0x813f0034 ]
    - [ be32, 0x00220378, 0x800901fc ]
    - [ be32, 0x0022037c, 0x38600001 ]
    - [ be32, 0x00220380, 0x7c001a14 ]
    - [ be32, 0x00220384, 0x900901fc ]
    - [ be32, 0x00220388, 0x2f800004 ]
    - [ be32, 0x0022038c, 0x409e000c ]
    - [ be32, 0x00220390, 0x38000000 ]
    - [ be32, 0x00220394, 0x900901fc ]
    - [ be32, 0x00220398, 0x813f0034 ]
    - [ be32, 0x0022039c, 0x800901fc ]
    - [ be32, 0x002203a0, 0x2f800001 ]
    - [ be32, 0x002203a4, 0x419e005c ]
    - [ be32, 0x002203a8, 0x2f800002 ]
    - [ be32, 0x002203ac, 0x419e007c ]
    - [ be32, 0x002203b0, 0x2f800003 ]
    - [ be32, 0x002203b4, 0x419e0080 ]
    - [ be32, 0x002203b8, 0x80690204 ]
    - [ be32, 0x002203bc, 0x80890008 ]
    - [ be32, 0x002203c0, 0x38630010 ]
    - [ be32, 0x002203c4, 0x38840010 ]
    - [ be32, 0x002203c8, 0x38a00010 ]
    - [ be32, 0x002203cc, 0x38c00020 ]
    - [ be32, 0x002203d0, 0x38e00030 ]
    - [ be32, 0x002203d4, 0x7c2020ce ]
    - [ be32, 0x002203d8, 0x7c2019ce ]
    - [ be32, 0x002203dc, 0x7c2428ce ]
    - [ be32, 0x002203e0, 0x7c2329ce ]
    - [ be32, 0x002203e4, 0x7c2430ce ]
    - [ be32, 0x002203e8, 0x7c2331ce ]
    - [ be32, 0x002203ec, 0x7c2438ce ]
    - [ be32, 0x002203f0, 0x7c2339ce ]
    - [ be32, 0x002203f4, 0x9b7f0058 ]
    - [ be32, 0x002203f8, 0x9b7f0059 ]
    - [ be32, 0x002203fc, 0x480000a0 ]
    - [ be32, 0x00220400, 0xa06b0122 ]
    - [ be32, 0x00220404, 0x7863e7e2 ]
    - [ be32, 0x00220408, 0x5463063e ]
    - [ be32, 0x0022040c, 0x2f830000 ]
    - [ be32, 0x00220410, 0x419e0008 ]
    - [ be32, 0x00220414, 0x48000014 ]
    - [ be32, 0x00220418, 0x38000001 ]
    - [ be32, 0x0022041c, 0x981f0058 ]
    - [ be32, 0x00220420, 0x981f0059 ]
    - [ be32, 0x00220424, 0x48000058 ]
    - [ be32, 0x00220428, 0x9b7f0058 ]
    - [ be32, 0x0022042c, 0x9b7f0059 ]
    - [ be32, 0x00220430, 0x4800004c ]
    - [ be32, 0x00220434, 0x8069000c ]
    - [ be32, 0x00220438, 0x80890204 ]
    - [ be32, 0x0022043c, 0x38630010 ]
    - [ be32, 0x00220440, 0x38840010 ]
    - [ be32, 0x00220444, 0x38a00010 ]
    - [ be32, 0x00220448, 0x38c00020 ]
    - [ be32, 0x0022044c, 0x38e00030 ]
    - [ be32, 0x00220450, 0x7c2020ce ]
    - [ be32, 0x00220454, 0x7c2019ce ]
    - [ be32, 0x00220458, 0x7c2428ce ]
    - [ be32, 0x0022045c, 0x7c2329ce ]
    - [ be32, 0x00220460, 0x7c2430ce ]
    - [ be32, 0x00220464, 0x7c2331ce ]
    - [ be32, 0x00220468, 0x7c2438ce ]
    - [ be32, 0x0022046c, 0x7c2339ce ]
    - [ be32, 0x00220470, 0x9b7f0058 ]
    - [ be32, 0x00220474, 0x9b7f0059 ]
    - [ be32, 0x00220478, 0x48000024 ]
    - [ be32, 0x0022047c, 0x38000001 ]
    - [ be32, 0x00220480, 0x901f0044 ]
    - [ be32, 0x00220484, 0x38c00000 ]
    - [ be32, 0x00220488, 0x38a00000 ]
    - [ be32, 0x0022048c, 0x80810094 ]
    - [ be32, 0x00220490, 0x80690204 ]
    - [ be32, 0x00220494, 0x4bf0be2d ] # DbgCamControls
    - [ be32, 0x00220498, 0x60000000 ]
    - [ be32, 0x0022049c, 0x80610094 ]
    - [ be32, 0x002204a0, 0xe80100b0 ]
    - [ be32, 0x002204a4, 0x7c0803a6 ]
    - [ be32, 0x002204a8, 0x382100a0 ]
    - [ be32, 0x002204ac, 0x4e800020 ]

  BCAS20071_FreeCam: &BCAS20071_FreeCam
    - [ be32, 0x00142304, 0x480db26d ] # branch to hork's cave
    - [ be32, 0x0021d570, 0xf821ff61 ]
    - [ be32, 0x0021d574, 0x7c0802a6 ]
    - [ be32, 0x0021d578, 0xf80100b0 ]
    - [ be32, 0x0021d57c, 0x38600000 ]
    - [ be32, 0x0021d580, 0x4bfa5639 ] # PadMan::GetPadDeviceForIdx
    - [ be32, 0x0021d584, 0x60000000 ]
    - [ be32, 0x0021d588, 0x813e203c ]
    - [ be32, 0x0021d58c, 0x38000000 ]
    - [ be32, 0x0021d590, 0x91210090 ]
    - [ be32, 0x0021d594, 0x90610094 ]
    - [ be32, 0x0021d598, 0x90010098 ]
    - [ be32, 0x0021d59c, 0x81630004 ]
    - [ be32, 0x0021d5a0, 0xa06b0120 ]
    - [ be32, 0x0021d5a4, 0x7863bfe2 ]
    - [ be32, 0x0021d5a8, 0x60000000 ]
    - [ be32, 0x0021d5ac, 0x5463063e ]
    - [ be32, 0x0021d5b0, 0x2f830000 ]
    - [ be32, 0x0021d5b4, 0x419e0034 ]
    - [ be32, 0x0021d5b8, 0xa00b011e ]
    - [ be32, 0x0021d5bc, 0x2f80000a ]
    - [ be32, 0x0021d5c0, 0x409e0028 ]
    - [ be32, 0x0021d5c4, 0x813f0034 ]
    - [ be32, 0x0021d5c8, 0x800901fc ]
    - [ be32, 0x0021d5cc, 0x38600001 ]
    - [ be32, 0x0021d5d0, 0x7c001a14 ]
    - [ be32, 0x0021d5d4, 0x900901fc ]
    - [ be32, 0x0021d5d8, 0x2f800004 ]
    - [ be32, 0x0021d5dc, 0x409e000c ]
    - [ be32, 0x0021d5e0, 0x38000000 ]
    - [ be32, 0x0021d5e4, 0x900901fc ]
    - [ be32, 0x0021d5e8, 0x813f0034 ]
    - [ be32, 0x0021d5ec, 0x800901fc ]
    - [ be32, 0x0021d5f0, 0x2f800001 ]
    - [ be32, 0x0021d5f4, 0x419e005c ]
    - [ be32, 0x0021d5f8, 0x2f800002 ]
    - [ be32, 0x0021d5fc, 0x419e007c ]
    - [ be32, 0x0021d600, 0x2f800003 ]
    - [ be32, 0x0021d604, 0x419e0080 ]
    - [ be32, 0x0021d608, 0x80690204 ]
    - [ be32, 0x0021d60c, 0x80890008 ]
    - [ be32, 0x0021d610, 0x38630010 ]
    - [ be32, 0x0021d614, 0x38840010 ]
    - [ be32, 0x0021d618, 0x38a00010 ]
    - [ be32, 0x0021d61c, 0x38c00020 ]
    - [ be32, 0x0021d620, 0x38e00030 ]
    - [ be32, 0x0021d624, 0x7c2020ce ]
    - [ be32, 0x0021d628, 0x7c2019ce ]
    - [ be32, 0x0021d62c, 0x7c2428ce ]
    - [ be32, 0x0021d630, 0x7c2329ce ]
    - [ be32, 0x0021d634, 0x7c2430ce ]
    - [ be32, 0x0021d638, 0x7c2331ce ]
    - [ be32, 0x0021d63c, 0x7c2438ce ]
    - [ be32, 0x0021d640, 0x7c2339ce ]
    - [ be32, 0x0021d644, 0x9b7f0058 ]
    - [ be32, 0x0021d648, 0x9b7f0059 ]
    - [ be32, 0x0021d64c, 0x480000a0 ]
    - [ be32, 0x0021d650, 0xa06b0122 ]
    - [ be32, 0x0021d654, 0x7863e7e2 ]
    - [ be32, 0x0021d658, 0x5463063e ]
    - [ be32, 0x0021d65c, 0x2f830000 ]
    - [ be32, 0x0021d660, 0x419e0008 ]
    - [ be32, 0x0021d664, 0x48000014 ]
    - [ be32, 0x0021d668, 0x38000001 ]
    - [ be32, 0x0021d66c, 0x981f0058 ]
    - [ be32, 0x0021d670, 0x981f0059 ]
    - [ be32, 0x0021d674, 0x48000058 ]
    - [ be32, 0x0021d678, 0x9b7f0058 ]
    - [ be32, 0x0021d67c, 0x9b7f0059 ]
    - [ be32, 0x0021d680, 0x4800004c ]
    - [ be32, 0x0021d684, 0x8069000c ]
    - [ be32, 0x0021d688, 0x80890204 ]
    - [ be32, 0x0021d68c, 0x38630010 ]
    - [ be32, 0x0021d690, 0x38840010 ]
    - [ be32, 0x0021d694, 0x38a00010 ]
    - [ be32, 0x0021d698, 0x38c00020 ]
    - [ be32, 0x0021d69c, 0x38e00030 ]
    - [ be32, 0x0021d6a0, 0x7c2020ce ]
    - [ be32, 0x0021d6a4, 0x7c2019ce ]
    - [ be32, 0x0021d6a8, 0x7c2428ce ]
    - [ be32, 0x0021d6ac, 0x7c2329ce ]
    - [ be32, 0x0021d6b0, 0x7c2430ce ]
    - [ be32, 0x0021d6b4, 0x7c2331ce ]
    - [ be32, 0x0021d6b8, 0x7c2438ce ]
    - [ be32, 0x0021d6bc, 0x7c2339ce ]
    - [ be32, 0x0021d6c0, 0x9b7f0058 ]
    - [ be32, 0x0021d6c4, 0x9b7f0059 ]
    - [ be32, 0x0021d6c8, 0x48000024 ]
    - [ be32, 0x0021d6cc, 0x38000001 ]
    - [ be32, 0x0021d6d0, 0x901f0044 ]
    - [ be32, 0x0021d6d4, 0x38c00000 ]
    - [ be32, 0x0021d6d8, 0x38a00000 ]
    - [ be32, 0x0021d6dc, 0x80810094 ]
    - [ be32, 0x0021d6e0, 0x80690204 ]
    - [ be32, 0x0021d6e4, 0x4bf0bced ] # DbgCamControls
    - [ be32, 0x0021d6e8, 0x60000000 ]
    - [ be32, 0x0021d6ec, 0x80610094 ]
    - [ be32, 0x0021d6f0, 0xe80100b0 ]
    - [ be32, 0x0021d6f4, 0x7c0803a6 ]
    - [ be32, 0x0021d6f8, 0x382100a0 ]
    - [ be32, 0x0021d6fc, 0x4e800020 ]

  FreeCam_Notes: &FreeCam_Notes
    "Activate and cycle through modes with X + L3. Advance frames in time stop mode with Cross. L2/R2 to move down/up, L1/R1 to slow down/speed up movement."

  des_US100title: &des_US100title
    "Demon's Souls":
      BLUS30443: [ 01.00 ]

  des_EU100title: &des_EU100title
    "Demon's Souls":
      BLES00932: [ 01.00 ]

  des_AS104title: &des_AS104title
    "Demon's Souls":
      BCAS20071: [ 01.04 ]

  des_USDemo101title: &des_USDemo101title
    "Demon's Souls Trade Demo":
      BLUD80018: [ 01.01 ]

PPU-83681f6110d33442329073b72b8dc88a2f677172:
  "Unlock FPS":
    Games: *des_US100title
    Author: "Whatcookie, Gibbed"
    Notes: *DeS_FPS_Notes
    Patch Version: 2.1
    Patch:
      - [ load, *BLUS30443_FpsUnlock ]
  "Disable Dynamic Exposure":
    Games: *des_US100title
    Author: "Whatcookie"
    Notes: *DeS_DDE_Notes
    Patch Version: 1.1
    Patch:
      - [ be16, 0x00025edc, 0x981f ]
  "Skip Intro Videos":
    Games: *des_US100title
    Author: "GalCiv"
    Notes:
    Patch Version: 1.0
    Patch:
      - [ be32, 0x008eef78, 0x38000003 ] # Intro logos skip
      - [ be32, 0x008eef7c, 0x901c0100 ]
  "Aspect Ratio":
    Games: *des_US100title
    Author: "Whatcookie"
    Notes: *DeS_AR_Notes
    Configurable Values: *DeS_AR_Configurable_Values
    Patch Version: 1.0
    Patch:
      - [ bef32, 0x018cefbc, "Aspect Ratio" ]
      - [ bef32, 0x0190433c, "Aspect Ratio" ]
  "Disable Motion Blur":
    Games: *des_US100title
    Author: "illusion"
    Notes:
    Patch Version: 1.0
    Patch:
      - [ byte, 0x00217e7c, 0x41 ]
  "Enable FreeCam":
    Games: *des_US100title
    Author: "horkrux"
    Notes: *FreeCam_Notes
    Patch Version: 1.0
    Patch:
      - [ load, *BLUS30443_FreeCam ]

PPU-5446a2645880eefa75f7e374abd6b7818511e2ef:
  "Unlock FPS":
    Games: *des_EU100title
    Author: "Whatcookie, Gibbed"
    Notes: *DeS_FPS_Notes
    Patch Version: 2.1
    Patch:
      - [ load, *BLES00932_FpsUnlock ]
  "Disable Dynamic Exposure":
    Games: *des_EU100title
    Author: "Whatcookie"
    Notes: *DeS_DDE_Notes
    Patch Version: 1.1
    Patch:
      - [ be16, 0x00026ac4, 0x981f ]
  "Skip Intro Videos":
    Games: *des_EU100title
    Author: "GalCiv"
    Notes:
    Patch Version: 1.0
    Patch:
      - [ be32, 0x008f0928, 0x38000003 ] # Intro logos skip
      - [ be32, 0x008f092c, 0x901c0100 ]
  "Aspect Ratio":
    Games: *des_EU100title
    Author: "Whatcookie"
    Notes: *DeS_AR_Notes
    Configurable Values: *DeS_AR_Configurable_Values
    Patch Version: 1.0
    Patch:
      - [ bef32, 0x018cf13c, "Aspect Ratio" ]
      - [ bef32, 0x01904494, "Aspect Ratio" ]
  "Disable Motion Blur":
    Games: *des_EU100title
    Author: "illusion"
    Notes:
    Patch Version: 1.0
    Patch:
      - [ byte, 0x00218d04, 0x41 ]
  "Enable FreeCam":
    Games: *des_EU100title
    Author: "horkrux"
    Notes: *FreeCam_Notes
    Patch Version: 1.0
    Patch:
      - [ load, *BLES00932_FreeCam ]

PPU-9403fe1678487def5d7f3c380b4c4fb275035378:
  "Unlock FPS":
    Games: *des_AS104title
    Author: "Whatcookie, Gibbed, KokutouKiritsugu port to BCAS20071"
    Notes: *DeS_FPS_Notes
    Patch Version: 2.1
    Patch:
      - [ load, *BCAS20071_FpsUnlock ]
  "Disable Dynamic Exposure":
    Games: *des_AS104title
    Author: "Whatcookie, KokutouKiritsugu port to BCAS20071"
    Notes: *DeS_DDE_Notes
    Patch Version: 1.1
    Patch:
      - [ be16, 0x0002414c, 0x981f ]
  "Skip Intro Videos":
    Games: *des_AS104title
    Author: "GalCiv, KokutouKiritsugu port to BCAS20071"
    Notes:
    Patch Version: 1.0
    Patch:
      - [ be32, 0x008efecc, 0x38000003 ] # Intro logos skip
      - [ be32, 0x008efed0, 0x901c0100 ]
  "Aspect Ratio":
    Games: *des_AS104title
    Author: "Whatcookie, KokutouKiritsugu port to BCAS20071"
    Notes: *DeS_AR_Notes
    Configurable Values: *DeS_AR_Configurable_Values
    Patch Version: 1.0
    Patch:
      - [ bef32, 0x018cee14, "Aspect Ratio" ]
      - [ bef32, 0x0190430c, "Aspect Ratio" ]
  "Disable Motion Blur":
    Games: *des_AS104title
    Author: "illusion, KokutouKiritsugu port to BCAS20071"
    Notes:
    Patch Version: 1.0
    Patch:
      - [ byte, 0x00215f54, 0x41 ]
  "Enable FreeCam":
    Games: *des_AS104title
    Author: "horkrux"
    Notes: *FreeCam_Notes
    Patch Version: 1.0
    Patch:
      - [ load, *BCAS20071_FreeCam ]

PPU-f965a746d844cd0c572a7e8731b5b3b7a81f7bdd:
  "Unlock FPS":
    Games: *des_USDemo101title
    Author: "Whatcookie, Gibbed"
    Notes: *DeS_FPS_Notes
    Patch Version: 2.1
    Patch:
      - [ load, *BLUS30443_FpsUnlock ]
  "Disable Dynamic Exposure":
    Games: *des_USDemo101title
    Author: "Whatcookie"
    Notes: *DeS_DDE_Notes
    Patch Version: 1.1
    Patch:
      - [ be16, 0x00025edc, 0x981f ]
  "Skip Intro Videos":
    Games: *des_USDemo101title
    Author: "GalCiv"
    Notes:
    Patch Version: 1.0
    Patch:
      - [ be32, 0x008eef78, 0x38000003 ] # Intro logos skip
      - [ be32, 0x008eef7c, 0x901c0100 ]
  "Aspect Ratio":
    Games: *des_USDemo101title
    Author: "Whatcookie"
    Notes: *DeS_AR_Notes
    Configurable Values: *DeS_AR_Configurable_Values
    Patch Version: 1.0
    Patch:
      - [ bef32, 0x018cefbc, "Aspect Ratio" ]
      - [ bef32, 0x0190433c, "Aspect Ratio" ]
  "Disable Motion Blur":
    Games: *des_USDemo101title
    Author: "illusion"
    Notes:
    Patch Version: 1.0
    Patch:
      - [ byte, 0x00217e7c, 0x41 ]
  "Enable FreeCam":
    Games: *des_USDemo101title
    Author: "horkrux"
    Notes: *FreeCam_Notes
    Patch Version: 1.0
    Patch:
      - [ load, *BLUS30443_FreeCam ]