Commit Graph

33 Commits

Author SHA1 Message Date
Joakim Larsson Edstrom
b5ae4a8876 i8251.cpp: modernized debug printouts 2019-09-26 13:51:13 +02:00
Vas Crabb
5036387ab4 srcclean (nw) 2019-09-22 13:34:40 +10:00
Robbbert
48e3eb4174 (nw) i8251 : updated list of save-state variables 2019-09-11 19:52:12 +10:00
Robbbert
4279146dff (nw) i8251 : added notes 2019-09-11 14:53:01 +10:00
Robbbert
4e63fc410b i8251: added bisync support 2019-09-08 22:51:05 +10:00
AJR
8b67c4857a Fix clang error: private field 'm_sync2' is not used (nw) 2019-09-05 23:25:08 -04:00
Robbbert
1076f566a4 i8251: Preliminary addition of synchronous support.
- Can transmit
- Can receive with one sync byte
- bisync still being worked on
2019-09-06 13:15:45 +10:00
Vas Crabb
97b6717027 (nw) Clean up the mess on master
This effectively reverts b380514764 and
c24473ddff, restoring the state at
598cd52272.

Before pushing, please check that what you're about to push is sane.
Check your local commit log and ensure there isn't anything out-of-place
before pushing to mainline.  When things like this happen, it wastes
everyone's time.  I really don't need this in a week when real work™ is
busting my balls and I'm behind where I want to be with preparing for
MAME release.
2019-03-26 11:13:37 +11:00
andreasnaive
b380514764 Revert "conflict resolution (nw)"
This reverts commit c24473ddff, reversing
changes made to 009cba4fb8.
2019-03-25 23:13:40 +01:00
AJR
afd80b1a98 i8251, upd765: Allow read side effects to be disabled (nw) 2019-03-10 16:56:06 -04:00
AJR
65bfb2654f diserial: Actually check parity of received bytes in modes other than PARITY_NONE; fix transmission of parity bit in PARITY_EVEN mode
i8251: Flag parity and framing errors in status register
2018-12-28 13:21:17 -05:00
AJR
30b00e6dcc i8251: Implement send break command 2018-11-07 19:15:21 -05:00
Patrick Mackinlay
0bb396ae6f v53: overhaul
An attempt to add the NEC V50 to the existing V53/V53A devices. Also overhauled for devcb3, and made some required changes to the peripherals. Because this is a pretty wide-ranging change, I thought I'd solicit feedback before merging it.
* v53: refactor and add v50, devcb3, use templates and other general cleanup
* am9517a: add 16 bit transfer support to v5x_dmau variant
* i8251: minor tidy on v5x_scu variant
* hng64: update to match v53 changes
* mpc3000: update to match v53 changes
2018-11-01 11:47:28 +07:00
AJR
e15011b974 i8251: Provide standard read/write handlers; eliminate memory space as argument (nw)
swa, wingwar, netmerc: Fix crashes due to reading from nonexistent memory region

tandy2k: Correct 8251 register mapping (nw)
2018-09-16 20:48:43 -04:00
AJR
9e7da1be15 vt100.cpp: Add XMIT FLAG polling using new i8251 line read handler; correct vt102 interrupts (nw) 2018-03-11 10:45:31 -04:00
Robbbert
ee5ae27582 (nw) uart for md2, md3, jupiter2, seattle; fixed bug in 8251. 2017-09-21 04:25:21 +10:00
Vas Crabb
c5c3012634 Cleaned up serial, matrix keyboard and TI-8x link protocol interfaces:
* Switched to delegate timers
 - Frees implementations from having to call timer method
 - Eliminates risk of ID conflicts with implementations/other interfaces
* Moved save state registration to interface post start
 - Plays nicely with device_missing_dependencies exceptions
 - Frees implementation from having to call save state registration method
 - Improves save state support in devices that neglected to call method
2017-07-11 02:31:42 +10: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
AJR
c4b2aa7466 Name lookup issues (nw) 2017-04-15 16:01:54 -04:00
AJR
445858d683 i8251: Improve logging; restrict external command_w and mode_w access to V53 variant (nw) 2017-04-15 15:43:04 -04:00
Vas Crabb
6c23897483 Self-registering devices prep:
* Make device_creator a variable template and get rid of the ampersands
* Remove screen.h and speaker.h from emu.h and add where necessary
* Centralise instantiations of screen and speaker finder templates
* Add/standardise #include guards in many hearers
* Remove many redundant #includes
* Order #includesr to help catch headers that can't be #included alone

(nw) This changes #include order to be prefix, unit header if applicable
then other stuff roughly in order from most dependent to least dependent
library.  This helps catch headers that don't #include things that they
use.
2017-02-27 22:57:14 +11:00
smf-
463df706e6 fixed building with visual studio (nw) 2017-01-19 20:17:50 +00:00
Vas Crabb
98b85af4a7 pitnrun: use new MC68705P5 device
m68705: expose more more internal registers through the state interface
* shows contents of registers that can't be read by program code

i8251: make receive more reliable clean up a little

zorba: meat on the bones
* create emulated keyboard device
  - 88 of 96 matrix keys identified, 6 of 8 DIP switches identified, 3 of 6 outputs identified
* connect IEEE-488, RS232 and Centronics ports
* hook up all IRQ sources and connect PIT to UARTs
* more notes

osborne1, gladiatr: use input changed member (nw)
2017-01-19 20:51:30 +11:00
Miodrag Milanovic
ddb290d5f6 NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8
also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
2016-10-22 13:13:17 +02:00
fulivi
d6338f3bf4 i8251: RTS and DTR outputs now use negative logic (0 = active) 2016-07-18 16:23:21 +02:00
Sergey Svishchev
97721a45be null_modem: rtscts flow control + relevant fix to i8251 2016-07-13 22:38:21 +03:00
Olivier Galibert
7099d6eaa2 gcc 6.1.1 warning fixes (nw) 2016-06-16 14:21:44 +02:00
Miodrag Milanovic
4e8e3066f8 reverting:
SHA-1: 1f90ceab07

* tags are now strings (nw)
fix start project for custom builds in Visual Studio (nw)
2016-01-20 21:42:13 +01:00
Miodrag Milanovic
7c9cd3feea Revert "rest of device parameters to std::string (nw)"
This reverts commit caba131d84.
2016-01-20 21:35:11 +01:00
Miodrag Milanovic
caba131d84 rest of device parameters to std::string (nw) 2016-01-16 20:05:32 +01:00
Miodrag Milanovic
1f90ceab07 tags are now strings (nw)
fix start project for custom builds in Visual Studio (nw)
2016-01-16 14:54:42 +01:00
Miodrag Milanovic
0825ce4f3b Cleanups and version bump 2015-11-25 08:22:24 +01:00
Miodrag Milanovic
7c19aac60e Rename *.c -> *.cpp in our source (nw) 2015-11-08 12:56:12 +01:00