summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine (follow)
Commit message (Collapse)AuthorAgeFilesLines
* osborne1.cpp: don't need the timer to run every scanline if it's only for ↵ Vas Crabb2019-12-061-5/+5
| | | | the beep (doesn't really improve performance)
* osborne1.cpp: Vas Crabb2019-12-061-93/+137
| | | | | | | | * Move drawing to scanline update function and get rid of intermediate bitmap * Connect VBLANK input to PIA in machine configuration * Use the screen parameters set by the BIOS in machine configuration for osborne1nv * Turned SCREEN-PAC variant into a separate machine as it's a major hardware modification * Got back some performance by adding a memory access cache
* xbox_pci.cpp: found gpio pins mode registers (nw) yz70s2019-12-061-0/+14
|
* m6802, nsc8105: Internalize internal RAM (nw) AJR2019-12-012-2/+0
|
* xbox_pci.cpp: set interrupt pin configuration byte (nw) yz70s2019-11-291-0/+9
|
* updated my recent commits to initialize bools with false instead of 0, as ↵ Ivan Vangelista2019-11-281-4/+4
| | | | suggested (nw)
* esqpanel.cpp: initialization (nw) Ivan Vangelista2019-11-272-6/+7
|
* xbox_pci.cpp: support io port 61 (nw) yz70s2019-11-241-4/+51
|
* xbox_usb.cpp: remove some problems (nw) yz70s2019-11-241-3/+10
|
* srcclean and indentation cleanup (nw) Vas Crabb2019-11-245-70/+70
|
* hook up victnine mcu, tested that it boots at least DavidHaywood2019-11-211-110/+0
|
* vt1682.cpp - (plug & play) mostly fixed raster effects (#5937) David Haywood2019-11-213-20/+36
| | | | | | | | * some kind of rasters (nw) * fix raster timer, clean up (nw) * srcclean (nw)
* 32x: move game specific notes to hash file angelosa2019-11-211-8/+0
|
* vt1682.cpp - (plug & play) Pushed ALU and Timers into devices, fixed some ↵ David Haywood2019-11-205-0/+649
| | | | | | | | | | | | | | | | | | | | | | game logic, fixed some graphical issues (#5932) * vt1682 alu is now a device (nw) * prepare to make times devices (nw) * push timer logic into devices (nw) * naming fixes (nw) * useful trampoline (nw) * (nw) * hmm timer math, I'm not sure about timer math (nw) * messing with rasters (nw) * move zone40 to vt1682, while it definitely isn't plain 1682 I think it's more likely closer to it than it is to SunPlus
* vt1682.cpp : map some controls, which work for the 32-in-1 (#5922) David Haywood2019-11-182-0/+191
| | | | | | | | | | | | | | | | | | * reference table (nw) * move some machine specific stuff into different class (nw) * put things behind log macros (nw) * add in some controls, that work for the 32-in-1 at least (nw) * note (nw) * hide excessive logging (nw) * dma fix for tetris (nw) * alu work (nw)
* misc cleanup: (nw) Vas Crabb2019-11-192-9/+7
| | | | | | | * clean up some palettes * clean up some bitscanning and indentation in olibuchu * rename machine/epos.cpp to machine/pacman.cpp as it's unrelated to drivers/epos.cpp * move epos-on-pacman members from pacman_state to derived epospm_state
* Fix more region widths (nw) AJR2019-11-161-1/+1
|
* netlist: more code maintenance. (nw) couriersud2019-11-161-6/+0
| | | | | | - refactor error messages. - Fix some drivers to cope with outputted added my the mame driver for video and sound. - Fix validation.
* add some scrambling modes for various nes_vt based things, polmega and ↵ David Haywood2019-11-164-0/+240
| | | | | | | | | | silv35 now boot (nw) (#5907) * implement vt1682 scrambling (nw) * allow polmega and silv35 to boot (nw) * note about palette (nw)
* new WORKING machines (ABL Pinball) + temp disable timer IRQ in rad_bb3 + ↵ David Haywood2019-11-152-3/+42
| | | | | | | | | | significant nes_vt cleanups / state chop (#5900) new WORKING machines -------------------- Pinball (P8002, ABL TV Game) [David Haywood, Morten Kirkegaard, Peter Wilhelmsen] * divided up large nes_vt.cpp class, and did some general tidy up, commented some known addresses etc. to stop code rot. * temporarily disabled timer on elan when running rad_bb3 until timer enable can be identified, made a few notes.
* qix.cpp: side effects, unmapped reads (nw) Vas Crabb2019-11-151-8/+12
|
* netlist: Proxy and power terminal hack removal. [Couriersud] couriersud2019-11-149-4/+49
| | | | | | | | | | | | | | | | | | - Devices ttlhigh and ttlhow are no longer automatically created. - All logic input devices (e.g. TTL_INPUT, LOGIC_INPUT) now need to have their power terminals (VCC, GND) connected. This opens the route for more appropriate proxy devices but comes at a cost. If the connections are omitted your circuit will not work as expected. Example: LOGIC_INPUT(I_SD0, 1, "AY8910PORT") NET_C(VCC, I_SD0.VCC) NET_C(GND, I_SD0.GND) - Updated all netlists. - Removed proxy information from terminal objects. This was replaced by a lookup hash whose life-span does not exceed netlest setup. These changes enable the removal of a number of hacks from the source going forward.
* -snes_ppu: Converted OAM code from bsnes ppu-fast, nw MooglyGuy2019-11-141-9/+2
|
* continued elan refactoring (nw) (#5892) David Haywood2019-11-126-10/+144
| | | | | | | | | | | | | | * cointinued elan refactoring (nw) * fake a timer interrupt to force Air Blaster Joystick 3D stages forward (nw) * notes on bugs present on Air Blaster original hw (nw) * lower frequency (nw) * improve split scroll mode for air blaster joystick 3d stage bosses (nw) * change wording (nw)
* Eliminate a few more uses of auto_alloc (nw) AJR2019-11-101-1/+1
|
* thomson.cpp: Improve floppy device encapsulation (nw) AJR2019-11-103-436/+451
| | | | | | | - Eliminate all global-level static variables and functions in thomflop.cpp - Simplify read/write handlers for floppy interfaces mc6843: Simplify read/write handlers (nw)
* netlist: first steps on the way to calculated parameters. [Couriersud] couriersud2019-11-101-16/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | This commit is a first step towards using formulas in parameters, i.e. MAINCLOCK(clock, 20 * 30) The intention is to improve readability and scalability. Since device registration already provides all necessary information about parameters, the code to create an include file for all devices has been improved. Long term, this will remove the need for device specific header files. In addition going forward devices will accept either no connections or all specified connections, i.e. TTL_7400_NAND(name, chip1.2, chip2.3) or TTL_7400_NAND(name) NET_C(...) NET_C(...) This will allow to remove all duplicate definitions which are currently necessary, i.e. TTL_7400_NAND/TTL_7400_GATE
* start putting noexcept on things that have no business throwing exceptions, ↵ Vas Crabb2019-11-1014-133/+135
| | | | starting with diimage. also fix a slight bug in the interface matching function for software list parts. (nw)
* 315-5649: fix prev (nw) MetalliC2019-11-091-4/+19
|
* netlist: code maintenance and bug fixes. (nw) couriersud2019-11-081-33/+0
| | | | | | | - comment style migration continues. - Fixed a two bugs in the truthtable ignore inputs code - refactored the truthtable code a bit for better readability. - updated netlist specific gitignore.
* swtpc, swtpc09: save state, port change, cleanups 68bit2019-11-081-51/+81
|
* HP optional ROMs: address issue #5839 (#5873) fulivi2019-11-086-0/+509
| | | | | | | | * hp80: refactored optional ROM device as requested in issue #5839 * hp9825: refactored optional ROM device as requested in issue #5839 * hp9845: refactored optional ROM device as requested in issue #5839
* 315-5649: populate features for future use MetalliC2019-11-072-6/+28
|
* bbc.cpp: Replaced ROM/RAM memory banks with handlers to allow access from ↵ Nigel Barnes2019-11-061-164/+331
| | | | | | | | | internal expansion boards. - Added slot interface for internal expansion boards. - Added BBC Master cartridge slot interface to allow implementation of more complex cartridges, including Electron cartridge devices. - Removed Sideways RAM configuration option, to be re-implemented as internal boards. - Empty BBC Master cartridge sockets return video data on data bus.
* (nw) be strictly POSIX compliant, reduce fragmentation, get rid of an unused ↵ Vas Crabb2019-11-052-6/+7
| | | | member
* flopdrv: Even legacy devices need some code cleanup (nw) AJR2019-11-056-57/+36
| | | | | | - Get rid of the hardcoded FLOPPY_n tags as much as practical, mostly adding device finder arrays in their place - Move remaining functions using FLOPPY_n down into appldriv and sonydriv (both of which may be eliminated once FDC emulation is modernized) - Replace CLEAR_LINE and ASSERT_LINE with 0 and 1 (these were being inaccurately used to represent active-low control line states)
* Plug & Play / Elan EU3A05 / EU3A14 splitting up, identifying of common ↵ David Haywood2019-11-038-17/+583
| | | | | | | | | | | | | | | | | | | | | | | | | | | | features etc. (#5849) * elan eu3a05 / eu3a14 - identify some common bits (nw) * some elan refactoring baed on current knowledge / standards (nw) * elan refactoring (nw) * elan splitting / refactoring (nw) * validate (nw) * note used areas (nw) * register observations (nw) * another observation (nw) * add the sprite double feature (nw) * rendering tweaks (nw) * rendering improvements for air blaster 3d stages (nw) * refactoring (nw)
* pongf, rebound: Performance increases. [Couriersud] couriersud2019-11-032-5/+8
| | | | Switched nl_pongf to dynamic timestepping. Pongf now runs about 20% faster than previously. About the same for rebound.
* -snes: Fixed off-by-one-line graphical glitches in some games, nw MooglyGuy2019-11-031-1/+1
|
* Fix rebound. (nw) couriersud2019-11-021-3/+4
|
* m6502: Eliminate the disable_cache hack (nw) AJR2019-11-024-5/+5
| | | | Now that `direct_read_data` has been replaced with `memory_access_cache`, which is better equipped to deal with dynamic banking, there should be all the more reason to put an end to this pernicious antipattern.
* New working clones of spooky games AJR2019-11-011-2/+2
| | | | | | | ---------------------------------- Eeekk! [Craig Anstett, Andrew Welburn] (This new parent set runs on Epos's original Tristar 8000 hardware; the previously dumped set has been tagged as the Pac-Man conversion it is.)
* Spring cleaning: Vas Crabb2019-11-0111-232/+190
| | | | | | | | | | | | * Changed emu_fatalerror to use util::string_format semantics * Fixed some incorrectly marked up stuff in build scripts * Make internal layout compression type a scoped enum (only zlib is supported still, but at least the values aren't magic numbers now) * Fixed memory leaks in Xbox USB * There can only be one "perfect quantum" device - enforce that only the root machine can set it, as allowing subdevices to will cause weird issues with slot cards overiding it * Allow multiple devices to set maximum quantum and use the most restrictive one (it's maximum quantum, it would be minimum interleave) * Got rid of device_slot_card_interface as it wasn't providing value * Added a helper template to reduce certain kinds of boilerplate in slots/buses * Cleaned up some particularly bad slot code (plenty more of that to do), and made some slots more idiomatic
* EPC: Keyboard working, added leds and removed imperfect feature (#5832) Joakim Larsson Edström2019-10-302-3/+20
| | | | | | | | | | | | * i8251.cpp: required initial state to enable receiver of a 8251a and also to avoid sending start bit to diserial on reset and get framing error * eispc_kb.cpp: removed need for scheduler abuse as problem is fixed by correcting the init of the i8251 USART on host side instead * eispc.cpp: removed an obsolete TODO * eispc_kb.h: removed imperfect_features marking * epc: Added keyboard LEDs, Caps and Num lock works with current keyboard rom, scroll lock led needs a dump from a newer keyboard
* i8251a initilization changed (#5825) Joakim Larsson Edström2019-10-291-5/+0
| | | | | | | | * i8251.cpp: required initial state to enable receiver of a 8251a and also to avoid sending start bit to diserial on reset and get framing error * eispc_kb.cpp: removed need for scheduler abuse as problem is fixed by correcting the init of the i8251 USART on host side instead * eispc.cpp: removed an obsolete TODO
* Make devdelegate more like devcb for configuration. This is a Vas Crabb2019-10-2683-670/+668
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fundamental change to show device delegates are configured. Device delegates are now aware of the current device during configuration and will resolve string tags relative to it. This means that device delegates need a device to be supplied on construction so they can find the machine configuration object. There's a one-dimensional array helper to make it easier to construct arrays of device delegates with the same owner. (I didn't make an n-dimensional one because I didn't hit a use case, but it would be a simple addition.) There's no more bind_relative_to member - just call resolve() like you would for a devcb. There's also no need to cast nullptr when creating a late bind device delegate. The flip side is that for an overloaded or non-capturing lambda you'll need to cast to the desired type. There is one less conditional branch in the hot path for calls for delegates bound to a function pointer of member function pointer. This comes at the cost of one additional unconditional branch in the hot path for calls to delegates bound to functoids (lambdas, functions that don't take an object reference, other callable objects). This applies to all delegates, not just device delegates. Address spaces will now print an error message if a late bind error is encountered while installing a handler. This will give the range and address range, hopefully making it easier to guess which memory map is faulty. For the simple case of allowing a device_delegate member to be configured, use a member like this: template <typename... T> void set_foo(T &&...args) { m_foo_cb.set(std::forward<T>(args)...); } For a case where different delegates need to be used depending on the function signature, see src/emu/screen.h (the screen update function setters). Device delegates now take a target specification and function pointer. The target may be: * Target omitted, implying the current device being configured. This can only be used during configuration. It will work as long as the current device is not removed/replaced. * A tag string relative to the current device being configured. This can only be used during configuration. It will not be callable until .resolve() is called. It will work as long as the current device is not removed/replaced. * A device finder (required_device/optional_device). The delegate will late bind to the current target of the device finder. It will not be callable until .resolve() is called. It will work properly if the target device is replaced, as long as the device finder's base object isn't removed/replaced. * A reference to an object. It will be callable immediately. It will work as long as the target object is not removed/replaced. The target types and restrictions are pretty similar to what you already have on object finders and devcb, so it shouldn't cause any surprises. Note that dereferencing a device finder will changes the effect. To illustrate this: ... required_device<some_device> m_dev; ... m_dev(*this, "dev") ... // will late bind to "dev" relative to *this // will work if "dev" hasn't been created yet or is replaced later // won't work if *this is removed/replaced // won't be callable until resolve() is called cb1.set(m_dev, FUNC(some_device::w)); ... // will bind to current target of m_dev // will not work if m_dev is not resolved // will not work if "dev" is replaced later // will be callable immediately cb2.set(*m_dev, FUNC(some_device::w)); ... The order of the target and name has been reversed for functoids (lambdas and other callable objects). This allows the NAME macro to be used on lambdas and functoids. For example: foo.set_something(NAME([this] (u8 data) { m_something = data; })); I realise the diagnostic messages get ugly if you use NAME on a large lambda. You can still give a literal name, you just have to place it after the lambda rather than before. This is uglier, but it's intentional. I'm trying to drive developers away from a certain style. While it's nice that you can put half the driver code in the memory map, it detracts from readability. It's hard to visualise the memory range mappings if the memory map functions are punctuated by large lambdas. There's also slightly higher overhead for calling a delegate bound to a functoid. If the code is prettier for trivial lambdas but uglier for non-trivial lambdas in address maps, it will hopefully steer people away from putting non-trivial lambdas in memory maps. There were some devices that were converted from using plain delegates without adding bind_relative_to calls. I fixed some of them (e.g. LaserDisc) but I probably missed some. These will likely crash on unresolved delegate calls. There are some devices that reset delegates at configuration complete or start time, preventing them from being set up during configuration (e.g. src/devices/video/ppu2c0x.cpp and src/devices/machine/68307.cpp). This goes against the design principles of how device delegates should be used, but I didn't change them because I don't trust myself to find all the places they're used. I've definitely broken some stuff with this (I know about asterix), so report issues and bear with me until I get it all fixed.
* srcclean (nw) Vas Crabb2019-10-261-1/+1
|
* eispc_kb: marked keyboard as imperfect as it generates Keyboard Error, press ↵ Joakim Larsson Edstrom2019-10-251-0/+2
| | | | F1 message
* Machines promoted to working Sandro Ronco2019-10-241-0/+4
| | | | | ---------------------------- NCR Decision Mate V [Sandro Ronco, rfka01]
* -screen: Added support for screens that vary horizontal width mid-frame, and ↵ MooglyGuy2019-10-241-2/+2
| | | | hooked it up to the SNES driver. Fixes dkongcu intro and others. [Ryan Holtz]