Commit Graph

57 Commits

Author SHA1 Message Date
Fabio Priuli
af7242fcb4 (MESS) famicom: converted the disk system add-on to be a cart
in the softlist. The official syntax to launch disk games is now
  mess famicom -cart disksys -flop gamename
which corresponds to inserting the RAM expansion cart with
connected the disk drive into the cartslot and the desired disk
in the disk drive (exactly like you would have done with the
real thing). In this way, you cannot mount anymore both a cart and 
a disk in the Family Computer (as in a real unit). 
Users that cannot cope with this limitation and/or with the new 
syntax can still use the famitwin driver (which offers both cart and 
disk options) or the newly added driver fds which emulates a
famicom with the expansion always inserted: in both latter cases
the old syntax
  mess famitwin -flop gamename
will launch the game, as previously. [Fabio Priuli]

(MESS) famicom: fixed disk system IRQ latch clear in Kaettekita
Mario Bros. based on investigations by FHorse. [Fabio Priuli]


Out of whatsnew: For the moment I gave up the original plan to 
also modernize the floppy drive and the disk format. If anyone 
wants to look into these, be my guest :-)
2014-09-11 21:01:45 +00:00
Miodrag Milanovic
69e33bcb5e snes and nes slot devices moved into bus folder (nw) 2014-03-10 08:29:46 +00:00
Miodrag Milanovic
64ac8f6776 Huge update, palette is now device (nw)
note: Aaron please give more descriptive text for release log I have no more strength :)
2014-02-27 13:35:15 +00:00
Fabio Priuli
b40ea2dac4 (MESS) nes: properly implemented Aladdin Deck Enhancer as a
pass-through cart. Correct syntax to launch e.g. Dizzy The Adventurer
is now "mess nes -cart ade -cart2 dizzyadv". Moved Aladdin minicart
dumps to a separate softlist (but you can load in -cart2 iNES files from
fullpath, if you like) [Fabio Priuli]
nes_camerica: simplified emulation of the BF9096 board and fixed 
emulation of GoldenFive board (used by the Polish Pegasus 5 in 1
cart). [Fabio Priuli]

out of whatsnew: this commit completes the recent work about emulating properly the 
different pass-through NES/Famicom devices and their corresponding mini-carts...
there should be no more games requiring non-standard syntax to be launched.
2014-02-21 12:09:38 +00:00
Fabio Priuli
ca090b8eec (MESS) nes: added Karaoke Studio inputs, mapped to keys Z, X, C. you can
now select songs and see the animation, even if I would not call playable the
games this way. [Fabio Priuli]

out of whatsnew: the expansion slot is currently hacked around at loading time. 
I will soon implement it as a subslot, but I still need to check a few details first.
2014-02-17 08:28:26 +00:00
Fabio Priuli
ad550cb7b8 (MESS) nes: Properly implemented the Bandai Datach as a passthru cart.
Datach games have now to be loaded with the following commands
"mess nes -cart datach -cart2 gamename" where gamename can be
either a shortname from the datach softlist, or a fullpath to the iNES files
(or to headerless 256k dump of the Datach minicarts). This is accurate
to the hardware, because Datach carts could not be mounted in the main
Famicom cartridge slot. [Fabio Priuli]
2014-02-13 10:16:44 +00:00
Fabio Priuli
63dd624665 (MESS) nes: added support for Multi-Discrete PCB (aka Mapper 28) used
by Action 53 - Function 16 - Volume ONE - "Streemerz Bundle" homebrew
multicart. [Fabio Priuli]
2014-02-06 17:44:32 +00:00
smf-
5f073e11ea moved nes_cart from .h to .c (nw) 2013-12-11 18:16:37 +00:00
Ivan Vangelista
8abb340ad3 Modernize nes_apu device. (nw)
Needs merging with N2A03 cpu core.
2013-11-05 20:38:57 +00:00
Miodrag Milanovic
14629cbcb4 Cleanups and version bump 2013-07-23 07:18:56 +00:00
smf-
076616018a fix subscript compile error (nw) 2013-06-16 10:46:30 +00:00
Fabio Priuli
03b20c9bd8 (MESS) nes.c: added emulation of the FC Family Trainer controller,
to be enabled in Expansion Port through the Driver Configuration 
submenu, and mapped by default like the Power Pad. [Fabio Priuli]
2013-06-16 07:52:52 +00:00
Fabio Priuli
3a6394eb99 (MESS) nes.c: added emulation of the NES Power Pad controller,
to be enabled in Controller Port 2 through the Driver Configuration 
submenu, and mapped by default on TY,FGHJ,BN keys for side A
layout and RTYU,FGHJ,VBNM keys for side B. [Fabio Priuli]
2013-06-15 19:15:14 +00:00
Fabio Priuli
ce7fd3a5d4 (MESS) nes.c: emulated microphone input for old famicom controller,
as detected by games (i.e. it only detects voice/no voice, while the actual 
transmission of your voice to the speakers is not emulated). To use it in 
games expecting you to blow or shout in the mic, select the "Gamepad 
(Older Version)" as "P2 Controller" in the Driver Configuration submenu, 
and press "6" when the game requires it. [Fabio Priuli]

input is recognized both by BASIC (peeking at $4016) and by Raid on Bungeling Bay 2P mode, so I think it's correct...
2013-06-15 18:04:29 +00:00
Fabio Priuli
782df63b1d (MESS) nes.c: improvements and fixes to inputs [Fabio Priuli]
* simplified input reading
* moved most Famicom controllers to the expansion port
(still configurable in the Driver Config menu) because it is
more accurate and because it allows to use both the FC
keyboard and the controllers in BASIC games
* fixed NES paddle emulation which broke some years ago
* added FC paddle emulation, see Arkanoid and Chase HQ
* added Hori Twin Adapter with correct P3 & P4 Famicom 
protocol, see e.g. four players games by Technos Japan


just a cleanup and the whatsnew entry for previous changes...
2013-06-15 16:58:53 +00:00
Fabio Priuli
1ebbe17e7f (MESS) NES input cleanup, part 5 and last (Simplified FC input too, added Arkanoid FC paddle
emulation, fixed P3 & P4 inputs in Jpn games using them). nw.

paddle now works in Chase HQ too (the NES one don't because of the different protocol), 
3rd & 4th players can enter inputs in Technos games, and it turned out that Lightgun was 
actually working (I had probably tested with a non-clean compile), so that at last all selectable 
input devices are finally working :-)
2013-06-15 16:30:05 +00:00
Fabio Priuli
4af3ca4a18 (MESS) fixed P3/P4 NES inputs with simplified code. nw. 2013-06-15 13:40:46 +00:00
Fabio Priuli
5bc13ef7f6 (MESS) NES input cleanup, part 4 (Simplified NES input reads and fixed Arkanoid paddle
emulation which has been broken for long time, probably more than 6 years). nw.
2013-06-15 11:53:20 +00:00
Fabio Priuli
4a673c07aa (MESS) famicom: added support for loading/saving BASIC programs from/to
cassette. wav files supported only. [Fabio Priuli]

(MESS) Added software list for BASIC programs saved to tape [Anna Wu, UglyJoe, Fabio Priuli]

If anyone has more Family BASIC tapes or other cassettes for Famicom games or add-ons (e.g. Bandai Karaoke or Fukutake Study Box) 
or for some chinese clones (ABM, or Bridge, or any other), please contact us.
2013-06-15 08:42:49 +00:00
Fabio Priuli
cdda6a9f58 (MESS) NES input cleanup, part 3 (Moved some FC controllers to the Expansion port, since
they were attached there. This temporarily breaks Lightgun and Multitap in Famicom, but in
reality they were never working in Japanese-exclusive games, only in worldwide games who 
supported NES protocol, so just use the NES driver to have previous functionality until I add
support for the FC protocol. Standard pads, keyboards and mj panel work as before). nw.
2013-06-14 16:11:34 +00:00
Fabio Priuli
3425dc9e4f (MESS) another small cleanup. nw. 2013-06-14 10:54:02 +00:00
Andrew Gardner
6806269f61 A few less anonymous timers in the world. (nw) 2013-05-27 18:46:30 +00:00
Fabio Priuli
3e97968771 (MESS) nes.c: added dump for another interesting fds conversion found in the same chinese pack as the other.
emulation for this work, except for SRAM. nw.
2013-05-18 15:03:35 +00:00
Fabio Priuli
8c510ba369 (MESS) nes.c: added a new fds conversion dump found in a big chinese pack. emulation
is only partial, unfortunately. nw.
2013-05-13 14:29:50 +00:00
Miodrag Milanovic
4bf717996f Cleanups and version bump 2013-04-30 06:36:06 +00:00
Fabio Priuli
2a6e803a9e (MESS) nes.c: Fixed remaining known bootleg PCBs (mostly SMB2 FDS conversions) and
improved FFE mappers (I'd be more interested into actually emulating the copier but this is
all we got at the moment...) . nw.

Also, backing up some wip code for other pcbs that still does not produce any useful result.
2013-04-24 06:36:07 +00:00
Fabio Priuli
c1540080a1 (MESS) nes.c: major refactoring and improvements of NES/FC cart emulation: [Fabio Priuli]
- converted carts, mappers and pcbs to use slot devices
- fixed starting of Famicom, Famicom Twin and Dr. PCJr
- fixed handling of "no disk" in FDS so that the system displays Mario and Luigi 
  jumping around as expected
- added AY8910 sound to Sunsoft-5B (Gimmick JPN sfx)
- added YM2413 to VRC-7 (Lagrange Point OST)
- added support for recorded samples to Jaleco sport titles and to Bandai Family Trainer
  Aerobics Studio, thanks to notes by hap and egoh, and recordings by Pongbashi 
  (samples are needed because these games use a currently undumpable speech chip)
- added support for NES-EVENT pcb used by Nintendo World Championship 1990,
  including dipswitches
- added support for Galoob Game Genie real usage (in addition to the codes which
  Puggsy added to his cheat collections): when you load ggenie, a second cartslot 
  becomes available to load another game attached to the cheat device (e.g. with
  "mess.exe nes -cart ggenie -cart2 smb") and you can enter the cheat codes as in a
  real NES
- added support for Nantettatte!! Baseball lock-on mechanism, based on the tests
  performed by naruko on his carts: when you load nantbb, a second cartslot 
  becomes available to load one of the two update minicarts (91 Hen or OB Hen)
- improved emulation of Namcot 163, 175 and 340 boards, based on the tests
  performed by naruko, lidnariq and bootgod on the real hardware
- moved Nantettatte!! Baseball minicarts to a separate list (nes_ntbrom.xml) because 
  they cannot be loaded in the NES directly, but only through the nantbb subslot
- emulated bus conflict (CPU/PRG) in PCBs documented as having it
- partial emulation of open bus, enough to make working the games using it as a sort
  of protection
- fixed crash when loading files using FFE mappers
- fixed mirroring in some boards (Sunsoft DCS and UNL-CC-21) and in some games
  (e.g. Paris Dakar Rally Special and Escape from Atlantis)
- fixed a few bugs in Tengen 800032 emulation (mapper 64), promoting Klax, Xybots 
  and Road Runner to work state
- fixed Tengen 800037 emulation (mapper 158), promoting US Alien Syndrome to work
  state
- added working emulation of many bootleg pcbs used for pirate conversions from FDS
  (Ai Senshi Nicol, Doki Doki Panic, Fuuun Shaolin Kyo, Green Beret, Monty no Doki 
  Doki Daidassou, Tobidase Daisakusen, Super Mario Bros Malee 2 / Genius Merio Bros...)
- improved emulation of many pirate pcb (BMC-GOLDENCARD-6IN1, KS7013B, 
  KS7012, BMC-GHOSTBUSTERS63IN1, UNL-MALISB, MAXI15 and more...)
- improved RacerMate Challenge II emulation, but the game is still not working due to
  unemulated bicycle controller
- added CPU-based IRQ mode in Tengen 800032 emulation (mapper 64), fixing
  Skulls & Crossbones gfx (but the game is still not working)
- fixed many small inaccuracies in the old code, spot during the conversion
- added support for most other known pcbs, even if in most cases emulation is only
  sketchy
- reduced the need of fake alt pbcs for boards which only differed by mirroring handling 
  (these are now recognized through the "mirroring" feature)
- removed fake wram which was added to a lot of partially documented pcbs and 
  re-added it only where actually present, so to more accurately document what was 
  really in the carts

Out of whatsnew: There's still a lot to do (e.g. to clean up the implementation of the pirate pcbs)
but I hope that submitting this now I can get some wider testing help so to catch and fix regressions 
before next release :)
2013-04-21 19:27:29 +00:00
Miodrag Milanovic
c6cd8a09c8 Cleanups and version bump 2013-04-09 06:46:57 +00:00
Miodrag Milanovic
266a4643f5 did latch delegate for ppu also (nw) 2013-03-29 07:53:11 +00:00
Miodrag Milanovic
3624e85653 made ppu nmi also delegate and now inline config (nw) 2013-03-28 09:09:49 +00:00
Miodrag Milanovic
8b16204628 Made ppu use delegates instead of callbacks (nw) 2013-03-28 08:40:12 +00:00
Miodrag Milanovic
0e1f5ad25b Cleanups and version bump 2013-03-19 07:22:20 +00:00
Angelo Salese
41a4ac672c Added mahjong panel support to Famicom 2013-03-15 14:44:00 +00:00
Fabio Priuli
0e937ed6b4 (MESS) nes.c: shuffled around the loading code (very preliminary step towards slotification).
also, temporarily made famicom driver to only support disks.
2013-02-11 10:13:14 +00:00
Miodrag Milanovic
a440a8e020 Cleanups and version bump 2013-02-11 07:44:56 +00:00
Wilbert Pol
871d4c7ac6 Getting rid of DEVICE_IMAGE_START (nw) 2013-02-06 20:32:33 +00:00
Wilbert Pol
400b9bcc29 Started moving DEVICE_IMAGE_ functions into driver_device classes. (nw) 2013-02-05 20:54:03 +00:00
Miodrag Milanovic
d63986040f machine_notify_delegate modernization (nw) 2013-02-04 09:54:24 +00:00
Miodrag Milanovic
3190293a0c modernized some pre/postload calls (no whatsnew) 2013-01-31 15:49:00 +00:00
Fabio Priuli
1f7561cc10 (MESS) nes.c: tagmap cleanups. (nw)
and I know that setting up ports in machine_start is not the approved way, but in this way the changes do not interfere 
with my other local changes. I will move them later in the proper place, but this should be enough to kill tagmap lookups.
2013-01-26 14:44:59 +00:00
Miodrag Milanovic
0e19f641d3 Cleanups and version bump 2013-01-11 07:32:46 +00:00
Miodrag Milanovic
436d2f757f Cleanups and version bump 2012-12-17 07:22:20 +00:00
Nathan Woods
42b6aa8507 [NES MESS] Minor cleanups 2012-11-25 14:40:31 +00:00
Miodrag Milanovic
e52d60b7f8 Replace some *_DEVICE_HANDLER with _MEMBER calls in MESS section (no whatsnew) 2012-10-03 09:27:22 +00:00
Miodrag Milanovic
3679f744c2 modernization or timer callbacks part 2 (no whatsnew) 2012-09-24 14:43:01 +00:00
Fabio Priuli
83c2145e03 (MESS) nes.c: this will be of use too, for next steps. no whatsnew. 2012-09-23 10:01:55 +00:00
Fabio Priuli
326c860ac7 (MESS) nes.c: moved bankswitch functions into nes_carts_state. no whatsnew.
among other things, this  allowed to remove around a thousand of machine() parameters 
passed to re-get the state class at each bankswitch operation. readability says thanks.
2012-09-23 09:18:37 +00:00
Fabio Priuli
d274a3b3fa (MESS) nes.c: moved cart class where it actually belongs. no whatsnew.
eventually, nes_mmc and its pieces (nes_pcb, nes_ines & nes_unif) will contain a cart slot device and allow for
things like on-cart sound chips and eeprom devices to be properly emulated
2012-09-22 15:25:56 +00:00
Fabio Priuli
85f3612057 nes.c: partially split cart variables from the system ones. no whatsnew. 2012-09-21 16:41:12 +00:00
Fabio Priuli
7d021d4d51 nes.c: modernized the driver by moving most code into the class, work by Micko. no whatsnew. 2012-09-21 15:23:07 +00:00