Demon's Souls: Difference between revisions

From RPCS3 Wiki
mNo edit summary
 
(59 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{{vginfobox
{{vginfobox
|image    = [[File:{{#setmainimage:DeS PS3.jpg}}|300px]]
|developer = FromSoftware
|developer = FromSoftware
|publisher = {{vgregion|JP=Sony Computer Entertainment|NA=Atlus USA|AU/EU|Bandai Namco Games}}
|publisher = {{vgregion|JP=Sony Computer Entertainment|NA=Atlus USA|AU/EU|Bandai Namco Games}}
Line 7: 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 15: 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) -->
|preferred spu threads notes          =  
|preferred spu threads notes          =  
|enable thread scheduler               = <!-- On, Off -->
|thread scheduler                     = <!-- Operating System, RPCS3 Scheduler, RPCS3 Alternative Scheduler -->
|enable 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 40: 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 46: 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 62: 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              =  
|asynchronous texture streaming        = <!-- On, Off -->
|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 98: 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 107: 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 116: 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          = May help with performance.  
|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 settings                    = <!-- Manually load selected libraries, Load automatic and manual selection, Load liblv2.sprx only, Load liblv2.sprx and manual selection, Load liblv2.sprx and strict selection -->
|firmware libraries                    = <!-- Switch to LLE, Switch to HLE -->
|firmware settings notes               = <!-- Where libraries are manually selected, mention the list of libraries to be selected here -->
|firmware libraries notes             = <!-- Mention the libraries to be manually selected here -->
|read depth buffers                    = <!-- On, Off -->
|read depth buffers                    = <!-- On, Off -->
|read depth buffers notes              =  
|read depth buffers notes              =  
Line 127: 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 142: 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 thread count                      = <!-- Value between 1 to 8 -->
|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==
===PSN versions do not work===
The PARAM.SFO file in the PSN versions are the same as the ones used in the Blu-ray version. Hence, the emulator identifies the games as Blu-rays and tries to install it as such. Due to this, the PSN versions only display a blackscreen.
===Missing Geometry===
{{issue|4302}} - There are certain situations when the game doesn't send geometry to be rendered (like the invisible soldier shield).
<!-- There are no reported issues with this title. -->
<!-- There are no reported issues with this title. -->
There are no reported issues with this title.


==Special Notes==
==Special Notes==
<!-- Mention any additional notes if necessary. If no special notes are required, remove this section -->
<!-- Mention any additional notes if necessary. If no special notes are required, remove this section -->
===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.
===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.
===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 185: 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 191: 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 198: 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 233: 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 239: 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 246: 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)


   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."
  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 ]


   DeS_DDE_Notes: &DeS_DDE_Notes "Can disable Write Color Buffers for 20% faster performance. Enable this patch if you experience flickering."
   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 ]


   DeS_AR_Notes: &DeS_AR_Notes "UI Elements will be stretched"
   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:
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
     Notes: *DeS_AR_Notes
    Configurable Values: *DeS_AR_Configurable_Values
     Patch Version: 1.0
     Patch Version: 1.0
    Group: AR
     Patch:
     Patch:
       - [ be32, 0x018cefbc, 0x4017b9aa ] # 21:9 aspect ratio
       - [ bef32, 0x018cefbc, "Aspect Ratio" ]
       - [ be32, 0x0190433c, 0x4017b9aa ]
       - [ bef32, 0x0190433c, "Aspect Ratio" ]
   32:9 Aspect Ratio:
   "Disable Motion Blur":
     Games:
     Games: *des_US100title
      "Demon's Souls":
    Author: "illusion"
        BLUS30443: [ 01.00 ]
    Notes:
     Author: Whatcookie
    Patch Version: 1.0
     Notes: *DeS_AR_Notes
    Patch:
      - [ byte, 0x00217e7c, 0x41 ]
  "Enable FreeCam":
    Games: *des_US100title
     Author: "horkrux"
     Notes: *FreeCam_Notes
     Patch Version: 1.0
     Patch Version: 1.0
    Group: AR
     Patch:
     Patch:
       - [ bef32, 0x018cefbc, 3.5555556 ] # 32:9 aspect ratio
       - [ load, *BLUS30443_FreeCam ]
      - [ bef32, 0x0190433c, 3.5555556 ]


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
     Notes: *DeS_AR_Notes
    Configurable Values: *DeS_AR_Configurable_Values
     Patch Version: 1.0
     Patch Version: 1.0
    Group: AR
     Patch:
     Patch:
       - [ be32, 0x018cf13c, 0x4017b9aa ] # 21:9 aspect ratio
      - [ bef32, 0x018cf13c, "Aspect Ratio" ]
       - [ be32, 0x01904494, 0x4017b9aa ]
      - [ bef32, 0x01904494, "Aspect Ratio" ]
   32:9 Aspect Ratio:
  "Disable Motion Blur":
     Games:
    Games: *des_EU100title
       "Demon's Souls":
    Author: "illusion"
        BLES00932: [ 01.00 ]
    Notes:
     Author: Whatcookie
    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
     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 Version: 1.0
    Group: AR
     Patch:
     Patch:
       - [ bef32, 0x018cf13c, 3.5555556 ] # 32:9 aspect ratio
       - [ load, *BLUS30443_FreeCam ]
      - [ bef32, 0x01904494, 3.5555556 ]
}}
}}
===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 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)]]
===Converting PSN version to Disc version===
As mentioned [[#PSN versions do not work|above]], the PSN version of Demon's Souls only displays a blackscreen on boot. To address this, the PSN version of the game needs to be converted to the Disc version to work with RPCS3. Thanks to Hykem for make_npdata and RainbowCookie for automating the process. The steps to convert the game is mentioned below:
# Install the PSN version's PKG and RAP in RPCS3.
# Extract the [https://mega.nz/file/ESR2SDQC#XImLKal623obHsX8PpbCdRJdmGUqJf-TwIEpKkrwTa0 fixer folder] to <code>\dev_hdd0\game\</code>.
# Run '''des_fixer.exe'''.
# Wait for the process to complete (might take a while).
# Once completed, you will see a new Demon's Souls entry in RPCS3's game list and a folder inside <code>\dev_hdd0\disc\</code> called '''DeS-Converted'''.
# Go to <code>fixer\resources\</code> and copy '''PS3_DISC.SFB''' file to '''DeS-Converted''' folder.
# Boot the new Demon's Souls entry in RPCS3.

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 ]