summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/z180
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #2850 from BartmanAbyss/master R. Belmont2017-11-263-15/+54
|\ | | | | z180: fixed Z180_RCR_REFW; support Wait State Generator (DCNTL)
| * z180: fixed Z180_RCR_REFW; support Wait State Generator (DCNTL) bwodok2017-11-263-16/+55
| |
* | dvdisasm: Overhaul [O. Galibert] Olivier Galibert2017-11-264-59/+94
| | | | | | | | | | | | | | | | Disassemblers are now independant classes. Not only the code is cleaner, but unidasm has access to all the cpu cores again. The interface to the disassembly method has changed from byte buffers to objects that give a result to read methods. This also adds support for lfsr and/or paged PCs.
* | get rid of some "auto" (nw) hap2017-11-211-3/+3
|/
* This is too contentious, please put it up for review Vas Crabb2017-08-012-3/+3
| | | | | | Revert "Changes to debugger memory address translation" This reverts commit bb0964f9a284b15851773f5428bd602ca01cc28b.
* Changes to debugger memory address translation AJR2017-08-012-3/+3
| | | | | | - memory_translate now returns an address space number rather a boolean flag, permitting addresses in part of one space to map to an entirely different space. This is primarily intended to help MCUs which have blocks of internal memory that can be dynamically remapped, but may also allow for more accurate emulation of MMUs that drive multiple external address spaces, since the old limit of four address spaces per MAME device has been lifted. - memory_translate has also been made a const method, in spite of a couple of badly behaved CPU cores that can't honestly treat it as one. - The (read|write)_(byte|word|dword|qword|memory|opcode) accessors have been transferred from debugger_cpu to device_memory_interface, with somewhat modified arguments corresponding to the translate function it calls through to if requested.
* make device_memory_interface slightly less of a special case, use a typedef ↵ Vas Crabb2017-07-102-4/+4
| | | | to avoid nested templates everywhere (nw)
* dimemory: Lift the cap on the number of address spaces per device [O. Galibert] Olivier Galibert2017-07-032-11/+15
|
* Rename AS_DECRYPTED_OPCODES to AS_OPCODES [O. Galibert] Olivier Galibert2017-07-031-2/+2
|
* Move static data out of devices into the device types. This is a ↵ Vas Crabb2017-05-144-174/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix obvious type detected by Coverity, thanks Coverity Olivier Galibert2017-04-281-1/+1
|
* z180: added support for DREQ, TEND signals; fixed dma0 count, DREQ handling ↵ BartmanAbyss2017-04-252-17/+57
| | | | (#2256)
* srcclean (nw) Vas Crabb2017-03-261-10/+10
|
* z180: DMA fixes [R. Belmont] arbee2017-03-051-11/+29
| | | | | - Count of 0 means 0x10000, as with other DMA controllers - Fixed scheduling so burst mode DMA is always serviced immediately with no CPU ops interleaved
* Comment correction (nw) AJR2017-03-051-2/+2
|
* Correct MMOD bit for Z180 DMA AJR2017-03-051-3/+3
|
* 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.
* Simplify daisy-chain IRQ ack routine (get rid of delegate member) (nw) AJR2016-12-292-3/+2
|
* Z80 daisy chain stuff AJR2016-12-282-7/+4
| | | | | | - Reconfigure Z80 daisy chain behavior to use the standard vector for an external IRQ, rather than a bogus one from the last device in the chain - Enable Z80 daisy chain on Cedar Magnet sound board (fake IRQ still necessary, though vectors are correct now) - Source note regarding IM 2 behavior contrary to Zilog datasheet (nw; was fixed way back in 0.35b11)
* A round of spelling/typographical fixes to source comments (nw) Scott Stone2016-11-241-2/+2
|
* Changed disassembler infrastructure to not use char buffers internally Nathan Woods2016-11-203-14/+4
|
* Changed the Z180 disassembler to use 'std::ostream &' internally Nathan Woods2016-11-031-19/+26
|
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-226-152/+152
| | | | | 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
* change cpu cores pcbase handling to be consistent with the majority of cpu ↵ smf-2016-09-282-4/+0
| | | | cores, now that the debugger relies on it. (nw)
* Make sure all cpu's export STATE_GENPCBASE and use safe_pcbase() for ↵ smf-2016-09-282-6/+2
| | | | everything in the debugger, which allows interruptible cpu's to work properly. [smf]
* Revert "Make sure all cpu's export STATE_GENPCBASE and use safe_pcbase() for ↵ Lord-Nightmare2016-09-272-2/+6
| | | | | | everything in the debugger, which allows interruptible cpu's to work properly. [smf]" This reverts commit 1a186c8a3a16a7ce99d7df2dd217a7552b696c92.
* Revert "change cpu cores pcbase handling to be consistent with the majority ↵ Lord-Nightmare2016-09-272-0/+4
| | | | | | of cpu cores, now that the debugger relies on it. (nw)" This reverts commit 2a6cbb70c4a8b2cdd6dbf6488cee92bd60fcc55e.
* change cpu cores pcbase handling to be consistent with the majority of cpu ↵ smf-2016-09-272-4/+0
| | | | cores, now that the debugger relies on it. (nw)
* Make sure all cpu's export STATE_GENPCBASE and use safe_pcbase() for ↵ smf-2016-09-272-6/+2
| | | | everything in the debugger, which allows interruptible cpu's to work properly. [smf]
* INC -> HXX makes editors and code analyzers see it as C++ (nw) Miodrag Milanovic2016-05-017-6/+6
|
* Eliminate device_t::static_config, a type-unsafe legacy feature. AJR2016-04-144-13/+7
| | | | | | Rewrite or remove every last instance of MCFG_DEVICE_CONFIG and its two aliases, including within comments and dead code. Make the Z80/Z180 daisy chain an interface that interfaces with the existing interface. Z8000 has been hooked up to this as well (p8000_16 already configures it), but currently does nothing with it.
* Replace strformat, strprintf and strcatprintf with type-safe steam_format ↵ Vas Crabb2016-02-281-1/+1
| | | | | | | | | and string_format Update MAME to use new function Instantiate ODR-used static constant members Make some of the UI code more localisable Remove use of retired functions in tools
* reverting: Miodrag Milanovic2016-01-206-158/+158
| | | | | | | 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-166-158/+158
| | | | fix start project for custom builds in Visual Studio (nw)
* Revert "remove const (nw)" Miodrag Milanovic2016-01-132-2/+2
| | | | This reverts commit e96fd34dd817f1113daf9e6b099a8f40cfd1ed6d.
* remove const (nw) Miodrag Milanovic2016-01-112-2/+2
|
* Return std::string objects by value rather than pass by reference AJR2016-01-102-2/+2
| | | | | | - strprintf is unaltered, but strformat now takes one fewer argument - state_string_export still fills a buffer, but has been made const - get_default_card_software now takes no arguments but returns a string
* cleanups (nw) Miodrag Milanovic2015-12-251-1/+1
|
* removed auto_bitmap_ind*_alloc and auto_bitmap_rgb32_alloc and replaced with ↵ Miodrag Milanovic2015-12-171-4/+4
| | | | | | | std::unique_ptr (nw) auto_alloc_array to unique_ptr Added make_unique_clear
* override part 2 (nw) Miodrag Milanovic2015-12-051-17/+17
|
* clang-modernize part 3 Miodrag Milanovic2015-12-042-33/+33
|
* Rename *.c -> *.cpp in our source (nw) Miodrag Milanovic2015-11-082-0/+0
|
* Cleanup devcpu.h (nw) Miodrag Milanovic2015-11-061-7/+0
|
* Move all devices into separate part of src tree (nw) Miodrag Milanovic2015-09-1311-0/+7912