summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video (follow)
Commit message (Collapse)AuthorAgeFilesLines
* namco_c355spr.cpp : Fix priority when pri 0 sprite isn't drawed first (#6011) cam9002019-12-062-4/+10
| | | | | | * namco_c355spr.cpp : Convert vblank handler into register_vblank_callback * namco_c355spr.cpp : Revert vblank related commits
* fcrash.cpp, segas16a.cpp: fixed assert Expression: ↵ Ivan Vangelista2019-12-041-3/+2
| | | | dest.cliprect().contains(cliprect) in debug builds, as done in 854469730fd5d2a1e1365b126f6da3558f329ac3 (nw(
* namcofl.cpp : Use address_map_bank_device for ROM/RAM swapping, Use raw ↵ cam9002019-12-031-2/+2
| | | | | parameter for screen, Add notes, Fix sprite delaying, Fix namings (#5985) finalapr : Use IMPERFECT_GRAPHICS tag related to sprite disappearing issue
* speedatk.cpp : Fixed tilemap wrong bit assignment (#6001) sasuke-arcade2019-12-021-2/+2
| | | By this bonus rate are displayed correctly.
* skyfox.cpp : Background pattern adjustment compared to PCB strictly. (#5979) sasuke-arcade2019-11-291-10/+14
|
* Fix typo (nw) arbee2019-11-291-1/+1
|
* apple2: perform single-pixel shift for HGR monochrome with bit 7 set [R. ↵ arbee2019-11-281-2/+49
| | | | Belmont, SoltanGris42]
* Sam Coupe: fix, additions (#5947) Tom2019-11-291-1/+1
| | | | | | | | | | | | * fix mode 1/2 colours * add some sw * added joysticks * added f16demo to cassette softlist * remove evil joycode
* updated my recent commits to initialize bools with false instead of 0, as ↵ Ivan Vangelista2019-11-281-28/+28
| | | | suggested (nw)
* m68kmmu: Fixed issues with Domain/OS and its installer crashing [Hans ↵ arbee2019-11-271-1/+2
| | | | | | Ostermeyer] apollo: Fixed failures in DEX DISP7C tests 170 and 210 and selftest TE [Hans Ostermeyer]
* ygv608.cpp: initialized stuff in the constructor (nw) Ivan Vangelista2019-11-272-12/+112
|
* skyfox.cpp : Improve background based on PCB (#5976) sasuke-arcade2019-11-271-19/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | * skyfox.cpp : Improve background based on PCB The previous background implementation was completely wrong. I found stars position stored in memory. I used this to rewrite the background drawing code. Reference PCB video: - https://www.youtube.com/watch?v=oyE1CfcVrDc - https://www.youtube.com/watch?v=5QhTNrNH-CU * Remove debug code. * Organize code and adjust display - Split background VRAM and work RAM from addresses map - Rename DECLARE_WRITE8_MEMBER - Remove unused interupt declarations - Adjust background star display * Fixed problems with flipscreen - Adjust sprite position - Remove background flip
* galivan.cpp : Add hide text layer support, and fix text color attlibute (#5957) sasuke-arcade2019-11-241-14/+65
| | | | | | | | | | | | * galivan.cpp : Add hide text layer support, and fix text color attlibute - 06946: dangar, dangara, dangarb, dangarbt, dangarj: missing black screen between areas (black hole warp) - 07493: dangar, dangara, dangarb, dangarj, galivan, galivan2, galivan3: Some text displays red, but actial is white - Fixed corrupt title logo of dangar. * Fix source format * Fix source format
* teracre.cpp: Add hide text layer support (used in Cofree break of horekid) Sasuke2019-11-241-1/+4
| | | | - 07494: horekid, horekidb, boobhack: Coffee break doesn't show
* srcclean and indentation cleanup (nw) Vas Crabb2019-11-247-196/+196
|
* tmap038.cpp : Add tile size check related to vram is found, Move mirroring ↵ cam9002019-11-233-29/+23
| | | | map into driver
* popeye: Applied recommended code changes. (nw) couriersud2019-11-231-5/+5
|
* popeye: Add interlaced rendering. [Couriersud] couriersud2019-11-231-17/+46
| | | | | | | | | | | | - fixes MT05600 - There are now three rendering modes selectable via machine config: - false progressive: same as before. - Interlaced (scanline skip): only the current field is drawn with the other field's scanlines blacked. This gives the same flickering impression as interlaced display. - Interlaced (bitmap): Bitmap is constructed from odd and even fields. Result is comparable to PAL/NTSC videos played back on progressive displays without additional processing. - Some modernisation, all members initialized in constructor.
* Cps1 bootlegs, some more new sets (#5895) Tom2019-11-141-0/+2
| | | | | | | | | | | | * added captcommb2 * added knightsb3 * added dinopic3 * confirm clocks * bootleg reshuffle
* ms32.cpp: fix hayaosi3 final round and flame text priorities [Angelo Salese] angelosa2019-11-131-7/+22
|
* continued elan refactoring (nw) (#5892) David Haywood2019-11-121-8/+7
| | | | | | | | | | | | | | * 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-107-12/+12
|
* continued Elan (Plug & Play) refactoring (#5882) David Haywood2019-11-114-131/+288
| | | | | | | | | | | | | | * elan code refactoring (nw) * save the obvious (nw) * continued refactoring (nw) * elan refactoring (nw) * continued refactor (nw) * continued elan refactoring (nw)
* Cps1 bootleg, new sets + fixes (#5887) Tom2019-11-091-0/+3
| | | | | | | | | | | | | | * add slampic2, fix slampic scroll priorities * added sf2amf3 * slampic fix priorities (properly), fix player 4 * final slampic fixes * fix sf2amf3 * add sf2amf2/3 extra dipsw settings
* Make many device_execute_interface functions noexcept, including the ↵ AJR2019-11-091-3/+3
| | | | | | | | "information" overrides. This also covers several time-related functions in attotime, running_machine and emu_timer. (nw) m6805: Calculate min_cycles and max_cycles once at device_start time (Nw) attotime: Add as_khz and as_mhz (nw)
* start trying to identify more sound related features on the elan hw (nw) + ↵ David Haywood2019-11-082-0/+856
| | | | | | | | | | | | | | | | Senario Poker SunPlus (not working) (#5874) * elan sound stuff (nw) * move more audio bits into audio file (nw) * new NOT WORKING machines ----- Texas Hold'em TV Poker - 6 Player Edition (UK) [David Haywood, Morten Kirkegaard, Peter Wilhelmsen] need to emulate the controllers etc. (currently requires debug hack to boot past initial logo) * start moving some more elan stuff around (nw)
* raiden.cpp: Fix graphical regression in raidenb and raidenub; improve set ↵ AJR2019-11-061-5/+13
| | | | descriptions (nw)
* bbc.cpp: Replaced ROM/RAM memory banks with handlers to allow access from ↵ Nigel Barnes2019-11-061-1/+9
| | | | | | | | | 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.
* loose ends: (nw) Vas Crabb2019-11-061-15/+5
| | | | | | * mm5740 X pins are numbered starting from 1, also fix typo in pinout comment (Y10, not Y0) * make more members protected/private as appropriate * got rid of one more video start override in a clean way
* (nw) be strictly POSIX compliant, reduce fragmentation, get rid of an unused ↵ Vas Crabb2019-11-051-1/+0
| | | | member
* Plug & Play improvements (Elan / Air Blaster Joystick) (#5856) David Haywood2019-11-042-108/+76
| | | | | | * elan video code improvements (nw) * fix x scroll on some air blaster bosses (non-split mode scrolling)
* Plug & Play / Elan EU3A05 / EU3A14 splitting up, identifying of common ↵ David Haywood2019-11-034-0/+798
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* Galaga: small fix and some notes. [Couriersud] couriersud2019-11-031-0/+10
| | | | | - leave some more information about the equivalent galois LFSR like taps and seed values. - All members are now initialized by constructor.
* galaga: Implement accurate starfield based on reverse eng. 05xx (#5824) Robert Hildinger2019-11-034-466/+744
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * galaga: Implement accurate starfield based on reverse eng. 05xx ---------------------------------------------------------------- This commit implements an accurate starfield for Galaga and Bosconian based on reverse engineering the Namco 05xx chip. Documentation and notes have been added inline to the code for the galaga video driver. Changes in this commit: 1. Regenerates starfield colors based on LFSR state for every frame 2. Pixel accurate to Namco original 05xx 3. Restores one line horizontal starfield shift for every 256 vertical pixel shifts 4. Properly handles LFSR reset (_STARCLR) 5. Restores missing 4 stars from previous implementations 6. Fixes potential issue with the number of stars on screen at any one time 7. Restores 4 pixel/line scrolling capability (not currently used for any driver) * galaga: inplement accurate starfield - change request 1 ------------------------------------------------------- 1. Remove stdlib.h from src/mame/video/galaga.cpp * galaga: inplement accurate starfield - change request 2 ------------------------------------------------------- 1. Refactor starfield generator into stand-alone video device 2. Simplify Bosconian and Galaga video drivers 3. Add in documentation about different LFSR form used by Wolfgang Scherr and Jindřich Makovička. * galaga: inplement accurate starfield - change request 3 --------------------------------------------------------- Minor changes from pull request review
* Spring cleaning: Vas Crabb2019-11-013-3/+3
| | | | | | | | | | | | * 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
* Added two new unreleased Model Racing games (#5813) janniz2019-10-311-0/+25
| | | | | | | | | | | | | | | | | | * Fixed LOG_WAV_ENABLED_ONLY (m_enable has to be checked only if LOG_WAV_ENABLED_ONLY is set) Added log data to the right channel of the wave, accordingly to the definition declared in LOG_WAV_VALUE_R * Fixed an error with tag() returning a ':' and generating a filename not valid in Windows environment * Added Model Racing "Cane" * Added Model Racing "Orbite" * Replaced the char array with a std::string in sn76477_device::open_wav_file to override possible buffer overrun. Minor cosmetic change in a boolean expression in sn76477_device::sound_stream_update * Refactored "Cane" related code creating an audio device to encapsulate the audio system Refactored "Cane" and "Orbite" creating their own classes Other minor changes in indentation of the source code
* new working clone Ivan Vangelista2019-10-301-0/+1
| | | | | ----------------------------------- Street Fighter II': Champion Edition (Dstreet-6, bootleg) [Hammy, Clawgrip]
* add some c-board pal dumps TwistedTom2019-10-271-3/+4
|
* k054156_k054157_k056832.cpp: Less crude hack to clean tilemap (nw) AJR2019-10-261-8/+4
|
* (nw) fix other konami video devices not resolving delegate, fix Yamaha MSX ↵ Vas Crabb2019-10-261-0/+6
| | | | systems
* (nw) initialisation order matters (fix many Konami crashes) Vas Crabb2019-10-265-20/+19
|
* Make devdelegate more like devcb for configuration. This is a Vas Crabb2019-10-26486-2053/+2052
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-267-66/+66
|
* markham.cpp: improved master irq firing and rowscroll in Strength & Skill, ↵ angelosa2019-10-241-9/+11
| | | | which was causing missing sprites in stage 2 and 3 at least [Angelo Salese]
* psychic5.cpp: Eliminate MCFG_VIDEO_RESET_OVERRIDE (nw) AJR2019-10-231-1/+1
|
* Merge pull request #5786 from ZoeB/grammar R. Belmont2019-10-231-1/+1
|\ | | | | Tidy grammar
| * Tidy grammar Zoë Blade2019-10-231-1/+1
| |
* | argus.cpp : Fix typo cam9002019-10-231-3/+3
| |
* | argus.cpp: Separate state classes; simplify handlers; eliminate legacy ↵ AJR2019-10-221-93/+81
|/ | | | overrides (nw)
* segaic16.cpp: Code cleanup, reorganization and decoupling (nw) AJR2019-10-192-3/+189
| | | | | | | | - Move open_bus_r down into the 315-5195 mapper device (not 100% ideal, but the next best place) - Split out 315-5195 mapper device into separate source file and modernize logging - Move remaining portion of sega_16bit_common_base (all to do with palettes) into video/segaic16.cpp segahang.cpp: Split I/O handlers; eliminate probably unnecessary open bus read semantics to decouple from sega_16bit_common_base (nw)