picodrive.git
5 months agolibretro, gcc14 fixes
kub [Thu, 20 Jun 2024 18:13:29 +0000 (20:13 +0200)]
libretro, gcc14 fixes

5 months agocore vdp, arm rendering fix (1st window col prio)
kub [Tue, 18 Jun 2024 20:45:02 +0000 (22:45 +0200)]
core vdp, arm rendering fix (1st window col prio)

5 months agobuild, fix zstd asm file usage (used only for x86)
kub [Sat, 15 Jun 2024 16:21:10 +0000 (16:21 +0000)]
build, fix zstd asm file usage (used only for x86)

5 months agobuild, fix zstd asm file usage (used only for x86)
kub [Sat, 15 Jun 2024 14:26:12 +0000 (16:26 +0200)]
build, fix zstd asm file usage (used only for x86)

5 months agomd, minor cleanup for region code handling
kub [Sat, 15 Jun 2024 09:28:04 +0000 (09:28 +0000)]
md, minor cleanup for region code handling

5 months ago68k, minor debug fix for fame
kub [Sat, 15 Jun 2024 09:25:42 +0000 (09:25 +0000)]
68k, minor debug fix for fame

5 months agobuild, more lowercase on linux, plus minor changes
kub [Sat, 15 Jun 2024 09:24:03 +0000 (09:24 +0000)]
build, more lowercase on linux, plus minor changes

5 months agomd vdp, fix v_counter reading, some cleanup
kub [Fri, 14 Jun 2024 21:05:37 +0000 (23:05 +0200)]
md vdp, fix v_counter reading, some cleanup

5 months agosh2 drc, several bug fixes
kub [Sun, 9 Jun 2024 22:30:51 +0000 (22:30 +0000)]
sh2 drc, several bug fixes

5 months agobuild, fix libchd zstd support for libretro static linking
kub [Sun, 9 Jun 2024 22:24:45 +0000 (22:24 +0000)]
build, fix libchd zstd support for libretro static linking

5 months ago32x, fixes for comparing cycles
kub [Sun, 2 Jun 2024 07:53:04 +0000 (07:53 +0000)]
32x, fixes for comparing cycles

5 months agosh2 drc, fix mul/add saturation
kub [Sun, 2 Jun 2024 07:48:15 +0000 (07:48 +0000)]
sh2 drc, fix mul/add saturation

5 months agosh2 drc, small fixes (cycle counting, invalidation)
kub [Mon, 27 May 2024 21:53:26 +0000 (23:53 +0200)]
sh2 drc, small fixes (cycle counting, invalidation)

5 months agoremove fflush() call before exit()
Tomáš Kelemen (vudiq) [Fri, 24 May 2024 17:50:37 +0000 (19:50 +0200)]
remove fflush() call before exit()

the buffer is flushed anyways at exit() and fixes compile error with
gcc14:

    pico/carthw/svp/compiler.c: In function 'ssp_translate_block':
    pico/carthw/svp/compiler.c:1800:24: error: passing argument 1 of 'rfflush' from incompatible pointer type [-Wincompatible-pointer-types]
     1800 |                 fflush(stdout);
          |                        ^~~~~~
          |                        |
          |                        FILE *
    In file included from ./pico/pico_port.h:12,
                     from ./pico/pico_int.h:15,
                     from pico/carthw/svp/compiler.c:9:
    platform/libretro/libretro-common/include/streams/file_stream_transforms.h:89:25: note: expected 'RFILE *' but argument is of type 'FILE *'
       89 | int64_t rfflush(RFILE * stream);
          |                 ~~~~~~~~^~~~~~

this error presents itself when building the libretro core, so this
could be also solved by wrapping the call to fflush():

    #ifndef __LIBRETRO__
     fflush(stdout);
    #else
                fflush((RFILE *)stdout);
    #endif

5 months agoupdate libchdr for zstd support
notaz [Mon, 20 May 2024 22:09:40 +0000 (01:09 +0300)]
update libchdr for zstd support

5 months agocore z80, partially revert ebde43d (bus blocking DMA)
kub [Thu, 23 May 2024 22:06:39 +0000 (00:06 +0200)]
core z80, partially revert ebde43d (bus blocking DMA)

it causes audio lag in OD2

5 months agosms, fixes to bios initialisation and mapper autodetection
kub [Thu, 23 May 2024 17:01:26 +0000 (19:01 +0200)]
sms, fixes to bios initialisation and mapper autodetection

5 months agomd, no floating bus in cart address space
kub [Thu, 23 May 2024 16:58:10 +0000 (18:58 +0200)]
md, no floating bus in cart address space

5 months agomd, add some unlicensed carts
kub [Thu, 23 May 2024 16:54:59 +0000 (18:54 +0200)]
md, add some unlicensed carts

6 months agoplatform ps2, fixes for gcc14
kub [Mon, 20 May 2024 08:07:42 +0000 (10:07 +0200)]
platform ps2, fixes for gcc14

6 months agobuild, add ps2 to release script
kub [Mon, 20 May 2024 07:30:35 +0000 (09:30 +0200)]
build, add ps2 to release script

6 months agosh2 drc, fix conditional immediate for armv7
kub [Sun, 19 May 2024 20:45:44 +0000 (20:45 +0000)]
sh2 drc, fix conditional immediate for armv7

6 months agopandora: some fixes for 2.0
notaz [Sat, 18 May 2024 19:33:23 +0000 (22:33 +0300)]
pandora: some fixes for 2.0

6 months agoupdate copyright
kub [Sat, 18 May 2024 20:12:56 +0000 (22:12 +0200)]
update copyright

6 months agocore vdp, reset fix
kub [Sat, 18 May 2024 20:00:41 +0000 (22:00 +0200)]
core vdp, reset fix

6 months agosms, minor optimization
kub [Sat, 18 May 2024 19:59:18 +0000 (21:59 +0200)]
sms, minor optimization

6 months agocore, fix floating bus read for 68k (regression)
kub [Sat, 18 May 2024 19:58:25 +0000 (21:58 +0200)]
core, fix floating bus read for 68k (regression)

6 months agosound, don't reinitialize after menu if not needed
kub [Sat, 18 May 2024 09:35:22 +0000 (11:35 +0200)]
sound, don't reinitialize after menu if not needed

6 months agocore, improve system and mapper detection
kub [Fri, 17 May 2024 19:11:34 +0000 (19:11 +0000)]
core, improve system and mapper detection

6 months agobuild, change executable name to lowercase
kub [Thu, 16 May 2024 20:32:55 +0000 (20:32 +0000)]
build, change executable name to lowercase

6 months ago32x, fix reset interrupt handling
kub [Sun, 12 May 2024 08:06:24 +0000 (10:06 +0200)]
32x, fix reset interrupt handling

6 months agoplatform opendingux, add some keys (gkd mini, rs97)
kub [Fri, 10 May 2024 21:22:01 +0000 (23:22 +0200)]
platform opendingux, add some keys (gkd mini, rs97)

6 months ago32x, internal BIOS hack for jumping to 0x140
notaz [Tue, 7 May 2024 23:18:59 +0000 (01:18 +0200)]
32x, internal BIOS hack for jumping to 0x140

6 months agocore z80, improve save/load (cycles)
kub [Tue, 7 May 2024 21:12:54 +0000 (23:12 +0200)]
core z80, improve save/load (cycles)

6 months agocore z80, bus blocking for VDP DMA
kub [Tue, 7 May 2024 21:11:54 +0000 (23:11 +0200)]
core z80, bus blocking for VDP DMA

6 months agocore z80, cycle counting fixes (reset, bus request)
kub [Tue, 7 May 2024 21:10:27 +0000 (23:10 +0200)]
core z80, cycle counting fixes (reset, bus request)

6 months ago32x: adjust handlers according to hw tests
notaz [Mon, 6 May 2024 21:41:59 +0000 (00:41 +0300)]
32x: adjust handlers according to hw tests

"Pico32x.regs[6] |= P32XS_RV;" had wrong offset, but tests show this
doesn't happen at all so remove.

6 months ago32x, some reset related fixes
kub [Sun, 5 May 2024 09:59:41 +0000 (11:59 +0200)]
32x, some reset related fixes

6 months agocore vdp, fix regression (irq not cleared on disable)
kub [Sun, 5 May 2024 16:12:40 +0000 (18:12 +0200)]
core vdp, fix regression (irq not cleared on disable)

6 months agoprerelease 2.00-beta3
kub [Sun, 28 Apr 2024 19:18:36 +0000 (21:18 +0200)]
prerelease 2.00-beta3

6 months agocore vdp, fix regression (irq not cleared on disable)
kub [Sat, 27 Apr 2024 07:44:43 +0000 (09:44 +0200)]
core vdp, fix regression (irq not cleared on disable)

6 months agomcd, add poll detection for gfx busy
kub [Sat, 27 Apr 2024 07:53:33 +0000 (09:53 +0200)]
mcd, add poll detection for gfx busy

6 months agomcd, fix irq2 handling (not cleared on disable)
kub [Sat, 27 Apr 2024 08:12:25 +0000 (10:12 +0200)]
mcd, fix irq2 handling (not cleared on disable)

6 months agomcd, improve pre/post reading
kub [Fri, 26 Apr 2024 22:32:04 +0000 (00:32 +0200)]
mcd, improve pre/post reading

6 months ago32x, make sh2 sram poll detection less agressive
kub [Wed, 24 Apr 2024 19:51:01 +0000 (21:51 +0200)]
32x, make sh2 sram poll detection less agressive

7 months agomcd, implement pre/post reading in play/read state
kub [Sun, 21 Apr 2024 14:20:28 +0000 (16:20 +0200)]
mcd, implement pre/post reading in play/read state

7 months agomcd, some improvements (dma timing, interrupt handling)
kub [Fri, 19 Apr 2024 19:08:09 +0000 (21:08 +0200)]
mcd, some improvements (dma timing, interrupt handling)

7 months agomcd, revisit track handling in cdd
kub [Fri, 19 Apr 2024 18:53:52 +0000 (20:53 +0200)]
mcd, revisit track handling in cdd

7 months agocore z80, fix cycle counting in reset state
kub [Fri, 12 Apr 2024 18:29:50 +0000 (20:29 +0200)]
core z80, fix cycle counting in reset state

7 months agomd, fix vdp reset handling
kub [Fri, 12 Apr 2024 18:08:33 +0000 (20:08 +0200)]
md, fix vdp reset handling

7 months agomd, fix vdp reset handling
kub [Thu, 28 Mar 2024 20:39:12 +0000 (21:39 +0100)]
md, fix vdp reset handling

7 months agoprerelease 2.00-beta2
kub [Tue, 26 Mar 2024 21:42:45 +0000 (22:42 +0100)]
prerelease 2.00-beta2

7 months agoplatform, small fixes for Pico, updated readme
kub [Tue, 26 Mar 2024 21:36:21 +0000 (22:36 +0100)]
platform, small fixes for Pico, updated readme

7 months agocore 68k, fix compiler warning in fame
kub [Tue, 26 Mar 2024 21:32:01 +0000 (22:32 +0100)]
core 68k, fix compiler warning in fame

7 months agolibretro, add Pico pad overlay and storyware pages handling
kub [Mon, 25 Mar 2024 17:49:19 +0000 (18:49 +0100)]
libretro, add Pico pad overlay and storyware pages handling

7 months agoplatforms, display pad overlay and storyware pages for Pico
kub [Wed, 20 Mar 2024 22:43:10 +0000 (23:43 +0100)]
platforms, display pad overlay and storyware pages for Pico

7 months agosms, fix save/load bugs (irq, mapper)
kub [Sun, 24 Mar 2024 16:45:10 +0000 (17:45 +0100)]
sms, fix save/load bugs (irq, mapper)

8 months agocore, big endian fix (save/load)
kub [Thu, 21 Mar 2024 18:08:54 +0000 (19:08 +0100)]
core, big endian fix (save/load)

8 months agoLibretro: silence a warning regarding to memmap
saulfabreg Wii VC Project [Wed, 20 Mar 2024 21:13:27 +0000 (16:13 -0500)]
Libretro: silence a warning regarding to memmap

8 months agodrc: only use 64kb aligned tcache_default if on arm linux
kub [Mon, 18 Mar 2024 18:40:01 +0000 (19:40 +0100)]
drc: only use 64kb aligned tcache_default if on arm linux

8 months agocore+platforms, revise pico pen handling
kub [Sun, 17 Mar 2024 09:44:57 +0000 (10:44 +0100)]
core+platforms, revise pico pen handling

the MSB in the tablet position register denotes pen on surface.
add logic and a hotkey for handling pen not on surface. This allows
for repositioning of the pen without the storyware reacting to it.

8 months agocore, floating bus read for 68k in some more places
kub [Sat, 16 Mar 2024 14:58:38 +0000 (15:58 +0100)]
core, floating bus read for 68k in some more places

8 months agocore z80, improve timing for bus request/grant timing from 68k
kub [Thu, 14 Mar 2024 22:15:16 +0000 (23:15 +0100)]
core z80, improve timing for bus request/grant timing from 68k

8 months agocore 68k, make musashi timing more similar to fame
kub [Thu, 14 Mar 2024 22:10:33 +0000 (23:10 +0100)]
core 68k, make musashi timing more similar to fame

8 months agocore 68k, minor improvement for division in fame
kub [Thu, 14 Mar 2024 19:51:19 +0000 (20:51 +0100)]
core 68k, minor improvement for division in fame

8 months ago68k, some fixes for musashi
kub [Sun, 10 Mar 2024 01:26:06 +0000 (01:26 +0000)]
68k, some fixes for musashi

8 months agodrc: align tcache_default to 64k on arm
notaz [Sat, 9 Mar 2024 20:04:16 +0000 (22:04 +0200)]
drc: align tcache_default to 64k on arm

Newer arm64 hw supports 64k pages, and recent Linux distros provide
kernel packages like linux-image-generic-64k (can be used on r-pi4
with Ubuntu for example). It affects 32bit mode also, so assume that
an arm32 binary compiled for vfp may be used on such kernel.

Without this mprotect() fails to set exec permission because of bad
alignment.

8 months agoLibretro: Fix Wii compiling by adding required -ffat-lto-objects
saulfabreg Wii VC Project [Fri, 8 Mar 2024 18:32:10 +0000 (13:32 -0500)]
Libretro: Fix Wii compiling by adding required -ffat-lto-objects

Otherwise when compiling the final dol will result in compilation errors because of missing Libretro dependencies.
(dirty, quick-fix) workaround for stop the compiler messages of "plugin needed to handle lto object"

8 months agocore, fix 68k cycles in cyclone,fame (exceptions,bit ops,ADDI.L,TAS,CHK,MUL*,DIV*)
kub [Thu, 7 Mar 2024 19:42:24 +0000 (20:42 +0100)]
core, fix 68k cycles in cyclone,fame (exceptions,bit ops,ADDI.L,TAS,CHK,MUL*,DIV*)

also syncs these changes between fame and cyclone

in accordance with the test_inst_speed, available here:
https://gendev.spritesmind.net/forum/viewtopic.php?t=3321
DIV* is only closely approximated, it can be slightly on the high side.

8 months agocore, fix crash bug in DrZ80 (SP wrap)
kub [Thu, 7 Mar 2024 19:36:00 +0000 (20:36 +0100)]
core, fix crash bug in DrZ80 (SP wrap)

8 months agocore, implement ym2612 busy flag
kub [Sun, 3 Mar 2024 21:57:58 +0000 (22:57 +0100)]
core, implement ym2612 busy flag

8 months agocore z80, more timing fixes
kub [Sun, 3 Mar 2024 21:55:35 +0000 (22:55 +0100)]
core z80, more timing fixes

8 months agoprerelease 2.00-beta1
kub [Sun, 3 Mar 2024 12:02:13 +0000 (13:02 +0100)]
prerelease 2.00-beta1

8 months agocore z80, some timing improvements
kub [Sun, 3 Mar 2024 12:01:51 +0000 (13:01 +0100)]
core z80, some timing improvements

8 months agopsp, small fixes
kub [Sun, 3 Mar 2024 08:45:01 +0000 (09:45 +0100)]
psp, small fixes

8 months agopsp, revisit audio handling
kub [Thu, 22 Feb 2024 19:51:08 +0000 (20:51 +0100)]
psp, revisit audio handling

sound rates 44100, 22050, 11025 Hz, internally upsampled
conversion to stereo since mono isn't supported well on psp

8 months agopsp, rendering fix, some build changes
kub [Tue, 20 Feb 2024 21:01:47 +0000 (22:01 +0100)]
psp, rendering fix, some build changes

8 months agocore, slightly increase accuracy of some hw timers
kub [Sat, 2 Mar 2024 09:36:49 +0000 (10:36 +0100)]
core, slightly increase accuracy of some hw timers

8 months agocore, another fix for z80 reset
kub [Sat, 2 Mar 2024 09:34:50 +0000 (10:34 +0100)]
core, another fix for z80 reset

8 months agops2, fix some audio related bugs
kub [Sat, 2 Mar 2024 09:34:04 +0000 (10:34 +0100)]
ps2, fix some audio related bugs

8 months agomcd, fix crash (plat_mmap not zeroing memory)
kub [Mon, 26 Feb 2024 22:10:35 +0000 (23:10 +0100)]
mcd, fix crash (plat_mmap not zeroing memory)

8 months agomcd, increase audio volume slightly
kub [Fri, 23 Feb 2024 18:22:34 +0000 (19:22 +0100)]
mcd, increase audio volume slightly

8 months agomcd, fix audio not playing when buffer RAM enabled
kub [Fri, 23 Feb 2024 18:21:39 +0000 (19:21 +0100)]
mcd, fix audio not playing when buffer RAM enabled

8 months agocore, fix z80 irq handling, reset defaults (cz80, drz80)
kub [Thu, 22 Feb 2024 20:01:37 +0000 (21:01 +0100)]
core, fix z80 irq handling, reset defaults (cz80, drz80)

9 months agocore, system detection by extension in zip files
kub [Wed, 21 Feb 2024 18:12:10 +0000 (19:12 +0100)]
core, system detection by extension in zip files

9 months agocore, fix arm asm regression (bg color DMA crash)
kub [Wed, 21 Feb 2024 18:10:44 +0000 (19:10 +0100)]
core, fix arm asm regression (bg color DMA crash)

9 months agoci, use available processor cores
kub [Tue, 20 Feb 2024 21:22:23 +0000 (22:22 +0100)]
ci, use available processor cores

9 months agocore md, assert z80 vint for complete scanline
kub [Tue, 20 Feb 2024 21:05:33 +0000 (22:05 +0100)]
core md, assert z80 vint for complete scanline

9 months agops2, minor fixes
kub [Tue, 20 Feb 2024 21:04:13 +0000 (22:04 +0100)]
ps2, minor fixes

9 months agoMerge branch 'irixxxx/ps2-merge'
kub [Sun, 18 Feb 2024 22:58:18 +0000 (23:58 +0100)]
Merge branch 'irixxxx/ps2-merge'

9 months agops2, more audio fixes
kub [Sat, 17 Feb 2024 18:37:11 +0000 (19:37 +0100)]
ps2, more audio fixes

9 months agops2, kludge for handling audsrv shortcomings
kub [Thu, 15 Feb 2024 22:08:24 +0000 (23:08 +0100)]
ps2, kludge for handling audsrv shortcomings

9 months agops2, kludge for timer bugs in ps2sdk
kub [Wed, 14 Feb 2024 22:42:50 +0000 (23:42 +0100)]
ps2, kludge for timer bugs in ps2sdk

9 months agops2, minor audio and gfx fixes
kub [Wed, 14 Feb 2024 22:41:24 +0000 (23:41 +0100)]
ps2, minor audio and gfx fixes

9 months agofixes for audio and video, add psp-like scaling
kub [Mon, 5 Feb 2024 19:14:06 +0000 (20:14 +0100)]
fixes for audio and video, add psp-like scaling

9 months agoSound almost working
Francisco Javier Trujillo Mata [Sat, 6 Jan 2024 11:43:23 +0000 (12:43 +0100)]
Sound almost working

9 months agoSome progress about centering image
Francisco Javier Trujillo Mata [Fri, 5 Jan 2024 23:01:22 +0000 (00:01 +0100)]
Some progress about centering image

9 months agoSome clean up around emu.c
Francisco Javier Trujillo Mata [Fri, 5 Jan 2024 17:59:21 +0000 (18:59 +0100)]
Some clean up around emu.c

9 months agoDisable alpha and improve vsync logic
Francisco Javier Trujillo Mata [Fri, 5 Jan 2024 17:02:51 +0000 (18:02 +0100)]
Disable alpha and improve vsync logic

9 months agoStarting to see the emulator on the screen
Francisco Javier Trujillo Mata [Mon, 1 Jan 2024 23:10:21 +0000 (00:10 +0100)]
Starting to see the emulator on the screen