summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/z80
Commit message (Collapse)AuthorAgeFilesLines
* Self-registering devices prep: Vas Crabb2017-02-274-5/+5
| | | | | | | | | | | | | | * 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.
* remove tag() argument from logerror() calls in cpu/i86, floppy code Sergey Svishchev2017-02-201-7/+7
|
* Remove emu.h from headers (nw) Olivier Galibert2017-02-116-3/+3
| | | | | | | | | | | | Per Vas' request. If the compile fails for you (i'm thinking osx and windows native debuggers here in particular), add '#include "emu.h"' as first include of the cpp files that fail. Due to our use of precompilation and forced inclusion, emu.h must be included as the very first non-comment thing we do if we want to be sure msvc compiles are identical to gcc/clang ones. Doing it directly instead of through an include increases the correctness probability by a magnitude.
* Simplify daisy-chain IRQ ack routine (get rid of delegate member) (nw) AJR2016-12-293-13/+8
|
* Z80 daisy chain stuff AJR2016-12-284-22/+20
| | | | | | - 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)
* HACK: return 0xffff for the current program counter while fetching the ↵ smf-2016-12-111-0/+6
| | | | vector as the segag80r protection currently relies on it. Reduce the number of extraneous reads that the segag80r protection performs. [smf]
* A round of spelling/typographical fixes to source comments (nw) Scott Stone2016-11-242-2/+2
|
* Changed disassembler infrastructure to not use char buffers internally Nathan Woods2016-11-203-14/+4
|
* Changed the Z80 disassembler to use 'std::ostream &' internally Nathan Woods2016-10-251-17/+24
|
* srcclean (nw) Vas Crabb2016-10-231-1/+1
|
* converted lot of TRUE/FALSE to real boolean and updated types (nw) Miodrag Milanovic2016-10-221-12/+12
|
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-2210-197/+197
| | | | | 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
* Fix disassembly window updating when you set pc/curpc on 68000 and z80. ↵ smf-2016-10-082-4/+11
| | | | Remove masking from sh2 curpc to be consistent with old versions and the pc passed by the interpreter to the hook to be consistent with the drc. (nw)
* change cpu cores pcbase handling to be consistent with the majority of cpu ↵ smf-2016-09-281-9/+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-271-0/+9
| | | | | | 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-271-9/+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]
* Improvements to almost all games in skylncr.cpp AJR2016-08-131-2/+2
| | | | | | | | | - Use standard input mappings in all games except Sonik Fighter - Add working hopper outputs and payout buttons - Promote mbutrfly to WORKING after solving the protection (the code wasn't encrypted) and add the button lamps internally associated with it - Decrypt bdream97, which is almost working now with obvious graphical glitches and some apparent input problems Slight error logging elaboration for illegal Z80 instructions (nw)
* NULL->nullptr, instead of DEVCB_NULL use always DEVCB_NOOP to prevent ↵ Miodrag Milanovic2016-04-241-1/+1
| | | | confusion (nw)
* Critical fixes (nw) AJR2016-04-164-7/+41
| | | | | | - Prevent tmpz84c015_device::irq_priority_w from crashing or corrupting the daisy chain - Eliminate the need for TMPZ84C015_DAISY_INTERNAL by not overwriting elements in the daisy list - Removed leftover MCFG_SEGAZ80_SET_DECRYPTED_TAG from macros in system1.cpp, which lets all drivers validate without crashing
* Eliminate device_t::static_config, a type-unsafe legacy feature. AJR2016-04-145-78/+109
| | | | | | 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
* Cleanups and version bump Miodrag Milanovic2016-02-241-1/+1
|
* z80: removed obsolete irq_line write handler hap2016-02-072-31/+14
|
* z80: put take_nmi in the execution loop: eg. z80 writes to another device ↵ hap2016-02-072-53/+43
| | | | NMI enable register
* z80: added crude implementation of WAIT pin hap2016-02-072-44/+29
|
* z80.cpp: added a debug mechanism for /WAIT pin assertion mechanism (enable ↵ angelosa2016-02-041-0/+22
| | | | with STALLS_ON_WAIT_ASSERT in CPU core), and hooked it up to Night Gal driver as a quick example. [Angelo Salese]
* reverting: Miodrag Milanovic2016-01-208-21/+21
| | | | | | | SHA-1: 1f90ceab075c4869298e963bf0a14a0aac2f1caa * tags are now strings (nw) fix start project for custom builds in Visual Studio (nw)
* Revert "rest of device parameters to std::string (nw)" Miodrag Milanovic2016-01-202-2/+2
| | | | This reverts commit caba131d844ade3f2b30d6be24ea6cf46b2949d7.
* rest of device parameters to std::string (nw) Miodrag Milanovic2016-01-162-2/+2
|
* tags are now strings (nw) Miodrag Milanovic2016-01-168-21/+21
| | | | 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
* Lower case KL5C80A12 device name. MASH2015-12-111-1/+1
|
* override part 2 (nw) Miodrag Milanovic2015-12-052-7/+7
|
* override part 1 (nw) Miodrag Milanovic2015-12-051-5/+5
|
* cleanuo Miodrag Milanovic2015-12-051-8/+0
|
* clang-modernize part 3 Miodrag Milanovic2015-12-044-48/+48
|
* clang-modernize part 1 (nw) Miodrag Milanovic2015-12-032-21/+21
|
* Some more cleanup (nw) Miodrag Milanovic2015-11-111-1/+1
|
* Rename *.c -> *.cpp in our source (nw) Miodrag Milanovic2015-11-086-0/+0
|
* zx: Start of an hardware-correct rewrite [O. Galibert] Olivier Galibert2015-10-282-3/+27
| | | | | | | | | Missing: - hsync is not handled as it should yet, especially missing on the zx80 - the versions with an external charrom are not handled yet - the zx97 is weird On the other hand, the zx81 ain't bad and the hires modes work.
* Move all devices into separate part of src tree (nw) Miodrag Milanovic2015-09-1311-0/+5764