Commit graph

71 commits

Author SHA1 Message Date
kub
2fa02d5a63 improved sh2 clock handling, bug fixing + small improvement to drc emitters 2019-07-30 16:34:40 +02:00
kub
78d817c370 arm asm memory access functions for m/s68k 2019-07-30 16:34:40 +02:00
notaz
48c9e01be8 improve 64bit portability
for win64 mostly
2018-01-06 21:29:59 +02:00
notaz
6311a3baf5 move more globals to PicoInterface
similar reasons as before
2017-10-22 02:13:46 +03:00
notaz
93f9619ed8 rearrange globals
scripted find/replace
gives slightly better code on ARM, less unnecessary asm,
~400 bytes saved
2017-10-20 12:21:09 +03:00
notaz
7669591e08 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 ?
2017-10-15 03:26:48 +03:00
notaz
12f23dac6f famec: split fm68k_emulate
in FAMEC_NO_GOTOS mode at least
2017-10-15 00:45:55 +03:00
notaz
ba11a48115 fix clang build
yet another workaround for it...
2017-10-14 21:28:36 +03:00
notaz
24aab4da73 let it build on msvc
supposedly for the original XBox?
2017-10-14 21:28:24 +03:00
notaz
65e4c57baa build: some clean ups 2017-10-14 00:53:09 +03:00
notaz
22814963cc 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
2017-10-14 00:53:08 +03:00
notaz
88fd63ad10 split memories away from Pico
saves ~3k of code on ARM because Pico no longer crosses ldr limit
2017-10-14 00:53:08 +03:00
notaz
e42a47e208 some more risky timing changes
But should be closer to the real thing.
Let's see what this will break...
2017-10-12 02:54:41 +03:00
notaz
c6b118c0ad fame: always update the fetch map
should just get rid of that thing, it's annoying
2017-10-03 00:40:37 +03:00
notaz
34e424aa27 remove dead code 2017-08-06 23:02:28 +03:00
notaz
ea38612fad eliminate texrels (wip) 2017-08-06 18:18:29 +03:00
notaz
c5c5dd7132 cd: fix missed null terminator 2017-08-06 01:48:25 +03:00
notaz
9993e0d6dd fix use of freed mem 2013-10-12 03:22:30 +03:00
notaz
f47d0a2898 remove regs union due to compiler issues
GP2X toolchains are padding the unions no matter what :(
2013-10-12 03:21:41 +03:00
notaz
9770f5316f update gp2x for input changes 2013-10-11 01:08:32 +03:00
notaz
6901d0e45d fix yet another sync issue.. 2013-10-09 02:54:52 +03:00
notaz
7b3ddc11dc cd: hacks.. 2013-10-07 03:41:39 +03:00
notaz
274fcc35aa cd: switch to CD drive emu code from genplus
same license, much cleaner code
2013-10-07 00:11:31 +03:00
notaz
3f23709ef3 cd: switch to CD controller code from genplus
same license, much cleaner code
using own dma code though..
2013-10-07 00:11:31 +03:00
notaz
a6523294e2 cd: fix cycle overflow issue 2013-10-04 23:24:36 +03:00
notaz
99ade2ee2f famec: remove unused dual code 2013-09-24 03:57:43 +03:00
notaz
334d9fb654 cd: fix copy-paste bug, comm issue 2013-09-24 03:57:43 +03:00
notaz
021e47b375 cd: pcm: tune addr reload
fahrenheit..
2013-09-23 21:31:35 +03:00
notaz
f3cb39f29a cd: gfx: reduce LUT size 2013-09-23 02:11:26 +03:00
notaz
a93a80deda cd: integrate new gfx code 2013-09-23 02:11:26 +03:00
notaz
e53f0499fe cd: pull in Genesis-Plus-GX CD gfx code
license is the same, code quality is much better, so why not?
Many thanks to Eke for writing it.
2013-09-23 02:11:26 +03:00
notaz
8e4e84c215 cd: fix yet more desyncs
state load, reset..
2013-09-23 02:11:26 +03:00
notaz
33be04ca5f cd: rewrite pcm 2013-09-23 02:11:26 +03:00
notaz
d0132772f7 cd: better cd change handling, perhaps? 2013-09-18 01:32:09 +03:00
notaz
fa8fb75445 handle 32x+cd 2013-09-16 02:03:29 +03:00
notaz
87650acd75 cd: delay gfx ops again 2013-09-09 03:59:28 +03:00
notaz
ecc8036ee2 handle dbra wait loops, update cyclone 2013-09-09 03:59:16 +03:00
notaz
e71fae1f13 improve cue handling a bit 2013-09-08 20:27:41 +03:00
notaz
c7fd7bb8b7 minor formatting changes 2013-09-06 03:37:05 +03:00
notaz
30e8aac43f cd: tweak the poll code further 2013-09-06 03:37:05 +03:00
notaz
cc5ffc3cbe cd: fix breakage in comm detection 2013-09-03 04:12:40 +03:00
notaz
4fb435550b cd: fix busreq and reset 2013-08-29 03:55:59 +03:00
notaz
59991f1117 cd: some fixes 2013-08-29 03:55:59 +03:00
notaz
ba6e8bfd4b cd: clean up dmna handling, stuff 2013-08-28 03:56:45 +03:00
notaz
89dbbf2b2f rename cd/pico.c -> cd/mcd.c 2013-08-28 02:24:46 +03:00
notaz
08769494e8 cd sync improvements, part2 2013-08-28 02:05:21 +03:00
notaz
bc3c13d329 cd sync improvements 2013-08-28 01:51:29 +03:00
notaz
ae214f1c37 new timing for main and cd 2013-08-28 01:07:26 +03:00
notaz
895d15121b deal with some strict aliasing issues 2013-08-20 03:20:37 +03:00
notaz
9c9cda8c39 get rid of port_config.h 2013-07-28 03:05:10 +03:00