Commit Graph

7138 Commits

Author SHA1 Message Date
AJR
69bd218e03 genpc: Make INT and NMI line callbacks (nw)
This is intended to facilitate future planned changes to CPU input lines.
2019-10-31 19:43:01 -04:00
couriersud
c6b281685d netlist: Compile with float/double floating point. [Couriersud]
Added ability to compile using float instead of double. Specifically the
the solver as well as the infrastructure now can have their own floating
point type. Currently this is only an academic exercise since
numerically demanding circuits like kidniki only work with double/double
support. Using float here is pushing numerical stability over the
limits.

The long term design goal is too have the matrix type (double/float)
being a parameter.
2019-10-31 21:53:50 +01:00
couriersud
6c075e602c netlist: maintenance and simplifcation. (nw)
- solver: align matrix population along the various solvers
- solver: delete dead code
- renamed nl_double to nl_fptype and use nl_fptype where previously
  double has been used.
- renamed param_double_t to param_fp_t
2019-10-31 18:39:09 +01:00
AJR
e44c470f0f Fix clang build [-Werror,-Wunused-private-field] (nw) 2019-10-31 11:40:52 -04:00
Vas Crabb
6f4c1f6e5b Spring cleaning:
* 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
2019-11-01 00:47:41 +11:00
Vas Crabb
ef37c69c9b clean up cane/orbite additions (nw) 2019-10-31 23:27:33 +11:00
janniz
f31b19f9c9 Added two new unreleased Model Racing games (#5813)
* 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
2019-10-31 22:11:45 +11:00
cam900
ba273549dd es5506.cpp : Fix silence (#5834)
* es5506.cpp : Fix silence

* es5506.cpp : Fix algorithm
2019-10-31 00:07:55 -04:00
AJR
9e2706f4e4 ds1302: Subtle fix for CE writes; improve logging (nw) 2019-10-31 00:02:09 -04:00
cam900
0e2de758b1 315_5124.cpp : Fix color related to hardware measured value (#5828)
* 315_5124.cpp : Fix color related to hardware measured value

* 315_5124.cpp : Add notes

* 315_5124.cpp : Add notes
2019-10-30 21:50:17 -04:00
cam900
26f3f0f0c6 es5506.cpp : Implement more differs between ES5505/5506, Reduce duplicates (#5829)
* es5506.cpp : More constant-expandable volume lookup tables, Reduce duplicates

* es5506.cpp : Minor correction

* es5506.cpp : Reduce unnecessary constants, Bit differences, Add notes
2019-10-30 21:49:33 -04:00
AJR
fe1612aa81 scc68070: Add more accurate cycle counts, distinguished from MC68000 and MC68010 2019-10-30 17:00:00 -04:00
couriersud
beab34006a netlist: code maintenance. (nw)
Simplification, remove some trampolines.
2019-10-30 19:10:40 +01:00
AJR
ea8913e128 src/devices: Replace output().set_value with output finders (nw) 2019-10-30 10:08:54 -04:00
68bit
7aa1490a7e swtpc8212: get it running, and on the rs232 bus (#5729)
This patch gets it running, and splits it into two front ends, one
being a rs232 bus slot so that is can be used as a terminal option. It
adds the MCM66750 character generator, and implements the MC6845 row
update function. Most of the I/O has been worked out with help from
the CT-82 user manual. The various screen formats and the graphics
modes appear to be working and plausible. Printer support has been
added, and a beeper.
2019-10-30 13:02:31 +11:00
cam900
3df357d650
es5506.cpp : Fix regression 2019-10-30 09:17:53 +09:00
AJR
a2b80bfa2c Fix clang build [-Werror,-Wunused-const-variable] (nw) 2019-10-29 19:35:28 -04:00
Joakim Larsson Edström
58c86eb73c i8251a initilization changed (#5825)
* 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
2019-10-29 19:27:48 -04:00
R. Belmont
ba05d863b1
Merge pull request #5823 from cam900/es5506_es5505_various
es5506.cpp : Add/Implement ES5505 difference, Fix spacing, Various updates
2019-10-29 16:48:08 -04:00
AJR
736962d5e7 mk68564: Emulate BRG; fix cut-and-paste error in pinout (nw) 2019-10-29 15:43:32 -04:00
couriersud
cac86fb1b4 netlist: code maintenance. (nw)
- Removed code no longer used
- Add noexcept where appropriate
- split pparser.[c|h] into ppreprocessor and ptokenizer
- smaller optimizations, e.g. use of std::size_t
- fix lint warnings
2019-10-29 19:55:53 +01:00
AJR
7d862e69f9 Add preliminary MK68564 device (nw) 2019-10-29 13:43:49 -04:00
cam900
42f3c173f9 es5506.cpp : Add/Implement ES5505 difference, Fix spacing, Various updates
Reduce duplicates, Unnecessary lines, #define macros, Implement reset behavior(RESB in ES5506), Add notes, Fix filter behaviors, Sync to official documents
references : http://zine.r-massive.com/ensoniq-technical-documents-and-schematics/
2019-10-30 01:25:36 +09:00
R. Belmont
3151dbd31b
Merge pull request #5821 from fulivi/hpipc_dev7
hp_ipc: fixed a bug in 1LL3 GPU
2019-10-29 10:22:02 -04:00
AJR
65745d0e76 rsp: Add 32-bit opcode alignment for disassembly 2019-10-29 09:51:05 -04:00
David Haywood
d660d1d5b3 promoted to WORKING (pvmil - SunPlus) (#5818)
* pvmil - map inputs, promote to working

* put SunPlus RNG on a timer, so that the pvmil questions are actually in a random order (nw)
2019-10-28 17:23:46 -04:00
Joakim Larsson Edstrom
ac1b7a7654 eispc_twib.cpp: fix build error 2019-10-28 20:07:05 +01:00
Joakim Larsson Edström
530101b53f
Merge pull request #5794 from JoakimLarsson/epc_4
WIP: TWIB board - EPC terminal adapter for IBM mainframe and Alfaskop system
2019-10-28 19:44:06 +01:00
fulivi
1e81ccd7b6 hp_ipc: fixed a bug in 1LL3 GPU that caused cursor & sprites to
disappear at the top & left hand side of screen
2019-10-28 16:15:58 +01:00
R. Belmont
0c491e7bd7
Merge pull request #5787 from cam900/megaplay_lcm
315_5313.cpp : Allow LCM scaling of horizontal resolution
2019-10-28 10:32:37 -04:00
hap
6933beea82 chessm: savestates (nw) 2019-10-27 21:44:18 +01:00
Vas Crabb
ecde621979 (nw) fix MPU4 video crash, clean up a little 2019-10-27 15:31:50 +11:00
Vas Crabb
d80e7f95eb cpu/saturn: clean up a little (nw) 2019-10-27 02:16:50 +11:00
smf-
236c87cfea Fix for building with visual studio 2019 (nw) 2019-10-26 13:56:20 +01:00
Vas Crabb
4798bcda89 (nw) fix other konami video devices not resolving delegate, fix Yamaha MSX systems 2019-10-26 14:39:02 +11:00
Vas Crabb
f81fbdb8d4 Make devdelegate more like devcb for configuration. This is a
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.
2019-10-26 12:47:04 +11:00
Vas Crabb
32868b8e2a srcclean (nw) 2019-10-26 10:40:50 +11:00
AJR
cf3f4b2530 aic580: Improve transfer speed calculation (nw) 2019-10-25 18:29:58 -04:00
AJR
d4eb7c7d2c aha1542a, aha1542b: Split out AIC-580 emulation to new device (nw) 2019-10-25 16:51:03 -04:00
David Haywood
6596cca96a new NOT WORKING machines (Plug & Play - Sunplus) (#5788)
* new NOT WORKING machines
-----

TV Virtual Tennis  [David Haywood,  Morten Kirkegaard, Peter Wilhelmsen]
Rockstar Guitar / Guitar Rock (PAL)  [David Haywood,  Morten Kirkegaard, Peter Wilhelmsen]
Who Wants to Be a Millionaire (Play Vision, Plug and Play, UK)  [David Haywood,  Morten Kirkegaard, Peter Wilhelmsen]

Millionaire needs P4 inputs sorting out
Rockstar Guitar timings are all over the place (music not in sync at all)
TV Virtual Tennis is the spg110 type SunPlus and needs video fixes, as well as the motion controls.

* (nw)

* improve rendering for conyteni (nw)

* improve character select screen in conyteni (nw)
2019-10-25 11:29:43 +02:00
Patrick Mackinlay
c263a02b50 clipper: migrate to softfloat3 (nw) 2019-10-25 13:51:36 +07:00
Sandro Ronco
dc6f6cf27a Machines promoted to working
----------------------------
NCR Decision Mate V [Sandro Ronco, rfka01]
2019-10-24 21:34:31 +02:00
Sandro Ronco
5d5e0345e0 dmv: added HD interface. [Sandro Ronco] 2019-10-24 20:13:30 +02:00
MooglyGuy
100767b3df -screen: Added support for screens that vary horizontal width mid-frame, and hooked it up to the SNES driver. Fixes dkongcu intro and others. [Ryan Holtz] 2019-10-24 18:52:28 +02:00
Zoë Blade
e0bac48f8f Spelling (#5796)
* Tidy up comments

* Fix typos

* Fix spelling

* Tidy

* Tidy
2019-10-24 12:25:49 -04:00
Joakim Larsson Edstrom
3da15b0b0f eispc_twib: backed out of bitbanger approach for now 2019-10-24 15:34:37 +02:00
Joakim Larsson Edstrom
b2f98a311d Revert "sdlc.cpp: WIP added bitbanger device"
This reverts commit eef80ce011.
2019-10-24 15:24:21 +02:00
Patrick Mackinlay
884830c5c1 bus/interpro: minor tidy (nw) 2019-10-24 17:55:18 +07:00
Joakim Larsson Edstrom
778bf113b4 eis_twib.cpp: hooked up SDLC bitbanger device 2019-10-24 11:33:32 +02:00
Joakim Larsson Edstrom
eef80ce011 sdlc.cpp: WIP added bitbanger device 2019-10-24 11:33:31 +02:00