Commit Graph

42 Commits

Author SHA1 Message Date
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
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
Fabio Priuli
d12877b475 (MESS) NES input cleanup, part 2 (Crazy Climber "controller" was just a set of sticks to
put on the standard controls and it was Japan-only + Famicom supported a single lightgun). nw.
2013-06-14 10:22:58 +00:00
Fabio Priuli
6e49f5e42e (MESS) NES input cleanup, part 1. nw. 2013-06-14 07:54:51 +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
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
Scott Stone
521b0c7c86 Fix mistaken revert of r22393's machine/nes.c (nw) 2013-04-17 02:39:44 +00:00
Scott Stone
c6a68a7bd9 Repeat revert (same as r22320) which again killed NES carts. A rewrite is coming very soon. (nw) 2013-04-17 02:22:13 +00:00
Miodrag Milanovic
28cc0d1c7d various cpu lookup cleanup (nw) 2013-04-15 13:41:27 +00:00
Miodrag Milanovic
bd4514adde Removal of machine().root_device() where appropriate (nw) 2013-04-14 10:46:03 +00:00
Scott Stone
f5ede05a29 nes.c: fixed crash. m_maincpu is not always defined at the very beginning (nw) 2013-04-10 19:40:38 +00:00
Miodrag Milanovic
10d146a6be changed machine().device("maincpu") with m_maincpu in mess tree part (nw) 2013-04-10 11:31:17 +00:00
Miodrag Milanovic
8b16204628 Made ppu use delegates instead of callbacks (nw) 2013-03-28 08:40:12 +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
Wilbert Pol
400b9bcc29 Started moving DEVICE_IMAGE_ functions into driver_device classes. (nw) 2013-02-05 20:54:03 +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
smf-
1940866c70 output of new srcclean changes that are relatively small [smf] 2013-01-11 19:43:14 +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
3679f744c2 modernization or timer callbacks part 2 (no whatsnew) 2012-09-24 14:43:01 +00:00
Fabio Priuli
2dbf48bf91 (MESS) nes: fixed regression in the famicom keyboard, introduced at some point in mid-2011. [Fabio Priuli] 2012-09-24 06:18:05 +00:00
Curt Coder
5f92cdcadf (MESS) Compile fix. (nw) 2012-09-23 10:22:01 +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
Aaron Giles
621ac620ae Since nobody checks for NULLs anyway, make
device_memory_interface::space() assert against NULL and
return a reference, and pushed references throughout all 
address space usage in the system. Added a has_space() 
method to check for those rare case when it is ambiguous.
[Aaron Giles]

Also reinstated the generic space and added fatal error
handlers if anyone tries to actually read/write from it.
2012-09-19 19:48:09 +00:00
Aaron Giles
3cce7e019e Memory handler normalization, part 2. Change legacy
read/write handlers to take an address_space & instead
of an address_space *. Also update pretty much all other
functions to take a reference where appropriate.
[Aaron Giles]
2012-09-17 08:22:16 +00:00
Miodrag Milanovic
219e664785 Massive change, MACHINE_START\RESET, VIDEO_START\RESET and PALETTE_INIT changed to be members of state classes (no whatsnew) 2012-09-13 11:15:32 +00:00
Aaron Giles
17e66e39fd Clear out remaining global inlines in diexec.h. 2012-09-12 06:07:51 +00:00
Aaron Giles
8669a28810 Add safe_pc() and safe_pcbase() methods to device_t.
Convert all cpu_get_pc() to safe_pc() and
cpu_getpreviouspc() to safe_basepc(). Removed the
old macros.
2012-09-11 05:50:50 +00:00
Oliver Stöneberg
8cf19f400c added missing \n to remaining fatalerror() calls (no whatsnew) 2012-09-09 07:08:47 +00:00
Miodrag Milanovic
7285b359d2 Merge of MESS sources (no whatsnew) 2012-08-21 10:41:19 +00:00