Commit Graph

233 Commits

Author SHA1 Message Date
Nigel Barnes
c967171c7a tube: New TUBE device. Acorn Tube ULA for use in Acorn 2nd Processors 2017-08-25 20:03:44 +01:00
fulivi
4c5ed8b64b hp85: implemented tape drive 2017-08-16 10:38:22 +02:00
AJR
dab683e78f New 74LS259/9334/CD4099 devices
These humble 16-pin logic devices were commonly used in 8-bit arcade games to control coin counters/lockouts, IRQ flipflops, graphics banking, slave CPU reset lines, discrete audio triggers, screen flipping, serial EEPROMs and much else. Over 100 drivers and a few bus devices have been updated to use the new implementation, and a great deal of research has gone into documenting the physical location of these devices on actual PCBs in the source. Write handlers have been provided for both orthodox and somewhat less conventional memory mappings.

Incidental to this update, coin counters and/or lockouts have been added to Atari System 1 games, Basketball, Gauntlet, Gyruss, Hana Yayoi, Hole Land, Jr. Pac-Man, Mahjong Sisters, Pooyan, Roc'n Rope, Squash, Thunder Hoop, Time Limit, Time Pilot '84 and many others. This also cleans up coin counter behavior in Sauro and Rally Bike.

(nw) The purpose of committing this change, which has been several months in the making, early in the 0.189GIT cycle will be to allow time for fixing potential regressions; I've fixed a number of drivers that lost sound from this for various reasons (hnayayoi.cpp having missing or garbage ADPCM was particularly painful, since the three games in that driver all work slightly differently), but I can't test all affected drivers exhaustively. @Tafoid, don't bother running automated screen capture comparison tests on this, as many drivers are now expected to have the screen flipped for the first few seconds after reset.
2017-07-25 11:21:43 +10:00
Patrick Mackinlay
f91404a088 i82586: intel 82586/82596 ethernet controllers, skeleton only (nw) (#2456)
* i82586: initial commit, skeleton only

* oops (nw)

* i82586: added databook references

* use address space for memory access
2017-07-10 13:11:28 +02:00
Joakim Larsson Edstrom
4af3d0ac83 mc14411: NEW DEVICE Motorola MC14411 Bit Rate Generator 2017-07-08 00:14:06 +02:00
Brandon Munger
5836d9e48b r9751: Add initial SMIOC device (#2423) 2017-06-30 10:11:21 +10:00
mahlemiut
03f21234b8 - Add preliminary Yamaha YM3802 MIDI controller
- Add X68000 expansion device using the YM3802
2017-06-21 18:37:23 +12:00
AJR
d046fd723f New device: TE7750 Super I/O Expander 2017-06-15 19:44:24 -04:00
Sergey Svishchev
24d016f62c New skeleton: GRiD Compass series 2017-06-06 21:29:43 +03:00
arbee
876f0bb0b3 Initial support for SiS85c496/497 PCI chipset. [R. Belmont] 2017-06-05 22:26:49 -04:00
Dirk Best
85c01f5721 New device: SN54/74166 8-Bit Parallel-In/Serial-Out Shift Register 2017-05-16 00:24:08 +02:00
Vas Crabb
0f0d39ef81 Move static data out of devices into the device types. This is a significant change, so please pay attention.
The core changes are:
* Short name, full name and source file are no longer members of device_t, they are part of the device type
* MACHINE_COFIG_START no longer needs a driver class
* MACHINE_CONFIG_DERIVED_CLASS is no longer necessary
* Specify the state class you want in the GAME/COMP/CONS line
* The compiler will work out the base class where the driver init member is declared
* There is one static device type object per driver rather than one per machine configuration

Use DECLARE_DEVICE_TYPE or DECLARE_DEVICE_TYPE_NS to declare device type.
* DECLARE_DEVICE_TYPE forward-declares teh device type and class, and declares extern object finders.
* DECLARE_DEVICE_TYPE_NS is for devices classes in namespaces - it doesn't forward-declare the device type.

Use  DEFINE_DEVICE_TYPE or DEFINE_DEVICE_TYPE_NS to define device types.
* These macros declare storage for the static data, and instantiate the device type and device finder templates.

The rest of the changes are mostly just moving stuff out of headers that shouldn't be there, renaming stuff for consistency, and scoping stuff down where appropriate.

Things I've actually messed with substantially:
* More descriptive names for a lot of devices
* Untangled the fantasy sound from the driver state, which necessitates breaking up sound/flip writes
* Changed DECO BSMT2000 ready callback into a device delegate
* Untangled Microprose 3D noise from driver state
* Used object finders for CoCo multipak, KC85 D002, and Irem sound subdevices
* Started to get TI-99 stuff out of the TI-990 directory and arrange bus devices properly
* Started to break out common parts of Samsung ARM SoC devices
* Turned some of FM, SID, SCSP DSP, EPIC12 and Voodoo cores into something resmbling C++
* Tried to make Z180 table allocation/setup a bit safer
* Converted generic keyboard/terminal to not use WRITE8 - space/offset aren't relevant
* Dynamically allocate generic terminal buffer so derived devices (e.g. teleprinter) can specify size
* Imporved encapsulation of Z80DART channels
* Refactored the SPC7110 bit table generator loop to make it more readable
* Added wrappers for SNES PPU operations so members can be made protected
* Factored out some boilerplate for YM chips with PSG
* toaplan2 gfx
* stic/intv resolution
* Video System video
* Out Run/Y-board sprite alignment
* GIC video hookup
* Amstrad CPC ROM box members
* IQ151 ROM cart region
* MSX cart IRQ callback resolution time
* SMS passthrough control devices starting subslots

I've smoke-tested several drivers, but I've probably missed something.  Things I've missed will likely blow up spectacularly with failure to bind errors and the like.  Let me know if there's more subtle breakage (could have happened in FM or Voodoo).

And can everyone please, please try to keep stuff clean.  In particular, please stop polluting the global namespace.  Keep things out of headers that don't need to be there, and use things that can be scoped down rather than macros.
It feels like an uphill battle trying to get this stuff under control while more of it's added.
2017-05-14 21:44:11 +10:00
Ted Green
d2224d2eee vrc5074: Added new Nile 4 System Controller device 2017-05-13 14:30:06 -06:00
Olivier Galibert
2b066459bd k054321: Implement as a device [O. Galibert, Phil Bennett] 2017-04-25 19:54:17 +02:00
AJR
0188b4e80b segaybd.cpp, srallyc: Add OKI MSM6253 device 2017-04-12 23:09:13 -04:00
cracyc
490d00afb7 ds1205: Add Dallas DS1205 Multikey [Carl] 2017-04-12 17:32:22 -05:00
AJR
32984a5a51 segaxbd.cpp: Rewrite CXD1095 as a device and also add it to megatech.cpp 2017-04-10 22:55:00 -04:00
hap
7f5c0d8703 fix compile (nw) 2017-03-15 16:57:45 +01:00
Sergey Svishchev
dc6b566136 ie15: convert to a device with frontends (standalone driver and rs232 slot device) (take 2) 2017-03-13 05:37:46 +03:00
Mark Garlanger
9533352c6b Fix Heath H19 keyboard (#2066)
* Fix Heath H19 keyboard
* Fix how enable/disable of 25th line is handled.
* Updated to use internal ROM in MM5740.
2017-02-25 11:58:16 +11:00
Joakim Larsson Edstrom
a2f105b8e4 - WIP: Refactored device: MPCC 68561 (nw)
- 68230 PIT: Added support for the PSR register, H1-H4 sense and direct pin levels
- WIP: fccpu20: added mpcc device and serial interface (nw)
2017-01-16 23:49:55 +01:00
Joakim Larsson Edstrom
be76377dcf New device: BIM 68153 2017-01-12 10:39:55 +01:00
fulivi
5e2bf6ea13 hp9845: draft of HP9895 floppy drive. PHI passes POST. 2017-01-05 12:12:33 +01:00
R. Belmont
84f9def81f Merge pull request #1788 from ajrhacker/ls157
Create new 74LS157 device and hook it up to MSM5205 on Rastan
2016-12-02 16:13:12 -05:00
cracyc
5ad9b67e1d new not working
----------------
Dulmont Magnum [Carl, Dave Jones]

isbc: new isbc8630 sct set [Al Kossow]
2016-12-02 15:07:26 -06:00
AJR
5044432ff6 Create new 74LS157 device and hook it up to MSM5205 on Rastan 2016-12-02 06:59:45 -05:00
Miodrag Milanovic
114aa294cd Fix some single driver builds (nw) 2016-11-08 12:28:56 +01:00
Miodrag Milanovic
73bdc2ab36 added non-legacy i82439tx and created a driver using it in pcipc (nw)
added vga hack to be able to test pcipc.cpp
pcipc -bios 3 and pcipctx can initialize more if 0xAA is written at 0x4f0
2016-10-30 17:40:04 +01:00
therealmogminer@gmail.com
fc5fc6d4c2 New devices added
-----------------
7400 Quad 2-Input NAND Gate [Ryan Holtz]
7404 Hex Inverter [Ryan Holtz]
82S126/82S129 256x4-bit PROM [Ryan Holtz]
2016-10-28 20:08:21 +02:00
therealmogminer@gmail.com
c35c2a9cdc New devices added
-----------------
54/7416x Hex/Quad D Flip-Flops with Clear [Ryan Holtz]
9334/DM9334 8-Bit Addressable Latch [Ryan Holtz]
2016-10-28 02:37:23 +02:00
therealmogminer@gmail.com
93735cdf7e -core: Added 54/74160,161,162,163 device emulation. [Ryan Holtz] 2016-10-28 02:37:22 +02:00
therealmogminer@gmail.com
8225a140ee -hazeltin: Added preliminary video, still broken due to timing issues. [Ryan Holtz] 2016-10-27 13:46:42 +02:00
Miodrag Milanovic
e2f54f5333 Cleanup, TIMER_CALLBACK was only in unused parts (nw) 2016-10-21 16:26:22 +02:00
therealmogminer@gmail.com
8682c73305 -Added: Dallas DS1386-8K and DS1386-32K timekeepers (largely untested). [Ryan Holtz] 2016-10-16 01:49:06 +02:00
Olivier Galibert
d8aa10fbc1 pcipc: sandbox for emulating a modern-ish pc (nw) 2016-09-12 11:55:16 +02:00
James Wallace
2fb36796fb Separation of the LDP-1450 laserdisc player to its own device. 2016-08-04 20:12:01 +01:00
Vas Crabb
eac2a1fcc5 Keyboard/terminal improvements: [Vas Crabb]
* Mark lots of things constexpr in attotime and turn macros into functions
* Add base classes for HLE matrix keyboard and buffered RS232 device
* Make generic keyboard/terminal more usable
* Keyboard has configurable typematic delay/rate
* Keyboard has selectable JIS/ANSI layout
* Keyboard handles simultaneous keypresses more intuitively
* Keyboard uses meta to set high bit
* Terminal has configurable auto LF on CR, auto CR on LF and local echo
* Terminal has audible bell
* Untangle Olivetti M20 keyboard from generic_keyboard
* Add notes to Olivetti M20 keyboard emulation
* Make Olivetti M20 keyboard match physical layout
* Untangle RM Nimbus keyboard from generic_keyboard
* Fix natural keyboard mode with RM Nimbus
* Untangle x68k keyboard from generic_keyboard
* Improve x68k key names and mapping
* Improve x68k typematic behaviour
* Untangle QX-10 keyboard from generic_keyboard
* Keep NGEN keyboard barely working
2016-07-27 21:59:32 +10:00
Dirk Best
6b70c2a0e8 Add a device as proof of concept which merges several input lines into a common output line, supporting both active high and active low inputs 2016-07-23 15:33:15 +02:00
Joakim Larsson Edstrom
1459d8316c New device: FGA-002 Force Gate Array, splitted out from fccpu30 driver, mostly a skeleton but most registers can be written and read back, 8 bit timer is implemented 2016-07-06 20:45:59 +02:00
angelosa
3c030752cf Added bare-bones Sony LDP-1000 device (nw) 2016-06-14 19:50:43 +02:00
smf-
f503c71934 and the missing device (nw) 2016-06-10 19:46:04 +01:00
Joakim Larsson Edstrom
c2d185b9e3 New driver for Force Computers CPU-30, WIP but starts up some diagnostics tests so a good milestone 2016-06-10 10:33:42 +02:00
Ted Green
ebe5c6d790 voodoo_pci: Added default PCI BAR locations (nw)
gt64xxx: Added DMA control and proper PCI address mapping (nw)
pci-ide: New generic PCI IDE controller (nw)
machine.lua: Added pci-ide machine (nw)
2016-05-17 11:13:55 -06:00
Miodrag Milanovic
be67262fc2 INC -> HXX makes editors and code analyzers see it as C++ (nw) 2016-05-01 20:27:50 +02:00
Miodrag Milanovic
73521257e8 saturn and stv split (nw) 2016-05-01 16:44:58 +02:00
Miodrag Milanovic
77b6c7e3c5 fixed apple2 compile (nw) 2016-05-01 14:02:26 +02:00
Miodrag Milanovic
13855d2404 Fixed ti drivers (nw) 2016-05-01 12:55:22 +02:00
Miodrag Milanovic
32c02fe850 typo (nw) 2016-05-01 12:18:33 +02:00
Miodrag Milanovic
b7c3839a67 r9751 fix (nw) 2016-05-01 09:37:33 +02:00
AJR
dafe4d8e22 Make watchdog timer a separate device
- Separate watchdog implementation from running_machine (once again) and driver_device
- Old-style methods, now hidden behind #ifdefs, will probably be safe to remove soon
2016-04-30 16:39:27 -04:00
Miodrag Milanovic
e044d56500 Fixed build atom driver (nw) 2016-04-29 10:16:04 +02:00
Miodrag Milanovic
2ce13a48f6 Fix for mos6530n (nw) 2016-04-28 18:36:59 +02:00
Miodrag Milanovic
9a3b5d9a75 mode devices to proper library (nw) 2016-04-23 12:18:05 +02:00
Miodrag Milanovic
c47bd3a937 Added generic latch to replace soundlatch in driver_device (nw) 2016-04-18 14:08:54 +02:00
Michael Zapf
ee6684ac85 New GROM implementation (TMC0430) with (almost) precise clock behavior 2016-03-30 23:50:39 +02:00
Ted Green
b79020559e Added files to build and fixed override functions 2016-03-18 15:34:57 -06:00
cracyc
c049a91f4a pcxt: use pc motherboard device and banking (nw) 2016-03-05 15:02:29 -06:00
fulivi
408c6351cf hp9845: initial version of HP TACO driver (only basic tape movement is working) 2016-02-17 10:12:38 +01:00
Brandon Munger
b3b834c45a r9751: rename drivers to cpp 2015-12-20 17:46:11 -05:00
Brandon Munger
8fe5c58a6f r9751: forgot to update machine.lua 2015-12-20 17:46:10 -05:00
Brandon Munger
d3785e805e Initial ROLM 9751 driver 2015-12-20 17:46:09 -05:00
Miodrag Milanovic
5deec43cbc update build scripts for rename c - > cpp (nw) 2015-11-08 13:26:29 +01:00
mahlemiut
cdb93cff68 ficpio2: add PCI bus and chipset. -bios 2 and 3 now boot. Other BIOSes require some cache funkiness. 2015-09-24 14:16:32 +12:00
Joakim Larsson Edstrom
13bbcd2836 Added new devices to build 2015-09-13 20:16:02 +02:00
Miodrag Milanovic
ee7ff77255 update build scripts and code change in order to fix compile (nw) 2015-09-13 09:20:24 +02:00
Miodrag Milanovic
37c52103a5 moved nsc810 build to proper place (nw) 2015-09-05 08:18:31 +02:00
Michael Zapf
4398fa4f66 New AT29 flash EEPROM circuits 2015-08-21 14:14:13 +02:00
Michael Zapf
1784a89ee4 Defining variants 9224 and 9234 (WIP) 2015-08-10 02:00:55 +02:00
Michael Zapf
be6c3ee4c9 mfmhd: Introduced format definition, now generally available. 2015-08-02 15:50:22 +02:00
Joakim Larsson Edström
307d82b06a fixed c&p typo 2015-07-20 23:10:08 +02:00
Joakim Larsson Edström
19117955e8 Added PIT68230 to available machines and enabled it for my configuration
Conflicts:
	scripts/src/machine.lua
	scripts/target/mame/my.lua
2015-07-20 18:07:07 +02:00
Michael Zapf
5ed6d7c6f9 This is it. ti99 says Goodbye to legacy floppy. 2015-07-05 19:59:37 +02:00
Miodrag Milanovic
5a7a29e833 some metadata fixes (nw) 2015-06-20 20:10:19 +02:00
Miodrag Milanovic
654a5ca29b update metadata in lua files (nw) 2015-06-20 13:21:10 +02:00
Dirk Best
1c8c6405e9 goodbye old friend, you had a good run. 2015-06-05 10:48:22 +02:00
couriersud
872ca80ac5 Converted netlist into a library. Moved most code from nl_convert.h to
nl_convert.c. Targets using netlist must now specify this explicitly
with MACHINES["NETLIST"] = true
Added subtarget "nl" which only contains games with netlist elements.
(nw)
2015-06-01 00:54:45 +02:00
hap
eb13a4deda added tms1024 device placeholder 2015-05-26 14:53:56 +02:00
Miodrag Milanovic
ca37d40f69 Removed comments and added generic license for whole team on top (nw) 2015-05-09 16:05:30 +02:00
arbee
b96b59caee atlantis: added PCI9050 device skeleton. [R. Belmont] 2015-04-12 13:13:33 -04:00
Miodrag Milanovic
c334fda9a9 Start adding .h and .inc files to help usage inside IDE's like VS and XCode (nw) 2015-04-11 14:17:02 +02:00
Curt Coder
274078636e mos6530: Rewritten to support time travel. [Curt Coder] 2015-04-08 09:01:20 +03:00
Miodrag Milanovic
7f1ad1db99 Explicit file listing in lua scripts making generate much much faster (nw) 2015-03-28 10:10:03 +01:00
Miodrag Milanovic
f76d59c41d Moved build system to GENie [Miodrag Milanovic]
make TARGET=mess -j19

will generate all needed files and build MESS, while developing you can use

make TARGET=mess COMPILE=1 -j19
to prevent rebuilding of make files.

Build system have automatic generate of dependencies so will do incremental builds fine.

make clean
will remove all generated files/projects and obj files
2015-03-26 09:00:39 +01:00