Commit Graph

86 Commits

Author SHA1 Message Date
paulb-nl
4f937979ec Add option for extra sprites
Maximum of 6 extra sprites per line
Extra sprites are fetched during mode2 to not break mode3 timing
2025-06-21 18:32:00 +02:00
paulb-nl
d11c2bdd3b OAM: Change data bus to 16bit
-Add shared buffers for X/Y and Tile index/attributes
-X/Y buffers during mode2 are not updated when OAM dma is active
(Needed for strikethrough.gb test glitch)
2025-06-21 16:08:34 +02:00
paulb-nl
dbe7e7ef4a Improve GBC color correction
Color LUT for mix of 2 colors with 2 stage gamma
2025-06-21 16:02:29 +02:00
paulb-nl
d001d4350b GBC bootrom is also disabled with bit 0 only 2025-06-21 15:45:56 +02:00
paulb-nl
515d188ce8 HDMA: transfer stops only if target address overflows at $FFFF
Fixes hang in F1 Championship Season 2000
2025-06-21 15:38:39 +02:00
paulb-nl
beacf008b3 Add option to remove audio pops
Some audio can be inaccurate with this option enabled.
2024-09-16 15:59:30 +02:00
paulb-nl
02707cd797 Fix noise channel pitch
`noi_fcnt` was off by one
2024-09-16 15:51:52 +02:00
paulb-nl
44b75407f9 Updates from main branch
Video: Background fetching changes for accurate Window glitches
GBC: WRAM bank should not read 1 when set to 0.
Fix Rom mask for non power of 2 sizes (GBVideoPlayer)
2024-06-16 17:10:50 +02:00
paulb-nl
95916bcf5d Update gbc_snd.vhd 2024-06-16 17:04:52 +02:00
paulb-nl
e387e70ef2 Updates from main branch
RTC fixes
Implement KEY0 and OPRI registers
HDMA fixes
Megaduck audio fixes
Bootrom updates (GBA/Fastboot)
2024-06-16 15:59:08 +02:00
paulb-nl
96dc2862fc Add Wisdom Tree / Mani 161 mappers & mapper selection. 2022-08-06 22:23:34 +02:00
paulb-nl
e140e715d5 Updates from main branch
* GBA mode
* Megaduck
* Rumble
* Window start fixes (Ant Soldiers, Mealybug tests)
* Custom boot roms
2022-08-06 21:32:36 +02:00
paulb-nl
4bfe4583cd Fixes for separate WRAM bus on GBC (Aladdin) 2021-11-21 19:20:18 +01:00
paulb-nl
48e55dc12c MBC5: RAM enable is 8 bits 2021-11-07 19:00:18 +01:00
paulb-nl
4ce2e405a1 Rework cartridge bus & add open bus behavior
Fix freezes in Tokyo Disneyland - Fantasy Tour (Minnie's house) &
Daiku no Gen-san - Kachikachi no Tonkachi ga Kachi (Stage 1-4)
2021-11-07 18:41:52 +01:00
paulb-nl
731c4759dc 2p Sachen & Rocket mappers (#180)
* Add Rocket mapper

* Bootrom: Adjust Logo write to VRAM

Sachen verifies part of the logo in VRAM

* Add Sachen mapper
2021-10-07 13:08:29 +08:00
Robert Peip
99ca7c01d6 fixed scandoubler(analog out?)
added seperation line
updated readme
2021-07-04 07:42:13 +02:00
Robert Peip
a98d46b7c4 all changes 2021-06-30 10:17:07 +02:00
paulb-nl
bd97ea80ef Add MBC6 & HuC3 mappers (#170) 2021-06-12 05:54:57 +08:00
paulb-nl
105c2c181f Add TAMA & MMM01 mappers 2021-06-06 20:57:16 +02:00
Alexey Melnikov
93e26976fd Merge pull request #167 from paulb-nl/video
Option for wider analog video, Super GameBoy+GBC
2021-05-29 18:02:16 +08:00
paulb-nl
bc82226ff4 Add option for Super GameBoy+GBC 2021-05-28 13:07:43 +02:00
Nabil BENDAFI
c9187f3fa9 docs: fix DMA Transfert Mode (#166) 2021-05-21 22:10:13 +08:00
paulb-nl
c2f29236f5 Add option for wider analog video 2021-05-20 22:00:02 +02:00
paulb-nl
5964de4f2e SGB: Fix border tiles with tile number >= 256 (Namco Gallery 3) (#160) 2021-04-23 17:15:40 +08:00
RobertPeip
bc230af7c0 add missing savestate_ui file (#157) 2021-04-17 18:38:22 +08:00
Alexey Melnikov
5718490bfe Merge pull request #156 from paulb-nl/rtc
Add MBC30, pass test mbc3_rtc_prelim
2021-04-17 06:24:38 +08:00
paulb-nl
08e8724e63 Add MBC30 2021-04-16 19:22:47 +02:00
Robert Peip
cc8e809cfd new multislot savestate handling with gamepad support 2021-04-16 08:45:26 +02:00
paulb-nl
b6be4f59e7 MBC3: pass test mbc3_rtc_prelim 2021-04-12 23:37:20 +02:00
paulb-nl
5824708107 PPU: adjust Vblank interrupt (Fix Altered Space glitches on DMG) 2021-04-11 15:53:21 +02:00
paulb-nl
611a58dcd2 CPU: Write on cycle T2&T3. (Fix Conker Pocket Tales glitches) 2021-04-11 15:50:47 +02:00
paulb-nl
61758b8ed3 Add MBC7 mapper 2021-04-03 21:32:23 +02:00
paulb-nl
4e4261d59e Add HuC1 & Game Boy Camera mappers 2021-03-31 15:28:51 +02:00
paulb-nl
9bd086ffcd Mapper cleanup 2021-03-31 12:31:13 +02:00
paulb-nl
1bc66377d3 SGB: Add option to load SGB border 2021-03-27 14:16:21 +01:00
paulb-nl
34cdb50911 PPU: Timing fixes to pass Mooneye/Wilbertpol PPU tests 2021-03-16 13:23:23 +01:00
paulb-nl
f62e031f56 CPU: Change Interrupt/Halt behavior
- Run NOP instead of instruction if an Interrupt is asserted before
fetching the opcode.
- Start Interrupt at the end of a single M-Cycle instruction and not
Halted.
- DMG: Exit Halt if Interrupt is asserted at the beginning of the
M-Cycle (GBC: At the end of the M-Cycle).

Starting the Interrupt takes 4 M-Cycles. It can take an extra M-Cycle
depending on the above conditions.
2021-03-16 13:20:58 +01:00
paulb-nl
2ce35cccd5 CPU: Read on TCycle 3 instead of 2 2021-03-16 13:20:57 +01:00
RobertPeip
b5e8f6e117 fix all hwio registers and readback for cgb, some for dmg (#142)
* fix all hwio registers and readback for cgb, some for dmg

* add joypad register initial values for SGB

* add sameboy SGB Bootrom to be loaded when SGB is selected

* (from paulb-nl)
SGB: Fix for SGB bios unused commands
savestate/reset: corrected startup values for Video3 group
2021-02-02 23:12:40 +08:00
Robert Peip
f702d5486b fix MBC bank select and ram write disable, fix fastforward with OAM DMA 2021-01-28 16:12:34 +01:00
RobertPeip
18f946b01e fix timer edge cases, added automatic regression test framework for mooneye tests (#136) 2021-01-28 02:48:08 +08:00
Robert Peip
6d941d76af add option for raw colors 2021-01-07 23:35:24 +01:00
Alexey Melnikov
0c1cf87cec Merge pull request #128 from paulb-nl/stat_irq
STAT IRQ bug, fine X scroll, IRQ edge case
2021-01-07 04:29:50 +08:00
paulb-nl
5025b66c28 Fix IRQ acknowledge edge case
The wrong IRQ could be acknowledged if a higher priority IRQ was
asserted at the second cycle.
2021-01-06 11:56:34 +01:00
paulb-nl
0355ecb458 STAT IRQ bug and fine X scroll improvement 2021-01-06 11:54:48 +01:00
RobertPeip
31563c2ef6 improved rewind capture performance (#127)
fixed random fastforward crash
fixed fastforward Video glitches(HDMA)
added fastforward toggle (short button press)
added savestate OSD entry and multiple slots using keyboard(F1-F4)
add MBC detection and address translation to simulation
2021-01-06 15:33:24 +08:00
RobertPeip
ca8b55dfb3 added savestates and rewind feature (#123) 2020-12-29 23:38:30 +08:00
paulb-nl
c26731fcab Interrupt fixes (Pinball Fantasies)
- CPU: Acknowledge IRQ between high & low byte stack push
  (ie_push, Pinball Fantasies)

- CPU: Remove delay from INT_n signal, tweak STAT IRQs.
  (hblank_ly_scx_timing, intr_2_0)
2020-12-22 13:23:42 +08:00
RobertPeip
65d6e59cc2 redone fastforward and pause handling to fix sdram access and refresh bugs and increase fastforward speed, some fixes to simulation 2020-12-19 19:28:19 +08:00