summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/bbusters.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rearrange source to match project structure (done using the script in ↵ Vas Crabb2022-06-271-788/+0
| | | | src/tools).
* - diverboy.cpp, exzisus.cpp: finders, other minor cleanups Ivan Vangelista2022-03-281-13/+1
| | | | - various drivers: removed some custom GFX decodes in favor of the ones provided in emu/video/generic.cpp
* init vars for coverity (drivers/b) Robbbert2022-03-251-2/+2
|
* ymfm: Refactor new FM engine into a 3rdparty library (#8046) Aaron Giles2021-05-141-1/+1
| | | | | | | | | | | | | | | ymfm: refactor the code into a separate 3rdparty library * Moved ymfm core implementation to 3rdparty/ymfm * Split out each family (OPM/OPN/OPL/etc) into its own source file * Added preliminary OPQ and OPZ support, still WIP * Put all 3rdparty code into its own namespace ymfm * Fixed various bugs reported in #8042 * Created interface class for communication between the 3rdparty engine and the emulator * Standardized MAME implementation of all Yamaha devices based on a template class * Created standard base class ym_generic that can be used when multiple YM chips are swapped in * Changed YM2203/2608/2610 to embed a YM2149 as a subdevice instead of deriving from ay8910_device * Also provided compile-time option to use a simplified built-in SSG rather than using MAME's at all (currently off) * Consolidated MAME header files from one-per-chip (ym2151.h, ym2203.h, etc) to one-per-family (ymopm.h, ymopn.h, etc)
* Miscellaneous formatting adjustments Vas Crabb2021-03-311-13/+17
|
* Refactoring and bug fixes for bbusters and mechatt: (#7902) David Haywood2021-03-311-593/+260
| | | | | | | * Moved sprite handling to a device. * Adjusted audio balance on mechatt (channel 0 was overpowering everything). * Adjusted priority handing on mechatt (planes now correctly rise from underground hanger on stage 3, train carts in later level). * Split driver in two, general refactoring etc. * Removed player 2 inputs from mechattu1 - it doesn't respond to them at all.
* Fix memory regions on YM2608 games. Aaron Giles2021-03-191-4/+4
|
* Corrected some ymsnd regions that had been overlooked. Robbbert2021-02-281-4/+4
|
* New BSD-licensed implementation of Yamaha OPN and OPM FM audio chips (#7808) Aaron Giles2021-02-271-12/+12
| | | New BSD-licensed implementation of Yamaha OPN and OPM FM audio chips, along with new device drivers for YM2203, YM2608, YM2610, YM2610B, YM2612, YM3438, and YM2151 based upon these.
* drivers starting with a and b: finished removing READ/WRITE macros (nw) Ivan Vangelista2020-06-051-7/+7
|
* srcclean (nw) Vas Crabb2019-06-231-9/+9
|
* bbusters: Update gun handling, fixes MT07333 Dirk Best2019-05-281-56/+32
| | | | | | | | | - Use UPD7004 device - Adjust gun limits to the factory defaults - Remove no longer needed default eeproms Calibration in service mode now also works and doesn't cause the game to refuse to boot.
* bbusters: That's not a parallel EEPROM type (nw) AJR2019-05-241-1/+1
|
* bbusters.cpp: added coin counters (nw) Ivan Vangelista2019-05-241-7/+15
|
* gen_latch.cpp : Remove unnecessary arguments in handlers (#4623) cam9002019-03-291-1/+1
| | | | | | | | * gen_latch.cpp : Remove unnecessary arguments in acknowledge related handlers * gen_latch.cpp : Remove unnecessary handlers in 16 bit read/write handlers * gen_latch.cpp : Remove unnecessary arguments in 8 bit handlers
* -devices/sound/2608intf, 2610intf: Removed MCFG macros, nw mooglyguy2018-12-291-30/+30
| | | | -drivers/2mindril, aerofgt, asuka, bbusters, bingowav, crshrace, f1gp, fromanc2, gstriker, inufuku, mcatadv, neoprint, ninjaw, othunder, pipedrm, slapshot, suprslam, taito_b, taito_f2, taito_h, taito_x, taito_z, taitoair, taotaido, warriorb, wc90, welltris, wgp, yuvomz80: Removed MACHINE_CONFIG macros, nw
* Start cleaning up palette configuration: Vas Crabb2018-12-291-6/+4
| | | | | | | | | | * Basically, initialisers go in the constructor arguments, and things for setting format go in set_format. * Initialisation patterns can be specified with an enum discriminator or with a FUNC and optionally a tag. * Formats can be specified with an enum discriminator or a size and function pointer. * You must always supply the number of entries when setting the format. * When initislising with a paletter initialisation member, you can specify the entries and indirecte entries together. * The palette_device now has a standard constructor, so use .set_entries if you are specifying entry count with no format/initialisation. * Also killed an overload on delegates that wasn't being useful.
* misc cleanup (nw) Vas Crabb2018-12-271-12/+12
|
* gen_latch: removed MCFG macros (nw) Ivan Vangelista2018-11-151-4/+4
|
* Beast Busters - remove imperfect sound bmcphail2018-09-051-5/+5
| | | | Reference video at https://www.youtube.com/watch?v=i3txCb5tpkc
* Beast Busters - fix sprite priority bmcphail2018-09-041-13/+5
| | | | | | | | Credit to Daniel Filner for information. Palettes 0xc-0xf on 2nd sprite chip behind the tilemap - confirmed on level 2 and matches real hardware video. Removed imperfect_graphics flags as no open bugs. (question - why is this marked as imperfect audio when there are no notes in the driver or open mametesters bugs?)
* -nvram: Removed MCFG, nw mooglyguy2018-08-241-1/+1
|
* bbusters.cpp Update/Cleanups (#3666) cam9002018-07-131-214/+188
| | | | | | | * bbusters.cpp Update/Cleanups bbusters.cpp : Split mechatt_state(difference at tilemap size, number of sprite layer, gun in/output, used register), Cleanup duplicates, Reduce runtime tag lookups, Move GFX byte-swap into ROM load * bbusters.cpp : Fix mechatt regression
* devcb3 Vas Crabb2018-07-071-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Remove emupal.h from emu.h (nw) AJR2018-06-131-0/+1
|
* as if millions of this pointers suddenly cried out in terror, and were ↵ Vas Crabb2018-06-081-16/+16
| | | | | | | 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
* diexec: Interrupt API changes (nw) AJR2018-05-181-1/+1
| | | | | | - PULSE_LINE is no longer a value. Existing uses have been changed to pulse_input_line with attotime::zero as the second argument. - Formerly only INPUT_LINE_NMI and INPUT_LINE_RESET were allowed with PULSE_LINE. INPUT_LINE_NMI no longer receives special handling; instead, CPU devices must specify which of their input lines are edge-triggered and thus may be used with zero-width pulses by overriding the execute_input_edge_triggered predicate. INPUT_LINE_RESET is still special-cased, however. - execute_default_irq_vector now allows a different default vector to be specified for each input line. This added flexibility may or may not prove useful.
* Revert "- Removed MACHINE/SOUND/VIDEO _START/_RESET macros. This has the ↵ Vas Crabb2018-05-161-2/+2
| | | | | | | | | | | | side effect of making machine-config overrides of these much" This reverts commit c83e2a853d4e1643fcc85b68ada3c6f7f33adea4. Revert "fix compile. (nw)" This reverts commit a259ba3e366f442a22a9341755ff58163869860c. GCC is being bad and allowing invalid C++ that other compilers reject.
* - Removed MACHINE/SOUND/VIDEO _START/_RESET macros. This has the side effect ↵ MooglyGuy2018-05-161-2/+2
| | | | | | of making machine-config overrides of these much uglier, but this is intended to discourage ongoing use, and will be gradually eliminated.
* More cleanup/streamlining of machine configuration and macros: Vas Crabb2018-05-151-4/+4
| | | | | | | | | | | | | * 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.
* Removed DRIVER_INIT-related macros, made driver init entry in GAME/COMP/CONS ↵ MooglyGuy2018-05-131-10/+10
| | | | | | | | | | | | explicit. (#3565) * -Removed DRIVER_INIT macros in favor of explicitly-named member functions, nw * -Removed DRIVER_INIT_related macros. Made init_ prefix on driver initializers explicit. Renamed init_0 to empty_init. Fixed up GAME/COMP/CONS macro spacing. [Ryan Holtz] * Missed some files, nw * Fix compile, (nw)
* dsp16: fix condition mask in disassembler (nw) Vas Crabb2018-05-091-2/+4
| | | | (nw) remove more MCFG macros and make speaker config more explicit
* (nw) misc follow-up Vas Crabb2018-05-061-3/+3
| | | | | | | | | | | | Fix MT06964 Fix µPD7759 class hierarchy, and reset callback before resolving it (fixed assert in Sega C2) Remove some more low-value device add indirection macros, default some more clocks Make cards inherit clock from slot by default
* Streamline machine configuration macros - everyone's a device edition. Vas Crabb2018-05-061-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Address maps macros removal, pass 1 [O. Galibert] Olivier Galibert2018-03-141-60/+65
|
* API change: Memory maps are now methods of the owner class [O. Galibert] Olivier Galibert2018-02-121-5/+5
| | | | | Also, a lot more freedom happened, that's going to be more visible soon.
* memory: Deambiguate handlers, also a hint of things to come (nw) Olivier Galibert2018-01-191-2/+2
|
* API Change: Machine configs are now a method of the owner class, and the ↵ Olivier Galibert2018-01-171-2/+2
| | | | | | | | | | 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.
* Do the easy ones (nw) Olivier Galibert2018-01-011-2/+2
|
* bbusters.cpp: swap 3 player & 2 player Japanese sets as 3 player versions ↵ briantro2017-11-121-6/+6
| | | | are norm (nw)
* bbusters.cpp: Correct hash values for new set (nw) briantro2017-09-161-3/+3
|
* bbusters.cpp: Ok, Japanese sets are 2 player and new 3 player, so change ↵ briantro2017-09-161-5/+5
| | | | description. (nw)
* new working clone - Beast Busters (Japan, Version 2, J3) briantro2017-09-151-12/+60
| | | | | | New Working Clone added ------------------------------------------ Beast Busters (Japan, Version 2, J3) [Layer @ jammaplus]
* Move static data out of devices into the device types. This is a ↵ Vas Crabb2017-05-141-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Convert screen_device VBLANK callback to devcb_write_line AJR2017-03-101-8/+3
| | | | | | - WRITE_LINE callback has same functionality, except that screen is not an argument - Rename screen_eof_xxx to screen_vblank_xxx in many drivers - No changes to externally registered vblank delegates or screen update methods
* Self-registering devices prep: Vas Crabb2017-02-271-2/+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.
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-1/+1
| | | | | 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
* second-to-last gen_latch.cpp update (nw) Ivan Vangelista2016-06-091-2/+6
|
* new clones David Haywood2016-04-051-5/+50
| | | | | | Beast Busters (Japan, Version 2) [ShouTime] looks like Japan release is 2 player, not 3, so probably need to disable P3 inputs on it.
* make output be part of driver_device (nw) Miodrag Milanovic2016-01-101-5/+5
|