Carlos R
5a403c9f24
Refactored rom write support and clean ups for ROMBuffer.cpp
2020-06-12 17:17:58 -07:00
Carlos R
e213b81291
Fixes for DMA SP and memcpy swizzle
...
[*] Fixed memcpy usage for aligned path for the memcpy swizzle and also enabled it for Linux/OSX
[*] Refactored unaligned path for memcpy swizzle and also fixed memcpy_test
[*] Set correctly sp mem region for DMA_SP
2020-06-10 09:25:14 -07:00
Carlos R
f19e4262e5
DMA fixes
...
* Added check for odd PI DMA length, fixes Doraemon 3
* Fixed incorrect mask for spmem_address, thanks Rinnegatamante for pointing out this
* Moved rdram overflow check outside the count loop
* Added FAST_DMA_SP define and enforce 8 byte alignment for correctness. This is still only enabled for the PSP but should be safe to enable for other platforms where speed its important
* Small clean ups
2020-06-09 21:31:11 -07:00
=
1511baa25e
Fix up paths in headers
2020-05-27 19:20:52 +10:00
Carlos R
7937cc748c
* Implement missing dom1/addr1/3
...
Fixes bug in Paper Mario where a save slot will get duplicated also fixes a bug in Majora's Mask where link did not have a shield and sword during the first movie
2020-05-16 15:02:35 -07:00
=
f28b4788a5
fix saves / Disable debug console on release
...
Fix more {}
2020-05-07 17:55:26 +10:00
=
1c342d8c8f
Revert all initialiser list variables.
2020-05-04 12:24:21 +10:00
Wally
874c4ebd91
Fixed some narrowing issues, reverted ME back to what it was.. Still playing up
...
Removed the Rounding mode stuff in the R4300.cpp
2019-03-23 23:02:18 +09:00
Wally
d268338d6c
Move debug stuff from release / Move to C11 inits in Core / Add Motos fancy new icons
2019-03-23 17:53:26 +09:00
Ben Slater
c562b76641
*Clean build from StrmnNrmns repo
2019-02-27 17:04:51 +11:00
Wally
0111275f23
Move a lot of debug stuff out of Release Build
2019-01-21 14:26:00 +11:00
strmnnrmn
7f6a40f167
[~] Give Save a C-style interface
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1735 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-06-01 08:40:01 +00:00
strmnnrmn
60991d6c79
[~] Compile fixes
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1495 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-31 09:45:54 +00:00
salvy
1a8aa9b8e1
[!] Fixed bad assumption for sprite2D in Glover
...
[!] Accurate TMEM can be used on the PSP (Just define DAEDALUS_ACCURATE_TMEM)
[!] Use StrmnNrmn's PrepareTexRectUVs for PSP(No need for hacks and I don't think is too expensive at the end)
[~] Fixed a SP DMA bug in W32 (I still think we should use the PSP method, since it works fine)
[~] Set rounding mode in W32/OSX (NOP for PSP)
[+] Handle more regs in MTC0
[~] Some clean ups
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1358 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-22 06:55:04 +00:00
salvy
1be5f67228
[!] Better keep Process Pif in one function to avoid redundancy
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1352 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-20 05:33:56 +00:00
salvy
a27ca4eea8
[!] Broke down PIF Process (Banjo Tooie was failing due this, also allow us to simplify things and move most of the code to ProcessWrite which is called rarely).
...
[+] Added X-Scale's PIF/CIC-NUS-6105 challenge/response algorithm (Used in Banjo Tooie, PD, and JF)
http://www.emutalk.net/threads/53217-N64-PIF-CIC-NUS-6105-Algorithm-Finally-Reversed
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1294 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-14 06:47:22 +00:00
salvy
b3ec56cf0f
[!] Handle Dom1Addr3 (Thnx StrmnNrmn for pointing out!)
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1087 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-23 19:50:33 +00:00
strmnnrmn
7d4fae988c
[~] Remove a little commented out code
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1012 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-17 19:48:02 +00:00
strmnnrmn
b01dae97d3
Replace a few magic constants with better-named macros
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@979 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-17 16:58:52 +00:00
strmnnrmn
b3a2bc8af3
DMA_PI_CopyToRDRAM doesn't seem to handle dom1 addr1/addr3 correctly any more
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@977 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-17 15:04:25 +00:00
strmnnrmn
776bf498c1
Merge OSX/W32 versions of SP DMA code. We probably should just have a single version of the code here, but I don't want to remove all traces of the count/skip logic just yet
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@976 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-17 15:04:21 +00:00
strmnnrmn
64b82bda28
[~] Cast is not needed here
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@901 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-01-27 19:31:47 +00:00
salvy
748a68932e
[!] Use PSP's wsbw opcode for swapping four bytes in a 32bit value
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@875 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-25 06:06:57 +00:00
salvy
5308274e8f
[!] Fixed bug with savestate screenshot when having more than 64 more folders (Corn)
...
[+] Added Azimer's DK64 hack(DK64 boots now, make sure to have Double Display List off)
[!] Set EEPROM4k for DK64 (fixes hang when entering main menu in DK64)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@873 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-24 19:27:20 +00:00
salvy
def84ecf72
[!] Unrolled goto in aligned path in memcpy_vfpu_swizzle
...
[!] Some clean ups
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@863 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-13 14:47:18 +00:00
salvy
5fb82a2cc6
[!] Fixed async audio broken (VFPU and MediaEngine don't mix!)
...
[!] Made fast memcpy truly platform independent
[~] Some more fixes and improvements to memcpy_vfpu_swizzle from last commit
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@862 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-13 02:23:32 +00:00
Corn
3b94307914
[!] Fixed normal and swizzled versions of VFPU memcpy
...
[+] Enabled VFPU memcpy in PSPrenderer and DMA
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@856 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 18:37:03 +00:00
strmnnrmn
22f9d4f0d7
Fix some CRLF/LF inconsistencies
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@845 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:19:43 +00:00
strmnnrmn
3a37f8ac57
Make FastMemcpy a bit more platform independenty and move to the main Utility dir. I removed the timing test and wrapped it up in a function (what it loses from the function call, it gains from being able to inline GetCurrent)
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@844 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:19:36 +00:00
strmnnrmn
d7d116642a
Fix more trailing whitespace (files with CRLF line endings?)
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@825 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-28 23:23:11 +00:00
strmnnrmn
767e4efd9c
Fix line endings
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@822 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-28 22:11:57 +00:00
salvy
41bac1f809
[!] Reorder MatrixFromN64FixedPoint to trick compiler to optimize even more (Corn)
...
[+] Add back DAEDALUS_ENDIAN_MODE (very important for future ports)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@819 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-26 10:57:46 +00:00
salvy
79d10a560f
[!] Moved check if palette address is NULL for palette textures (Now is only check when trying to load a palletized texture)
...
[~] Removed unused tables from convert image
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@755 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-08-22 16:28:21 +00:00
salvy
9ff9d265a2
[-] Bye bye murmur2 hash
...
[!] Made slow memory access compatible with recent changes
[+] Added DKR64 hack which makes DK64 boot (This is disabled since we ignore IMEM transfers for speed which is required for DK64)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@754 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-08-22 16:13:10 +00:00
salvy
cbf9f1ff31
[!] Reduced PIF RAM even more, now is only 16 bytes
...
[!] Pre-swap when writing to PIF RAM, also simplified MemoryUpdatePIF
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@746 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-08-01 17:01:08 +00:00
salvy
90af62af88
[!] Reduce PIF RAM usage from 2048 bytes to 64 (It can be reduced more, but need to do some tests first)
...
[!] Enabled SI hack for Cruisn' USA (it boots now)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@745 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-08-01 09:13:05 +00:00
Corn
3a0eed9c4a
[+] Added INS/EXT and CFC1 OpCodes to AssemblyWriterPSP
...
[!] Dynarec: Optimized float compare (no branch)
[!] Small fix/optimization to PIF swizzle
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@684 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-27 12:50:06 +00:00
salvy
f4d2fe488a
[!] Bring back changes to PIF/DMA changes (This is was the proper way, PJ64 are compatible now)
...
[!] Added workaround to support older savestates created after rev 715
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@683 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-26 07:49:21 +00:00
Corn
f6c89b1ec2
[!] Proper double handling in interpreter (and some clean up)
...
[!] Reverted PIF/DMA changes (Incompatible with older SaveStates)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@682 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-25 21:15:11 +00:00
salvy
945d0c432e
[+] Added known value optimizations to SLTx ops (32bit only!) in dynarec (they are disabled since I'm not sure is worth to handle them)
...
[!] PIF Ram - swap while copying in one go and fuses 4 transfers in one (slight speed-up) (Salvy & Corn)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@679 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-22 09:08:52 +00:00
Corn
3f1e612b52
[-] Reverted LWC1/SWC1 FPU OPs (caused to many issues need more work)
...
[!] Reorganized Build Config flags
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@643 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-04-13 13:12:34 +00:00
salvy
c3671ef59e
[!] Simplified as much as possible DMA_PI_CopyToRDRAM (based from Mupen's dma_pi_write)
...
[~] Some clean ups
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@630 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-03-21 01:30:39 +00:00
Salvy
40c4452bbd
[!] Some code clean ups
...
[!] Simplified and unified GBI2_PopMtx
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@443 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-10-14 20:11:34 +00:00
Salvy
f98d6981d4
[!] Clean up options etc (Removed Stack Optimisation option, it works perfectly fine with all the games, there's no point to have an option for it)
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@355 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-08-15 21:28:54 +00:00
Corn
08d5f979b8
[!] Improved speed in PIF CRC calculations (w/o using table)
...
[!] Proper name to IRQ hack -> SkipPifIRQ
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@350 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-08-14 09:45:52 +00:00
Salvy
886c096f4e
[-] Removed experimental interrupts (it never worked correctly anyways)
...
[~] Simplified abit UseIRQmode check, and added comments
[!] By mistake I removed to clear pi status reg in DMA_PI_CopyFromRDRAM...fixed
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@349 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-08-11 06:25:26 +00:00
Corn
0b986f47c5
[+] added ROM setting to enable Body Harvest and Night Creatures to boot
...
[!] modified IRQs
[+] added roms.ini for GEX3, Donald Duck and Rayman2
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@347 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-08-10 21:43:54 +00:00
Salvy
ab94edf73f
[~] Fixed EXPERIMENTAL_INTERRUPTS option (when defined, Body Harvest and Nightmare Creatures work)
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@345 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-08-08 23:49:20 +00:00
Corn
5f8d49f65b
[!] Clean up SetNewVertexInfo() for Conker
...
[!] Change order for PIF processing in DMA
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@328 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-07-31 09:58:05 +00:00
Salvy
aeaf90d317
[!] Trap r0 write in LW (fixes San Francisco 2049 crashing when race is about to start)
...
[+] Added debug code to detect r0 writes
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@312 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-06-24 22:41:24 +00:00