Commit Graph

1012 Commits

Author SHA1 Message Date
Nekokabu 4dac8354cc Fix error message displayed always
fix error message displayed always when play 64dd and enable debugger.
2015-08-02 21:31:15 +09:00
Nekokabu 936db1c3f4 Fix PI_DMA_READ
fix PI_DMA_READ like a PI_DMA_WRITE.
2015-08-01 18:16:11 +09:00
Nekokabu 0772341b6a Fix DMA Sram access when not word aligned 2015-08-01 17:48:38 +09:00
zilmar 91b643bfe1 Merge pull request #552 from JMarlin/master
#549 re-fixing the fix
2015-07-31 08:39:01 +10:00
jmarlin d57d951d39 #549 removed a vestigial bit of expression from a direction I ended up not going in 2015-07-30 18:37:15 -04:00
jmarlin 837f799058 #549 fixed incorrect case conversion math, simplified a couple of expressions 2015-07-30 18:35:33 -04:00
zilmar a3edf675f8 Merge pull request #550 from JMarlin/master
#549 changed switch/case table to cascaded range checks
2015-07-30 15:09:06 +10:00
jmarlin 6f98061e57 #549 stupid typos 2015-07-29 18:23:14 -04:00
jmarlin 8e75ec2ce7 #549 changed switch/case table to cascaded range checks 2015-07-28 17:41:53 -04:00
LegendOfDragoon 2f812afca7 Implement edge case in SPECIAL_DSRL32
When m_Opcode.sa == 0, the results for cpu recompiler do not match cpu
interpreter. For example with dsrl32 t9, t8, 0x0, and t8 =
0xC0C0C0C000000000 the result of t9 for cpu recompiler =
0xFFFFFFFFC0C0C0C0, while cpu interpreter = 0xC0C0C0C0C0C0C0C0.

This commit fixes the Killer Instinct health bar issue.
2015-07-28 13:30:21 -07:00
luigiblood cf7f74f1b1 Use actual CIC IDs (8303 for 64DD, 5167 for 64DD conversions) 2015-07-27 15:34:36 +02:00
zilmar 1a481c520a Merge pull request #544 from cxd4/dedotated_wam_4_mah_serv0r
cleaner RdramChanged algorithm (not biased to only 4 vs. 8 MB)
2015-07-27 14:05:16 +10:00
Nekokabu 81b6e2c68d Heiwa Pachinko World 64 (J) freeze fix
Heiwa Pachinko World 64 (J) freeze fix #537
2015-07-25 23:20:36 +09:00
unknown 51975fb00d unbiased the algorithm from just checking if only 4 or 8 MB 2015-07-18 13:12:40 -04:00
unknown 188091e32a flipped the if/else blocks for better branch prediction 2015-07-18 12:51:44 -04:00
unknown 62d316f7ae centralized m_AllocatedRdramSize writeback outside the if/else 2015-07-18 12:50:00 -04:00
unknown 2a45e5f792 Declare a couple constants to help clean the code rewrites. 2015-07-18 12:45:55 -04:00
AmbientMalice c73a5fef2d Copy V8 combiner from GLideN64 to Glide64.
This isn't hugely useful, since Vigilante 8 is a complete mess on Glide64, but this fixes one graphics issue.
2015-07-15 09:32:05 +10:00
LegendOfDragoon 9dda9171d0 Fix LoadState audio issue with Fixed Audio Timing
When Fixed Audio Timing was enabled and AI count per byte = 0, the
frequency was not being properly set, after loading a save state.
2015-07-06 21:05:12 -07:00
zilmar 1052840b0b Merge pull request #520 from Nekokabu/master
Fix Address in error messages
2015-06-24 09:43:03 +10:00
unknown 5ad04ed067 newline fixes -- These were my (or Notepad++'s?) fault somehow. 2015-06-23 18:35:21 -04:00
zilmar 16f4780f9a Merge pull request #521 from cxd4/PR_513_to_vectop
[RSP] installed op-code strings matrix to COP2::C2
2015-06-24 07:22:18 +10:00
zilmar 5121db34db Merge pull request #522 from cxd4/PR_513_to_SPECIAL
[RSP] installed op-codes string matrix to SPECIAL
2015-06-24 07:20:46 +10:00
zilmar 8b27c5fd44 Merge pull request #523 from cxd4/PR_513_to_COP2
[RSP] installed op-code strings matrix to COP2
2015-06-24 07:19:50 +10:00
unknown cfc1123378 [RSP] installed primary op-codes matrix 2015-06-23 15:46:02 -04:00
unknown 61ebf68196 [RSP] installed op-code strings matrix to COP2 2015-06-23 15:07:28 -04:00
unknown 4299e4a621 [RSP] installed op-codes string matrix to SPECIAL 2015-06-23 13:51:25 -04:00
unknown 6d215d4846 [RSP] installed op-code strings matrix to COP2::C2 2015-06-23 13:06:36 -04:00
Nekokabu 433668a7e3 Fix Address in error messages. 2015-06-24 01:05:29 +09:00
Nekokabu 4b2ff8318f Fix Address in error messages. 2015-06-23 23:03:05 +09:00
Nekokabu 9be6b571e0 Fix Address in error messages.
Fix Address in error messages.
2015-06-23 23:02:20 +09:00
zilmar 4b1ff1983f Merge pull request #513 from cxd4/in_ur_codez_disassembling_ur_ops
Document the RSP op-code matrices + static disassembler debugger code.
2015-06-23 14:34:54 +10:00
zilmar 2f4b4681d0 Merge pull request #514 from Nekokabu/master
Support Shiren 64 Save
2015-06-22 15:19:52 +10:00
unknown ee13bf0c82 Merge branch 'master' into lool
Conflicts:
	Source/RSP/Interpreter Ops.c
2015-06-21 21:03:42 -04:00
unknown 84b099b3e9 Merge branch 'master' into loooool
Conflicts:
	Source/RSP/Interpreter CPU.c
2015-06-21 19:44:29 -04:00
unknown 021a49eeb2 condensed (uint32_t)(uint32_t) since everything is in one line 2015-06-21 19:03:00 -04:00
unknown de2bd58c13 VM?DL, VM?DM, VM?DN, VM?DH: keep multiply sources in single line 2015-06-21 18:39:12 -04:00
zilmar 13508d7fe3 Merge pull request #516 from cxd4/loooooool
centered standard MIPS PC-relative branch stuff to its own func
2015-06-22 07:15:13 +10:00
unknown a93fff0cc6 [RSP] SLT[I][U]: ternary for more static interpreter code 2015-06-21 16:12:18 -04:00
unknown 767756cfb4 centered standard MIPS PC-relative branch stuff to its own func 2015-06-21 15:52:30 -04:00
Nekokabu f4ab79a007 Fix Jangou Simulation Mahjong Dou 64 freeze
Fixed a read from over than ROM file.
2015-06-21 23:51:37 +09:00
Nekokabu f55db5aff4 Ssupport Shiren 64 Save
Ssupport Shiren 64 Save
2015-06-20 14:14:59 +09:00
unknown 3d62b70b49 [RSP] installed SWC2 mnemonics matrix to the command stepper 2015-06-20 00:13:59 -04:00
unknown e503041f5d [RSP] installed LWC2 mnemonics matrix to the command stepper 2015-06-20 00:11:44 -04:00
unknown 56369a4214 [RSP] added, but not installed, vector unit mnemonics matrix 2015-06-20 00:07:19 -04:00
unknown 7cd2641d8b [RSP] added COP2 mnemonics matrix (have not installed yet) 2015-06-20 00:05:49 -04:00
unknown 3dca6c7f5f [RSP] installed COP0 mnemonics matrix to the command stepper 2015-06-20 00:03:22 -04:00
unknown 2335b7b0e7 [RSP] installed REGIMM mnemonics matrix to the command stepper 2015-06-19 23:59:36 -04:00
unknown 55b3edd6d1 [RSP] added SPECIAL mnemonics matrix 2015-06-19 23:47:18 -04:00
unknown 11e5ce1bb3 [RSP] Introduce op-codes string matrix for cleaner debugging code. 2015-06-19 23:45:17 -04:00
zilmar d39b58ae9a Merge pull request #508 from cxd4/looool
[RSP] Ternary, SHMERNARY!  Blasphemous.
2015-06-20 06:49:02 +10:00
unknown fcfad37360 [RSP] junk trailing whitespace cleanups 2015-06-19 13:09:24 -04:00
unknown 2d2b8d3c9d [RSP] Ternary, SHMERNARY! Blasphemous. 2015-06-19 12:44:12 -04:00
unknown 44d8f13f58 [RSP] Continue to use standard int types for multiply operands. 2015-06-19 12:14:03 -04:00
unknown 38c6993be7 [RSP] removed extra type-casting: (uint16_t)-32768 2015-06-19 11:46:59 -04:00
zilmar debcb502a0 Merge pull request #506 from cxd4/kkkkkkkkkkkk
Convince JunielKatarn to stop making crappy reports.
2015-06-19 16:01:02 +10:00
unknown 08771484d5 No need to go through C language barriers since inline asm is gone. 2015-06-18 23:23:12 -04:00
unknown 9631ed66ed [PJGlide64] imul16: no need for inline asm here 2015-06-18 21:45:57 -04:00
zilmar b64557af4e Merge pull request #501 from cxd4/ffffffffffffffffffff
[PJGlide64] imul14: no need for inline asm here
2015-06-19 10:49:19 +10:00
unknown 16e86a2193 [PJGlide64] imul14: no need for inline asm here 2015-06-18 20:23:06 -04:00
unknown fee77c1aae DRAM address range bounds checking was off by one byte. 2015-06-18 19:51:30 -04:00
MELERIX 48878d7e9c few more 2015-06-18 00:51:26 -03:00
MELERIX a4f8f52de9 minor fixes in english language file 2015-06-18 00:19:03 -03:00
Nekokabu 7748b0109c support 6103, 5, 6 2015-06-16 21:06:14 +09:00
Nekokabu a55e567b8b Add ROM Header CRC Recalculation
Add ROM Header CRC Recalculation
2015-06-15 22:08:07 +09:00
Nekokabu edb8d5288c Add ROM Header CRC Recalculation
Add ROM Header CRC Recalculation
2015-06-15 22:05:04 +09:00
Nekokabu 6b33847f2c ROM Header CRC Recalculation
ROM Header CRC Recalculation
2015-06-15 22:03:49 +09:00
Nekokabu dd0560c438 Add ROM Header CRC Recalculation
Add ROM Header CRC Recalculation
2015-06-15 22:00:37 +09:00
zilmar 0e6f462f8b Merge pull request #487 from Nekokabu/patch-6
Update N64 Types.h
2015-06-09 05:08:34 +10:00
zilmar d1f1f1d0e3 Merge pull request #488 from Nekokabu/patch-8
Update N64 Rom Class.cpp
2015-06-09 05:08:12 +10:00
zilmar 6c9ab5438f Merge pull request #489 from Nekokabu/patch-9
Update Rom Information Class.cpp
2015-06-09 05:07:02 +10:00
Nekokabu b17c3b7c89 Update N64 Class.cpp
Experimental: 64DD IPL support
2015-06-08 22:19:45 +09:00
Nekokabu fc1ce7f6d3 Update Rom Information Class.cpp
Experimental: 64DD IPL support
2015-06-08 22:05:56 +09:00
Nekokabu 1ab4e18c68 Update N64 Rom Class.cpp
Experimental: 64DD IPL support
2015-06-08 22:03:33 +09:00
Nekokabu e7e6dae283 Update N64 Types.h
Experimental: 64DD IPL support
2015-06-08 21:54:45 +09:00
zilmar 6d608cd6bc [Project64] Handle SW const to 0x1fc00000 2015-05-30 13:46:16 +10:00
LegendOfDragoon 03dae91dc8 Fix threading problem with AiUpdate
When you reset a game or switch to another game, it keep creating a new
thread even if one already exists. This can cause the emulator to crash.
2015-05-25 22:05:09 -07:00
unknown 8f2e0e066d [zlib] fixed warning C4244: conversion, possible loss of data 2015-05-24 14:54:56 -04:00
unknown 63d5805aa2 [Project64] fixed warning C4100: unreferenced formal parameter 2015-05-24 14:40:41 -04:00
unknown 6ef0a34188 [Project64] fixed warning C4018: '<' : signed/unsigned mismatch 2015-05-24 14:35:47 -04:00
unknown c30e41b102 [Project64] fixed warning C4018: '>' : signed/unsigned mismatch 2015-05-24 13:45:30 -04:00
unknown 068fbcbd13 [Project64] fixed warning C4018: '>=' : signed/unsigned mismatch 2015-05-24 13:33:56 -04:00
LuigiBlood ddd5b3e795 Updated 64DD Conversion CIC checksum for bugfix 2015-05-23 00:28:58 +02:00
zilmar f329b2d8f1 Merge branch 'master' of https://github.com/project64/project64 2015-05-22 06:12:08 +10:00
zilmar 6f56336031 [Project64] handle F3 A4 rep movs byte ptr es:[edi],byte ptr [esi] in exception handler 2015-05-22 06:09:33 +10:00
zilmar bc78316504 Clean up some of the 64bit projects 2015-05-22 06:07:24 +10:00
Emmet Young 007cbc1695 Address should actually of been stored into a DWORD 2015-05-18 14:19:31 +10:00
Emmet Young a89f1d29f5 Seperate rumblepak out from pif ram.cpp. Makes it easier to make changes to and cleans up Pif Ram.cpp
Also prepare for implementing the transfer pak.
2015-05-18 12:20:15 +10:00
zilmar 0c8d500328 Merge pull request #464 from AmbientMalice/patch-18
Change "segement" to "segment".
2015-05-16 11:05:35 +10:00
zilmar 13e62d7354 [64bit] Get nrage and rsp compiling as 64bit 2015-05-16 10:55:23 +10:00
AmbientMalice d3c04d6a1e Update Dma.cpp 2015-05-15 23:38:14 +10:00
AmbientMalice baf8d3907e Corrected "segment" typo. 2015-05-15 23:36:42 +10:00
zilmar e5c2df4dbc [Project64] Get the code to compile in 64bit 2015-05-15 08:38:52 +10:00
LuigiBlood 61c7f5ed78 Added "AllowROMWrites" RDB setting, DMA READ to ROM and updated RDB file 2015-05-14 14:34:45 +02:00
LuigiBlood d6c2116a71 Fixed N64 Mouse detection 2015-05-14 03:05:34 +02:00
LuigiBlood 4d8a419efa Fixed resource files 2015-05-12 00:11:43 +02:00
LuigiBlood c967d4f46e Added N64 Mouse support in NRage 2015-05-11 22:39:29 +02:00
LuigiBlood 6f28b3e424 Added 64DD CIC support for Zoinkity's cartridge conversions of 64DD games. 2015-05-08 04:48:46 +02:00
MELERIX 779626d421 zlib cleanup
- Removed the old zlib files.
- PJ64 now uses the new zlib 1.2.8 files.
2015-05-07 23:25:02 -03:00
LegendOfDragoon 3d57e37a88 Make AudioResetOnLoad work with Fixed Audio Timing 2015-05-06 16:23:52 -07:00
Azimer f48d645f83 Missed a DoSomething 2015-05-05 17:49:06 -05:00
Azimer fe855ad5da Revert DoSomething from bool to BOOL #2
This fixes the interpreter
2015-05-05 11:46:25 -05:00
zilmar 9aa9061f07 Revert DoSomething from bool to BOOL 2015-05-04 17:23:36 +10:00
Lioncash 21c3c8fd32 Remove unnecessary struct/union typedefs 2015-05-03 20:13:12 -04:00
Emmet Young 6e897778dc Remove registry from Common. No longer used or needed. 2015-05-03 21:05:53 +10:00
zilmar c31e3f210c Merge pull request #425 from death-droid/UpdateZLib
Update ZLib to 1.2.8
2015-05-03 19:58:12 +10:00
zilmar c182ec9fd5 [Project64] Rom Browser - show good name in column other than the first 2015-05-03 19:54:06 +10:00
Lioncash 82c2554357 Convert BOOL to bool where possible. 2015-05-02 23:37:08 -04:00
zilmar 9984bed37c Merge pull request #429 from Azimer/FAT_Improvements
Fixed Audio Timing Improvements
2015-05-02 22:08:27 +10:00
Azimer ac8a33a3be Restructured IF statement 2015-05-02 02:01:10 -05:00
Azimer c970681595 Fixed Audio Timing Improvements
* A user-defined FAT value of 0 will cause it to calculate
* The second buffer shouldn't be part of the GetLegth returned value
* Rounded the GetLength values up and aligned to 4 bytes (sample size)
* Implemented ai_busy and changed the behavior of ai_full
* Changed the second buffer behavior
2015-05-02 01:37:23 -05:00
Emmet Young 312de4d2a4 Allow 7z files to actually work through "Open ROM". Removes the codes assumption it is being handed the ROM name its looking for in the file. 2015-05-02 00:53:57 +10:00
Emmet Young c9805dd5d3 Update ZLib to 1.2.8 2015-05-01 14:06:20 +10:00
zilmar f75a6e489c Merge pull request #423 from lioncash/void
Remove superfluous void parameter usages.
2015-04-30 10:43:32 +10:00
Emmet Young 23eeaeeb2c When scanning in 7z files make sure we are actually setting the rom file size.
Fixes issue #255
2015-04-29 23:02:53 +10:00
Lioncash d85f0c1283 Remove superfluous void usages
These aren't necessary in C++
2015-04-28 19:34:23 -04:00
theboy181 405f59eafc Fix Speeeling 2015-04-23 22:43:01 -07:00
Lioncash 6b7ecf0b79 Cheat Class: Replace is_valid_hex_digit
isxdigit does the same thing.
2015-04-22 14:06:56 -04:00
zilmar b5cd125809 Merge pull request #409 from cxd4/i_accidentally_your_function_inside_my_function
some more high-level code reusability via functions
2015-04-21 12:53:06 +10:00
zilmar 2bb9ac0754 Merge pull request #411 from cxd4/nub_lern_2_cheet
optimized cheat codes parsing a little bit
2015-04-21 08:49:56 +10:00
unknown 8df2172495 probably more readable, portable to just say this 2015-04-20 17:10:15 -04:00
unknown 0e05a71f2a guessing it's okay to have case-insensitive hex verify here too 2015-04-20 17:07:42 -04:00
unknown ec458785ea derp. 2015-04-20 17:05:06 -04:00
unknown 12b71f4c0c actually may be better as a static (possibly inline) function 2015-04-20 17:02:19 -04:00
unknown 3ef067f6d1 optimized hex digit verification a little 2015-04-20 16:52:48 -04:00
unknown ec9afe9c33 moved cheat code hex value verification to a central function 2015-04-20 16:31:26 -04:00
unknown 42643352b9 s/Initilize/Initialize 2015-04-20 16:01:18 -04:00
unknown 3b9ec019bc ya i r need h4lp plz i iz shot 2015-04-20 15:41:25 -04:00
unknown dbe9da858a no longer multiple references to recently added `STRING_SIZE` constant
It seems that zilmar would rather use the sizeof() operator repeatedly than to declare a new constant or use macros to show array sizes.  Since I have already centralized the usage of all sizeof() operators to the new high-level function I declared, I think that there is no longer use for the `STRING_SIZE` constant which Lioncash contributed.
2015-04-20 14:57:55 -04:00
unknown 9fcf4def63 reusable functions in high-level code for About dialog messages 2015-04-20 14:55:07 -04:00
zilmar 240d13366d Merge branch 'master' of https://github.com/project64/project64 2015-04-20 18:35:27 +10:00
zilmar bb9023292c fix #408 About Config Files not showing 2015-04-20 18:33:38 +10:00
LegendOfDragoon 882b0f5841 Change CompilerWarning to DisplayError in Cop0_MF
In RSP interpreter, it is DisplayError and I feel like it's an important
message, so it should be DisplayError in RSP recompiler as well, in my
opinion.
2015-04-19 21:20:10 -07:00
LegendOfDragoon 603df8e167 Add 2 cases in Cop0_MF for RSP Recompiler
Case 0 and Case 1 was missing in RSP Recompiler. Jet Force Gemini LLE
GFX uses case 1.
2015-04-19 21:11:47 -07:00
LegendOfDragoon 82f614ff2d Fix / Optimize RSP Accumulator Analysis
the & 0xFFC was missing, which caused it to return true when it should
have returned false. This means that LLE audio should be more optimized
now.

I also made it do delay slot, incase the delay slot instruction writes
to accumulator. Minor optimization here.

As for JAL, I made it do break instead of return FALSE because in Battle
For Naboo, it actually does come back and continue an existing
calculation. I think it is only an issue if you do a separate analysis
for the Low Accumulator and Mid/High Accumulators. It's still better to
be safe, just incase I or someone else actually implement a separate
analysis for the Accumulators later down the road.
2015-04-19 20:56:36 -07:00
LegendOfDragoon f22e5125c5 Fix memory leak in RSP
Due to the newer spec design in PJ64 2.x, CloseDLL() doesn't get called
as often. So there are instances where it calls AllocateMemory()
multiple times without ever calling FreeMemory().
2015-04-19 19:16:10 -07:00
zilmar edda4f0555 fix #376 - Games slow if no entry in Project64.cfg 2015-04-20 08:50:07 +10:00
zilmar 5b68545136 Merge pull request #400 from lioncash/overrun
Gui Class: Fix potential wchar array overruns
2015-04-18 05:43:50 +10:00
Lioncash c0742b09b6 Gui Class: Fix potential wchar array overruns
sizeof(String) will return 400, which is past the bounds of the string array
2015-04-17 03:13:44 -04:00
Lioncash bdd7f0e48f RSP: Fix a typo in Compile_ADDI 2015-04-16 23:33:35 -04:00
Lioncash e9c056e5a4 Notification Class: Correct array sizing in SetWindowCaption
sizeof(wchar_t) is a size of 2 (or 4 if in a Linux environment). With the previous code, it would be trying to insert the null terminator at index 511 on Windows, which is incorrect.
2015-04-16 15:59:48 -04:00
Lioncash a7eb2e79e5 Memory Labels Class: Correct bounds clamping in ProcessCODFile 2015-04-16 15:44:06 -04:00
zilmar 45f7edf132 Merge pull request #392 from lioncash/leak
Language Class: Fix missing fclose in GetLangString
2015-04-17 04:45:00 +10:00
Lioncash 9fd1bdf29c Language Class: Fix missing fclose in GetLangString 2015-04-16 08:53:40 -04:00
Lioncash b8beaeffb7 N64 Class: Initialize variable before passing in initializer list
Silences an uninitialized variable warning.
2015-04-15 22:38:55 -04:00
Julio C. Rocha 33023bc81f Make PropertySheets imports non-conditional
Interpolated Platform and Configuration values to avoid case-by-case
condition validation.
(This could allow for future configurations and platforms without
additional modifications to VCXPROJ files).
2015-04-15 16:16:37 -07:00
LegendOfDragoon eda19cfc5e Fix regression in GetInstructionInfo
I previously made a commit to fix a reordering issue, but did not
realize it needed that COPO_MF_Instruction flag for branching. This
should fix the Ogre Battle issue.
2015-04-14 22:07:45 -07:00
theboy181 49034d2d9d Update Ini File Class.cpp
Fix Project64.cfg from getting corrupted when moving the window around.
https://github.com/project64/project64/issues/225
2015-04-13 22:16:05 -07:00
zilmar a43b33d985 Merge pull request #370 from LegendOfDragoon/master
Fix losing audio while loading a save state
2015-04-13 10:00:31 +10:00
LegendOfDragoon 41c5e26e4a Make an rdb option for the save state audio fix
Now it is a per game config option.
2015-04-12 16:53:39 -07:00