Commit Graph

91 Commits

Author SHA1 Message Date
David Haywood
7d0279601f split pgm2 up into drivers/video, correct main ram size, make some notes etc. 2017-11-17 18:25:36 +00:00
Patrick Mackinlay
f87cc5c671 28fxxx: initial commit for new flash memory device (#2805)
Implementation of 28F010 and family flash memory devices. These are not compatible with the JEDEC-standard flash command protocol implemented in intelfsh.
2017-11-16 23:53:02 +11:00
Vas Crabb
46c4dfb5f9 z80sio updates:
* Don't use device_serial_interface for transmit - it can't support sync modes, on-the-fly register updates, and other weirdness.
* Better modelling of 1-deep transmit queue.
* Better RTS/CTS behaviour.
* Completely overhauled interrupt logic - vectors should be correct for most async modes.
* Implemented different auto-reset receive errors in MPSC vs SIO.
* Implemented SDLC transmission including bit stuffing, transmit CRC, abort, and underrun/end-of-message behaviour.

Added an SDLC consumer device that logs SNA frame headers and data.
2017-11-16 22:22:20 +11:00
Dirk Best
faeedc757c einstein: Major cleanup, add a ADC0844 device
The analogue joystick is now emulated. Also fixed a few minor issues
with the memory map.

This also adds a generic Z80 dasisy chain device, for use in drivers
with non-Z80 peripherals.
2017-11-06 20:47:38 +01:00
fulivi
bd7800c9a6 hp85: support for I/O slots added. Emulation of HP82937 module added. 2017-10-25 16:25:42 +02:00
angelosa
d4f7cfd631 saturn.cpp: Moved SCU related functions inside a device [Angelo Salese] 2017-10-09 22:24:14 +02:00
AJR
da7cd69f88 Remove timer_device from emu.h and move it out of src/emu (nw) 2017-10-01 22:46:42 -04:00
AJR
83d5618b34 am9513: New device 2017-09-22 01:35:51 -04:00
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