summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/6821pia.cpp
Commit message (Collapse)AuthorAgeFilesLines
* a2bus/mouse.cpp: Fix regression caused by MCU port C lines being high after ↵ AJR2021-01-061-5/+13
| | | | | | reset - 6821pia.cpp: Add callback to set port B three-state output
* 6821pia: Improve PA and CA2 output handling AJR2020-12-201-64/+85
|
* srcclean for 0.223 Vas Crabb2020-07-261-2/+2
|
* 6821pia: guard against side effects when these should be disabled 68bit2020-07-021-57/+72
|
* devices/machine: simplified more handlers (nw) Ivan Vangelista2020-03-251-7/+7
|
* Alfaskop 4110 keyboard and related improvements (#6291) Joakim Larsson Edström2020-02-101-3/+25
| | | | | | | | | | | | | | * mc6844.cpp: WIP NEW DEVICE Motorola mc6844 DMA controller (devicified from swtpc09.cpp) * 6821pia.cpp: improved LOG messages a bit * mc6854: Added support for external clocks, DMA, improved LOG messages and fine tuning of IRQ handling * mc6846: Removed nonexistant CP1 output callback and added a CP1 input interface call * 6850acia.cpp: Updated use of logmacro.h * alfaskop4110: WIP added keyboard and fixed build errors
* Revert "Alfaskop improvements" Vas Crabb2020-01-311-25/+3
|
* 6821pia.cpp: improved LOG messages a bit Joakim Larsson Edstrom2019-12-181-3/+25
|
* machine/6821pia.cpp: initialized new variable (nw) d2019-12-141-1/+1
|
* (nw) misc cleanup: Vas Crabb2019-09-201-172/+91
| | | | | * get rid of most assert_always * get rid of a few MCFG_*_OVERRIDE
* Pia6821 improvements (#5254) Mike2019-06-191-19/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 6821pia: fix method names in comments * zwackery: Remove PIA port A z_mask setting. This would only be relevant if the PIA was read while in output mode. These are inputs, and only read in input mode, so z_mask is not relevant. * thomson: move pia pullup resistors from z_mask to read handler. * 6821pia: remove unused set_port_a_z_mask calls. * dgn_beta: move pia pullup resistors from z_mask to read handler. * mpu3: Don't invert the VFD power on reset line. It doesn't go through an inverter. I believe this was done to work around a bug in the PIA port A implementation. * pia6821: remove m_port_a_z_mask variable. * 6821pia: For port A reads, only use the DDR for reading pins unless. Provide an override option when a device depends on slightly undefined behavior of an external device driving the pins and changing the value read. One board seems to need this (coinmstr). I don't have the schematics, but it seems it uses this to check its meter operation.
* pia6821: roll back port A read change. Mike2019-06-101-5/+6
|
* Add Bally squawk & talk boards (#5175) Mike2019-06-081-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bally pinball by35: Add sound LED to layouts. * Bally pinball by35: whitespace/formatting cleanup. * Bally pinball by35: Add filters to audio device output. The boards have them, and the chip like to output DC at idle. This can cause clipping in the mixer. * 6821pia: For port A reads, only use the DDR for reading pins. * Bally pinball by35: Move over cabinet switches. This makes more room for a sound board LED. * Bally pinball audio: Add Squawk & Talk board. * Bally pinball audio: Add new board, Squawk & Talk with the AY chip. * TMS5220: Adjust delay time between /RS going low and /READY being set. The datasheet doesn't list this time exactly, but something close (time between /RS going low and the data being valid on the bus). It's measured in usec, not clock cycles. * Bally audio: minor cleanup * Midway mcr: Use Bally Squawk & Talk sound board implementation * Bally pinball audio: remove clock from as2888, as it's a discrete board.
* 6821pia: Add port line write handlers (nw) AJR2019-05-151-0/+32
|
* (nw) Clean up the mess on master Vas Crabb2019-03-261-2/+2
| | | | | | | | | | | | | This effectively reverts b380514764cf857469bae61c11143a19f79a74c5 and c24473ddff715ecec2e258a6eb38960cf8c8e98e, restoring the state at 598cd5227223c3b04ca31f0dbc1981256d9ea3ff. 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.
* Revert "conflict resolution (nw)" andreasnaive2019-03-251-2/+2
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* 6821pia, 6840ptm, 6850acia, bus/ss50, cmi01a: Simplify read/write handlers (nw) AJR2019-02-181-2/+2
| | | | 6850acia: Allow disabling side effects for reads (nw)
* get rid of some overloaded names - a lot of these will become unnecessary ↵ Vas Crabb2018-06-141-5/+5
| | | | after new memory and devcb are ready (nw)
* Revert "6821: improved logging" Vas Crabb2017-09-291-28/+27
| | | | | | | | This reverts commit 6ec6ee3cb71d47571a750ce58a29e2222fff37d8. Sorry, but re-adding the tag to the logging like this is not an improvement. It adds clutter when using logerror as intended, with the debugger log window or with the -oslog option sending it to stderr.
* 6821: improved logging Joakim Larsson Edstrom2017-09-261-27/+28
|
* 6821pia.cpp: Logging improvements (nw) AJR2017-06-241-48/+40
| | | | | | - Use logmacro.h interface - Remove device tags superfluous with modern logerror - Make LOG_SETUP actually handle something
* Move static data out of devices into the device types. This is a ↵ Vas Crabb2017-05-141-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* srcclean (nw) Vas Crabb2017-03-261-15/+15
|
* Fixed recently introduced order of operations issue, and changed to Vas' ↵ Nathan Woods2017-03-261-14/+14
| | | | preferred style
* Merge pull request #2173 from npwoods/pia_cplusplus R. Belmont2017-03-241-50/+55
|\ | | | | Incremental C++-ification of 6821pia.cpp
| * Incremental C++-ification of 6821pia.cpp Nathan Woods2017-03-211-50/+55
| | | | | | | | | | 1. Changed some 'int' ==> 'bool' where appropriate 2. Changed the various control byte macros to static functions
* | 6821pia: correct copyright holders (nw) hap2017-03-221-1/+1
|/
* Self-registering devices prep: Vas Crabb2017-02-271-1/+1
| | | | | | | | | | | | | | * 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.
* srcclean (nw) Vas Crabb2017-01-221-1/+1
|
* Taito 68705 interface improvements: Vas Crabb2017-01-151-0/+3
| | | | | | | | | * Moved stuff arkanoid/puzznic have in common with other games to new abstract base class * Got rid of the unnecessary hacks for bigevglf, it doesn't need anything special * Moved xsleena (xain.cpp) to the common interface class * This fixes regressions in tokio and daikaiju (nw) started instantiating common device finders with the devices to marginally improve build/link time
* Updated the LOG mechanism Joakim Larsson Edstrom2017-01-011-29/+42
|
* converted lot of TRUE/FALSE to real boolean and updated types (nw) Miodrag Milanovic2016-10-221-18/+18
|
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-38/+38
| | | | | 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
* reverting: Miodrag Milanovic2016-01-201-37/+37
| | | | | | | SHA-1: 1f90ceab075c4869298e963bf0a14a0aac2f1caa * tags are now strings (nw) fix start project for custom builds in Visual Studio (nw)
* tags are now strings (nw) Miodrag Milanovic2016-01-161-37/+37
| | | | fix start project for custom builds in Visual Studio (nw)
* Stop PIA from spamming debug console by default Joakim Larsson Edström2016-01-061-1/+1
|
* Cleanups and version bumpmame0168 Miodrag Milanovic2015-11-251-21/+21
|
* Some more cleanup (nw) Miodrag Milanovic2015-11-111-17/+21
|
* Rename *.c -> *.cpp in our source (nw) Miodrag Milanovic2015-11-081-0/+1121