Commit graph

955 commits

Author SHA1 Message Date
notaz
65e4c57baa build: some clean ups 2017-10-14 00:53:09 +03:00
notaz
84162df45c build: drop function-sections
this has provoked people to do some horrible ifdeffery in libretro fork,
while the benefit is minimal, if any.
2017-10-14 00:53:09 +03:00
notaz
0bc8955485 release 1.92 2017-10-14 00:53:09 +03:00
notaz
cf07a88d6e fix cell scroll drawing 2017-10-14 00:53:08 +03:00
notaz
c041308933 fame: fix roxr
also take interrupts on exit, like other cores do
2017-10-14 00:53:08 +03:00
notaz
0e4bde9b2d 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
2017-10-14 00:53:08 +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
e015ad3c1b update libpicofe 2017-10-14 00:53:08 +03:00
notaz
2b46e6c105 fix t574 reset 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
e64886365d drop legacy save support
the format has been changed like 10 years ago
2017-10-14 00:53:08 +03:00
notaz
4aedc59300 drop unmaintained mips code
can always be brought back if anyone has proof it's faster
2017-10-12 02:56:11 +03:00
notaz
334f00e24e vdp timing hacks 2017-10-12 02:56:09 +03:00
notaz
3162a7104c adjust z80 timing a bit 2017-10-12 02:54:46 +03:00
notaz
ebd70cb5d9 fix various logging issues 2017-10-12 02:54:46 +03:00
notaz
9db6a54485 menu: add reset hotkey 2017-10-12 02:54:46 +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
8f80007bcc fix underalloc 2017-10-07 01:36:59 +03:00
notaz
d1b8bcc634 some poor timing improvement attempts 2017-10-07 01:36:59 +03:00
notaz
75b84e4b7c slightly better z80 vdp reads 2017-10-07 01:36:59 +03:00
notaz
12f89605e3 improve fast forward for cd
still broken, but a little bit better
2017-10-07 01:36:59 +03:00
notaz
5d638db094 handle frequent psg updates 2017-10-07 01:36:59 +03:00
notaz
5103774f6d sn76496: simplify writes 2017-10-07 01:36:59 +03:00
notaz
4f2cdbf551 clean up dac code a bit 2017-10-07 01:36:59 +03:00
notaz
e23f4494fb state: setup banks before CPUs on load 2017-10-07 01:36:59 +03:00
notaz
151df6adf9 simple ym2612 fixes 2017-10-07 01:36:59 +03:00
notaz
6d28fb5023 fix ym2612 asm, rework EG
this should be split, but I'm lazy
EG saves ~900 bytes
2017-10-07 01:36:59 +03:00
notaz
e0bcb7a90d some support for vdp debug reg 2017-10-03 00:41:13 +03:00
notaz
1a08dec0e0 simplify tile drawing
cuts away 1126 bytes of code on x86
2017-10-03 00:41:13 +03:00
notaz
eced019098 scroll size improvement 2017-10-03 00:41:13 +03:00
notaz
b71cbbf705 some support for 128k mode 2017-10-03 00:41:10 +03:00
notaz
b0e08dff9a allow limited z80 vdp access
lame and totally wrong timing
2017-10-03 00:40:37 +03:00
notaz
40d22a8e76 recognize the MED ssf2 header 2017-10-03 00:40:37 +03:00
notaz
f508065409 relax the bank check
there is 512K padding on load
2017-10-03 00:40:37 +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
6d8782a1f9 don't miss the sprite check
DrawAllSprites depends on HighLnSpr, so prepare in DrawAllSprites was a
bad idea as lots of things may have changed
2017-10-03 00:40:37 +03:00
notaz
0c7d1ba332 some dma improvements
no idea if anything needs this, shouldn't hurt either
2017-10-03 00:40:21 +03:00
notaz
7feeb88062 make dma honour banking
I was sure I had it done before, turns out not.
2017-09-30 20:53:11 +03:00
notaz
6a47c2d4fb integrate SPI EEPROM 2017-09-30 20:53:11 +03:00
notaz
8c2137f11f import SPI EEPROM from Genesis-Plus-GX
Author: EkeEke
2017-09-30 20:53:11 +03:00
notaz
9725370321 update libpicofe 2017-09-30 20:53:11 +03:00
notaz
1dd0871f20 memory: allow SRAM word writes
Was allowing both low and high byte writes by byte, but not word,
which was stupid.
2017-09-20 23:47:09 +03:00
notaz
2b15cea82e workaround idledet breaking op test 2017-09-20 23:47:09 +03:00
notaz
c6e1e9779a 68k cores: fix bcd instructions
passing flamewing's test now
2017-09-20 23:47:09 +03:00
notaz
f6aa2456a4 famec: adjust divu timing
it's wrong, but I need it to be consistent with other cores now
2017-09-20 23:47:09 +03:00
notaz
5c5d89adbb famec: fix CHK 2017-09-20 23:47:09 +03:00
notaz
8d998330d0 famec: improve trace a bit
or break it (nobody uses it anyway), just want m68k_opcode_sizes to pass
2017-09-20 23:47:09 +03:00
notaz
a39743e315 musashi: don't generate unneeded handlers
at least move16 was incorrectly hooked up
2017-09-20 23:47:09 +03:00
notaz
e01cf375cb musashi: run same amount of cycles as other cores
for consistency
2017-09-13 01:54:10 +03:00
notaz
0104fd873b musashi: fix build on newer gcc 2017-09-13 01:54:10 +03:00