469 Commits

Author SHA1 Message Date
Your Name
8beba87e21 - Updated initial WAV RAM values to match SGB2. 2020-07-04 07:48:41 -07:00
Your Name
3e4995c748 - Fixed blank screen problems by reverting prior start on V-Blank
change.
2020-07-03 13:22:02 -07:00
Your Name
bf23b26f4a - Fixed stack overflows due to delayed interrupts by masking OAM STAT
interrupt when sprites are disabled.
- Updated STAT interrupt code to make match/oam coincident.
- Updated initial state of just enabled frame to V-Blank.
2020-07-03 12:00:36 -07:00
Your Name
54efd3958d - Added MBC1M support. The detection is a hack. It's possible a MBC1
cart is incorrectly detected as MBC1M.
2020-07-03 05:11:48 -07:00
Your Name
9f85a32cbb - Fixed popping noises and some other APU bugs by rewriting output and
handling unsigned->signed conversion better.  Hopefully this is better
than before.
- Updated wave sample buffer to only update on timer expiration.
- Updated audio output volume scaling to a closer but still crude
approximation of the original SGB2.
2020-07-02 19:21:02 -07:00
Your Name
f491aa640a - Added square channel register write side effects involving duty
position.  Sometimes used to creating ringing in output.
- Changed square channel duty cycle relative phase and inversion but may
not matter.
2020-07-02 08:12:13 -07:00
Your Name
55f409c068 - Added some of the APU envelope register write volume corner cases. 2020-07-01 17:30:57 -07:00
Your Name
b2e6464ca0 - Fixed RETI setting of IME by adding bypass. Exposes bugs in some
games.
- Changed PPU pipeline to remove DRN wait.
- Changed interrupts to clean up code a bit.
2020-07-01 07:40:07 -07:00
Your Name
fdebeee952 - Added serial link transfer interrupt. 2020-06-28 15:55:51 -07:00
furious
6f32044dc6 Merge remote-tracking branch 'redacted173/sgb' into feature/sgb 2020-06-28 17:33:07 -03:00
Your Name
b3b9177e20 - Changed MCU bus availability to add more clocks. Speeds up save states a little bit.
- Fixed save state audio glitches by forcing APU writes to disable channels during HLT.  There is a tradeoff between forcing all silent channels vs enabling channels with incorrect state.
- Fixed some audio issues with temporary output of 0->signed conversion.  Left wave channel mostly as-is to avoid biggest source of clicking.
- Changed square duty to be be relative shifted versions.
2020-06-28 09:48:09 -07:00
Your Name
7c795212dd - Fixed window overlay to be per-pixel rather than per-tile. Addresses window graphics problems with CAW bosses and likely many other games.
- Fixed several dynamic range and popping/clicking APU bugs.
- Changed in-game hooks to be fpga-only.  Hook is no longer run on SNES NMI or IRQ.
- Added save states (Save=X+R, Load=X+L) for development.  To enable, modify sd2snes/config.yml sgb_* settings after booting new firmware.  In-game hooks and buttons must be enabled for them to work.  One state is recorded in the SRM file.  Does not work with MSU audio on SD2SNES classic.
- Changed SD2SNES classic to only load MSU bit file for enabled ROMs to make development easier.  The MSU bit file may lag in development.
2020-06-27 12:22:18 -07:00
RedGuyyyy
71e7ec5409 Fixed SA1 SBC BCD operation. (#131)
No known problem in production games, but may fix some rom hacks.
2019-10-26 01:57:48 +02:00
ikari
643c46735e Merge branch 'savestate' of https://github.com/furious/sd2snes into furious-savestate 2019-10-13 02:37:03 +02:00
ikari
c8fa056649 SmartXPlorer hostlistfile.txt generation handled by Makefile 2019-07-15 16:38:29 +02:00
RedGuyyyy
a6588972e3 Merge remote-tracking branch 'origin/develop' into usb
# Conflicts:
#	verilog/sd2snes_base/main.v
#	verilog/sd2snes_mini/sd2snes_mini.xise
2019-07-05 12:57:06 -07:00
ikari
fae5b78f5d Add scripts to run Xilinx processes and get options from XISE file 2019-07-05 14:13:18 +02:00
ikari
e6e89598fb FPGA: update core for new diagnostic firmware (Mk2+Mk3) 2019-07-05 14:03:53 +02:00
ikari
ab41f61374 FPGA: misc cleanup 2019-07-05 14:03:05 +02:00
ikari
899c8139fc FPGA: free some block RAM when using ChipScope 2019-07-05 13:40:22 +02:00
ikari
df72413dcd FPGA: rearrange code to need less `ifdef blocks 2019-07-05 13:33:46 +02:00
ikari
f43b32212b FPGA: fix missing DSPx instantiation for mk3 base config 2019-07-05 13:32:01 +02:00
ikari
a2171fd409 FPGA: separate Makefile process, environment, and core specific config 2019-07-05 13:30:06 +02:00
RedGuyyyy
772fbecd56 Fixed missing DSP chip bug for mk3. Also present in master source code. 2019-07-04 05:23:08 -07:00
RedGuyyyy
572a83e01b Merge https://github.com/mrehkopf/sd2snes into usb
Fixed combo button based reset.
Added usb support for pro.

# Conflicts:
#	src/config
#	verilog/sd2snes_base/ipcore_dir/dac_buf.xco
#	verilog/sd2snes_base/ipcore_dir/msu_databuf.xco
#	verilog/sd2snes_base/ipcore_dir/snescmd_buf.v
#	verilog/sd2snes_base/ipcore_dir/snescmd_buf.xco
#	verilog/sd2snes_base/ipcore_dir/upd77c25_datram.xco
#	verilog/sd2snes_base/ipcore_dir/upd77c25_datrom.xco
#	verilog/sd2snes_base/ipcore_dir/upd77c25_pgmrom.xco
#	verilog/sd2snes_base/main.v
2019-05-23 19:57:42 -07:00
ikari
bd0f454bd3 Some amendments for consistency among Makefiles 2019-05-21 09:35:29 +02:00
Thomas Geiger
0828bca5cf Add binaries to gitignore for tools, u_int fixes, some Makefile optimizations 2019-05-20 15:42:28 +02:00
ikari
a01fb3d6a1 Revise project structure
Makefile based build for FPGA configurations, firmware, SuperCIC,
release packaging. Probably needs more polishing.
2019-05-20 00:33:28 +02:00
RedGuyyyy
7d8c2712c1 Fixed MAP unlock for reads. Gives proper open bus values and supports read unlocking without write unlocking.
Fixed typos in FW with combo version register.
2019-05-18 15:57:42 -07:00
RedGuyyyy
4e516632c0 Changed addressing to support version. lda $002BB0 should open bus to 0. FW writes version.
Fixed hard reset to force romslot 0 when short.
Fixed bug reading ramslot from sram.
2019-05-18 12:04:30 -07:00
RedGuyyyy
782b7fd391 Changed address unlocking functionality.
Added basic CB support.
2019-05-14 07:31:45 -07:00
RedGuyyyy
2eb20bb503 Added dynamic snescmd, $F0-$FF, and $FE8000 read and write protection bits along with address remapping in snescmd address $2BB0. 2019-05-11 17:25:40 -07:00
RedGuyyyy
aabe5c6d0b Added enable qualifiers for OE. Doesn't fix any known bugs, but avoids using invalid addresses. 2019-04-30 14:42:55 -07:00
RedGuyyyy
7b1a706cdb Merge branch 'develop' of https://github.com/mrehkopf/sd2snes into usb
# Conflicts:
#	src/config
#	src/memory.c
#	src/sysinfo.c
#	verilog/sd2snes/ipcore_dir/dac_buf.xco
#	verilog/sd2snes/ipcore_dir/dac_buf.xise
#	verilog/sd2snes/ipcore_dir/msu_databuf.xco
#	verilog/sd2snes/ipcore_dir/msu_databuf.xise
#	verilog/sd2snes/ipcore_dir/snescmd_buf.xco
#	verilog/sd2snes/ipcore_dir/snescmd_buf.xise
#	verilog/sd2snes/ipcore_dir/upd77c25_datram.xco
#	verilog/sd2snes/ipcore_dir/upd77c25_datram.xise
#	verilog/sd2snes/ipcore_dir/upd77c25_datrom.xco
#	verilog/sd2snes/ipcore_dir/upd77c25_datrom.xise
#	verilog/sd2snes/ipcore_dir/upd77c25_pgmrom.xco
#	verilog/sd2snes/ipcore_dir/upd77c25_pgmrom.xise
#	verilog/sd2snes/main.v
2019-04-13 08:54:13 -07:00
ikari
93d23ccee2 Fix a stupid, stupid, stupid copy&paste error corrupting SuperFX saves. 2019-04-07 00:30:36 +02:00
ikari
0890549194 Fix inverted logic for SA1/GSU RAM writes. 🤦‍♂️
This broke SA1+SuperFX in 1.10.2...
2019-04-04 16:23:44 +02:00
ikari
39eb64cf00 formatting 2019-03-26 12:26:50 +01:00
ikari
656fc3a91f S-DD1: avoid memory corruption on SRAM writes
Fixes saving not working in Star Ocean on some occasions
2019-03-26 12:23:24 +01:00
ikari
7123fe9472 update comments 2019-03-26 12:22:05 +01:00
ikari
9d4d669689 Avoid memory corruption on MCU writes
(address invalid before end of write strobe)
2019-03-26 10:29:39 +01:00
ikari
6cccbe9ac7 Update plethora of generated Xilinx files... 2019-02-28 18:52:22 +01:00
ikari
fed4deb098 Add ChipScope debugging to main core
Can be enabled/disabled in config.vh, due to Spartan 3 space constraints
some block RAMs have to be disabled in order to use it...
2019-02-28 16:51:15 +01:00
ikari
43451bf671 Consolidate some inconsistent / scattered verilog 2019-02-28 18:45:23 +01:00
ikari
077692350c S-DD1 support by Magno 2019-02-28 18:41:40 +01:00
ikari
5f39aa75de General cleanup / housekeeping 2019-02-28 18:27:03 +01:00
RedGuyyyy
4c0c9a94c1 Merge branch 'develop' of https://github.com/mrehkopf/sd2snes into usb
# Conflicts:
#	src/cfg.c
#	src/config
#	src/fpga.h
#	src/led.c
#	src/main.c
#	src/memory.c
#	src/msu1.c
#	src/smc.c
#	src/snes.c
#	src/snes.h
#	verilog/sd2snes/main.v
2018-12-15 19:25:14 -08:00
RedGuyyyy
b8874f755b Fixed ingame hook call when $2C00 hook is enabled. Ingame hook will need to be rewritten or the hooks need to be reordered for buttons to work. 2018-12-15 11:18:44 -08:00
ikari
14adc83da9 Correct 1ms idle timeout for GSU 2018-12-08 23:21:06 +01:00
ikari
ee279c448a Cleanup 2018-12-08 23:20:37 +01:00
ikari
a91be50355 Unify address sampling 2018-12-08 23:16:57 +01:00