summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/upd765.cpp
Commit message (Collapse)AuthorAgeFilesLines
* wd37c65c: Allow second clock to be configured (not used yet) (nw) AJR2019-04-171-1/+5
|
* upd765: Add uPD72069 device type for mpc3000 (nw) AJR2019-04-131-1/+14
|
* upd765: Drive selection improvements AJR2019-04-131-2/+15
| | | | | - Deselect drives upon reset, or select drive 0 for older FDCs with multiplexed select lines - Deselect other floppies when using set_floppy
* (nw) Clean up the mess on master Vas Crabb2019-03-261-64/+75
| | | | | | | | | | | | | 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-75/+64
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* upd765.cpp: Correct result from Read ID when scan failed AmatCoder2019-03-191-0/+3
| | | | | | | | | Result from Read ID must be the sector ID information during execution phase. So result must be: - Zeroes if not ready (execution phase is not reached). - Command codes if ready but scan failed (execution phase is reached but ID is not found). This patch fixes this. - If scan is correct then result is the ID information from sector found. Fix MT 06611
* i8251, upd765: Allow read side effects to be disabled (nw) AJR2019-03-101-11/+17
|
* upd765: Simplify read/write handlers (nw) AJR2019-03-101-38/+18
|
* upd765: Fix Speedlock copy protection regression. Michael Zapf2019-03-061-10/+21
|
* fs3216: Start fleshing out the FDC interface (nw) AJR2019-01-121-4/+12
| | | | upd765: Kludge in an output callback for the index pulse, which doesn't deserve to be attached to this device but is done this way because of MAME's FDC model. (nw)
* upd765: Add output callback for unit/drive select lines (nw) AJR2019-01-101-1/+4
| | | | This is intended for future use by machines in which the US/DS lines are neither directly connected to the drives nor wholly disconnected from them.
* upd765: Add (mostly standard) clocks to all devices in the family (nw) AJR2018-12-131-1/+1
| | | | These clocks are currently unused, and their sources and dividers are often unclear. In some cases they are clearly software-configurable, which has not been emulated at all.
* Include floppy.h explicitly in drivers and bus cards, rather than indirectly ↵ AJR2018-11-251-0/+1
| | | | through popular FDC headers (nw)
* final cleanup (nw) Vas Crabb2018-08-291-25/+18
|
* upd765: add aux commands to 72065 (nw) cracyc2018-08-161-1/+15
|
* upd765: Fixes fifo mess-up on unexpected fifo pushes on hx5102. Michael Zapf2018-08-061-0/+9
|
* upd765.cpp: Partially revert 9eae4365246db04c1b2b432e24b91268b482564c to ↵ AJR2018-07-131-2/+6
| | | | unbreak x68000 floppy loading (nw)
* upd765: i82072 fixes (nw) (#3729) Patrick Mackinlay2018-07-091-57/+109
| | | | | Mostly tiying up and simplifying the i82072 behaviour; the only change that could potentially impact other upd765 users is marking the st0_filled after every interrupt-generating command ends, rather than only the non-data ones. This appears to be correct behaviour, and will only affect systems which actually do a "sense interrupt status" after a command-completion interrupt (like the InterPro does). * report valid interrupt sense data after all interrupt-generating commands * improve i82072 drive busy handling and motor control
* logerror is cool with std::string - don't use .c_str, some ostream flags ↵ Vas Crabb2018-06-251-36/+36
| | | | stick, also const (nw)
* upd765: Add HEAD_LOAD state, used as a spinup delay by some systems. Michael Zapf2018-06-181-8/+34
|
* upd765: Improved logging; removed status flag ST1.ND on missing IDAM/DAM Michael Zapf2018-06-171-24/+97
|
* as if millions of this pointers suddenly cried out in terror, and were ↵ Vas Crabb2018-06-081-72/+62
| | | | | | | suddenly silenced * streamline templates in addrmap.h * get rid of overloads on read/write member names - this will become even more important in the near future
* Added logmacros to upd765, increased track buffer for hfe format (nw) Michael Zapf2018-05-101-75/+98
|
* maps: Finish devices/machine (nw) Olivier Galibert2018-04-201-27/+32
|
* maps: Finish map.m() (nw) Olivier Galibert2018-04-191-55/+63
|
* API change: Memory maps are now methods of the owner class [O. Galibert] Olivier Galibert2018-02-121-13/+13
| | | | | Also, a lot more freedom happened, that's going to be more visible soon.
* memory: Remove some space parameters from the apple2 domain [O. Galibert] Olivier Galibert2017-12-191-0/+15
|
* upd765: special case i82072 drive busy bit handling (nw) Patrick Mackinlay2017-10-041-4/+33
| | | | Fixes http://mametesters.org/view.php?id=6689.
* (nw) srcclean - please use UTF-8 for source files, stuff that isn't valid ↵ Vas Crabb2017-09-241-1/+1
| | | | UTF-8 will be nuked, and cleaning it up by hand is annoying
* upd765: sense interrupt status and i82072 changes (#2632) Patrick Mackinlay2017-09-131-78/+274
| | | Yet another attempt at implementing the i82072 sense interrupt status logic. This time, I've separated the logic into the derived class, so it won't affect the other devices. Also included motor on/off logic (unique to i82072) - motor on delay is incomplete.
* upd765: added i82072 (#2607) Patrick Mackinlay2017-08-301-0/+11
|
* floppy: Add drive LED callback Dirk Best2017-08-271-0/+16
| | | | | | | | | This currently only works if you set the drive select lines correctly, which the upd765 does now. Hook it up to the psi98 driver and use the TEAC FD-55F drive instead of the generic one. This is some basic first work to better model the real hardware and floppy drive setups in the future.
* upd765: Turn logging off (nw) Dirk Best2017-08-181-1/+1
|
* upd765: Make SEEK also take some time, fixes KOS FORMAT command Dirk Best2017-08-181-3/+3
|
* upd765: Don't instantly finish the RECALIBRATE command Dirk Best2017-08-181-2/+9
| | | | | | The RECALIBRATE command would instantly finish if the drive was already at track 0. This introduces a slight delay, so that code can execute between issuing the command and generating an interrupt. This fixes accessing the second drive on the psi98 driver.
* Move static data out of devices into the device types. This is a ↵ Vas Crabb2017-05-141-27/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Device validation fixes, part FDC (nw) AJR2017-03-031-3/+3
|
* Self-registering devices prep: Vas Crabb2017-02-271-12/+12
| | | | | | | | | | | | | | * 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 emu.h from headers (nw) Olivier Galibert2017-02-111-0/+1
| | | | | | | | | | | | 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.
* upd765: isbc215 format expects sector size to be in result (nw) cracyc2016-12-031-1/+1
| | | | floppy: 8" motor on for create too (nw)
* Do not use FUNC in delegate where applicable (nw) Miodrag Milanovic2016-11-061-2/+2
|
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-32/+32
| | | | | 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
* Less errorlog spam. (nw) Curt Coder2016-08-161-49/+51
|
* upd765: drop redundant tag() in logerror calls (nw) Sergey Svishchev2016-08-151-49/+39
|
* for MSVC (nw) smf-2016-06-091-1/+1
|
* upd765: don't fail immediately on wrong cyl (nw) cracyc2016-05-011-3/+0
|
* upd765: indicate ready status in st0 after seek (nw) cracyc2016-04-121-2/+6
|
* reverting: Miodrag Milanovic2016-01-201-49/+49
| | | | | | | 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-201-1/+1
| | | | This reverts commit caba131d844ade3f2b30d6be24ea6cf46b2949d7.
* rest of device parameters to std::string (nw) Miodrag Milanovic2016-01-161-1/+1
|