Commit Graph

100 Commits

Author SHA1 Message Date
gameblabla
5431940365
Fixed PAL specific regressions with overscan.
Also forcing Fantastic Dizzy to run in PAL mode instead
in order to fix graphical issues in the HUD.

This fixes the issues in Fantastic Dizzy.
2019-03-11 23:53:32 +01:00
gameblabla
4b30b6fd32
Fixes for Gauntley display issues.
There were two issues with that game :
1) It tries to display a sprite being overbound.
The simple fix for this is to use an unsigned 8-bits variable rather
than using a signed 32-bits value and checking if it goes overbound.
This simplification fixes the sprite issue in the upper right of the screen
when ingame.

2) It would not scroll the HUD properly.
Not quite sure what's the issue exactly but it seems that
it shouldn't use v_line but line instead when stopping the vscroll.

This fixes the vertical scrolling in Gauntlet.

All of these issues were introduced by ekeeke when he revamped the code
in SMS Plus GX.
2019-03-11 14:53:43 +01:00
gameblabla
ff1201902b
Set VDP Register 1 to 0xE0 after multiple testing.
Sonic's Edusoft relies on this behaviour and it also works properly when that bit is
set to 0xE0.
(All of the known BIOSes set that bit to 0xE0 before booting a cartridge)

Removing said game hack since it is no longer required.
2019-03-09 10:30:22 +01:00
gameblabla
02a6e57e4e
Removing extra externs for CrabEmu's PSG core.
It's already defined so removing those.
2019-03-09 05:19:36 +01:00
gameblabla
7a7c833972
Uncommenting stuff for CrabEmu's PSG emulator.
I hate myself for doing shit like that...
2019-03-09 05:18:15 +01:00
gameblabla
cf55589e88
Nope, it should definitetly be like that. 2019-03-09 03:48:12 +01:00
gameblabla
bcccf6abb9
Add support for unmodified Sonic's Edusoft rom dump without requiring a copy
of the SMS BIOS. It's kind of a hack right now until the proper behaviour
is figured out.
No known SMS emulator (not even MEKA-git nor Genesis Plus GX as of now) implements this corner-case as far as i know.
2019-03-09 03:27:59 +01:00
gameblabla
7be0fe6fce
Update Documentations, TODO and README 2019-03-08 12:32:52 +01:00
gameblabla
2474ca1cec
Sample size for Portaudio should not be set to 0... 2019-03-08 01:34:28 +01:00
gameblabla
9e994187ad
Update RS-97's Makefile for addressing performance issues (including hack)
We should be good now.
2019-03-08 01:31:22 +01:00
gameblabla
e5130e5e9a
Minor fixes for sound output code. 2019-03-08 01:30:09 +01:00
gameblabla
9d0b849937
Use defines for pop/push/wm16/rm16/add16/adc_hl/sbc_hl due to problematic
issues with PAIRs.

Looks like it fixes the weird issues i had in Sonic ?
But they could be unrelated. Doesn't hurt it seems i guess.
2019-03-08 01:28:23 +01:00
gameblabla
4446c28c8f
Update SDL port. Should be good now, hopefully. 2019-03-08 01:27:34 +01:00
gameblabla
e743d58453
Update RS-97 code. Triple buffering does not set VSYNC it seems so
disabling define. Also fix some minor issues.
2019-03-08 01:27:00 +01:00
gameblabla
301b10e2a6
Fixes Colecovision issues, also add support for keypad. (partial support for Consoles) 2019-03-07 20:37:49 +01:00
gameblabla
a4e59726a0
Fixes an oversight in ALSA's code. 2019-03-07 20:30:48 +01:00
gameblabla
7b738d83b2
Fixes issue with sdl_write_buffer return. 2019-03-07 20:30:07 +01:00
gameblabla
1110f1bbd5
Fixes Colecovision support and loading SMS bios.
Really a dumb issue really. This is fixed but it seems that SMS Plus GX
is not that good when it comes to Colecovision emulation.
Maybe i somehow broke it along the way ?
2019-03-07 19:32:17 +01:00
gameblabla
97d473b8d9
Update RS-97 Makefile for better (potential) speed (and removing useless define). 2019-03-07 19:25:29 +01:00
gameblabla
95075a712f
Fixes RS-97 port. Unforunately i had introduced issues without
actually trying those. It is fixed now.
2019-03-07 19:24:34 +01:00
gameblabla
bc8eedf89f
Fix issue with packaging code for RetroFW. 2019-03-07 19:09:07 +01:00
gameblabla
9bbdc89dfc
Add Makefiles for GCW0 and the New bittboy.
Also updating the other Makefiles accordingly.
2019-03-07 19:08:39 +01:00
gameblabla
b9f02b127f
Removing CrabZ80's core. (it was never working and i doubt it would be
accurate anyway.)

Updating the emulator's core code to fix some issues reported by Clang/GCC.
(bios.pages was 8-bits even though cart.pages was 16-bits.
This could cause issues if a game like Bad Apple is played using the bios.)

Removing error.c/error.h, it was never used.
I'm trying to fix the signing/unsigned issues that i had introduced
a while back unfortunately (though the older code still suffered from it
to some code).

Some of it is fixed but not all of it is fixed. Ideally, this should
be switched to using 32-bits ints if possible.
2019-03-07 19:03:53 +01:00
gameblabla
e2cbd65a2a
Removing Crypt related code from the ZIP code (it was never used
and shouldn't be used since it can be easily cracked, making it useless)
and fixing some minor issues.
2019-03-07 19:02:59 +01:00
gameblabla
d7f21a228d
Fixes minor issues in the platform-agnostic code.
Also removing duplicate header.
2019-03-07 19:02:29 +01:00
gameblabla
a4f685c6e5
Fixes minor issues in the sound code. 2019-03-07 19:02:05 +01:00
gameblabla
971624da7a
Fixes minor issues in MAXIM's PSG code. 2019-03-07 19:01:48 +01:00
gameblabla
8c5671ca66
Fixes minor issues in Crabemu's code. 2019-03-07 19:01:29 +01:00
gameblabla
90d5f94d90
Switch from Doubles to floats (should make it faster on embedded hardware)
and fixes code issues reported by Clang/GCC.
2019-03-07 19:00:34 +01:00
gameblabla
9f9c23e599
Update Sound ouput code.
Fixes minor issues but nothing major otherwise.
2019-03-07 18:59:47 +01:00
gameblabla
ceff32140c
Update the ports's specific code.
This fixes some code issues but the normal user should not notice anything.
2019-03-07 18:59:04 +01:00
gameblabla
0c18d2d915
Update EightyOne's core code. 2019-03-07 18:58:11 +01:00
gameblabla
cc098ce026
Switch Z80's core to MAME's z80 version of it.
This finally makes SMS Plus GX fully free software and should allow us in the future
to merge code from MAME.
2019-03-07 18:55:36 +01:00
gameblabla
dd9ca3804a
Disable Triple & Double buffering for the RS-97.
It conflicts with audio playback for now (even though that does not happen on PC).
Hopefully this gets solved in the future.
2019-02-19 18:28:52 +01:00
gameblabla
8a9c66e9bf
Bunch of fixes
One of them is a fix for a really odd bug with the proprietary z80 core :
Pause button would not work.

For some reasons, executing the irq line functions will not work if
put in a function so what i did was a bunch of macros instead.
This now works and reduces the complexity of the code kinda.
(Also inlining)

There's also a fix for the ALSA code. On the bittboy,
it woud sometimes underrun. When it does so, it becomes mute.
Fixed this by handling underruns and removing non blocking.
(Useless anyway here)
2019-02-19 10:38:00 +01:00
gameblabla
6f48b291ff
Fixing OSS sound code and fixing Z80's CPU core for undefined references.
We need to upload the whole buffer because we are directly
writing using write().
2019-02-19 08:15:39 +01:00
gameblabla
b5b274ffac
Huge update to SMS_Plus GX
I will probably regret doing huge commits like this one but
i'm too lazy to make smaller commits out of it so i'll make a
huge changelog instead.

I tried to make it more modular and this is the result of it.
In the Makefiles, you can easily choose the Sound API of your liking
as well as the fine-tuned SDL port you want to use.

Sound output : I finally addressed the SDL port as far sound is concerned,
and the SDL sound api is now supported again and properly this time.
I also added support for ALSA, OSS, libao, Portaudio and Pulseaudio.
Won't do DirectSound and/or WaveOut because fuck Windows :P
(but if you are interested, open a bug report)

Z80 core : When i added back the proprietary z80 core, i added version 3.4,
not the later version 3.9 that was improved by Exophase himself.
This should hopefully address the inaccuracy flaws that the old version had.
My mistake

I did a lot of cleaning too. I removed the old unsupported files
since they are now useless and you are better off using the
newer code instead.
2019-02-19 07:06:06 +01:00
gameblabla
71261fabef
RS-97 : Refined port. Added IPK files to gitignore file. Also editing contributors files to include info on the proprietary z80 core (it's still inside and in use by the RS-97 port) 2019-02-07 06:40:23 +01:00
gameblabla
f713384574
PAP K3S, Bittboy changes 2019-02-02 10:02:11 +01:00
gameblabla
7a2b7ba3d9
Bringing back the proprietary Z80 interpreter. Eighty one is still available but it can't run some games like Dizzy and some SG-1000 games 2018-12-07 12:50:51 +01:00
gameblabla
aac90ffd91
Arcade Mini port, RS-97 refinements 2018-10-19 13:42:32 -04:00
gameblabla
a5a515da4d
Arcade Mini port, fixed some bugs, boosted audio volume 2018-10-12 03:08:32 -04:00
gameblabla
2f062b4810
The buttons were swapped, reswap it again 2018-09-07 17:07:26 -04:00
gameblabla
e414a1c1d5
Fix ZIP support 2018-08-12 19:39:26 -04:00
gameblabla
80aefb9456
Fixes support for 4MB Roms (Bad Apple now works). Switched some more variables to c99 datatypes. I've also added Bad Apple to the ROM database as it requires PAL timings 2018-08-12 07:37:45 -04:00
gameblabla
7b0fc18b6d
Rebasing around SMSPlusGX, switched to new sound cores (from CrabEmu), much improved sound playback 2018-08-11 23:46:21 -04:00
gameblabla
eb56541255
Fixes speed/framerate issues after going back to game 2018-08-03 11:20:03 -04:00
gameblabla
1f4280baf7
Add scaler from Dingux SMS_SDL rzx, fix some other issues 2018-08-01 10:20:41 -04:00
gameblabla
77829902a0
Update RS97 specific code 2018-07-21 22:17:59 -04:00
gameblabla
5d7d0765e1
First commit 2018-07-20 00:55:10 -04:00