Commit graph

1787 commits

Author SHA1 Message Date
Connor McLaughlin 2bb43ffac7
Merge pull request #2547 from PugsyMAME/master
New F6 Cheat Type (IF,ELSE IF, ELSE structure)
2021-08-23 02:18:52 +10:00
Connor McLaughlin f85387345e PGXP: Fix memory past 2MB 2021-08-23 02:18:06 +10:00
PugsyMAME 0ebb791323
New F6 Cheat Type (IF,ELSE IF, ELSE structure)
Cheat Type F6 lets you perform cheats in IF / ELSE IF / ELSE constructs along 
with multiple conditions for each one.

It supports conditions  D0, D1, D2, D3, E0, E1, E2, E3, A0, A1, A2, A3, D7 and 
two new types that will only be available in the F6 conditions :- 
E4 & E5 which are bit comparisons on bytes (set and clear). 

Any of those types which are "block conditionals" like D7 will be treated as a 
single condition with the other conditions so you wont need to worry about 
extra 00000000 FFFFs just for them (infact you can drop them completely apart
from the last 00000000 FFFF, which you can also drop if you have no trailing
cheat lines after the end of the construct.


#IF / ELSE IF / ELSE Statement Example with Notes
80001000 00000001   Setup Test Condition 1
80001004 00000002   Setup Test Condition 2
80001008 00000003   Setup Test Condition 3
8000100C 00000004   Setup Test Condition 4

                    1F = IF, last two digits determine the number of conditions to check
                    F600000x  x = 0 All conditions must be true, x = 1 At least One condition must be true                  
F6000000 1F000004   Check the next 4 lines as the conditions for the IF loop to be taken

D0001000 00000001  )
D0001004 00000002  )Conditions
D0001008 00000003  )
D000100C 00000004  )

80001010 00005555    Poke(s)
00000000 0000FFFF  End of IF Statement

F6000000 E15E1F02  E15E1F = ELSE IF (same format as IF) - Can have multiple ELSE IF Blocks or none at all
D0001008 00000003  )
D000100C 00000005  )Conditions
80001010 00008888     Poke(s)
00000000 0000FFFF  End of ELSE IF Statement 

F6000000 E15E0000  E15E = ELSE (no need for conditions - this will poke if the others dont)
80001010 0000AAAA    Poke(s)
00000000 0000FFFF End of ELSE Statement



#Multiple Test Using Joypad Left Thumb Directions, Look at Address 1100 in Debugger
F6000000 1F000001  
D7020002 00100000
90001100 50205055
90001104 53534552 
90001108 20204445
9000110C 20202020
F6000000 E15E1F01
D7020002 00400000
90001100 4E574F44
90001104 45525020
90001108 44455353
9000110C 20202020
F6000000 E15E1F01
D7020002 00800000
90001100 5446454C
90001104 45525020
90001108 44455353
9000110C 20202020
F6000000 E15E1F01
D7020002 00200000
90001100 48474952
90001104 52502054
90001108 45535345
9000110C 20202044
F6000000 E15E0000
90001100 20202020
90001104 20202020
90001108 20202020
9000110C 20202020
00000000 0000FFFF
2021-08-21 15:08:34 +01:00
Silent ebe862561d
Fix A0, A1, A2, A3 cheats 2021-08-19 22:21:07 +02:00
Connor McLaughlin 18241978ea CDROM: Cancel command second response when queuing new command
Fixes Wipeout corrupting parts of the TOC.
2021-08-18 00:25:19 +10:00
Connor McLaughlin 3236917479 HostInterface: Enable 8MB RAM should be disabled by all enhancements 2021-08-15 14:23:20 +10:00
Connor McLaughlin 521d20bcd2 CommonHostInterface: Add display enhancement settings option 2021-08-15 14:23:20 +10:00
Connor McLaughlin 1ee3882afd HostInterface: Default show status indicators to true 2021-08-15 14:23:20 +10:00
Connor McLaughlin 0491c893d9 HostInterface: Fix compile error on Android 32-bit 2021-08-15 14:23:20 +10:00
Connor McLaughlin 3f3607548f CommonHostInterface: Make status indicators toggleable 2021-08-12 21:31:40 +10:00
Connor McLaughlin c4f0dafb1f System: Don't time memory load/save states by default
Reduces log spam.
2021-08-12 21:31:40 +10:00
Connor McLaughlin 4fac032ff6 SPU: Add a macro to enable per-voice dumping 2021-08-07 13:21:53 +10:00
Connor McLaughlin 50a09384e1 CommonHostInterface: Add onscreen indicator for rewind 2021-08-07 12:07:04 +10:00
Connor McLaughlin 8bea6e1530 GPU/Vulkan: Fix warnings introduced by #2438 2021-08-07 12:01:02 +10:00
Connor McLaughlin 81a90d66f5 HostInterface: Disable rewind on 32-bit ARM/Android 2021-08-07 11:58:05 +10:00
Connor McLaughlin 66cfd98685
Merge pull request #2460 from PugsyMAME/master
Fixed cheat type 52 only working with 1st subtype
2021-08-07 11:35:58 +10:00
Wunkolo 98089180c0 GPU/Vulkan: Add debug utility functions
Adds a way to set the name of vulkan
objects, and automatically determining their `VkObjectType` enum value
at compile-time. As well as a utility-object for creating debug-scopes
for `VkQueue` and `VkCommandBuffer` objects. `DebugScope` objects will
automatically emit `Begin` and `End` commands within the ctor and dtor
and allow for C++ scopes to name and color sections of a vulkan command.
These DebugScopes are also able to be nested within each other and will
automatically pick a color depending on the current recursive depth.

These functions are all null-stubbed in non-debug compilations.
2021-08-01 10:56:56 -07:00
PugsyMAME 106dc2951d
Fixed cheat type 52 only working with 1st subtype
Fixed typo in ExtCheatRegistersCompare, which made it so that only 52 type 5200 worked,
2021-07-31 11:14:15 +01:00
Connor McLaughlin a542fa85d6 CPU/CodeCache: Fix crash when switching from interpreter to recompiler 2021-07-31 13:29:02 +10:00
Connor McLaughlin b41d56d305 TimingEvent: Fix event list getting unsorted on Delay 2021-07-31 13:25:03 +10:00
Connor McLaughlin 5bf24265aa CPU/CodeCache: Fix compilation without recompiler 2021-07-27 13:11:46 +10:00
Connor McLaughlin c9f8828448 CPU/CodeCache: Drop block linking warning to dev level 2021-07-27 13:11:42 +10:00
Connor McLaughlin 5ff9783626 CPU/Recompiler/ARM: Optimize icache check 2021-07-24 14:07:37 +10:00
Connor McLaughlin e2db78b0ef CPU/Recompiler/AArch64: Fix assertion tripping in debug builds 2021-07-24 13:30:35 +10:00
Connor McLaughlin d9d41de81b CPU/Recompiler: Skip updating current_instruction_pc 2021-07-24 13:30:35 +10:00
Connor McLaughlin 21938e14c6 CPU/Recompiler: Implement block linking 2021-07-24 13:07:11 +10:00
Connor McLaughlin 29bc0c950a System: Reset before loading save state on boot 2021-07-24 13:07:09 +10:00
Connor McLaughlin 9628f0d9d0 CPU/Recompiler: Reduce register usage of LWL/LWR/SWL/SWR 2021-07-24 13:06:53 +10:00
Connor McLaughlin 53299e3c7b CPU/Interpreter: Load delay check should be a debug assertion 2021-07-24 13:04:54 +10:00
Connor McLaughlin 6081e2415f CPU/Recompiler: Simplify PC addressing 2021-07-24 13:03:45 +10:00
Connor McLaughlin 033d85cd90 CPU/Recompiler: Simplify fast map addressing 2021-07-24 13:03:43 +10:00
Connor McLaughlin d230e7d22f HostInterface: Fix SetUserDirectoryToProgramDirectory() 2021-07-23 18:07:18 +10:00
Connor McLaughlin 89a11519fb D3D12: Use clears instead of draws for simple VRAM fills 2021-07-22 13:58:03 +10:00
Connor McLaughlin a0fa3a3994 HostInterface: Don't save screenshot when switching renderers 2021-07-22 13:58:03 +10:00
Connor McLaughlin 70209db402 GPU/HW: Implement oversized VRAM fills in hardware
Fixes downscaling in Bugs and Taz PAL.
2021-07-21 19:24:10 +10:00
Connor McLaughlin 7ea78ad2df CPU/CodeCache: Fix incorrect macro for code buffer size 2021-07-20 00:00:43 +10:00
Connor McLaughlin 3cf12e8f0d Controller: Round floating point axis values instead of flooring 2021-07-17 20:38:23 +10:00
Connor McLaughlin 0000750527 System: Fix rewind rate with vsync off 2021-07-17 20:14:40 +10:00
Connor McLaughlin e9374646e9 GPU/SW: Fix performance regression on 32-bit ARM 2021-07-17 14:03:04 +10:00
Connor McLaughlin 30db081a64 CPU: Simulate stalls from GTE instructions 2021-07-16 12:27:31 +10:00
Anderson_Cardoso 41fc84ae51
Update information about SBI file
A simple update message to make it more clear for end users in regard SBI files.
2021-07-14 10:55:07 -03:00
Connor McLaughlin c2c204c845 CDROM: Fix async readahead causing lockups in some games 2021-07-14 01:25:49 +10:00
Connor McLaughlin 9723e617f9 GPU/D3D12: Implement VRAM write replacements 2021-07-13 14:17:04 +10:00
Connor McLaughlin 18df8d48e7 GPU/OpenGL: Use linear sampling for VRAM write replacement blit 2021-07-13 14:17:04 +10:00
Connor McLaughlin d432accf81 GPU/D3D11: Use linear sampling for VRAM write replacement blit 2021-07-13 14:17:04 +10:00
Connor McLaughlin bb2e459f9f Warning fixes 2021-07-12 22:44:02 +10:00
Connor McLaughlin c962e9899d CDROM: Reject invalid Setloc commands
Fixes delays in Simple 1500 Series Vol. 31 - The Sound Novel.
2021-07-12 21:14:06 +10:00
Connor McLaughlin a32ef4a963 CDROMAsyncReader: Support reading ahead more sectors 2021-07-12 21:14:06 +10:00
Connor McLaughlin 552b0098ef GPU/HW: Fix incorrect initial transparency mode
Fixes broken menus in Road Rash after loading state.
2021-07-12 21:14:06 +10:00
Connor McLaughlin 1405ba8a6b GPU/SW: Specialize rasterizing functions further 2021-07-11 21:23:12 +10:00