Demon's Souls: Difference between revisions

From RPCS3 Wiki
m (Remove whitespace)
Line 160: Line 160:
<!-- There are no reported issues with this title. -->
<!-- There are no reported issues with this title. -->


===Missing Geometry - <i>Fixed by {{pr|12450}}</i>===  
===Missing Geometry - <i>Fixed by {{pr|12450}}</i>===
<s>{{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.</s>
<s>{{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.</s>


Line 167: Line 167:


===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===
===Incorrect FPS counter===
Line 198: Line 198:
   # by Gibbed
   # by Gibbed
     - [ be16, 0x25ed8, 0x981f ]
     - [ be16, 0x25ed8, 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 212: Line 212:
     - [ 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 218: Line 218:
     - [ 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 225: Line 225:
     - [ 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.05000000 ] # maximum timestep size (50ms or 20FPS)
 
 
   BLES00932_FpsUnlock: &BLES00932_FpsUnlock
   BLES00932_FpsUnlock: &BLES00932_FpsUnlock
   # Set 60FPS with no frameskip
   # Set 60FPS with no frameskip
   # by Gibbed
   # by Gibbed
     - [ be16, 0x26ac0, 0x981f ]
     - [ be16, 0x26ac0, 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 260: Line 260:
     - [ 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 266: Line 266:
     - [ 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 273: Line 273:
     - [ 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.05000000 ] # maximum timestep size (50ms or 20FPS)
 
 
   BCAS20071_FpsUnlock: &BCAS20071_FpsUnlock
   BCAS20071_FpsUnlock: &BCAS20071_FpsUnlock
   # Set 60FPS with no frameskip
   # Set 60FPS with no frameskip
   # by Gibbed, KokutouKiritsugu port to BCAS20071
   # by Gibbed, KokutouKiritsugu port to BCAS20071
     - [ be16, 0x24148, 0x981f ]
     - [ be16, 0x24148, 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 308: Line 308:
     - [ 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 314: Line 314:
     - [ 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
Line 321: Line 321:
     - [ 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)
Line 447: Line 447:
     - [ be32, 0x21F620, 0x382100A0 ]
     - [ be32, 0x21F620, 0x382100A0 ]
     - [ be32, 0x21F624, 0x4E800020 ]
     - [ be32, 0x21F624, 0x4E800020 ]
   
 
   BLES00932_FreeCam: &BLES00932_FreeCam
   BLES00932_FreeCam: &BLES00932_FreeCam
     - [ be32, 0x1451F4, 0x480DB12D ] # branch to hork's cave
     - [ be32, 0x1451F4, 0x480DB12D ] # branch to hork's cave
Line 550: Line 550:
     - [ be32, 0x2204A8, 0x382100A0 ]
     - [ be32, 0x2204A8, 0x382100A0 ]
     - [ be32, 0x2204AC, 0x4E800020 ]
     - [ be32, 0x2204AC, 0x4E800020 ]
   
 
   BCAS20071_FreeCam: &BCAS20071_FreeCam
   BCAS20071_FreeCam: &BCAS20071_FreeCam
     - [ be32, 0x142304, 0x480DB26D ] # branch to hork's cave
     - [ be32, 0x142304, 0x480DB26D ] # branch to hork's cave
Line 725: Line 725:
     Notes: *FreeCam_Notes
     Notes: *FreeCam_Notes
     Patch:
     Patch:
       - [ load, *BLUS30443_FreeCam ]  
       - [ load, *BLUS30443_FreeCam ]


PPU-5446a2645880eefa75f7e374abd6b7818511e2ef:
PPU-5446a2645880eefa75f7e374abd6b7818511e2ef:
Line 796: Line 796:
     Notes: *FreeCam_Notes
     Notes: *FreeCam_Notes
     Patch:
     Patch:
       - [ load, *BLES00932_FreeCam ]  
       - [ load, *BLES00932_FreeCam ]


PPU-9403fe1678487def5d7f3c380b4c4fb275035378:
PPU-9403fe1678487def5d7f3c380b4c4fb275035378:
Line 867: Line 867:
     Notes: *FreeCam_Notes
     Notes: *FreeCam_Notes
     Patch:
     Patch:
       - [ load, *BCAS20071_FreeCam ]  
       - [ load, *BCAS20071_FreeCam ]


PPU-f965a746d844cd0c572a7e8731b5b3b7a81f7bdd:
PPU-f965a746d844cd0c572a7e8731b5b3b7a81f7bdd:
Line 938: Line 938:
     Notes: *FreeCam_Notes
     Notes: *FreeCam_Notes
     Patch:
     Patch:
       - [ load, *BLUS30443_FreeCam ]  
       - [ load, *BLUS30443_FreeCam ]
}}
}}

Revision as of 10:16, 24 January 2023

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), NPEB01202, NPUB30910, BCAS20071 (IRD)
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.

Known Issues

Missing Geometry - Fixed by PR 12450

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 this mod. Be sure to read the readme file included with the mod carefully when applying this mod.

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 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 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 Yes Yes Yes Yes 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 60FPS with no frameskip
  # by Gibbed
    - [ be16, 0x25ed8, 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.05000000 ] # maximum timestep size (50ms or 20FPS)

  BLES00932_FpsUnlock: &BLES00932_FpsUnlock
  # Set 60FPS with no frameskip
  # by Gibbed
    - [ be16, 0x26ac0, 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.05000000 ] # maximum timestep size (50ms or 20FPS)

  BCAS20071_FpsUnlock: &BCAS20071_FpsUnlock
  # Set 60FPS with no frameskip
  # by Gibbed, KokutouKiritsugu port to BCAS20071
    - [ be16, 0x24148, 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.05000000 ] # maximum timestep size (50ms or 20FPS)

  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_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"

  BLUS30443_FreeCam: &BLUS30443_FreeCam
  # Thanks to Meow for original DS1 code
    - [ be32, 0x14422C, 0x480DB26D ] # branch to hork's cave
    - [ be32, 0x21F498, 0xF821FF61 ]
    - [ be32, 0x21F49C, 0x7C0802A6 ]
    - [ be32, 0x21F4A0, 0xF80100B0 ]
    - [ be32, 0x21F4A4, 0x38600000 ]
    - [ be32, 0x21F4A8, 0x4BFA5639 ] # PadMan::GetPadDeviceForIdx
    - [ be32, 0x21F4AC, 0x60000000 ]
    - [ be32, 0x21F4B0, 0x813E203C ]
    - [ be32, 0x21F4B4, 0x38000000 ]
    - [ be32, 0x21F4B8, 0x91210090 ]
    - [ be32, 0x21F4BC, 0x90610094 ]
    - [ be32, 0x21F4C0, 0x90010098 ]
    - [ be32, 0x21F4C4, 0x81630004 ]
    - [ be32, 0x21F4C8, 0xA06B0120 ]
    - [ be32, 0x21F4CC, 0x7863BFE2 ]
    - [ be32, 0x21F4D0, 0x60000000 ]
    - [ be32, 0x21F4D4, 0x5463063E ]
    - [ be32, 0x21F4D8, 0x2F830000 ]
    - [ be32, 0x21F4DC, 0x419E0034 ]
    - [ be32, 0x21F4E0, 0xA00B011E ]
    - [ be32, 0x21F4E4, 0x2F80000A ]
    - [ be32, 0x21F4E8, 0x409E0028 ]
    - [ be32, 0x21F4EC, 0x813F0034 ]
    - [ be32, 0x21F4F0, 0x800901FC ]
    - [ be32, 0x21F4F4, 0x38600001 ]
    - [ be32, 0x21F4F8, 0x7C001A14 ]
    - [ be32, 0x21F4FC, 0x900901FC ]
    - [ be32, 0x21F500, 0x2F800004 ]
    - [ be32, 0x21F504, 0x409E000C ]
    - [ be32, 0x21F508, 0x38000000 ]
    - [ be32, 0x21F50C, 0x900901FC ]
    - [ be32, 0x21F510, 0x813F0034 ]
    - [ be32, 0x21F514, 0x800901FC ]
    - [ be32, 0x21F518, 0x2F800001 ]
    - [ be32, 0x21F51C, 0x419E005C ]
    - [ be32, 0x21F520, 0x2F800002 ]
    - [ be32, 0x21F524, 0x419E007C ]
    - [ be32, 0x21F528, 0x2F800003 ]
    - [ be32, 0x21F52C, 0x419E0080 ]
    - [ be32, 0x21F530, 0x80690204 ]
    - [ be32, 0x21F534, 0x80890008 ]
    - [ be32, 0x21F538, 0x38630010 ]
    - [ be32, 0x21F53C, 0x38840010 ]
    - [ be32, 0x21F540, 0x38A00010 ]
    - [ be32, 0x21F544, 0x38C00020 ]
    - [ be32, 0x21F548, 0x38E00030 ]
    - [ be32, 0x21F54C, 0x7C2020CE ]
    - [ be32, 0x21F550, 0x7C2019CE ]
    - [ be32, 0x21F554, 0x7C2428CE ]
    - [ be32, 0x21F558, 0x7C2329CE ]
    - [ be32, 0x21F55C, 0x7C2430CE ]
    - [ be32, 0x21F560, 0x7C2331CE ]
    - [ be32, 0x21F564, 0x7C2438CE ]
    - [ be32, 0x21F568, 0x7C2339CE ]
    - [ be32, 0x21F56C, 0x9B7F0058 ]
    - [ be32, 0x21F570, 0x9B7F0059 ]
    - [ be32, 0x21F574, 0x480000A0 ]
    - [ be32, 0x21F578, 0xA06B0122 ]
    - [ be32, 0x21F57C, 0x7863E7E2 ]
    - [ be32, 0x21F580, 0x5463063E ]
    - [ be32, 0x21F584, 0x2F830000 ]
    - [ be32, 0x21F588, 0x419E0008 ]
    - [ be32, 0x21F58C, 0x48000014 ]
    - [ be32, 0x21F590, 0x38000001 ]
    - [ be32, 0x21F594, 0x981F0058 ]
    - [ be32, 0x21F598, 0x981F0059 ]
    - [ be32, 0x21F59C, 0x48000058 ]
    - [ be32, 0x21F5A0, 0x9B7F0058 ]
    - [ be32, 0x21F5A4, 0x9B7F0059 ]
    - [ be32, 0x21F5A8, 0x4800004C ]
    - [ be32, 0x21F5AC, 0x8069000C ]
    - [ be32, 0x21F5B0, 0x80890204 ]
    - [ be32, 0x21F5B4, 0x38630010 ]
    - [ be32, 0x21F5B8, 0x38840010 ]
    - [ be32, 0x21F5BC, 0x38A00010 ]
    - [ be32, 0x21F5C0, 0x38C00020 ]
    - [ be32, 0x21F5C4, 0x38E00030 ]
    - [ be32, 0x21F5C8, 0x7C2020CE ]
    - [ be32, 0x21F5CC, 0x7C2019CE ]
    - [ be32, 0x21F5D0, 0x7C2428CE ]
    - [ be32, 0x21F5D4, 0x7C2329CE ]
    - [ be32, 0x21F5D8, 0x7C2430CE ]
    - [ be32, 0x21F5DC, 0x7C2331CE ]
    - [ be32, 0x21F5E0, 0x7C2438CE ]
    - [ be32, 0x21F5E4, 0x7C2339CE ]
    - [ be32, 0x21F5E8, 0x9B7F0058 ]
    - [ be32, 0x21F5EC, 0x9B7F0059 ]
    - [ be32, 0x21F5F0, 0x48000024 ]
    - [ be32, 0x21F5F4, 0x38000001 ]
    - [ be32, 0x21F5F8, 0x901F0044 ]
    - [ be32, 0x21F5FC, 0x38C00000 ]
    - [ be32, 0x21F600, 0x38A00000 ]
    - [ be32, 0x21F604, 0x80810094 ]
    - [ be32, 0x21F608, 0x80690204 ]
    - [ be32, 0x21F60C, 0x4BF0BCED ] # DbgCamControls
    - [ be32, 0x21F610, 0x60000000 ]
    - [ be32, 0x21F614, 0x80610094 ]
    - [ be32, 0x21F618, 0xE80100B0 ]
    - [ be32, 0x21F61C, 0x7C0803A6 ]
    - [ be32, 0x21F620, 0x382100A0 ]
    - [ be32, 0x21F624, 0x4E800020 ]

  BLES00932_FreeCam: &BLES00932_FreeCam
    - [ be32, 0x1451F4, 0x480DB12D ] # branch to hork's cave
    - [ be32, 0x220320, 0xF821FF61 ]
    - [ be32, 0x220324, 0x7C0802A6 ]
    - [ be32, 0x220328, 0xF80100B0 ]
    - [ be32, 0x22032C, 0x38600000 ]
    - [ be32, 0x220330, 0x4BFA5639 ] # PadMan::GetPadDeviceForIdx
    - [ be32, 0x220334, 0x60000000 ]
    - [ be32, 0x220338, 0x813E203C ]
    - [ be32, 0x22033C, 0x38000000 ]
    - [ be32, 0x220340, 0x91210090 ]
    - [ be32, 0x220344, 0x90610094 ]
    - [ be32, 0x220348, 0x90010098 ]
    - [ be32, 0x22034C, 0x81630004 ]
    - [ be32, 0x220350, 0xA06B0120 ]
    - [ be32, 0x220354, 0x7863BFE2 ]
    - [ be32, 0x220358, 0x60000000 ]
    - [ be32, 0x22035C, 0x5463063E ]
    - [ be32, 0x220360, 0x2F830000 ]
    - [ be32, 0x220364, 0x419E0034 ]
    - [ be32, 0x220368, 0xA00B011E ]
    - [ be32, 0x22036C, 0x2F80000A ]
    - [ be32, 0x220370, 0x409E0028 ]
    - [ be32, 0x220374, 0x813F0034 ]
    - [ be32, 0x220378, 0x800901FC ]
    - [ be32, 0x22037C, 0x38600001 ]
    - [ be32, 0x220380, 0x7C001A14 ]
    - [ be32, 0x220384, 0x900901FC ]
    - [ be32, 0x220388, 0x2F800004 ]
    - [ be32, 0x22038C, 0x409E000C ]
    - [ be32, 0x220390, 0x38000000 ]
    - [ be32, 0x220394, 0x900901FC ]
    - [ be32, 0x220398, 0x813F0034 ]
    - [ be32, 0x22039C, 0x800901FC ]
    - [ be32, 0x2203A0, 0x2F800001 ]
    - [ be32, 0x2203A4, 0x419E005C ]
    - [ be32, 0x2203A8, 0x2F800002 ]
    - [ be32, 0x2203AC, 0x419E007C ]
    - [ be32, 0x2203B0, 0x2F800003 ]
    - [ be32, 0x2203B4, 0x419E0080 ]
    - [ be32, 0x2203B8, 0x80690204 ]
    - [ be32, 0x2203BC, 0x80890008 ]
    - [ be32, 0x2203C0, 0x38630010 ]
    - [ be32, 0x2203C4, 0x38840010 ]
    - [ be32, 0x2203C8, 0x38A00010 ]
    - [ be32, 0x2203CC, 0x38C00020 ]
    - [ be32, 0x2203D0, 0x38E00030 ]
    - [ be32, 0x2203D4, 0x7C2020CE ]
    - [ be32, 0x2203D8, 0x7C2019CE ]
    - [ be32, 0x2203DC, 0x7C2428CE ]
    - [ be32, 0x2203E0, 0x7C2329CE ]
    - [ be32, 0x2203E4, 0x7C2430CE ]
    - [ be32, 0x2203E8, 0x7C2331CE ]
    - [ be32, 0x2203EC, 0x7C2438CE ]
    - [ be32, 0x2203F0, 0x7C2339CE ]
    - [ be32, 0x2203F4, 0x9B7F0058 ]
    - [ be32, 0x2203F8, 0x9B7F0059 ]
    - [ be32, 0x2203FC, 0x480000A0 ]
    - [ be32, 0x220400, 0xA06B0122 ]
    - [ be32, 0x220404, 0x7863E7E2 ]
    - [ be32, 0x220408, 0x5463063E ]
    - [ be32, 0x22040C, 0x2F830000 ]
    - [ be32, 0x220410, 0x419E0008 ]
    - [ be32, 0x220414, 0x48000014 ]
    - [ be32, 0x220418, 0x38000001 ]
    - [ be32, 0x22041C, 0x981F0058 ]
    - [ be32, 0x220420, 0x981F0059 ]
    - [ be32, 0x220424, 0x48000058 ]
    - [ be32, 0x220428, 0x9B7F0058 ]
    - [ be32, 0x22042C, 0x9B7F0059 ]
    - [ be32, 0x220430, 0x4800004C ]
    - [ be32, 0x220434, 0x8069000C ]
    - [ be32, 0x220438, 0x80890204 ]
    - [ be32, 0x22043C, 0x38630010 ]
    - [ be32, 0x220440, 0x38840010 ]
    - [ be32, 0x220444, 0x38A00010 ]
    - [ be32, 0x220448, 0x38C00020 ]
    - [ be32, 0x22044C, 0x38E00030 ]
    - [ be32, 0x220450, 0x7C2020CE ]
    - [ be32, 0x220454, 0x7C2019CE ]
    - [ be32, 0x220458, 0x7C2428CE ]
    - [ be32, 0x22045C, 0x7C2329CE ]
    - [ be32, 0x220460, 0x7C2430CE ]
    - [ be32, 0x220464, 0x7C2331CE ]
    - [ be32, 0x220468, 0x7C2438CE ]
    - [ be32, 0x22046C, 0x7C2339CE ]
    - [ be32, 0x220470, 0x9B7F0058 ]
    - [ be32, 0x220474, 0x9B7F0059 ]
    - [ be32, 0x220478, 0x48000024 ]
    - [ be32, 0x22047C, 0x38000001 ]
    - [ be32, 0x220480, 0x901F0044 ]
    - [ be32, 0x220484, 0x38C00000 ]
    - [ be32, 0x220488, 0x38A00000 ]
    - [ be32, 0x22048C, 0x80810094 ]
    - [ be32, 0x220490, 0x80690204 ]
    - [ be32, 0x220494, 0x4BF0BE2D ] # DbgCamControls
    - [ be32, 0x220498, 0x60000000 ]
    - [ be32, 0x22049C, 0x80610094 ]
    - [ be32, 0x2204A0, 0xE80100B0 ]
    - [ be32, 0x2204A4, 0x7C0803A6 ]
    - [ be32, 0x2204A8, 0x382100A0 ]
    - [ be32, 0x2204AC, 0x4E800020 ]

  BCAS20071_FreeCam: &BCAS20071_FreeCam
    - [ be32, 0x142304, 0x480DB26D ] # branch to hork's cave
    - [ be32, 0x21D570, 0xF821FF61 ]
    - [ be32, 0x21D574, 0x7C0802A6 ]
    - [ be32, 0x21D578, 0xF80100B0 ]
    - [ be32, 0x21D57C, 0x38600000 ]
    - [ be32, 0x21D580, 0x4BFA5639 ] # PadMan::GetPadDeviceForIdx
    - [ be32, 0x21D584, 0x60000000 ]
    - [ be32, 0x21D588, 0x813E203C ]
    - [ be32, 0x21D58C, 0x38000000 ]
    - [ be32, 0x21D590, 0x91210090 ]
    - [ be32, 0x21D594, 0x90610094 ]
    - [ be32, 0x21D598, 0x90010098 ]
    - [ be32, 0x21D59C, 0x81630004 ]
    - [ be32, 0x21D5A0, 0xA06B0120 ]
    - [ be32, 0x21D5A4, 0x7863BFE2 ]
    - [ be32, 0x21D5A8, 0x60000000 ]
    - [ be32, 0x21D5AC, 0x5463063E ]
    - [ be32, 0x21D5B0, 0x2F830000 ]
    - [ be32, 0x21D5B4, 0x419E0034 ]
    - [ be32, 0x21D5B8, 0xA00B011E ]
    - [ be32, 0x21D5BC, 0x2F80000A ]
    - [ be32, 0x21D5C0, 0x409E0028 ]
    - [ be32, 0x21D5C4, 0x813F0034 ]
    - [ be32, 0x21D5C8, 0x800901FC ]
    - [ be32, 0x21D5CC, 0x38600001 ]
    - [ be32, 0x21D5D0, 0x7C001A14 ]
    - [ be32, 0x21D5D4, 0x900901FC ]
    - [ be32, 0x21D5D8, 0x2F800004 ]
    - [ be32, 0x21D5DC, 0x409E000C ]
    - [ be32, 0x21D5E0, 0x38000000 ]
    - [ be32, 0x21D5E4, 0x900901FC ]
    - [ be32, 0x21D5E8, 0x813F0034 ]
    - [ be32, 0x21D5EC, 0x800901FC ]
    - [ be32, 0x21D5F0, 0x2F800001 ]
    - [ be32, 0x21D5F4, 0x419E005C ]
    - [ be32, 0x21D5F8, 0x2F800002 ]
    - [ be32, 0x21D5FC, 0x419E007C ]
    - [ be32, 0x21D600, 0x2F800003 ]
    - [ be32, 0x21D604, 0x419E0080 ]
    - [ be32, 0x21D608, 0x80690204 ]
    - [ be32, 0x21D60C, 0x80890008 ]
    - [ be32, 0x21D610, 0x38630010 ]
    - [ be32, 0x21D614, 0x38840010 ]
    - [ be32, 0x21D618, 0x38A00010 ]
    - [ be32, 0x21D61C, 0x38C00020 ]
    - [ be32, 0x21D620, 0x38E00030 ]
    - [ be32, 0x21D624, 0x7C2020CE ]
    - [ be32, 0x21D628, 0x7C2019CE ]
    - [ be32, 0x21D62C, 0x7C2428CE ]
    - [ be32, 0x21D630, 0x7C2329CE ]
    - [ be32, 0x21D634, 0x7C2430CE ]
    - [ be32, 0x21D638, 0x7C2331CE ]
    - [ be32, 0x21D63C, 0x7C2438CE ]
    - [ be32, 0x21D640, 0x7C2339CE ]
    - [ be32, 0x21D644, 0x9B7F0058 ]
    - [ be32, 0x21D648, 0x9B7F0059 ]
    - [ be32, 0x21D64C, 0x480000A0 ]
    - [ be32, 0x21D650, 0xA06B0122 ]
    - [ be32, 0x21D654, 0x7863E7E2 ]
    - [ be32, 0x21D658, 0x5463063E ]
    - [ be32, 0x21D65C, 0x2F830000 ]
    - [ be32, 0x21D660, 0x419E0008 ]
    - [ be32, 0x21D664, 0x48000014 ]
    - [ be32, 0x21D668, 0x38000001 ]
    - [ be32, 0x21D66C, 0x981F0058 ]
    - [ be32, 0x21D670, 0x981F0059 ]
    - [ be32, 0x21D674, 0x48000058 ]
    - [ be32, 0x21D678, 0x9B7F0058 ]
    - [ be32, 0x21D67C, 0x9B7F0059 ]
    - [ be32, 0x21D680, 0x4800004C ]
    - [ be32, 0x21D684, 0x8069000C ]
    - [ be32, 0x21D688, 0x80890204 ]
    - [ be32, 0x21D68C, 0x38630010 ]
    - [ be32, 0x21D690, 0x38840010 ]
    - [ be32, 0x21D694, 0x38A00010 ]
    - [ be32, 0x21D698, 0x38C00020 ]
    - [ be32, 0x21D69C, 0x38E00030 ]
    - [ be32, 0x21D6A0, 0x7C2020CE ]
    - [ be32, 0x21D6A4, 0x7C2019CE ]
    - [ be32, 0x21D6A8, 0x7C2428CE ]
    - [ be32, 0x21D6AC, 0x7C2329CE ]
    - [ be32, 0x21D6B0, 0x7C2430CE ]
    - [ be32, 0x21D6B4, 0x7C2331CE ]
    - [ be32, 0x21D6B8, 0x7C2438CE ]
    - [ be32, 0x21D6BC, 0x7C2339CE ]
    - [ be32, 0x21D6C0, 0x9B7F0058 ]
    - [ be32, 0x21D6C4, 0x9B7F0059 ]
    - [ be32, 0x21D6C8, 0x48000024 ]
    - [ be32, 0x21D6CC, 0x38000001 ]
    - [ be32, 0x21D6D0, 0x901F0044 ]
    - [ be32, 0x21D6D4, 0x38C00000 ]
    - [ be32, 0x21D6D8, 0x38A00000 ]
    - [ be32, 0x21D6DC, 0x80810094 ]
    - [ be32, 0x21D6E0, 0x80690204 ]
    - [ be32, 0x21D6E4, 0x4BF0BCED ] # DbgCamControls
    - [ be32, 0x21D6E8, 0x60000000 ]
    - [ be32, 0x21D6EC, 0x80610094 ]
    - [ be32, 0x21D6F0, 0xE80100B0 ]
    - [ be32, 0x21D6F4, 0x7C0803A6 ]
    - [ be32, 0x21D6F8, 0x382100A0 ]
    - [ be32, 0x21D6FC, 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."

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

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

PPU-9403fe1678487def5d7f3c380b4c4fb275035378:
  Unlock FPS:
    Games:
      "Demon's Souls":
        BCAS20071: [ 01.04 ]
    Author: Whatcookie, Gibbed, KokutouKiritsugu port to BCAS20071
    Notes: *DeS_FPS_Notes
    Patch Version: 2.1
    Patch:
      - [ load, *BCAS20071_FpsUnlock ]
  Disable Dynamic Exposure:
    Games:
      "Demon's Souls":
        BCAS20071: [ 01.04 ]
    Author: Whatcookie, KokutouKiritsugu port to BCAS20071
    Notes: *DeS_DDE_Notes
    Patch Version: 1.0.1
    Patch:
      - [ be16, 0x0002414c, 0x981f ]
  Skip Intro Videos:
    Games:
      "Demon's Souls":
        BCAS20071: [ 01.04 ]
    Author: GalCiv, KokutouKiritsugu port to BCAS20071
    Notes: 
    Patch Version: 1.0
    Patch:
      - [ be32, 0x008efecc, 0x38000003 ] # Intro logos skip
      - [ be32, 0x008efed0, 0x901c0100 ]
  21:9 Aspect Ratio:
    Games:
      "Demon's Souls":
        BCAS20071: [ 01.04 ]
    Author: Whatcookie, KokutouKiritsugu port to BCAS20071
    Notes: *DeS_AR_Notes
    Patch Version: 1.0
    Group: AR
    Patch:
      - [ be32, 0x018Cee14, 0x4017b9aa ] # 21:9 aspect ratio
      - [ be32, 0x0190430c, 0x4017b9aa ]
  32:9 Aspect Ratio:
    Games:
      "Demon's Souls":
        BCAS20071: [ 01.04 ]
    Author: Whatcookie, KokutouKiritsugu port to BCAS20071
    Notes: *DeS_AR_Notes
    Patch Version: 1.0
    Group: AR
    Patch:
      - [ bef32, 0x018Cee14, 3.5555556 ] # 32:9 aspect ratio
      - [ bef32, 0x0190430c, 3.5555556 ]
  Disable Motion Blur:
    Games:
      "Demon's Souls":
        BCAS20071: [ 01.04 ]
    Author: illusion, KokutouKiritsugu port to BCAS20071
    Notes: 
    Patch Version: 1.0
    Patch:
      - [ byte, 0x00215f54, 0x41 ]
  Enable FreeCam:
    Games:
      "Demon's Souls":
        BCAS20071: [ 01.04 ]
    Author: horkrux
    Patch Version: 1.0
    Group:
    Notes: *FreeCam_Notes
    Patch:
      - [ load, *BCAS20071_FreeCam ]

PPU-f965a746d844cd0c572a7e8731b5b3b7a81f7bdd:
  Unlock FPS:
    Games:
      "Demon's Souls Trade Demo":
        BLUD80018: [ 01.01 ]
    Author: Whatcookie, Gibbed
    Notes: *DeS_FPS_Notes
    Patch Version: 2.1
    Patch:
      - [ load, *BLUS30443_FpsUnlock ]
  Disable Dynamic Exposure:
    Games:
      "Demon's Souls Trade Demo":
        BLUD80018: [ 01.01 ]
    Author: Whatcookie
    Notes: *DeS_DDE_Notes
    Patch Version: 1.0.1
    Patch:
      - [ be16, 0x00025edc, 0x981f ]
  Skip Intro Videos:
    Games:
      "Demon's Souls Trade Demo":
        BLUD80018: [ 01.01 ]
    Author: GalCiv
    Notes: 
    Patch Version: 1.0
    Patch:
      - [ be32, 0x008eef78, 0x38000003 ] # Intro logos skip
      - [ be32, 0x008eef7c, 0x901c0100 ]
  21:9 Aspect Ratio:
    Games:
      "Demon's Souls Trade Demo":
        BLUD80018: [ 01.01 ]
    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 Trade Demo":
        BLUD80018: [ 01.01 ]
    Author: Whatcookie
    Notes: *DeS_AR_Notes
    Patch Version: 1.0
    Group: AR
    Patch:
      - [ bef32, 0x018cefbc, 3.5555556 ] # 32:9 aspect ratio
      - [ bef32, 0x0190433c, 3.5555556 ]
  Disable Motion Blur:
    Games:
      "Demon's Souls Trade Demo":
        BLUD80018: [ 01.01 ]
    Author: illusion
    Notes: 
    Patch Version: 1.0
    Patch:
      - [ byte, 0x00217e7c, 0x41 ]
  Enable FreeCam:
    Games:
      "Demon's Souls Trade Demo":
        BLUD80018: [ 01.01 ]
    Author: horkrux
    Patch Version: 1.0
    Group:
    Notes: *FreeCam_Notes
    Patch:
      - [ load, *BLUS30443_FreeCam ]