picodrive.git
2 years agoMerge pull request #149 from orbea/strict-prototypes pre-fork github/pre-fork
notaz [Wed, 12 Oct 2022 21:45:50 +0000 (00:45 +0300)]
Merge pull request #149 from orbea/strict-prototypes

Fix -Werror=strict-prototypes with clang

2 years agoFix -Werror=strict-prototypes with clang
orbea [Mon, 10 Oct 2022 19:50:00 +0000 (12:50 -0700)]
Fix -Werror=strict-prototypes with clang

I failed to commit one in the previous commit.

Fixes: https://github.com/notaz/picodrive/commit/fa43b5862d9bf4797b1fd4febcde2841d83ab103

2 years agoMerge pull request #148 from orbea/strict-prototypes
notaz [Tue, 11 Oct 2022 20:15:37 +0000 (23:15 +0300)]
Merge pull request #148 from orbea/strict-prototypes

Fix -Werror=strict-prototypes

2 years agoFix -Wmain-return-type clang warnings in configure
orbea [Mon, 10 Oct 2022 19:50:00 +0000 (12:50 -0700)]
Fix -Wmain-return-type clang warnings in configure

2 years agoFix -Werror=strict-prototypes
orbea [Mon, 10 Oct 2022 18:29:56 +0000 (11:29 -0700)]
Fix -Werror=strict-prototypes

This will be required for upcoming gcc and clang versions.

Reference: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240

2 years agoMerge pull request #133 from orbea/doc
notaz [Sat, 22 Jan 2022 20:55:02 +0000 (22:55 +0200)]
Merge pull request #133 from orbea/doc

Add missing licenses

2 years agofame: Add html file with terms of use
orbea [Sat, 22 Jan 2022 02:04:47 +0000 (18:04 -0800)]
fame: Add html file with terms of use

Source:

http://www.emu-france.com/emulateurs/7-processeurs/82-680x0/2311-fame/

Fixes https://github.com/notaz/picodrive/issues/132

2 years agocz80: Add missing readme.txt with license information
orbea [Sat, 22 Jan 2022 02:04:01 +0000 (18:04 -0800)]
cz80: Add missing readme.txt with license information

Source:

https://github.com/RetroPie/pifba/blob/5edfa0d54303882eb72a4c13a22b369d61fde3a6/cpu/cz80/readme.txt

4 years agoadd a hack for Decap Attack
notaz [Tue, 13 Oct 2020 20:19:47 +0000 (23:19 +0300)]
add a hack for Decap Attack

Should delay the pull-up affect instead, but probably nothing needs
this whole thing anyway.

4 years agoMerge pull request #106 from dinkc64/master
notaz [Sat, 14 Mar 2020 18:29:22 +0000 (20:29 +0200)]
Merge pull request #106 from dinkc64/master

draw.c, DrawLayer(): impl. proper linescroll, fixes issue #56

4 years agodraw.c, DrawLayer(): impl. proper linescroll, fixes issue #56
dinkc64 [Fri, 13 Mar 2020 23:26:09 +0000 (19:26 -0400)]
draw.c, DrawLayer(): impl. proper linescroll, fixes issue #56

4 years agodeal with some gcc7+ warnings
notaz [Sat, 7 Dec 2019 19:40:24 +0000 (21:40 +0200)]
deal with some gcc7+ warnings

5 years agoMerge pull request #101 from ccawley2011/evdev
notaz [Sat, 19 Oct 2019 20:15:44 +0000 (23:15 +0300)]
Merge pull request #101 from ccawley2011/evdev

Only build evdev code on GP2X and Pandora (it's only used by them).

5 years agoRemove unused header
Cameron Cawley [Sat, 19 Oct 2019 16:07:12 +0000 (17:07 +0100)]
Remove unused header

5 years agoOnly build evdev code on GP2X and Pandora
Cameron Cawley [Sat, 19 Oct 2019 16:06:52 +0000 (17:06 +0100)]
Only build evdev code on GP2X and Pandora

5 years agorelease 1.93 v1.93
notaz [Thu, 24 Jan 2019 23:31:56 +0000 (01:31 +0200)]
release 1.93

just because orbea wants a release tarball

6 years agoMerge pull request #85 from orbea/git
notaz [Thu, 5 Apr 2018 20:58:22 +0000 (23:58 +0300)]
Merge pull request #85 from orbea/git

libretro: Allow setting GIT_VERSION.

6 years agoMerge pull request #83 from orbea/debug
notaz [Thu, 5 Apr 2018 20:57:30 +0000 (23:57 +0300)]
Merge pull request #83 from orbea/debug

Makefile: Update one more DEBUG conditional

6 years agolibretro: Allow setting GIT_VERSION.
orbea [Tue, 3 Apr 2018 17:41:26 +0000 (10:41 -0700)]
libretro: Allow setting GIT_VERSION.

6 years agoMakefile: Update one more DEBUG conditional
orbea [Mon, 2 Apr 2018 23:18:52 +0000 (16:18 -0700)]
Makefile: Update one more DEBUG conditional

6 years agoMakefile: Build with optimizations if DEBUG=0
orbea [Mon, 2 Apr 2018 02:43:22 +0000 (19:43 -0700)]
Makefile: Build with optimizations if DEBUG=0

6 years agoctr/3ds: attempt to improve cache flushing
notaz [Wed, 31 Jan 2018 21:44:45 +0000 (23:44 +0200)]
ctr/3ds: attempt to improve cache flushing

6 years agofix some issues with menu bg
notaz [Sun, 28 Jan 2018 17:59:58 +0000 (19:59 +0200)]
fix some issues with menu bg

6 years agofix a corner case with h-int
notaz [Sun, 28 Jan 2018 17:13:01 +0000 (19:13 +0200)]
fix a corner case with h-int

6 years agofix DrawSpritesHiAS
notaz [Sat, 27 Jan 2018 21:46:37 +0000 (23:46 +0200)]
fix DrawSpritesHiAS

6 years agoadd a header fixup
notaz [Sat, 27 Jan 2018 18:03:13 +0000 (20:03 +0200)]
add a header fixup

6 years agosms: improve irq handling
notaz [Sat, 27 Jan 2018 17:41:57 +0000 (19:41 +0200)]
sms: improve irq handling

6 years ago32x: implement standard/ssf2 mapper, part 2
notaz [Tue, 23 Jan 2018 00:39:01 +0000 (02:39 +0200)]
32x: implement standard/ssf2 mapper, part 2

Turns out wasn't actually hooked in.

6 years agodon't spam DMA message
notaz [Sun, 21 Jan 2018 17:03:51 +0000 (19:03 +0200)]
don't spam DMA message

VR US triggers this

6 years ago32x: implement standard/ssf2 mapper
notaz [Sun, 21 Jan 2018 16:55:38 +0000 (18:55 +0200)]
32x: implement standard/ssf2 mapper

6 years agodrc: support ms ABI
notaz [Sat, 6 Jan 2018 23:20:00 +0000 (01:20 +0200)]
drc: support ms ABI

6 years agoimprove 64bit portability
notaz [Sat, 6 Jan 2018 19:29:59 +0000 (21:29 +0200)]
improve 64bit portability

for win64 mostly

6 years agolibretro: pass required arg to VirtualProtect
notaz [Wed, 3 Jan 2018 01:00:32 +0000 (03:00 +0200)]
libretro: pass required arg to VirtualProtect

6 years agoadd a pitch variable
notaz [Sat, 5 Apr 2014 19:08:06 +0000 (22:08 +0300)]
add a pitch variable

32x is still broken

6 years agoMerge pull request #72 from Chips-fr/master
notaz [Wed, 27 Dec 2017 17:53:32 +0000 (19:53 +0200)]
Merge pull request #72 from Chips-fr/master

Support latest raspberry GLES library name

6 years agoSupport latest raspberry GLES library name
Chips-fr [Mon, 25 Dec 2017 16:38:36 +0000 (17:38 +0100)]
Support latest raspberry GLES library name

6 years agodrc: revive x86 dynarec, support x86-64
notaz [Mon, 11 Dec 2017 00:53:17 +0000 (02:53 +0200)]
drc: revive x86 dynarec, support x86-64

6 years agodon't do idle log - it's not useful
notaz [Sun, 3 Dec 2017 16:23:27 +0000 (18:23 +0200)]
don't do idle log - it's not useful

6 years agodrc: arm: use movw/movt
notaz [Sun, 3 Dec 2017 15:41:30 +0000 (17:41 +0200)]
drc: arm: use movw/movt

it's about time...

6 years agodrc: do lit check before size_nolit is cleared
notaz [Sun, 3 Dec 2017 15:39:59 +0000 (17:39 +0200)]
drc: do lit check before size_nolit is cleared

6 years agodrc: ignore cache-through on smc check
notaz [Sun, 3 Dec 2017 01:40:13 +0000 (03:40 +0200)]
drc: ignore cache-through on smc check

6 years agodrc: rm overlapped block entry points
notaz [Sat, 2 Dec 2017 21:55:27 +0000 (23:55 +0200)]
drc: rm overlapped block entry points

otherwise we get duplicates in hash tables

6 years agostop IdleDet from affecting save states
notaz [Fri, 1 Dec 2017 22:10:08 +0000 (00:10 +0200)]
stop IdleDet from affecting save states

6 years ago32x: improve 68k bios handling
notaz [Wed, 29 Nov 2017 00:31:19 +0000 (02:31 +0200)]
32x: improve 68k bios handling

6 years ago32x: add other timing hacks
notaz [Tue, 28 Nov 2017 00:04:08 +0000 (02:04 +0200)]
32x: add other timing hacks

For sdram sync, like NJTE.
Still bad, but don't have a better solution for now (or ever?).

6 years ago32x: remove some comm hacks
notaz [Sun, 26 Nov 2017 18:19:40 +0000 (20:19 +0200)]
32x: remove some comm hacks

they can (and do) easily break things

7 years agomove more globals to PicoInterface
notaz [Sat, 21 Oct 2017 23:04:26 +0000 (02:04 +0300)]
move more globals to PicoInterface

similar reasons as before

7 years agosms: do psg like md does
notaz [Sat, 21 Oct 2017 21:39:43 +0000 (00:39 +0300)]
sms: do psg like md does

7 years agohandle 'bad' dma better
notaz [Fri, 20 Oct 2017 21:02:38 +0000 (00:02 +0300)]
handle 'bad' dma better

7 years agopandora: mark prerelease versions
notaz [Thu, 19 Oct 2017 21:57:34 +0000 (00:57 +0300)]
pandora: mark prerelease versions

so they can live along released ones

7 years agoadd 68k overclocking support
notaz [Thu, 19 Oct 2017 21:41:12 +0000 (00:41 +0300)]
add 68k overclocking support

7 years agorearrange globals
notaz [Wed, 18 Oct 2017 23:38:20 +0000 (02:38 +0300)]
rearrange globals

scripted find/replace
gives slightly better code on ARM, less unnecessary asm,
~400 bytes saved

7 years agopandora: fix build
notaz [Wed, 18 Oct 2017 23:44:56 +0000 (02:44 +0300)]
pandora: fix build

Fixes: df9251536de "libretro: satisfy vita's dynarec needs in a cleaner way"

7 years agosms: more md-consistent drawing
notaz [Mon, 16 Oct 2017 22:01:26 +0000 (01:01 +0300)]
sms: more md-consistent drawing

7 years agosms: improve sr a bit
notaz [Mon, 16 Oct 2017 21:53:35 +0000 (00:53 +0300)]
sms: improve sr a bit

7 years agofamec: eliminate global context ptr
notaz [Sat, 14 Oct 2017 22:15:00 +0000 (01:15 +0300)]
famec: eliminate global context ptr

saves like 25-35K of .text

current compile resource usage on i5-6600K:
            cpu  mem
gcc 5.4.0:  17.0 1.1g
clang 3.8:  1686 2.3g

FAMEC_NO_GOTOS:
gcc 5.4.0:   8.4 0.4g
clang 3.8:  20.0 0.15g
vs2008/O2: ~1800 ?
vs2008/O1:  ~720 ?

7 years agofamec: split fm68k_emulate
notaz [Sat, 14 Oct 2017 21:45:55 +0000 (00:45 +0300)]
famec: split fm68k_emulate

in FAMEC_NO_GOTOS mode at least

7 years agoget rid of custom memcpy funcs
notaz [Sat, 14 Oct 2017 18:10:25 +0000 (21:10 +0300)]
get rid of custom memcpy funcs

not used for anything important, just a maintenance burden

7 years agofix clang build
notaz [Fri, 13 Oct 2017 23:13:40 +0000 (02:13 +0300)]
fix clang build

yet another workaround for it...

7 years agolet it build on msvc
notaz [Sat, 14 Oct 2017 18:28:24 +0000 (21:28 +0300)]
let it build on msvc

supposedly for the original XBox?

7 years agodrop draw_amips from libretro too
notaz [Fri, 13 Oct 2017 20:53:15 +0000 (23:53 +0300)]
drop draw_amips from libretro too

There's no proof it's any faster, it's only a maintenance burden.
See also 4aedc593008ca6e9230b700cec6483c3ecd73bef .

7 years agodrop some unnecessary inlines
notaz [Fri, 13 Oct 2017 20:49:13 +0000 (23:49 +0300)]
drop some unnecessary inlines

apparently somebody compiles with msvc?

7 years agoandroid: make armeabi buildable
notaz [Fri, 13 Oct 2017 20:38:09 +0000 (23:38 +0300)]
android: make armeabi buildable

7 years agolibretro: satisfy vita's dynarec needs in a cleaner way
notaz [Fri, 13 Oct 2017 20:36:51 +0000 (23:36 +0300)]
libretro: satisfy vita's dynarec needs in a cleaner way

7 years agolibretro: update for core changes
notaz [Fri, 13 Oct 2017 20:36:36 +0000 (23:36 +0300)]
libretro: update for core changes

also drops the broken "fps override" feature

7 years agolibretro: drop sram clear
notaz [Fri, 13 Oct 2017 20:31:22 +0000 (23:31 +0300)]
libretro: drop sram clear

It's done by the core. If the core is missing something, core itself
needs to be fixed.

7 years agosome portability cleanups
notaz [Fri, 13 Oct 2017 20:30:44 +0000 (23:30 +0300)]
some portability cleanups

7 years agore-import all libretro code from it's fork
notaz [Thu, 12 Oct 2017 21:39:51 +0000 (00:39 +0300)]
re-import all libretro code from it's fork

Verbatim copy from https://github.com/libretro/picodrive/ commit
9ae88ef15ff00cacc3877c7ecc13b0092bab50b8 , so look there for the history
of libretro specific changes. Unfortunately there is too much noise and
divergence to merge this in a proper way.

7 years agoFix remaining bugs and fix indentation
iLag [Sun, 26 Mar 2017 03:28:08 +0000 (20:28 -0700)]
Fix remaining bugs and fix indentation

7 years agoRestore support for short GG cheats.
iLag [Sun, 26 Mar 2017 02:35:36 +0000 (19:35 -0700)]
Restore support for short GG cheats.

7 years agoAdd support for Master System cheats.
iLag [Sun, 26 Mar 2017 02:29:00 +0000 (19:29 -0700)]
Add support for Master System cheats.

notaz: drop wrong code (PicoWrite8_z80 are 68k functions, not for sms)

7 years agoAdd support for single-line cheats and PAR codes.
iLag [Wed, 22 Mar 2017 21:19:35 +0000 (14:19 -0700)]
Add support for single-line cheats and PAR codes.

notaz: include required header

7 years agoFix the lprintf method (libretro side)
David [Tue, 24 Nov 2015 12:49:31 +0000 (13:49 +0100)]
Fix the lprintf method (libretro side)

The lprintf method used the format string instead of the buffer build
from va_list

7 years agobuild: some clean ups
notaz [Thu, 12 Oct 2017 21:40:45 +0000 (00:40 +0300)]
build: some clean ups

7 years agobuild: drop function-sections
notaz [Thu, 12 Oct 2017 21:40:30 +0000 (00:40 +0300)]
build: drop function-sections

this has provoked people to do some horrible ifdeffery in libretro fork,
while the benefit is minimal, if any.

7 years agorelease 1.92 v1.92
notaz [Wed, 4 Oct 2017 20:01:56 +0000 (23:01 +0300)]
release 1.92

7 years agofix cell scroll drawing
notaz [Sun, 8 Oct 2017 19:33:04 +0000 (22:33 +0300)]
fix cell scroll drawing

7 years agofame: fix roxr
notaz [Mon, 9 Oct 2017 23:00:28 +0000 (02:00 +0300)]
fame: fix roxr

also take interrupts on exit, like other cores do

7 years agorework sr
notaz [Mon, 9 Oct 2017 22:13:48 +0000 (01:13 +0300)]
rework sr

note to self:

h32 0x10A .. 0x127 0x1D2 .. 0x1FF 0x000 .. 0x109
pclk      30      |      46      |      266      = 342
hbset       0x126        ...       0x009
pclk   29  |      1   +  46    +  10    |  256
mclk   290 |           570              |  2560  = 3420
68kclk 41.4            81.4               365.7 ~= 488.5

h40 0x14A .. 0x16C 0x1C9 .. 0x1FF 0x000 .. 0x149
pclk      35      |      55      |      330      = 420
hbset       0x166        ...       0x00A
pclk   28  |      7   +  55    +  11    |  319
mclk  28*8 | 7*8   4*8+314+10+(18+11)*8 | 319*8  = 3420
68kclk  32             92                 364.5 ~= 488.5

7 years agosome irq hacks
notaz [Fri, 6 Oct 2017 21:08:05 +0000 (00:08 +0300)]
some irq hacks

notes to self (derived from Nemesis):

H32: 0x10A .. 0x127 0x1D2 .. 0x1FF 0x000 0x001
pclk       30             46          1 |0x109
mclk                 770                | 2650   = 3420
68kclk              110                   378.5 ~= 488.5

H40: 0x14A .. 0x16C 0x1C9 .. 0x1FF 0x000 0x001
pclk       35             55          1
mclk     35*8       4*8+314+10+19*8     |0x149*8
                  788                   | 2632   = 3420
68kclk           112.5                    376   ~= 488.5

7 years agoupdate libpicofe
notaz [Thu, 5 Oct 2017 22:26:12 +0000 (01:26 +0300)]
update libpicofe

7 years agofix t574 reset
notaz [Thu, 5 Oct 2017 22:31:11 +0000 (01:31 +0300)]
fix t574 reset

7 years agosplit memories away from Pico
notaz [Wed, 4 Oct 2017 23:06:21 +0000 (02:06 +0300)]
split memories away from Pico

saves ~3k of code on ARM because Pico no longer crosses ldr limit

7 years agodrop legacy save support
notaz [Thu, 5 Oct 2017 22:34:24 +0000 (01:34 +0300)]
drop legacy save support

the format has been changed like 10 years ago

7 years agodrop unmaintained mips code
notaz [Wed, 4 Oct 2017 20:48:57 +0000 (23:48 +0300)]
drop unmaintained mips code

can always be brought back if anyone has proof it's faster

7 years agovdp timing hacks
notaz [Tue, 3 Oct 2017 23:58:48 +0000 (02:58 +0300)]
vdp timing hacks

7 years agoadjust z80 timing a bit
notaz [Tue, 3 Oct 2017 23:23:27 +0000 (02:23 +0300)]
adjust z80 timing a bit

7 years agofix various logging issues
notaz [Tue, 3 Oct 2017 20:02:47 +0000 (23:02 +0300)]
fix various logging issues

7 years agomenu: add reset hotkey
notaz [Tue, 3 Oct 2017 20:00:39 +0000 (23:00 +0300)]
menu: add reset hotkey

7 years agosome more risky timing changes
notaz [Mon, 2 Oct 2017 20:38:12 +0000 (23:38 +0300)]
some more risky timing changes

But should be closer to the real thing.
Let's see what this will break...

7 years agofix underalloc
notaz [Sat, 30 Sep 2017 23:42:24 +0000 (02:42 +0300)]
fix underalloc

7 years agosome poor timing improvement attempts
notaz [Sat, 30 Sep 2017 22:29:08 +0000 (01:29 +0300)]
some poor timing improvement attempts

7 years agoslightly better z80 vdp reads
notaz [Sat, 30 Sep 2017 21:59:44 +0000 (00:59 +0300)]
slightly better z80 vdp reads

7 years agoimprove fast forward for cd
notaz [Sat, 30 Sep 2017 21:03:54 +0000 (00:03 +0300)]
improve fast forward for cd

still broken, but a little bit better

7 years agohandle frequent psg updates
notaz [Sat, 30 Sep 2017 19:55:57 +0000 (22:55 +0300)]
handle frequent psg updates

7 years agosn76496: simplify writes
notaz [Sat, 30 Sep 2017 15:14:20 +0000 (18:14 +0300)]
sn76496: simplify writes

7 years agoclean up dac code a bit
notaz [Fri, 29 Sep 2017 23:23:13 +0000 (02:23 +0300)]
clean up dac code a bit

7 years agostate: setup banks before CPUs on load
notaz [Fri, 29 Sep 2017 21:17:04 +0000 (00:17 +0300)]
state: setup banks before CPUs on load

7 years agosimple ym2612 fixes
notaz [Fri, 6 Oct 2017 22:36:22 +0000 (01:36 +0300)]
simple ym2612 fixes

7 years agofix ym2612 asm, rework EG
notaz [Fri, 29 Sep 2017 21:19:55 +0000 (00:19 +0300)]
fix ym2612 asm, rework EG

this should be split, but I'm lazy
EG saves ~900 bytes