David Guillen Fandos
fb7ca09b01
Remove BIOS reserved translation area
...
This is not really necessary since it can share area with ROM.
Performance impact should be very minimal (haven't noticed it myself)
and could be compensated (even by a positive offset) if we bump the ROM
cache area size.
Tested with several dynarecs.
2021-03-17 18:33:02 +01:00
David Guillen Fandos
34e672ed25
Simplify open load handling for MIPS and fix other arches
...
Also rewrite a bit memory handlers for smaller functions.
2021-03-16 22:58:58 +01:00
David Guillen Fandos
5ffd2832e8
Rewrite of the MIPS dynarec stubs
...
This allows us to emit the handlers directly in a more efficient manner.
At the same time it allows for an easy fix to emit PIC code, which is
necessary for libretro. This also enables more platform specific
optimizations and variations, perhaps even run-time multiplatform
support.
2021-03-16 22:58:58 +01:00
David Guillen Fandos
c86b9064df
Move palettes around to simplify MIPS dynarec
...
Will move also OAM structures to gain a few cycles per load/store.
Loads can also be optimized for an extra instruction per access.
2021-03-15 02:25:02 +01:00
David Guillen Fandos
7db08a3fcf
Fix fd check
2021-03-11 22:13:32 +01:00
David Guillen Fandos
5127f4b5cc
Remove PSP-specific stuff from MIPS backend
...
This is unnecessary since newlib supports all file I/O.
This is needed for other mips ports
2021-03-10 18:41:37 +01:00
David Guillen Fandos
3d558413fd
Fix x86 dynarec, broken by d10c4afe
...
The dynarec expects function args to be located in registers instead of
the stack, which is not the default calling convetion in GCC/clang.
2021-03-06 21:15:22 +01:00
David Guillen Fandos
349e47f0b2
Small fixes to division by zero
...
This causes crashes in PSP quite often in many games. Other CPUs might
(depending on the processor state) silently return zero or some
undefined value.
The fix is borrowed from ReGBA's codebase
2021-02-23 20:27:59 +01:00
David Guillen Fandos
ed3ba2c18b
More cleanups (mostly whitespace and unused stuff)
2021-02-15 21:51:49 +01:00
negativeExponent
56372b0635
Use correct path separator
2020-10-28 19:39:41 +08:00
negativeExponent
f8b598a2ed
Update RTC emulation
...
- Based on notes, gpSP's RTC does was based on vba.
- I've updated relevant sections of it based on latest vba.
reference issue: https://github.com/libretro/gpsp/issues/79
2020-10-09 15:14:25 +08:00
negativeExponent
d8225bb313
Add optional battery save using libretro save api
...
- Adds core option to allow battery saves using the libretro api
(retro_get_memory_data/size)
- Initial save size set at 128KB and actual size is automatically
determined internally by gba.
- This will always assume that a save file is supported since save
size or type cannot be determined until gba tries to write to backup memory.
- A 128KB block of memory is used as buffer, similar method to VBA
Next/Beetle GBA workarounds.
Fix https://github.com/libretro/gpsp/issues/72
2020-09-05 20:47:59 +08:00
negativeExponent
ba5d66e0bc
Fix flash 64K games not saving (Fix https://github.com/libretro/gpsp/issues/59 )
2019-11-15 21:49:44 +08:00
bmaupin
89e55e9902
Reenable native file IO on PSP
2019-10-03 13:53:34 -04:00
aliaspider
65ff54ff4e
fix sram not saving on some platforms.
2015-09-20 23:42:37 +01:00
aliaspider
d4caae665f
show the gbaover details for the current gamepak only.
2015-04-06 11:30:47 +01:00
twinaphex
360f958f8d
Split up gba_over entries into separate header file
2014-12-22 05:18:39 +01:00
twinaphex
2c81cc1915
Add entries to gbaover
2014-12-22 05:15:05 +01:00
twinaphex
34472c0092
Add more gbaover entries
2014-12-22 04:49:26 +01:00
twinaphex
d80bf300d4
Add entries to gbaover
2014-12-22 01:01:43 +01:00
twinaphex
167586fbe3
Add more entries to gbaover
2014-12-22 00:32:56 +01:00
twinaphex
99092cafcf
Add more entries to gbaover
2014-12-22 00:17:15 +01:00
twinaphex
95e630983c
Add more entries to gbaover
2014-12-22 00:08:37 +01:00
twinaphex
9ea187d3a8
Remove patching of two BIOS ROM locations
2014-12-21 09:48:06 +01:00
twinaphex
06022e2559
Update gbaover
2014-12-21 09:21:53 +01:00
twinaphex
b89210e14e
Add more entries to gbaover
2014-12-21 07:41:57 +01:00
twinaphex
91d7ce94f8
More changes
2014-12-21 07:24:25 +01:00
twinaphex
91d936b13f
Add some more vbaover entries
2014-12-21 06:38:55 +01:00
twinaphex
cc1a867328
Start adding gbaover - unfinished
2014-12-21 06:29:16 +01:00
Twinaphex
d10c4afea2
Get rid of function_cc
2014-12-20 09:14:38 +01:00
twinaphex
ba834beeb1
Change load_gamepak signature
2014-12-20 08:35:53 +01:00
twinaphex
9fe97ba148
gba_memory.c - some cleanups
2014-12-20 08:25:17 +01:00
twinaphex
ab96870240
Make functions static in gba_memory.c
2014-12-20 08:12:28 +01:00
twinaphex
87b34754f8
Remove more case ranges
2014-12-13 04:55:24 +01:00
twinaphex
e83651639f
dma_transfer - change dest_ptr to type uintptr_t - fixes 64bit interpreter
...
according to aliaspider
2014-12-12 01:53:39 +01:00
twinaphex
9a468a0f3b
Demacro-ize dma_transfer_expand
2014-12-11 03:38:57 +01:00
twinaphex
97087610a2
gba_memory.c - Turn trigger_dma into function
2014-12-11 03:10:29 +01:00
twinaphex
e713728977
(gba_memory.c) Turn trigger_timer into real function
2014-12-11 03:00:09 +01:00
twinaphex
67525fe8ea
Turn some sound macro functions in gba_memory.c into real functions
2014-12-11 02:49:46 +01:00
twinaphex
d64b61a65e
cleanups
2014-12-11 02:40:08 +01:00
twinaphex
ce8e594fc5
load_game_config - print config_path
2014-12-10 18:09:53 +01:00
twinaphex
82731290ee
We don't need to get rid of idle loop patching for non-dynarec
...
core
2014-12-10 17:27:18 +01:00
twinaphex
75cffe81f2
non-HAVE_DYNAREC codepath compiles and links now
2014-12-10 17:16:41 +01:00
twinaphex
1bf4901b58
Add HAVE_DYNAREC ifdef to gba_memory.c
2014-12-10 17:09:24 +01:00
twinaphex
51d78afa09
Add HAVE_DYNAREC ifdef
2014-12-10 17:06:09 +01:00
twinaphex
7a0b0cba45
Style nits
2014-12-10 15:47:19 +01:00
twinaphex
4f7ff2b91d
Convert enum to sram_type_size to avoid warning
2014-12-10 15:25:29 +01:00
twinaphex
8bda867c2b
Fix one warning in Clang
2014-12-10 15:24:49 +01:00
aliaspider
a926a68eb3
cleanups
2014-12-10 12:53:26 +01:00
aliaspider
41484cd73c
use correct save directory.
2014-12-10 12:00:12 +01:00