summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/imagedev
Commit message (Collapse)AuthorAgeFilesLines
* floppy: First stab at weak zones handling [O. Galibert] Olivier Galibert2019-07-012-23/+164
|
* Missed a file, nw MooglyGuy2019-06-301-16/+0
|
* -imagedev/harddriv: Removed MCFG macros. [Ryan Holtz] mooglyguy2019-06-304-12/+12
| | | | -generic/slot: Removed MCFG macros. [Ryan Holtz]
* -snapquik: Modernized delegate and removed MCFG macros. [Ryan Holtz] MooglyGuy2019-06-302-39/+36
|
* flopdrv: Eliminate floppy_get_count (nw) AJR2019-03-292-12/+0
|
* (nw) Clean up the mess on master Vas Crabb2019-03-2614-130/+30
| | | | | | | | | | | | | 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-2514-30/+130
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* mame\drivers: removed most MCFG and MACHINE_CONFIG macros from drivers ↵ Ivan Vangelista2019-03-011-1/+1
| | | | starting with j and k (nw)
* mame\video: removed MACHINE_CONFIG macros (nw) Ivan Vangelista2019-02-141-33/+7
| | | | mame\drivers: mostly removed MACHINE_CONFIG macros from drivers starting with w, x, y and z (nw)
* Make the delay for snapshot/quickload an attotime, and allow implicit zero. ↵ Vas Crabb2019-02-061-9/+11
| | | | Removing the MCFG macros properly requires changing the pattern for the delegates. (nw)
* enable sub-second snapshot timers (nw) (#4493) Peter Ferrie2019-02-042-6/+4
| | | | | | | | | | | | | | * enable sub-second snapshot timers (nw) * switch to attotime, accept doubles * support LLVM extension in MSVC make vsllvm using extension from here: https://marketplace.visualstudio.com/items?itemName=LLVMExtensions.llvm-toolchain
* -devices/bus/bbc/1mhzbus/ieee488: Removed MACHINE_CONFIG macros, nw mooglyguy2019-02-031-0/+5
| | | | | | | | | | | | | | -devices/bus/cbmiec/interpod: Removed MACHINE_CONFIG macros, nw -devices/bus/ieee488/ieee488: Removed MCFG macros, nw -devices/bus/ieee488/softbox: Removed MACHINE_CONFIG macros, nw -devices/bus/imi7000/imi7000: Removed MCFG macro, nw -devices/imagedev/harddriv: Added constructor for setting interface tag, nw -gridcomp, hp_ipc, hp64k, sage2, softbox: Removed MACHINE_CONFIG macros, nw
* imagedev\floppy: removed MCFG macros (nw) Ivan Vangelista2019-01-282-16/+2
|
* magedev\cassette: removed MCFG macros (nw) Ivan Vangelista2019-01-221-21/+0
|
* imagedev\printer: removed MCFG macro (nw) Ivan Vangelista2019-01-211-3/+1
|
* imagedev\bitbngr: removed MCFG macros (nw) Ivan Vangelista2019-01-191-4/+0
|
* imagedev\chd_cd, diablo: removed MCFG macros (nw) Ivan Vangelista2019-01-192-27/+0
|
* midi: remove MCFG macros (nw) Ivan Vangelista2019-01-192-12/+1
|
* -bus/gameboy/gb_slot, ieee488/hp9895, psx/gamebooster, snes/sgb: Removed ↵ mooglyguy2018-12-171-1/+1
| | | | | | | | | | MCFG and MACHINE_CONFIG macros. [Ryan Holtz] -cpu/jaguar, lh5801, lr35902, z80: Removed MCFG macros. [Ryan Holtz] -video/sed1520: Removed MCFG macros. [Ryan Holtz] -drivers/gb, jaguar, monty, osborne1, pc1500, pc2000, popeye: Removed MACHINE_CONFIG macros. [Ryan Holtz]
* -mips, rsp: Removed MCFG, nw mooglyguy2018-12-091-1/+1
| | | | -aleck64, hng64, kinst, namcops2, namcos23, ps2sony, pyson, vp101: Removed MACHINE_CONFIG_*, nw
* use the magic macros in mips.cpp, change signature of stuff in floppy.h to ↵ Vas Crabb2018-11-292-9/+5
| | | | hint that it needs an array, not just a pointer, although it doesn't actually warn if you just give a pointer anyway (nw)
* (nw) fix stuff: Vas Crabb2018-11-291-1/+5
| | | | | | | | * Add per-language compiler flag options to help with exotic setups * Get rid of a potention buffer overrun in NuBus image card * CHAR_WIDTH and LONG_WIDTH are preprocessor macros in limits.h with glibc if __GLIBC_USE (IEC_60559_BFP_EXT) is enabled - avoid using them as names * Make formats/upd765_dsk.h slightly safer with defualt initialisers for key format members * Don't rely on random BSS data being zero in imagedev/floppy.cpp
* (nw) fix lots of inadverently mutable static pointers Vas Crabb2018-09-203-3/+3
|
* -mc2661,mc68328,mc6843,mc6846: De-MCFG, nw mooglyguy2018-09-081-10/+20
|
* ti9x: Various MCFG removals. (nw) Michael Zapf2018-08-211-18/+10
|
* ti99: Kill some more MCFGs. (nw) Michael Zapf2018-08-211-1/+15
|
* cassette: Allow cassette sound to be directly routed to a sound output. Michael Zapf2018-08-192-8/+65
|
* -bcreader, busmouse, cdp1852, cdp1871, cdp1879, cr511b, cs4031, cs8221, ↵ Ryan Holtz2018-08-161-1/+1
| | | | cxd1095: Removed MCFG, nw
* wd_fdc: Simplify API. Plus some collateral damage [O. Galibert] Olivier Galibert2018-08-102-1/+12
|
* -via6522: Removed MCFG acessors, nw mooglyguy2018-08-091-2/+2
|
* devcb3 Vas Crabb2018-07-073-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are multiple issues with the current device callbacks: * They always dispatch through a pointer-to-member * Chained callbacks are a linked list so the branch unit can't predict the early * There's a runtime decision made on the left/right shift direction * There are runtime NULL checks on various objects * Binding a lambda isn't practical * Arbitrary transformations are not supported * When chaining callbacks it isn't clear what the MCFG_DEVCB_ modifiers apply to * It isn't possible to just append to a callback in derived configuration * The macros need a magic, hidden local called devcb * Moving code that uses the magic locals around is error-prone * Writing the MCFG_ macros to make a device usable is a pain * You can't discover applicable MCFG_ macros with intellisense * Macros are not scoped * Using an inappropriate macro isn't detected at compile time * Lots of other things This changeset overcomes the biggest obstacle to remving MCFG_ macros altogether. Essentially, to allow a devcb to be configured, call .bind() and expose the result (a bind target for the callback). Bind target methods starting with "set" repace the current callbacks; methods starting with "append" append to them. You can't reconfigure a callback after resolving it. There's no need to use a macro matching the handler signatures - use FUNC for everything. Current device is implied if no tag/finder is supplied (no need for explicit this). Lambdas are supported, and the memory space and offset are optional. These kinds of things work: * .read_cb().set([this] () { return something; }); * .read_cb().set([this] (offs_t offset) { return ~offset; }); * .write_cb().set([this] (offs_t offset, u8 data) { m_array[offset] = data; }); * .write_cb().set([this] (int state) { some_var = state; }); Arbitrary transforms are allowed, and they can modify offset/mask for example: * .read_cb().set(FUNC(my_state::handler)).transform([] (u8 data) { return bitswap<4>(data, 1, 3, 0, 2); }); * .read_cb().set(m_dev, FUNC(some_device::member)).transform([] (offs_t &offset, u8 data) { offset ^= 3; return data; }); It's possible to stack arbitrary transforms, at the cost of compile time (the whole transform stack gets inlined at compile time). Shifts count as an arbitrary transform, but mask/exor does not. Order of mask/shift/exor now matters. Modifications are applied in the specified order. These are NOT EQUIVALENT: * .read_cb().set(FUNC(my_state::handler)).mask(0x06).lshift(2); * .read_cb().set(FUNC(my_state::handler)).lshift(2).mask(0x06); The bit helper no longer reverses its behaviour for read callbacks, and I/O ports are no longer aware of the field mask. Binding a read callback to no-op is not supported - specify a constant. The GND and VCC aliases have been removed intentionally - they're TTL-centric, and were already being abused. Other quirks have been preserved, including write logger only logging when the data is non-zero (quite unhelpful in many of the cases where it's used). Legacy syntax is still supported for simple cases, but will be phased out. New devices should not have MCFG_ macros. I don't think I've missed any fundamental issues, but if I've broken something, let me know.
* misc cleanup and stuff to make macro removal easier (nw) Vas Crabb2018-07-051-1/+11
|
* Move ROM loading macros to romentry.h and remove romload.h from emu.h (nw) AJR2018-06-243-0/+3
|
* Revert "floppy: Add an optional spinup delay to prevent unrealistic fast ↵ Olivier Galibert2018-06-182-69/+14
| | | | | | | | | | responses. Defaults to 0." This reverts commit 3c144c5b48a340bb796e2b311c36588a7e75f48d. Returning attotime::never from get_next_transition when there eventually is going to be transitions without any externally imposed state change is incorrect.
* floppy: Add an optional spinup delay to prevent unrealistic fast responses. ↵ Michael Zapf2018-06-182-14/+69
| | | | Defaults to 0.
* Floppy robustification, better bitstream handling [John Keoni Morris, Peter ↵ Olivier Galibert2018-05-261-14/+8
| | | | Ferrie, Olivier Galibert]
* More cleanup/streamlining of machine configuration and macros: Vas Crabb2018-05-152-6/+10
| | | | | | | | | | | | | * Get rid of implicit prefix for GFX decode names and prefix them all * Get rid of special macro for adding GFXDECODE in favour of constructor * Make empty GFX decode a static member of interface * Allow palette to be specified to GFXDECODE as a device finder * Removed diserial.h from emu.h as it's used relatively infrequently Also fix darkseal and vaportra propely. The palette device automatically attaches itself to a share with matching tag. The correct solution here is to rename one or the other out of the way, since it was never attached to a share before.
* dsp16: fix condition mask in disassembler (nw) Vas Crabb2018-05-091-5/+5
| | | | (nw) remove more MCFG macros and make speaker config more explicit
* floppy: Created floppies need to be initialized the same way as loaded floppies Dirk Best2018-05-082-24/+29
|
* Streamline machine configuration macros - everyone's a device edition. Vas Crabb2018-05-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Start replacing special device macros with additional constructors, starting with ISA, INTELLEC 4 and RS-232 buses. Allow an object finder to take on the target of another object finder. (For a combination of the previous two things in action, see either the INTELLEC 4 driver, or the Apple 2 PC Exporter card. Also check out looping over a device finder array to instantiate devices in some places. Lots of things no longer need to pass tags around.) Start supplying default clocks for things that have a standard clock or have all clocks internal. Eliminate the separate DEV versions of the DEVCB_ macros. Previously, the plain versions were a shortcut for DEVICE_SELF as the target. You can now supply a string tag (relative to current device being configured), an object finder (takes on the base and relative tag), or a reference to a device/interface (only do this if you know the device won't be replaced out from under it, but that's a safe assumption for your subdevices). In almost all cases, you can get the effect you want by supplying *this as the target. Eliminate sound and CPU versions of macros. They serve no useful purpose, provide no extra checks, make error messages longer, add indirection, and mislead newbies into thinking there's a difference. Remove a lot of now-unnecessary ":" prefixes binding things relative to machine root. Clean up some miscellaneous rot. Examples of new functionality in use in (some more subtle than others): * src/mame/drivers/intellec4.cpp * src/mame/drivers/tranz330.cpp * src/mame/drivers/osboren1.cpp * src/mame/drivers/zorba.cpp * src/mame/devices/smioc.cpp * src/devices/bus/a2bus/pc_xporter.cpp * src/devices/bus/isa/isa.h * src/devices/bus/isa/isa.h * src/devices/bus/intellec4/intellec4.h
* Allow devcb to be bound to a device/mixin or the target of a device Vas Crabb2018-05-022-2/+2
| | | | | | | | | | finder. This works outside machine configuration context so the workarounds in ATA HLE and MSX slots are no longer necessary. It also allows reduction in tag repetition in machine configuration (see converted osborne1.cpp, zorba.cpp or the more extreme tranz330.cpp). Allow reimagined device instantiation to take a device finder based on current device being configured to reduce repetition (see tranz330.cpp).
* destaticify initializations (nw) (#3289) wilbertpol2018-03-049-37/+37
| | | | | | * destaticify initializations (nw) * fix this->set_screen (nw)
* de-staticify initializations for src/devices/sound (nw) Wilbert Pol2018-02-251-1/+1
|
* API Change: Machine configs are now a method of the owner class, and the ↵ Olivier Galibert2018-01-173-5/+5
| | | | | | | | | | prototype is simplified [O. Galibert] Beware, the device context does not follow in MCFG_FRAGMENT_ADD anymore due to the prototype change. So creating a device then configuring through a fragment doesn't work as-is. The simplest solution is just to add a MCFG_DEVICE_MODIFY at the start of the fragment with the correct tag.
* Some legacy floppy fixes and cleanups (#3047) Oliver Stöneberg2018-01-132-7/+6
| | | | | | | | | | * thomflop.cpp: removed usage of floppy_get_drive() (nw) * flopdrv.cpp: got rid of bogus default drive in lookup functions (nw) * flopdrv.cpp: avoid some potential nullptr dereferences (nw) * flopdrv.cpp: made floppy_get_drive() internal (nw)
* cassette_image_device::set_state() did not use the supplied state at all (nw) firewave2018-01-101-1/+1
|
* floppy: Add TEAC FD-30A 3 inch floppy drive Dirk Best2017-11-012-0/+37
|
* srcclean (nw) Vas Crabb2017-10-221-1/+1
|
* hiscore.dat: updates [Leezer] cracyc2017-10-151-2/+3
| | | | floppy: comment out breaky stuff (nw)
* floppy.h: Don't change sides if the drive has only one head. (nw) Curt Coder2017-10-121-1/+1
|