summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--3rdparty/libuv/docs/Makefile178
-rw-r--r--3rdparty/libuv/samples/socks5-proxy/Makefile46
-rw-r--r--3rdparty/rapidjson/bin/draft-04/schema150
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/.gitignore1
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/.travis.yml4
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/LICENSE19
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/README.md148
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/bin/jsonschema_suite283
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/remotes/.DS_Storebin0 -> 6148 bytes
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/remotes/folder/folderInteger.json3
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/remotes/integer.json3
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/remotes/subSchemas.json8
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/.DS_Storebin0 -> 6148 bytes
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/additionalItems.json82
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/additionalProperties.json88
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/default.json49
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/dependencies.json108
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/disallow.json80
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json60
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/enum.json71
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/extends.json94
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/items.json46
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/maxItems.json28
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/maxLength.json33
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/maximum.json42
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/minItems.json28
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/minLength.json33
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/minimum.json42
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/optional/bignum.json107
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/optional/format.json222
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/optional/jsregex.json18
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/optional/zeroTerminatedFloats.json15
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/pattern.json34
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/patternProperties.json110
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/properties.json92
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/ref.json159
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/refRemote.json74
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/required.json53
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/type.json474
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/uniqueItems.json79
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/.DS_Storebin0 -> 6148 bytes
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/additionalItems.json82
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/additionalProperties.json88
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/allOf.json112
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/anyOf.json68
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/default.json49
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/definitions.json32
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/dependencies.json113
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/enum.json72
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/items.json46
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/maxItems.json28
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/maxLength.json33
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/maxProperties.json28
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/maximum.json42
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/minItems.json28
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/minLength.json33
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/minProperties.json28
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/minimum.json42
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/multipleOf.json60
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/not.json96
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/oneOf.json68
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/optional/bignum.json107
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/optional/format.json148
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/optional/zeroTerminatedFloats.json15
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/pattern.json34
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/patternProperties.json110
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/properties.json92
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/ref.json159
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/refRemote.json74
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/required.json39
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/type.json330
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft4/uniqueItems.json79
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tox.ini8
-rw-r--r--3rdparty/rapidjson/doc/diagram/makefile8
-rw-r--r--artwork/monochrome-matrix_.pngbin33194 -> 0 bytes
-rw-r--r--artwork/monochrome-matrix__.pngbin19077 -> 0 bytes
-rw-r--r--artwork/puckman.zipbin3704480 -> 0 bytes
-rw-r--r--scripts/target/mame/debug.lua3595
-rw-r--r--src/devices/cpu/m68000/m68kops.cpp34876
-rw-r--r--src/devices/cpu/m68000/m68kops.h1995
-rw-r--r--src/mame/debug.lst328
81 files changed, 5515 insertions, 40794 deletions
diff --git a/3rdparty/libuv/docs/Makefile b/3rdparty/libuv/docs/Makefile
new file mode 100644
index 00000000000..1e0fc8f0220
--- /dev/null
+++ b/3rdparty/libuv/docs/Makefile
@@ -0,0 +1,178 @@
+# Makefile for Sphinx documentation
+#
+
+# You can set these variables from the command line.
+SPHINXOPTS =
+SPHINXBUILD = sphinx-build
+PAPER =
+BUILDDIR = build
+SRCDIR = src
+
+# User-friendly check for sphinx-build
+ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
+$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
+endif
+
+# Internal variables.
+PAPEROPT_a4 = -D latex_paper_size=a4
+PAPEROPT_letter = -D latex_paper_size=letter
+ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SRCDIR)
+# the i18n builder cannot share the environment and doctrees with the others
+I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SRCDIR)
+
+.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
+
+help:
+ @echo "Please use \`make <target>' where <target> is one of"
+ @echo " html to make standalone HTML files"
+ @echo " dirhtml to make HTML files named index.html in directories"
+ @echo " singlehtml to make a single large HTML file"
+ @echo " pickle to make pickle files"
+ @echo " json to make JSON files"
+ @echo " htmlhelp to make HTML files and a HTML help project"
+ @echo " qthelp to make HTML files and a qthelp project"
+ @echo " devhelp to make HTML files and a Devhelp project"
+ @echo " epub to make an epub"
+ @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
+ @echo " latexpdf to make LaTeX files and run them through pdflatex"
+ @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
+ @echo " text to make text files"
+ @echo " man to make manual pages"
+ @echo " texinfo to make Texinfo files"
+ @echo " info to make Texinfo files and run them through makeinfo"
+ @echo " gettext to make PO message catalogs"
+ @echo " changes to make an overview of all changed/added/deprecated items"
+ @echo " xml to make Docutils-native XML files"
+ @echo " pseudoxml to make pseudoxml-XML files for display purposes"
+ @echo " linkcheck to check all external links for integrity"
+ @echo " doctest to run all doctests embedded in the documentation (if enabled)"
+
+clean:
+ rm -rf $(BUILDDIR)/*
+
+html:
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
+ @echo
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
+
+dirhtml:
+ $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
+ @echo
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
+
+singlehtml:
+ $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
+ @echo
+ @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
+
+pickle:
+ $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
+ @echo
+ @echo "Build finished; now you can process the pickle files."
+
+json:
+ $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
+ @echo
+ @echo "Build finished; now you can process the JSON files."
+
+htmlhelp:
+ $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
+ @echo
+ @echo "Build finished; now you can run HTML Help Workshop with the" \
+ ".hhp project file in $(BUILDDIR)/htmlhelp."
+
+qthelp:
+ $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
+ @echo
+ @echo "Build finished; now you can run "qcollectiongenerator" with the" \
+ ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
+ @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/libuv.qhcp"
+ @echo "To view the help file:"
+ @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/libuv.qhc"
+
+devhelp:
+ $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
+ @echo
+ @echo "Build finished."
+ @echo "To view the help file:"
+ @echo "# mkdir -p $$HOME/.local/share/devhelp/libuv"
+ @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/libuv"
+ @echo "# devhelp"
+
+epub:
+ $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
+ @echo
+ @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
+
+latex:
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+ @echo
+ @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
+ @echo "Run \`make' in that directory to run these through (pdf)latex" \
+ "(use \`make latexpdf' here to do that automatically)."
+
+latexpdf:
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+ @echo "Running LaTeX files through pdflatex..."
+ $(MAKE) -C $(BUILDDIR)/latex all-pdf
+ @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
+
+latexpdfja:
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+ @echo "Running LaTeX files through platex and dvipdfmx..."
+ $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
+ @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
+
+text:
+ $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
+ @echo
+ @echo "Build finished. The text files are in $(BUILDDIR)/text."
+
+man:
+ $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
+ @echo
+ @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
+
+texinfo:
+ $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
+ @echo
+ @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
+ @echo "Run \`make' in that directory to run these through makeinfo" \
+ "(use \`make info' here to do that automatically)."
+
+info:
+ $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
+ @echo "Running Texinfo files through makeinfo..."
+ make -C $(BUILDDIR)/texinfo info
+ @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
+
+gettext:
+ $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
+ @echo
+ @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
+
+changes:
+ $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
+ @echo
+ @echo "The overview file is in $(BUILDDIR)/changes."
+
+linkcheck:
+ $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
+ @echo
+ @echo "Link check complete; look for any errors in the above output " \
+ "or in $(BUILDDIR)/linkcheck/output.txt."
+
+doctest:
+ $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
+ @echo "Testing of doctests in the sources finished, look at the " \
+ "results in $(BUILDDIR)/doctest/output.txt."
+
+xml:
+ $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
+ @echo
+ @echo "Build finished. The XML files are in $(BUILDDIR)/xml."
+
+pseudoxml:
+ $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
+ @echo
+ @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
diff --git a/3rdparty/libuv/samples/socks5-proxy/Makefile b/3rdparty/libuv/samples/socks5-proxy/Makefile
new file mode 100644
index 00000000000..ca43985ec80
--- /dev/null
+++ b/3rdparty/libuv/samples/socks5-proxy/Makefile
@@ -0,0 +1,46 @@
+# Copyright StrongLoop, Inc. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+# IN THE SOFTWARE.
+
+BUILDTYPE ?= Debug
+BUILDDIR ?= build
+GYP ?= gyp
+V ?=
+
+SOURCES := client.c defs.h getopt.c main.c s5.c s5.h server.c util.c
+
+.PHONY: all clean
+
+all: $(BUILDDIR)/$(BUILDTYPE)/s5-proxy
+
+clean:
+ $(RM) $(BUILDDIR)
+
+$(BUILDDIR)/$(BUILDTYPE)/s5-proxy: $(BUILDDIR)/Makefile $(SOURCES)
+ $(MAKE) -C $(BUILDDIR) V=$(V)
+
+$(BUILDDIR)/Makefile: ../../common.gypi build.gyp
+ $(GYP) \
+ -Duv_library=static_library \
+ -Goutput_dir=. \
+ -I../../common.gypi \
+ -f make \
+ --depth=. \
+ --generator-output=$(BUILDDIR) \
+ build.gyp
diff --git a/3rdparty/rapidjson/bin/draft-04/schema b/3rdparty/rapidjson/bin/draft-04/schema
new file mode 100644
index 00000000000..85eb502a680
--- /dev/null
+++ b/3rdparty/rapidjson/bin/draft-04/schema
@@ -0,0 +1,150 @@
+{
+ "id": "http://json-schema.org/draft-04/schema#",
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "description": "Core schema meta-schema",
+ "definitions": {
+ "schemaArray": {
+ "type": "array",
+ "minItems": 1,
+ "items": { "$ref": "#" }
+ },
+ "positiveInteger": {
+ "type": "integer",
+ "minimum": 0
+ },
+ "positiveIntegerDefault0": {
+ "allOf": [ { "$ref": "#/definitions/positiveInteger" }, { "default": 0 } ]
+ },
+ "simpleTypes": {
+ "enum": [ "array", "boolean", "integer", "null", "number", "object", "string" ]
+ },
+ "stringArray": {
+ "type": "array",
+ "items": { "type": "string" },
+ "minItems": 1,
+ "uniqueItems": true
+ }
+ },
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "format": "uri"
+ },
+ "$schema": {
+ "type": "string",
+ "format": "uri"
+ },
+ "title": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "default": {},
+ "multipleOf": {
+ "type": "number",
+ "minimum": 0,
+ "exclusiveMinimum": true
+ },
+ "maximum": {
+ "type": "number"
+ },
+ "exclusiveMaximum": {
+ "type": "boolean",
+ "default": false
+ },
+ "minimum": {
+ "type": "number"
+ },
+ "exclusiveMinimum": {
+ "type": "boolean",
+ "default": false
+ },
+ "maxLength": { "$ref": "#/definitions/positiveInteger" },
+ "minLength": { "$ref": "#/definitions/positiveIntegerDefault0" },
+ "pattern": {
+ "type": "string",
+ "format": "regex"
+ },
+ "additionalItems": {
+ "anyOf": [
+ { "type": "boolean" },
+ { "$ref": "#" }
+ ],
+ "default": {}
+ },
+ "items": {
+ "anyOf": [
+ { "$ref": "#" },
+ { "$ref": "#/definitions/schemaArray" }
+ ],
+ "default": {}
+ },
+ "maxItems": { "$ref": "#/definitions/positiveInteger" },
+ "minItems": { "$ref": "#/definitions/positiveIntegerDefault0" },
+ "uniqueItems": {
+ "type": "boolean",
+ "default": false
+ },
+ "maxProperties": { "$ref": "#/definitions/positiveInteger" },
+ "minProperties": { "$ref": "#/definitions/positiveIntegerDefault0" },
+ "required": { "$ref": "#/definitions/stringArray" },
+ "additionalProperties": {
+ "anyOf": [
+ { "type": "boolean" },
+ { "$ref": "#" }
+ ],
+ "default": {}
+ },
+ "definitions": {
+ "type": "object",
+ "additionalProperties": { "$ref": "#" },
+ "default": {}
+ },
+ "properties": {
+ "type": "object",
+ "additionalProperties": { "$ref": "#" },
+ "default": {}
+ },
+ "patternProperties": {
+ "type": "object",
+ "additionalProperties": { "$ref": "#" },
+ "default": {}
+ },
+ "dependencies": {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ { "$ref": "#" },
+ { "$ref": "#/definitions/stringArray" }
+ ]
+ }
+ },
+ "enum": {
+ "type": "array",
+ "minItems": 1,
+ "uniqueItems": true
+ },
+ "type": {
+ "anyOf": [
+ { "$ref": "#/definitions/simpleTypes" },
+ {
+ "type": "array",
+ "items": { "$ref": "#/definitions/simpleTypes" },
+ "minItems": 1,
+ "uniqueItems": true
+ }
+ ]
+ },
+ "allOf": { "$ref": "#/definitions/schemaArray" },
+ "anyOf": { "$ref": "#/definitions/schemaArray" },
+ "oneOf": { "$ref": "#/definitions/schemaArray" },
+ "not": { "$ref": "#" }
+ },
+ "dependencies": {
+ "exclusiveMaximum": [ "maximum" ],
+ "exclusiveMinimum": [ "minimum" ]
+ },
+ "default": {}
+}
diff --git a/3rdparty/rapidjson/bin/jsonschema/.gitignore b/3rdparty/rapidjson/bin/jsonschema/.gitignore
new file mode 100644
index 00000000000..1333ed77b7e
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/.gitignore
@@ -0,0 +1 @@
+TODO
diff --git a/3rdparty/rapidjson/bin/jsonschema/.travis.yml b/3rdparty/rapidjson/bin/jsonschema/.travis.yml
new file mode 100644
index 00000000000..deecd61100e
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/.travis.yml
@@ -0,0 +1,4 @@
+language: python
+python: "2.7"
+install: pip install jsonschema
+script: bin/jsonschema_suite check
diff --git a/3rdparty/rapidjson/bin/jsonschema/LICENSE b/3rdparty/rapidjson/bin/jsonschema/LICENSE
new file mode 100644
index 00000000000..c28adbadd91
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2012 Julian Berman
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/3rdparty/rapidjson/bin/jsonschema/README.md b/3rdparty/rapidjson/bin/jsonschema/README.md
new file mode 100644
index 00000000000..6d9da949323
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/README.md
@@ -0,0 +1,148 @@
+JSON Schema Test Suite [![Build Status](https://travis-ci.org/json-schema/JSON-Schema-Test-Suite.png?branch=develop)](https://travis-ci.org/json-schema/JSON-Schema-Test-Suite)
+======================
+
+This repository contains a set of JSON objects that implementors of JSON Schema
+validation libraries can use to test their validators.
+
+It is meant to be language agnostic and should require only a JSON parser.
+
+The conversion of the JSON objects into tests within your test framework of
+choice is still the job of the validator implementor.
+
+Structure of a Test
+-------------------
+
+If you're going to use this suite, you need to know how tests are laid out. The
+tests are contained in the `tests` directory at the root of this repository.
+
+Inside that directory is a subdirectory for each draft or version of the
+schema. We'll use `draft3` as an example.
+
+If you look inside the draft directory, there are a number of `.json` files,
+which logically group a set of test cases together. Often the grouping is by
+property under test, but not always, especially within optional test files
+(discussed below).
+
+Inside each `.json` file is a single array containing objects. It's easiest to
+illustrate the structure of these with an example:
+
+```json
+ {
+ "description": "the description of the test case",
+ "schema": {"the schema that should" : "be validated against"},
+ "tests": [
+ {
+ "description": "a specific test of a valid instance",
+ "data": "the instance",
+ "valid": true
+ },
+ {
+ "description": "another specific test this time, invalid",
+ "data": 15,
+ "valid": false
+ }
+ ]
+ }
+```
+
+So a description, a schema, and some tests, where tests is an array containing
+one or more objects with descriptions, data, and a boolean indicating whether
+they should be valid or invalid.
+
+Coverage
+--------
+
+Draft 3 and 4 should have full coverage. If you see anything missing or think
+there is a useful test missing, please send a pull request or open an issue.
+
+Who Uses the Test Suite
+-----------------------
+
+This suite is being used by:
+
+### Coffeescript ###
+
+* [jsck](https://github.com/pandastrike/jsck)
+
+### Dart ###
+
+* [json_schema](https://github.com/patefacio/json_schema)
+
+### Erlang ###
+
+* [jesse](https://github.com/klarna/jesse)
+
+### Go ###
+
+* [gojsonschema](https://github.com/sigu-399/gojsonschema)
+* [validate-json](https://github.com/cesanta/validate-json)
+
+### Haskell ###
+
+* [aeson-schema](https://github.com/timjb/aeson-schema)
+* [hjsonschema](https://github.com/seagreen/hjsonschema)
+
+### Java ###
+
+* [json-schema-validator](https://github.com/fge/json-schema-validator)
+
+### JavaScript ###
+
+* [json-schema-benchmark](https://github.com/Muscula/json-schema-benchmark)
+* [direct-schema](https://github.com/IreneKnapp/direct-schema)
+* [is-my-json-valid](https://github.com/mafintosh/is-my-json-valid)
+* [jassi](https://github.com/iclanzan/jassi)
+* [JaySchema](https://github.com/natesilva/jayschema)
+* [json-schema-valid](https://github.com/ericgj/json-schema-valid)
+* [Jsonary](https://github.com/jsonary-js/jsonary)
+* [jsonschema](https://github.com/tdegrunt/jsonschema)
+* [request-validator](https://github.com/bugventure/request-validator)
+* [skeemas](https://github.com/Prestaul/skeemas)
+* [tv4](https://github.com/geraintluff/tv4)
+* [z-schema](https://github.com/zaggino/z-schema)
+* [jsen](https://github.com/bugventure/jsen)
+* [ajv](https://github.com/epoberezkin/ajv)
+
+### Node.js ###
+
+The JSON Schema Test Suite is also available as an
+[npm](https://www.npmjs.com/package/json-schema-test-suite) package.
+Node-specific support is maintained on the [node branch](https://github.com/json-schema/JSON-Schema-Test-Suite/tree/node).
+See [NODE-README.md](https://github.com/json-schema/JSON-Schema-Test-Suite/blob/node/NODE-README.md)
+for more information.
+
+### .NET ###
+
+* [Newtonsoft.Json.Schema](https://github.com/JamesNK/Newtonsoft.Json.Schema)
+
+### PHP ###
+
+* [json-schema](https://github.com/justinrainbow/json-schema)
+
+### Python ###
+
+* [jsonschema](https://github.com/Julian/jsonschema)
+
+### Ruby ###
+
+* [json-schema](https://github.com/hoxworth/json-schema)
+
+### Rust ###
+
+* [valico](https://github.com/rustless/valico)
+
+### Swift ###
+
+* [JSONSchema](https://github.com/kylef/JSONSchema.swift)
+
+If you use it as well, please fork and send a pull request adding yourself to
+the list :).
+
+Contributing
+------------
+
+If you see something missing or incorrect, a pull request is most welcome!
+
+There are some sanity checks in place for testing the test suite. You can run
+them with `bin/jsonschema_suite check` or `tox`. They will be run automatically by
+[Travis CI](https://travis-ci.org/) as well.
diff --git a/3rdparty/rapidjson/bin/jsonschema/bin/jsonschema_suite b/3rdparty/rapidjson/bin/jsonschema/bin/jsonschema_suite
new file mode 100644
index 00000000000..96108c86ba2
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/bin/jsonschema_suite
@@ -0,0 +1,283 @@
+#! /usr/bin/env python
+from __future__ import print_function
+import sys
+import textwrap
+
+try:
+ import argparse
+except ImportError:
+ print(textwrap.dedent("""
+ The argparse library could not be imported. jsonschema_suite requires
+ either Python 2.7 or for you to install argparse. You can do so by
+ running `pip install argparse`, `easy_install argparse` or by
+ downloading argparse and running `python2.6 setup.py install`.
+
+ See https://pypi.python.org/pypi/argparse for details.
+ """.strip("\n")))
+ sys.exit(1)
+
+import errno
+import fnmatch
+import json
+import os
+import random
+import shutil
+import unittest
+import warnings
+
+if getattr(unittest, "skipIf", None) is None:
+ unittest.skipIf = lambda cond, msg : lambda fn : fn
+
+try:
+ import jsonschema
+except ImportError:
+ jsonschema = None
+else:
+ validators = getattr(
+ jsonschema.validators, "validators", jsonschema.validators
+ )
+
+
+ROOT_DIR = os.path.join(
+ os.path.dirname(__file__), os.pardir).rstrip("__pycache__")
+SUITE_ROOT_DIR = os.path.join(ROOT_DIR, "tests")
+
+REMOTES = {
+ "integer.json": {"type": "integer"},
+ "subSchemas.json": {
+ "integer": {"type": "integer"},
+ "refToInteger": {"$ref": "#/integer"},
+ },
+ "folder/folderInteger.json": {"type": "integer"}
+}
+REMOTES_DIR = os.path.join(ROOT_DIR, "remotes")
+
+TESTSUITE_SCHEMA = {
+ "$schema": "http://json-schema.org/draft-03/schema#",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "description": {"type": "string", "required": True},
+ "schema": {"required": True},
+ "tests": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "description": {"type": "string", "required": True},
+ "data": {"required": True},
+ "valid": {"type": "boolean", "required": True}
+ },
+ "additionalProperties": False
+ },
+ "minItems": 1
+ }
+ },
+ "additionalProperties": False,
+ "minItems": 1
+ }
+}
+
+
+def files(paths):
+ for path in paths:
+ with open(path) as test_file:
+ yield json.load(test_file)
+
+
+def groups(paths):
+ for test_file in files(paths):
+ for group in test_file:
+ yield group
+
+
+def cases(paths):
+ for test_group in groups(paths):
+ for test in test_group["tests"]:
+ test["schema"] = test_group["schema"]
+ yield test
+
+
+def collect(root_dir):
+ for root, dirs, files in os.walk(root_dir):
+ for filename in fnmatch.filter(files, "*.json"):
+ yield os.path.join(root, filename)
+
+
+class SanityTests(unittest.TestCase):
+ @classmethod
+ def setUpClass(cls):
+ print("Looking for tests in %s" % SUITE_ROOT_DIR)
+ cls.test_files = list(collect(SUITE_ROOT_DIR))
+ print("Found %s test files" % len(cls.test_files))
+ assert cls.test_files, "Didn't find the test files!"
+
+ def test_all_files_are_valid_json(self):
+ for path in self.test_files:
+ with open(path) as test_file:
+ try:
+ json.load(test_file)
+ except ValueError as error:
+ self.fail("%s contains invalid JSON (%s)" % (path, error))
+
+ def test_all_descriptions_have_reasonable_length(self):
+ for case in cases(self.test_files):
+ descript = case["description"]
+ self.assertLess(
+ len(descript),
+ 60,
+ "%r is too long! (keep it to less than 60 chars)" % (descript,)
+ )
+
+ def test_all_descriptions_are_unique(self):
+ for group in groups(self.test_files):
+ descriptions = set(test["description"] for test in group["tests"])
+ self.assertEqual(
+ len(descriptions),
+ len(group["tests"]),
+ "%r contains a duplicate description" % (group,)
+ )
+
+ @unittest.skipIf(jsonschema is None, "Validation library not present!")
+ def test_all_schemas_are_valid(self):
+ for schema in os.listdir(SUITE_ROOT_DIR):
+ schema_validator = validators.get(schema)
+ if schema_validator is not None:
+ test_files = collect(os.path.join(SUITE_ROOT_DIR, schema))
+ for case in cases(test_files):
+ try:
+ schema_validator.check_schema(case["schema"])
+ except jsonschema.SchemaError as error:
+ self.fail("%s contains an invalid schema (%s)" %
+ (case, error))
+ else:
+ warnings.warn("No schema validator for %s" % schema)
+
+ @unittest.skipIf(jsonschema is None, "Validation library not present!")
+ def test_suites_are_valid(self):
+ validator = jsonschema.Draft3Validator(TESTSUITE_SCHEMA)
+ for tests in files(self.test_files):
+ try:
+ validator.validate(tests)
+ except jsonschema.ValidationError as error:
+ self.fail(str(error))
+
+ def test_remote_schemas_are_updated(self):
+ for url, schema in REMOTES.items():
+ filepath = os.path.join(REMOTES_DIR, url)
+ with open(filepath) as schema_file:
+ self.assertEqual(json.load(schema_file), schema)
+
+
+def main(arguments):
+ if arguments.command == "check":
+ suite = unittest.TestLoader().loadTestsFromTestCase(SanityTests)
+ result = unittest.TextTestRunner(verbosity=2).run(suite)
+ sys.exit(not result.wasSuccessful())
+ elif arguments.command == "flatten":
+ selected_cases = [case for case in cases(collect(arguments.version))]
+
+ if arguments.randomize:
+ random.shuffle(selected_cases)
+
+ json.dump(selected_cases, sys.stdout, indent=4, sort_keys=True)
+ elif arguments.command == "remotes":
+ json.dump(REMOTES, sys.stdout, indent=4, sort_keys=True)
+ elif arguments.command == "dump_remotes":
+ if arguments.update:
+ shutil.rmtree(arguments.out_dir, ignore_errors=True)
+
+ try:
+ os.makedirs(arguments.out_dir)
+ except OSError as e:
+ if e.errno == errno.EEXIST:
+ print("%s already exists. Aborting." % arguments.out_dir)
+ sys.exit(1)
+ raise
+
+ for url, schema in REMOTES.items():
+ filepath = os.path.join(arguments.out_dir, url)
+
+ try:
+ os.makedirs(os.path.dirname(filepath))
+ except OSError as e:
+ if e.errno != errno.EEXIST:
+ raise
+
+ with open(filepath, "wb") as out_file:
+ json.dump(schema, out_file, indent=4, sort_keys=True)
+ elif arguments.command == "serve":
+ try:
+ from flask import Flask, jsonify
+ except ImportError:
+ print(textwrap.dedent("""
+ The Flask library is required to serve the remote schemas.
+
+ You can install it by running `pip install Flask`.
+
+ Alternatively, see the `jsonschema_suite remotes` or
+ `jsonschema_suite dump_remotes` commands to create static files
+ that can be served with your own web server.
+ """.strip("\n")))
+ sys.exit(1)
+
+ app = Flask(__name__)
+
+ @app.route("/<path:path>")
+ def serve_path(path):
+ if path in REMOTES:
+ return jsonify(REMOTES[path])
+ return "Document does not exist.", 404
+
+ app.run(port=1234)
+
+
+parser = argparse.ArgumentParser(
+ description="JSON Schema Test Suite utilities",
+)
+subparsers = parser.add_subparsers(help="utility commands", dest="command")
+
+check = subparsers.add_parser("check", help="Sanity check the test suite.")
+
+flatten = subparsers.add_parser(
+ "flatten",
+ help="Output a flattened file containing a selected version's test cases."
+)
+flatten.add_argument(
+ "--randomize",
+ action="store_true",
+ help="Randomize the order of the outputted cases.",
+)
+flatten.add_argument(
+ "version", help="The directory containing the version to output",
+)
+
+remotes = subparsers.add_parser(
+ "remotes",
+ help="Output the expected URLs and their associated schemas for remote "
+ "ref tests as a JSON object."
+)
+
+dump_remotes = subparsers.add_parser(
+ "dump_remotes", help="Dump the remote ref schemas into a file tree",
+)
+dump_remotes.add_argument(
+ "--update",
+ action="store_true",
+ help="Update the remotes in an existing directory.",
+)
+dump_remotes.add_argument(
+ "--out-dir",
+ default=REMOTES_DIR,
+ type=os.path.abspath,
+ help="The output directory to create as the root of the file tree",
+)
+
+serve = subparsers.add_parser(
+ "serve",
+ help="Start a webserver to serve schemas used by remote ref tests."
+)
+
+if __name__ == "__main__":
+ main(parser.parse_args())
diff --git a/3rdparty/rapidjson/bin/jsonschema/remotes/.DS_Store b/3rdparty/rapidjson/bin/jsonschema/remotes/.DS_Store
new file mode 100644
index 00000000000..1d098a4103d
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/remotes/.DS_Store
Binary files differ
diff --git a/3rdparty/rapidjson/bin/jsonschema/remotes/folder/folderInteger.json b/3rdparty/rapidjson/bin/jsonschema/remotes/folder/folderInteger.json
new file mode 100644
index 00000000000..dbe5c758ee3
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/remotes/folder/folderInteger.json
@@ -0,0 +1,3 @@
+{
+ "type": "integer"
+} \ No newline at end of file
diff --git a/3rdparty/rapidjson/bin/jsonschema/remotes/integer.json b/3rdparty/rapidjson/bin/jsonschema/remotes/integer.json
new file mode 100644
index 00000000000..dbe5c758ee3
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/remotes/integer.json
@@ -0,0 +1,3 @@
+{
+ "type": "integer"
+} \ No newline at end of file
diff --git a/3rdparty/rapidjson/bin/jsonschema/remotes/subSchemas.json b/3rdparty/rapidjson/bin/jsonschema/remotes/subSchemas.json
new file mode 100644
index 00000000000..8b6d8f842fc
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/remotes/subSchemas.json
@@ -0,0 +1,8 @@
+{
+ "integer": {
+ "type": "integer"
+ },
+ "refToInteger": {
+ "$ref": "#/integer"
+ }
+} \ No newline at end of file
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/.DS_Store b/3rdparty/rapidjson/bin/jsonschema/tests/.DS_Store
new file mode 100644
index 00000000000..dae9b18efac
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/.DS_Store
Binary files differ
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/additionalItems.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/additionalItems.json
new file mode 100644
index 00000000000..6d4bff51cf3
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/additionalItems.json
@@ -0,0 +1,82 @@
+[
+ {
+ "description": "additionalItems as schema",
+ "schema": {
+ "items": [],
+ "additionalItems": {"type": "integer"}
+ },
+ "tests": [
+ {
+ "description": "additional items match schema",
+ "data": [ 1, 2, 3, 4 ],
+ "valid": true
+ },
+ {
+ "description": "additional items do not match schema",
+ "data": [ 1, 2, 3, "foo" ],
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "items is schema, no additionalItems",
+ "schema": {
+ "items": {},
+ "additionalItems": false
+ },
+ "tests": [
+ {
+ "description": "all items match schema",
+ "data": [ 1, 2, 3, 4, 5 ],
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "array of items with no additionalItems",
+ "schema": {
+ "items": [{}, {}, {}],
+ "additionalItems": false
+ },
+ "tests": [
+ {
+ "description": "no additional items present",
+ "data": [ 1, 2, 3 ],
+ "valid": true
+ },
+ {
+ "description": "additional items are not permitted",
+ "data": [ 1, 2, 3, 4 ],
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "additionalItems as false without items",
+ "schema": {"additionalItems": false},
+ "tests": [
+ {
+ "description":
+ "items defaults to empty schema so everything is valid",
+ "data": [ 1, 2, 3, 4, 5 ],
+ "valid": true
+ },
+ {
+ "description": "ignores non-arrays",
+ "data": {"foo" : "bar"},
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "additionalItems are allowed by default",
+ "schema": {"items": []},
+ "tests": [
+ {
+ "description": "only the first items are validated",
+ "data": [1, "foo", false],
+ "valid": true
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/additionalProperties.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/additionalProperties.json
new file mode 100644
index 00000000000..40831f9e9aa
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/additionalProperties.json
@@ -0,0 +1,88 @@
+[
+ {
+ "description":
+ "additionalProperties being false does not allow other properties",
+ "schema": {
+ "properties": {"foo": {}, "bar": {}},
+ "patternProperties": { "^v": {} },
+ "additionalProperties": false
+ },
+ "tests": [
+ {
+ "description": "no additional properties is valid",
+ "data": {"foo": 1},
+ "valid": true
+ },
+ {
+ "description": "an additional property is invalid",
+ "data": {"foo" : 1, "bar" : 2, "quux" : "boom"},
+ "valid": false
+ },
+ {
+ "description": "ignores non-objects",
+ "data": [1, 2, 3],
+ "valid": true
+ },
+ {
+ "description": "patternProperties are not additional properties",
+ "data": {"foo":1, "vroom": 2},
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description":
+ "additionalProperties allows a schema which should validate",
+ "schema": {
+ "properties": {"foo": {}, "bar": {}},
+ "additionalProperties": {"type": "boolean"}
+ },
+ "tests": [
+ {
+ "description": "no additional properties is valid",
+ "data": {"foo": 1},
+ "valid": true
+ },
+ {
+ "description": "an additional valid property is valid",
+ "data": {"foo" : 1, "bar" : 2, "quux" : true},
+ "valid": true
+ },
+ {
+ "description": "an additional invalid property is invalid",
+ "data": {"foo" : 1, "bar" : 2, "quux" : 12},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description":
+ "additionalProperties can exist by itself",
+ "schema": {
+ "additionalProperties": {"type": "boolean"}
+ },
+ "tests": [
+ {
+ "description": "an additional valid property is valid",
+ "data": {"foo" : true},
+ "valid": true
+ },
+ {
+ "description": "an additional invalid property is invalid",
+ "data": {"foo" : 1},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "additionalProperties are allowed by default",
+ "schema": {"properties": {"foo": {}, "bar": {}}},
+ "tests": [
+ {
+ "description": "additional properties are allowed",
+ "data": {"foo": 1, "bar": 2, "quux": true},
+ "valid": true
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/default.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/default.json
new file mode 100644
index 00000000000..17629779fbe
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/default.json
@@ -0,0 +1,49 @@
+[
+ {
+ "description": "invalid type for default",
+ "schema": {
+ "properties": {
+ "foo": {
+ "type": "integer",
+ "default": []
+ }
+ }
+ },
+ "tests": [
+ {
+ "description": "valid when property is specified",
+ "data": {"foo": 13},
+ "valid": true
+ },
+ {
+ "description": "still valid when the invalid default is used",
+ "data": {},
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "invalid string value for default",
+ "schema": {
+ "properties": {
+ "bar": {
+ "type": "string",
+ "minLength": 4,
+ "default": "bad"
+ }
+ }
+ },
+ "tests": [
+ {
+ "description": "valid when property is specified",
+ "data": {"bar": "good"},
+ "valid": true
+ },
+ {
+ "description": "still valid when the invalid default is used",
+ "data": {},
+ "valid": true
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/dependencies.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/dependencies.json
new file mode 100644
index 00000000000..2f6ae489aed
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/dependencies.json
@@ -0,0 +1,108 @@
+[
+ {
+ "description": "dependencies",
+ "schema": {
+ "dependencies": {"bar": "foo"}
+ },
+ "tests": [
+ {
+ "description": "neither",
+ "data": {},
+ "valid": true
+ },
+ {
+ "description": "nondependant",
+ "data": {"foo": 1},
+ "valid": true
+ },
+ {
+ "description": "with dependency",
+ "data": {"foo": 1, "bar": 2},
+ "valid": true
+ },
+ {
+ "description": "missing dependency",
+ "data": {"bar": 2},
+ "valid": false
+ },
+ {
+ "description": "ignores non-objects",
+ "data": "foo",
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "multiple dependencies",
+ "schema": {
+ "dependencies": {"quux": ["foo", "bar"]}
+ },
+ "tests": [
+ {
+ "description": "neither",
+ "data": {},
+ "valid": true
+ },
+ {
+ "description": "nondependants",
+ "data": {"foo": 1, "bar": 2},
+ "valid": true
+ },
+ {
+ "description": "with dependencies",
+ "data": {"foo": 1, "bar": 2, "quux": 3},
+ "valid": true
+ },
+ {
+ "description": "missing dependency",
+ "data": {"foo": 1, "quux": 2},
+ "valid": false
+ },
+ {
+ "description": "missing other dependency",
+ "data": {"bar": 1, "quux": 2},
+ "valid": false
+ },
+ {
+ "description": "missing both dependencies",
+ "data": {"quux": 1},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "multiple dependencies subschema",
+ "schema": {
+ "dependencies": {
+ "bar": {
+ "properties": {
+ "foo": {"type": "integer"},
+ "bar": {"type": "integer"}
+ }
+ }
+ }
+ },
+ "tests": [
+ {
+ "description": "valid",
+ "data": {"foo": 1, "bar": 2},
+ "valid": true
+ },
+ {
+ "description": "wrong type",
+ "data": {"foo": "quux", "bar": 2},
+ "valid": false
+ },
+ {
+ "description": "wrong type other",
+ "data": {"foo": 2, "bar": "quux"},
+ "valid": false
+ },
+ {
+ "description": "wrong type both",
+ "data": {"foo": "quux", "bar": "quux"},
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/disallow.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/disallow.json
new file mode 100644
index 00000000000..a5c9d90ccee
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/disallow.json
@@ -0,0 +1,80 @@
+[
+ {
+ "description": "disallow",
+ "schema": {
+ "disallow": "integer"
+ },
+ "tests": [
+ {
+ "description": "allowed",
+ "data": "foo",
+ "valid": true
+ },
+ {
+ "description": "disallowed",
+ "data": 1,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "multiple disallow",
+ "schema": {
+ "disallow": ["integer", "boolean"]
+ },
+ "tests": [
+ {
+ "description": "valid",
+ "data": "foo",
+ "valid": true
+ },
+ {
+ "description": "mismatch",
+ "data": 1,
+ "valid": false
+ },
+ {
+ "description": "other mismatch",
+ "data": true,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "multiple disallow subschema",
+ "schema": {
+ "disallow":
+ ["string",
+ {
+ "type": "object",
+ "properties": {
+ "foo": {
+ "type": "string"
+ }
+ }
+ }]
+ },
+ "tests": [
+ {
+ "description": "match",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "other match",
+ "data": {"foo": 1},
+ "valid": true
+ },
+ {
+ "description": "mismatch",
+ "data": "foo",
+ "valid": false
+ },
+ {
+ "description": "other mismatch",
+ "data": {"foo": "bar"},
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json
new file mode 100644
index 00000000000..ef7cc148902
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json
@@ -0,0 +1,60 @@
+[
+ {
+ "description": "by int",
+ "schema": {"divisibleBy": 2},
+ "tests": [
+ {
+ "description": "int by int",
+ "data": 10,
+ "valid": true
+ },
+ {
+ "description": "int by int fail",
+ "data": 7,
+ "valid": false
+ },
+ {
+ "description": "ignores non-numbers",
+ "data": "foo",
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "by number",
+ "schema": {"divisibleBy": 1.5},
+ "tests": [
+ {
+ "description": "zero is divisible by anything (except 0)",
+ "data": 0,
+ "valid": true
+ },
+ {
+ "description": "4.5 is divisible by 1.5",
+ "data": 4.5,
+ "valid": true
+ },
+ {
+ "description": "35 is not divisible by 1.5",
+ "data": 35,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "by small number",
+ "schema": {"divisibleBy": 0.0001},
+ "tests": [
+ {
+ "description": "0.0075 is divisible by 0.0001",
+ "data": 0.0075,
+ "valid": true
+ },
+ {
+ "description": "0.00751 is not divisible by 0.0001",
+ "data": 0.00751,
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/enum.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/enum.json
new file mode 100644
index 00000000000..0c83f0804d0
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/enum.json
@@ -0,0 +1,71 @@
+[
+ {
+ "description": "simple enum validation",
+ "schema": {"enum": [1, 2, 3]},
+ "tests": [
+ {
+ "description": "one of the enum is valid",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "something else is invalid",
+ "data": 4,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "heterogeneous enum validation",
+ "schema": {"enum": [6, "foo", [], true, {"foo": 12}]},
+ "tests": [
+ {
+ "description": "one of the enum is valid",
+ "data": [],
+ "valid": true
+ },
+ {
+ "description": "something else is invalid",
+ "data": null,
+ "valid": false
+ },
+ {
+ "description": "objects are deep compared",
+ "data": {"foo": false},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "enums in properties",
+ "schema": {
+ "type":"object",
+ "properties": {
+ "foo": {"enum":["foo"]},
+ "bar": {"enum":["bar"], "required":true}
+ }
+ },
+ "tests": [
+ {
+ "description": "both properties are valid",
+ "data": {"foo":"foo", "bar":"bar"},
+ "valid": true
+ },
+ {
+ "description": "missing optional property is valid",
+ "data": {"bar":"bar"},
+ "valid": true
+ },
+ {
+ "description": "missing required property is invalid",
+ "data": {"foo":"foo"},
+ "valid": false
+ },
+ {
+ "description": "missing all properties is invalid",
+ "data": {},
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/extends.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/extends.json
new file mode 100644
index 00000000000..909bce575ae
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/extends.json
@@ -0,0 +1,94 @@
+[
+ {
+ "description": "extends",
+ "schema": {
+ "properties": {"bar": {"type": "integer", "required": true}},
+ "extends": {
+ "properties": {
+ "foo": {"type": "string", "required": true}
+ }
+ }
+ },
+ "tests": [
+ {
+ "description": "extends",
+ "data": {"foo": "baz", "bar": 2},
+ "valid": true
+ },
+ {
+ "description": "mismatch extends",
+ "data": {"foo": "baz"},
+ "valid": false
+ },
+ {
+ "description": "mismatch extended",
+ "data": {"bar": 2},
+ "valid": false
+ },
+ {
+ "description": "wrong type",
+ "data": {"foo": "baz", "bar": "quux"},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "multiple extends",
+ "schema": {
+ "properties": {"bar": {"type": "integer", "required": true}},
+ "extends" : [
+ {
+ "properties": {
+ "foo": {"type": "string", "required": true}
+ }
+ },
+ {
+ "properties": {
+ "baz": {"type": "null", "required": true}
+ }
+ }
+ ]
+ },
+ "tests": [
+ {
+ "description": "valid",
+ "data": {"foo": "quux", "bar": 2, "baz": null},
+ "valid": true
+ },
+ {
+ "description": "mismatch first extends",
+ "data": {"bar": 2, "baz": null},
+ "valid": false
+ },
+ {
+ "description": "mismatch second extends",
+ "data": {"foo": "quux", "bar": 2},
+ "valid": false
+ },
+ {
+ "description": "mismatch both",
+ "data": {"bar": 2},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "extends simple types",
+ "schema": {
+ "minimum": 20,
+ "extends": {"maximum": 30}
+ },
+ "tests": [
+ {
+ "description": "valid",
+ "data": 25,
+ "valid": true
+ },
+ {
+ "description": "mismatch extends",
+ "data": 35,
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/items.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/items.json
new file mode 100644
index 00000000000..f5e18a13848
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/items.json
@@ -0,0 +1,46 @@
+[
+ {
+ "description": "a schema given for items",
+ "schema": {
+ "items": {"type": "integer"}
+ },
+ "tests": [
+ {
+ "description": "valid items",
+ "data": [ 1, 2, 3 ],
+ "valid": true
+ },
+ {
+ "description": "wrong type of items",
+ "data": [1, "x"],
+ "valid": false
+ },
+ {
+ "description": "ignores non-arrays",
+ "data": {"foo" : "bar"},
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "an array of schemas for items",
+ "schema": {
+ "items": [
+ {"type": "integer"},
+ {"type": "string"}
+ ]
+ },
+ "tests": [
+ {
+ "description": "correct types",
+ "data": [ 1, "foo" ],
+ "valid": true
+ },
+ {
+ "description": "wrong types",
+ "data": [ "foo", 1 ],
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/maxItems.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/maxItems.json
new file mode 100644
index 00000000000..3b53a6b371a
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/maxItems.json
@@ -0,0 +1,28 @@
+[
+ {
+ "description": "maxItems validation",
+ "schema": {"maxItems": 2},
+ "tests": [
+ {
+ "description": "shorter is valid",
+ "data": [1],
+ "valid": true
+ },
+ {
+ "description": "exact length is valid",
+ "data": [1, 2],
+ "valid": true
+ },
+ {
+ "description": "too long is invalid",
+ "data": [1, 2, 3],
+ "valid": false
+ },
+ {
+ "description": "ignores non-arrays",
+ "data": "foobar",
+ "valid": true
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/maxLength.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/maxLength.json
new file mode 100644
index 00000000000..4de42bcaba0
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/maxLength.json
@@ -0,0 +1,33 @@
+[
+ {
+ "description": "maxLength validation",
+ "schema": {"maxLength": 2},
+ "tests": [
+ {
+ "description": "shorter is valid",
+ "data": "f",
+ "valid": true
+ },
+ {
+ "description": "exact length is valid",
+ "data": "fo",
+ "valid": true
+ },
+ {
+ "description": "too long is invalid",
+ "data": "foo",
+ "valid": false
+ },
+ {
+ "description": "ignores non-strings",
+ "data": 10,
+ "valid": true
+ },
+ {
+ "description": "two supplementary Unicode code points is long enough",
+ "data": "\uD83D\uDCA9\uD83D\uDCA9",
+ "valid": true
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/maximum.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/maximum.json
new file mode 100644
index 00000000000..86c7b89c9a9
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/maximum.json
@@ -0,0 +1,42 @@
+[
+ {
+ "description": "maximum validation",
+ "schema": {"maximum": 3.0},
+ "tests": [
+ {
+ "description": "below the maximum is valid",
+ "data": 2.6,
+ "valid": true
+ },
+ {
+ "description": "above the maximum is invalid",
+ "data": 3.5,
+ "valid": false
+ },
+ {
+ "description": "ignores non-numbers",
+ "data": "x",
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "exclusiveMaximum validation",
+ "schema": {
+ "maximum": 3.0,
+ "exclusiveMaximum": true
+ },
+ "tests": [
+ {
+ "description": "below the maximum is still valid",
+ "data": 2.2,
+ "valid": true
+ },
+ {
+ "description": "boundary point is invalid",
+ "data": 3.0,
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/minItems.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/minItems.json
new file mode 100644
index 00000000000..ed5118815ee
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/minItems.json
@@ -0,0 +1,28 @@
+[
+ {
+ "description": "minItems validation",
+ "schema": {"minItems": 1},
+ "tests": [
+ {
+ "description": "longer is valid",
+ "data": [1, 2],
+ "valid": true
+ },
+ {
+ "description": "exact length is valid",
+ "data": [1],
+ "valid": true
+ },
+ {
+ "description": "too short is invalid",
+ "data": [],
+ "valid": false
+ },
+ {
+ "description": "ignores non-arrays",
+ "data": "",
+ "valid": true
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/minLength.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/minLength.json
new file mode 100644
index 00000000000..3f09158deef
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/minLength.json
@@ -0,0 +1,33 @@
+[
+ {
+ "description": "minLength validation",
+ "schema": {"minLength": 2},
+ "tests": [
+ {
+ "description": "longer is valid",
+ "data": "foo",
+ "valid": true
+ },
+ {
+ "description": "exact length is valid",
+ "data": "fo",
+ "valid": true
+ },
+ {
+ "description": "too short is invalid",
+ "data": "f",
+ "valid": false
+ },
+ {
+ "description": "ignores non-strings",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "one supplementary Unicode code point is not long enough",
+ "data": "\uD83D\uDCA9",
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/minimum.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/minimum.json
new file mode 100644
index 00000000000..d5bf000bcc6
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/minimum.json
@@ -0,0 +1,42 @@
+[
+ {
+ "description": "minimum validation",
+ "schema": {"minimum": 1.1},
+ "tests": [
+ {
+ "description": "above the minimum is valid",
+ "data": 2.6,
+ "valid": true
+ },
+ {
+ "description": "below the minimum is invalid",
+ "data": 0.6,
+ "valid": false
+ },
+ {
+ "description": "ignores non-numbers",
+ "data": "x",
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "exclusiveMinimum validation",
+ "schema": {
+ "minimum": 1.1,
+ "exclusiveMinimum": true
+ },
+ "tests": [
+ {
+ "description": "above the minimum is still valid",
+ "data": 1.2,
+ "valid": true
+ },
+ {
+ "description": "boundary point is invalid",
+ "data": 1.1,
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/optional/bignum.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/optional/bignum.json
new file mode 100644
index 00000000000..ccc7c17fe8d
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/optional/bignum.json
@@ -0,0 +1,107 @@
+[
+ {
+ "description": "integer",
+ "schema": {"type": "integer"},
+ "tests": [
+ {
+ "description": "a bignum is an integer",
+ "data": 12345678910111213141516171819202122232425262728293031,
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "number",
+ "schema": {"type": "number"},
+ "tests": [
+ {
+ "description": "a bignum is a number",
+ "data": 98249283749234923498293171823948729348710298301928331,
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "integer",
+ "schema": {"type": "integer"},
+ "tests": [
+ {
+ "description": "a negative bignum is an integer",
+ "data": -12345678910111213141516171819202122232425262728293031,
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "number",
+ "schema": {"type": "number"},
+ "tests": [
+ {
+ "description": "a negative bignum is a number",
+ "data": -98249283749234923498293171823948729348710298301928331,
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "string",
+ "schema": {"type": "string"},
+ "tests": [
+ {
+ "description": "a bignum is not a string",
+ "data": 98249283749234923498293171823948729348710298301928331,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "integer comparison",
+ "schema": {"maximum": 18446744073709551615},
+ "tests": [
+ {
+ "description": "comparison works for high numbers",
+ "data": 18446744073709551600,
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "float comparison with high precision",
+ "schema": {
+ "maximum": 972783798187987123879878123.18878137,
+ "exclusiveMaximum": true
+ },
+ "tests": [
+ {
+ "description": "comparison works for high numbers",
+ "data": 972783798187987123879878123.188781371,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "integer comparison",
+ "schema": {"minimum": -18446744073709551615},
+ "tests": [
+ {
+ "description": "comparison works for very negative numbers",
+ "data": -18446744073709551600,
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "float comparison with high precision on negative numbers",
+ "schema": {
+ "minimum": -972783798187987123879878123.18878137,
+ "exclusiveMinimum": true
+ },
+ "tests": [
+ {
+ "description": "comparison works for very negative numbers",
+ "data": -972783798187987123879878123.188781371,
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/optional/format.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/optional/format.json
new file mode 100644
index 00000000000..3ca7319dda0
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/optional/format.json
@@ -0,0 +1,222 @@
+[
+ {
+ "description": "validation of regular expressions",
+ "schema": {"format": "regex"},
+ "tests": [
+ {
+ "description": "a valid regular expression",
+ "data": "([abc])+\\s+$",
+ "valid": true
+ },
+ {
+ "description": "a regular expression with unclosed parens is invalid",
+ "data": "^(abc]",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "validation of date-time strings",
+ "schema": {"format": "date-time"},
+ "tests": [
+ {
+ "description": "a valid date-time string",
+ "data": "1963-06-19T08:30:06.283185Z",
+ "valid": true
+ },
+ {
+ "description": "an invalid date-time string",
+ "data": "06/19/1963 08:30:06 PST",
+ "valid": false
+ },
+ {
+ "description": "only RFC3339 not all of ISO 8601 are valid",
+ "data": "2013-350T01:01:01",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "validation of date strings",
+ "schema": {"format": "date"},
+ "tests": [
+ {
+ "description": "a valid date string",
+ "data": "1963-06-19",
+ "valid": true
+ },
+ {
+ "description": "an invalid date string",
+ "data": "06/19/1963",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "validation of time strings",
+ "schema": {"format": "time"},
+ "tests": [
+ {
+ "description": "a valid time string",
+ "data": "08:30:06",
+ "valid": true
+ },
+ {
+ "description": "an invalid time string",
+ "data": "8:30 AM",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "validation of URIs",
+ "schema": {"format": "uri"},
+ "tests": [
+ {
+ "description": "a valid URI",
+ "data": "http://foo.bar/?baz=qux#quux",
+ "valid": true
+ },
+ {
+ "description": "a valid protocol-relative URI",
+ "data": "//foo.bar/?baz=qux#quux",
+ "valid": true
+ },
+ {
+ "description": "an invalid URI",
+ "data": "\\\\WINDOWS\\fileshare",
+ "valid": false
+ },
+ {
+ "description": "an invalid URI though valid URI reference",
+ "data": "abc",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "validation of e-mail addresses",
+ "schema": {"format": "email"},
+ "tests": [
+ {
+ "description": "a valid e-mail address",
+ "data": "joe.bloggs@example.com",
+ "valid": true
+ },
+ {
+ "description": "an invalid e-mail address",
+ "data": "2962",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "validation of IP addresses",
+ "schema": {"format": "ip-address"},
+ "tests": [
+ {
+ "description": "a valid IP address",
+ "data": "192.168.0.1",
+ "valid": true
+ },
+ {
+ "description": "an IP address with too many components",
+ "data": "127.0.0.0.1",
+ "valid": false
+ },
+ {
+ "description": "an IP address with out-of-range values",
+ "data": "256.256.256.256",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "validation of IPv6 addresses",
+ "schema": {"format": "ipv6"},
+ "tests": [
+ {
+ "description": "a valid IPv6 address",
+ "data": "::1",
+ "valid": true
+ },
+ {
+ "description": "an IPv6 address with out-of-range values",
+ "data": "12345::",
+ "valid": false
+ },
+ {
+ "description": "an IPv6 address with too many components",
+ "data": "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1",
+ "valid": false
+ },
+ {
+ "description": "an IPv6 address containing illegal characters",
+ "data": "::laptop",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "validation of host names",
+ "schema": {"format": "host-name"},
+ "tests": [
+ {
+ "description": "a valid host name",
+ "data": "www.example.com",
+ "valid": true
+ },
+ {
+ "description": "a host name starting with an illegal character",
+ "data": "-a-host-name-that-starts-with--",
+ "valid": false
+ },
+ {
+ "description": "a host name containing illegal characters",
+ "data": "not_a_valid_host_name",
+ "valid": false
+ },
+ {
+ "description": "a host name with a component too long",
+ "data": "a-vvvvvvvvvvvvvvvveeeeeeeeeeeeeeeerrrrrrrrrrrrrrrryyyyyyyyyyyyyyyy-long-host-name-component",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "validation of CSS colors",
+ "schema": {"format": "color"},
+ "tests": [
+ {
+ "description": "a valid CSS color name",
+ "data": "fuchsia",
+ "valid": true
+ },
+ {
+ "description": "a valid six-digit CSS color code",
+ "data": "#CC8899",
+ "valid": true
+ },
+ {
+ "description": "a valid three-digit CSS color code",
+ "data": "#C89",
+ "valid": true
+ },
+ {
+ "description": "an invalid CSS color code",
+ "data": "#00332520",
+ "valid": false
+ },
+ {
+ "description": "an invalid CSS color name",
+ "data": "puce",
+ "valid": false
+ },
+ {
+ "description": "a CSS color name containing invalid characters",
+ "data": "light_grayish_red-violet",
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/optional/jsregex.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/optional/jsregex.json
new file mode 100644
index 00000000000..03fe97724c0
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/optional/jsregex.json
@@ -0,0 +1,18 @@
+[
+ {
+ "description": "ECMA 262 regex dialect recognition",
+ "schema": { "format": "regex" },
+ "tests": [
+ {
+ "description": "[^] is a valid regex",
+ "data": "[^]",
+ "valid": true
+ },
+ {
+ "description": "ECMA 262 has no support for lookbehind",
+ "data": "(?<=foo)bar",
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/optional/zeroTerminatedFloats.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/optional/zeroTerminatedFloats.json
new file mode 100644
index 00000000000..9b50ea27769
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/optional/zeroTerminatedFloats.json
@@ -0,0 +1,15 @@
+[
+ {
+ "description": "some languages do not distinguish between different types of numeric value",
+ "schema": {
+ "type": "integer"
+ },
+ "tests": [
+ {
+ "description": "a float is not an integer even without fractional part",
+ "data": 1.0,
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/pattern.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/pattern.json
new file mode 100644
index 00000000000..25e72997314
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/pattern.json
@@ -0,0 +1,34 @@
+[
+ {
+ "description": "pattern validation",
+ "schema": {"pattern": "^a*$"},
+ "tests": [
+ {
+ "description": "a matching pattern is valid",
+ "data": "aaa",
+ "valid": true
+ },
+ {
+ "description": "a non-matching pattern is invalid",
+ "data": "abc",
+ "valid": false
+ },
+ {
+ "description": "ignores non-strings",
+ "data": true,
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "pattern is not anchored",
+ "schema": {"pattern": "a+"},
+ "tests": [
+ {
+ "description": "matches a substring",
+ "data": "xxaayy",
+ "valid": true
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/patternProperties.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/patternProperties.json
new file mode 100644
index 00000000000..18586e5daba
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/patternProperties.json
@@ -0,0 +1,110 @@
+[
+ {
+ "description":
+ "patternProperties validates properties matching a regex",
+ "schema": {
+ "patternProperties": {
+ "f.*o": {"type": "integer"}
+ }
+ },
+ "tests": [
+ {
+ "description": "a single valid match is valid",
+ "data": {"foo": 1},
+ "valid": true
+ },
+ {
+ "description": "multiple valid matches is valid",
+ "data": {"foo": 1, "foooooo" : 2},
+ "valid": true
+ },
+ {
+ "description": "a single invalid match is invalid",
+ "data": {"foo": "bar", "fooooo": 2},
+ "valid": false
+ },
+ {
+ "description": "multiple invalid matches is invalid",
+ "data": {"foo": "bar", "foooooo" : "baz"},
+ "valid": false
+ },
+ {
+ "description": "ignores non-objects",
+ "data": 12,
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "multiple simultaneous patternProperties are validated",
+ "schema": {
+ "patternProperties": {
+ "a*": {"type": "integer"},
+ "aaa*": {"maximum": 20}
+ }
+ },
+ "tests": [
+ {
+ "description": "a single valid match is valid",
+ "data": {"a": 21},
+ "valid": true
+ },
+ {
+ "description": "a simultaneous match is valid",
+ "data": {"aaaa": 18},
+ "valid": true
+ },
+ {
+ "description": "multiple matches is valid",
+ "data": {"a": 21, "aaaa": 18},
+ "valid": true
+ },
+ {
+ "description": "an invalid due to one is invalid",
+ "data": {"a": "bar"},
+ "valid": false
+ },
+ {
+ "description": "an invalid due to the other is invalid",
+ "data": {"aaaa": 31},
+ "valid": false
+ },
+ {
+ "description": "an invalid due to both is invalid",
+ "data": {"aaa": "foo", "aaaa": 31},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "regexes are not anchored by default and are case sensitive",
+ "schema": {
+ "patternProperties": {
+ "[0-9]{2,}": { "type": "boolean" },
+ "X_": { "type": "string" }
+ }
+ },
+ "tests": [
+ {
+ "description": "non recognized members are ignored",
+ "data": { "answer 1": "42" },
+ "valid": true
+ },
+ {
+ "description": "recognized members are accounted for",
+ "data": { "a31b": null },
+ "valid": false
+ },
+ {
+ "description": "regexes are case sensitive",
+ "data": { "a_x_3": 3 },
+ "valid": true
+ },
+ {
+ "description": "regexes are case sensitive, 2",
+ "data": { "a_X_3": 3 },
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/properties.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/properties.json
new file mode 100644
index 00000000000..cd1644dcd91
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/properties.json
@@ -0,0 +1,92 @@
+[
+ {
+ "description": "object properties validation",
+ "schema": {
+ "properties": {
+ "foo": {"type": "integer"},
+ "bar": {"type": "string"}
+ }
+ },
+ "tests": [
+ {
+ "description": "both properties present and valid is valid",
+ "data": {"foo": 1, "bar": "baz"},
+ "valid": true
+ },
+ {
+ "description": "one property invalid is invalid",
+ "data": {"foo": 1, "bar": {}},
+ "valid": false
+ },
+ {
+ "description": "both properties invalid is invalid",
+ "data": {"foo": [], "bar": {}},
+ "valid": false
+ },
+ {
+ "description": "doesn't invalidate other properties",
+ "data": {"quux": []},
+ "valid": true
+ },
+ {
+ "description": "ignores non-objects",
+ "data": [],
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description":
+ "properties, patternProperties, additionalProperties interaction",
+ "schema": {
+ "properties": {
+ "foo": {"type": "array", "maxItems": 3},
+ "bar": {"type": "array"}
+ },
+ "patternProperties": {"f.o": {"minItems": 2}},
+ "additionalProperties": {"type": "integer"}
+ },
+ "tests": [
+ {
+ "description": "property validates property",
+ "data": {"foo": [1, 2]},
+ "valid": true
+ },
+ {
+ "description": "property invalidates property",
+ "data": {"foo": [1, 2, 3, 4]},
+ "valid": false
+ },
+ {
+ "description": "patternProperty invalidates property",
+ "data": {"foo": []},
+ "valid": false
+ },
+ {
+ "description": "patternProperty validates nonproperty",
+ "data": {"fxo": [1, 2]},
+ "valid": true
+ },
+ {
+ "description": "patternProperty invalidates nonproperty",
+ "data": {"fxo": []},
+ "valid": false
+ },
+ {
+ "description": "additionalProperty ignores property",
+ "data": {"bar": []},
+ "valid": true
+ },
+ {
+ "description": "additionalProperty validates others",
+ "data": {"quux": 3},
+ "valid": true
+ },
+ {
+ "description": "additionalProperty invalidates others",
+ "data": {"quux": "foo"},
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/ref.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/ref.json
new file mode 100644
index 00000000000..903ecb6bce1
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/ref.json
@@ -0,0 +1,159 @@
+[
+ {
+ "description": "root pointer ref",
+ "schema": {
+ "properties": {
+ "foo": {"$ref": "#"}
+ },
+ "additionalProperties": false
+ },
+ "tests": [
+ {
+ "description": "match",
+ "data": {"foo": false},
+ "valid": true
+ },
+ {
+ "description": "recursive match",
+ "data": {"foo": {"foo": false}},
+ "valid": true
+ },
+ {
+ "description": "mismatch",
+ "data": {"bar": false},
+ "valid": false
+ },
+ {
+ "description": "recursive mismatch",
+ "data": {"foo": {"bar": false}},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "relative pointer ref to object",
+ "schema": {
+ "properties": {
+ "foo": {"type": "integer"},
+ "bar": {"$ref": "#/properties/foo"}
+ }
+ },
+ "tests": [
+ {
+ "description": "match",
+ "data": {"bar": 3},
+ "valid": true
+ },
+ {
+ "description": "mismatch",
+ "data": {"bar": true},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "relative pointer ref to array",
+ "schema": {
+ "items": [
+ {"type": "integer"},
+ {"$ref": "#/items/0"}
+ ]
+ },
+ "tests": [
+ {
+ "description": "match array",
+ "data": [1, 2],
+ "valid": true
+ },
+ {
+ "description": "mismatch array",
+ "data": [1, "foo"],
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "escaped pointer ref",
+ "schema": {
+ "tilda~field": {"type": "integer"},
+ "slash/field": {"type": "integer"},
+ "percent%field": {"type": "integer"},
+ "properties": {
+ "tilda": {"$ref": "#/tilda~0field"},
+ "slash": {"$ref": "#/slash~1field"},
+ "percent": {"$ref": "#/percent%25field"}
+ }
+ },
+ "tests": [
+ {
+ "description": "slash invalid",
+ "data": {"slash": "aoeu"},
+ "valid": false
+ },
+ {
+ "description": "tilda invalid",
+ "data": {"tilda": "aoeu"},
+ "valid": false
+ },
+ {
+ "description": "percent invalid",
+ "data": {"percent": "aoeu"},
+ "valid": false
+ },
+ {
+ "description": "slash valid",
+ "data": {"slash": 123},
+ "valid": true
+ },
+ {
+ "description": "tilda valid",
+ "data": {"tilda": 123},
+ "valid": true
+ },
+ {
+ "description": "percent valid",
+ "data": {"percent": 123},
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "nested refs",
+ "schema": {
+ "definitions": {
+ "a": {"type": "integer"},
+ "b": {"$ref": "#/definitions/a"},
+ "c": {"$ref": "#/definitions/b"}
+ },
+ "$ref": "#/definitions/c"
+ },
+ "tests": [
+ {
+ "description": "nested ref valid",
+ "data": 5,
+ "valid": true
+ },
+ {
+ "description": "nested ref invalid",
+ "data": "a",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "remote ref, containing refs itself",
+ "schema": {"$ref": "http://json-schema.org/draft-03/schema#"},
+ "tests": [
+ {
+ "description": "remote ref valid",
+ "data": {"items": {"type": "integer"}},
+ "valid": true
+ },
+ {
+ "description": "remote ref invalid",
+ "data": {"items": {"type": 1}},
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/refRemote.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/refRemote.json
new file mode 100644
index 00000000000..4ca804732c9
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/refRemote.json
@@ -0,0 +1,74 @@
+[
+ {
+ "description": "remote ref",
+ "schema": {"$ref": "http://localhost:1234/integer.json"},
+ "tests": [
+ {
+ "description": "remote ref valid",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "remote ref invalid",
+ "data": "a",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "fragment within remote ref",
+ "schema": {"$ref": "http://localhost:1234/subSchemas.json#/integer"},
+ "tests": [
+ {
+ "description": "remote fragment valid",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "remote fragment invalid",
+ "data": "a",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "ref within remote ref",
+ "schema": {
+ "$ref": "http://localhost:1234/subSchemas.json#/refToInteger"
+ },
+ "tests": [
+ {
+ "description": "ref within ref valid",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "ref within ref invalid",
+ "data": "a",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "change resolution scope",
+ "schema": {
+ "id": "http://localhost:1234/",
+ "items": {
+ "id": "folder/",
+ "items": {"$ref": "folderInteger.json"}
+ }
+ },
+ "tests": [
+ {
+ "description": "changed scope ref valid",
+ "data": [[1]],
+ "valid": true
+ },
+ {
+ "description": "changed scope ref invalid",
+ "data": [["a"]],
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/required.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/required.json
new file mode 100644
index 00000000000..aaaf0242737
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/required.json
@@ -0,0 +1,53 @@
+[
+ {
+ "description": "required validation",
+ "schema": {
+ "properties": {
+ "foo": {"required" : true},
+ "bar": {}
+ }
+ },
+ "tests": [
+ {
+ "description": "present required property is valid",
+ "data": {"foo": 1},
+ "valid": true
+ },
+ {
+ "description": "non-present required property is invalid",
+ "data": {"bar": 1},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "required default validation",
+ "schema": {
+ "properties": {
+ "foo": {}
+ }
+ },
+ "tests": [
+ {
+ "description": "not required by default",
+ "data": {},
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "required explicitly false validation",
+ "schema": {
+ "properties": {
+ "foo": {"required": false}
+ }
+ },
+ "tests": [
+ {
+ "description": "not required if required is false",
+ "data": {},
+ "valid": true
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/type.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/type.json
new file mode 100644
index 00000000000..337da1206da
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/type.json
@@ -0,0 +1,474 @@
+[
+ {
+ "description": "integer type matches integers",
+ "schema": {"type": "integer"},
+ "tests": [
+ {
+ "description": "an integer is an integer",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "a float is not an integer",
+ "data": 1.1,
+ "valid": false
+ },
+ {
+ "description": "a string is not an integer",
+ "data": "foo",
+ "valid": false
+ },
+ {
+ "description": "an object is not an integer",
+ "data": {},
+ "valid": false
+ },
+ {
+ "description": "an array is not an integer",
+ "data": [],
+ "valid": false
+ },
+ {
+ "description": "a boolean is not an integer",
+ "data": true,
+ "valid": false
+ },
+ {
+ "description": "null is not an integer",
+ "data": null,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "number type matches numbers",
+ "schema": {"type": "number"},
+ "tests": [
+ {
+ "description": "an integer is a number",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "a float is a number",
+ "data": 1.1,
+ "valid": true
+ },
+ {
+ "description": "a string is not a number",
+ "data": "foo",
+ "valid": false
+ },
+ {
+ "description": "an object is not a number",
+ "data": {},
+ "valid": false
+ },
+ {
+ "description": "an array is not a number",
+ "data": [],
+ "valid": false
+ },
+ {
+ "description": "a boolean is not a number",
+ "data": true,
+ "valid": false
+ },
+ {
+ "description": "null is not a number",
+ "data": null,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "string type matches strings",
+ "schema": {"type": "string"},
+ "tests": [
+ {
+ "description": "1 is not a string",
+ "data": 1,
+ "valid": false
+ },
+ {
+ "description": "a float is not a string",
+ "data": 1.1,
+ "valid": false
+ },
+ {
+ "description": "a string is a string",
+ "data": "foo",
+ "valid": true
+ },
+ {
+ "description": "an object is not a string",
+ "data": {},
+ "valid": false
+ },
+ {
+ "description": "an array is not a string",
+ "data": [],
+ "valid": false
+ },
+ {
+ "description": "a boolean is not a string",
+ "data": true,
+ "valid": false
+ },
+ {
+ "description": "null is not a string",
+ "data": null,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "object type matches objects",
+ "schema": {"type": "object"},
+ "tests": [
+ {
+ "description": "an integer is not an object",
+ "data": 1,
+ "valid": false
+ },
+ {
+ "description": "a float is not an object",
+ "data": 1.1,
+ "valid": false
+ },
+ {
+ "description": "a string is not an object",
+ "data": "foo",
+ "valid": false
+ },
+ {
+ "description": "an object is an object",
+ "data": {},
+ "valid": true
+ },
+ {
+ "description": "an array is not an object",
+ "data": [],
+ "valid": false
+ },
+ {
+ "description": "a boolean is not an object",
+ "data": true,
+ "valid": false
+ },
+ {
+ "description": "null is not an object",
+ "data": null,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "array type matches arrays",
+ "schema": {"type": "array"},
+ "tests": [
+ {
+ "description": "an integer is not an array",
+ "data": 1,
+ "valid": false
+ },
+ {
+ "description": "a float is not an array",
+ "data": 1.1,
+ "valid": false
+ },
+ {
+ "description": "a string is not an array",
+ "data": "foo",
+ "valid": false
+ },
+ {
+ "description": "an object is not an array",
+ "data": {},
+ "valid": false
+ },
+ {
+ "description": "an array is an array",
+ "data": [],
+ "valid": true
+ },
+ {
+ "description": "a boolean is not an array",
+ "data": true,
+ "valid": false
+ },
+ {
+ "description": "null is not an array",
+ "data": null,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "boolean type matches booleans",
+ "schema": {"type": "boolean"},
+ "tests": [
+ {
+ "description": "an integer is not a boolean",
+ "data": 1,
+ "valid": false
+ },
+ {
+ "description": "a float is not a boolean",
+ "data": 1.1,
+ "valid": false
+ },
+ {
+ "description": "a string is not a boolean",
+ "data": "foo",
+ "valid": false
+ },
+ {
+ "description": "an object is not a boolean",
+ "data": {},
+ "valid": false
+ },
+ {
+ "description": "an array is not a boolean",
+ "data": [],
+ "valid": false
+ },
+ {
+ "description": "a boolean is a boolean",
+ "data": true,
+ "valid": true
+ },
+ {
+ "description": "null is not a boolean",
+ "data": null,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "null type matches only the null object",
+ "schema": {"type": "null"},
+ "tests": [
+ {
+ "description": "an integer is not null",
+ "data": 1,
+ "valid": false
+ },
+ {
+ "description": "a float is not null",
+ "data": 1.1,
+ "valid": false
+ },
+ {
+ "description": "a string is not null",
+ "data": "foo",
+ "valid": false
+ },
+ {
+ "description": "an object is not null",
+ "data": {},
+ "valid": false
+ },
+ {
+ "description": "an array is not null",
+ "data": [],
+ "valid": false
+ },
+ {
+ "description": "a boolean is not null",
+ "data": true,
+ "valid": false
+ },
+ {
+ "description": "null is null",
+ "data": null,
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "any type matches any type",
+ "schema": {"type": "any"},
+ "tests": [
+ {
+ "description": "any type includes integers",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "any type includes float",
+ "data": 1.1,
+ "valid": true
+ },
+ {
+ "description": "any type includes string",
+ "data": "foo",
+ "valid": true
+ },
+ {
+ "description": "any type includes object",
+ "data": {},
+ "valid": true
+ },
+ {
+ "description": "any type includes array",
+ "data": [],
+ "valid": true
+ },
+ {
+ "description": "any type includes boolean",
+ "data": true,
+ "valid": true
+ },
+ {
+ "description": "any type includes null",
+ "data": null,
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "multiple types can be specified in an array",
+ "schema": {"type": ["integer", "string"]},
+ "tests": [
+ {
+ "description": "an integer is valid",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "a string is valid",
+ "data": "foo",
+ "valid": true
+ },
+ {
+ "description": "a float is invalid",
+ "data": 1.1,
+ "valid": false
+ },
+ {
+ "description": "an object is invalid",
+ "data": {},
+ "valid": false
+ },
+ {
+ "description": "an array is invalid",
+ "data": [],
+ "valid": false
+ },
+ {
+ "description": "a boolean is invalid",
+ "data": true,
+ "valid": false
+ },
+ {
+ "description": "null is invalid",
+ "data": null,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "types can include schemas",
+ "schema": {
+ "type": [
+ "array",
+ {"type": "object"}
+ ]
+ },
+ "tests": [
+ {
+ "description": "an integer is invalid",
+ "data": 1,
+ "valid": false
+ },
+ {
+ "description": "a string is invalid",
+ "data": "foo",
+ "valid": false
+ },
+ {
+ "description": "a float is invalid",
+ "data": 1.1,
+ "valid": false
+ },
+ {
+ "description": "an object is valid",
+ "data": {},
+ "valid": true
+ },
+ {
+ "description": "an array is valid",
+ "data": [],
+ "valid": true
+ },
+ {
+ "description": "a boolean is invalid",
+ "data": true,
+ "valid": false
+ },
+ {
+ "description": "null is invalid",
+ "data": null,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description":
+ "when types includes a schema it should fully validate the schema",
+ "schema": {
+ "type": [
+ "integer",
+ {
+ "properties": {
+ "foo": {"type": "null"}
+ }
+ }
+ ]
+ },
+ "tests": [
+ {
+ "description": "an integer is valid",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "an object is valid only if it is fully valid",
+ "data": {"foo": null},
+ "valid": true
+ },
+ {
+ "description": "an object is invalid otherwise",
+ "data": {"foo": "bar"},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "types from separate schemas are merged",
+ "schema": {
+ "type": [
+ {"type": ["string"]},
+ {"type": ["array", "null"]}
+ ]
+ },
+ "tests": [
+ {
+ "description": "an integer is invalid",
+ "data": 1,
+ "valid": false
+ },
+ {
+ "description": "a string is valid",
+ "data": "foo",
+ "valid": true
+ },
+ {
+ "description": "an array is valid",
+ "data": [1, 2, 3],
+ "valid": true
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/uniqueItems.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/uniqueItems.json
new file mode 100644
index 00000000000..c1f4ab99c9a
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/uniqueItems.json
@@ -0,0 +1,79 @@
+[
+ {
+ "description": "uniqueItems validation",
+ "schema": {"uniqueItems": true},
+ "tests": [
+ {
+ "description": "unique array of integers is valid",
+ "data": [1, 2],
+ "valid": true
+ },
+ {
+ "description": "non-unique array of integers is invalid",
+ "data": [1, 1],
+ "valid": false
+ },
+ {
+ "description": "numbers are unique if mathematically unequal",
+ "data": [1.0, 1.00, 1],
+ "valid": false
+ },
+ {
+ "description": "unique array of objects is valid",
+ "data": [{"foo": "bar"}, {"foo": "baz"}],
+ "valid": true
+ },
+ {
+ "description": "non-unique array of objects is invalid",
+ "data": [{"foo": "bar"}, {"foo": "bar"}],
+ "valid": false
+ },
+ {
+ "description": "unique array of nested objects is valid",
+ "data": [
+ {"foo": {"bar" : {"baz" : true}}},
+ {"foo": {"bar" : {"baz" : false}}}
+ ],
+ "valid": true
+ },
+ {
+ "description": "non-unique array of nested objects is invalid",
+ "data": [
+ {"foo": {"bar" : {"baz" : true}}},
+ {"foo": {"bar" : {"baz" : true}}}
+ ],
+ "valid": false
+ },
+ {
+ "description": "unique array of arrays is valid",
+ "data": [["foo"], ["bar"]],
+ "valid": true
+ },
+ {
+ "description": "non-unique array of arrays is invalid",
+ "data": [["foo"], ["foo"]],
+ "valid": false
+ },
+ {
+ "description": "1 and true are unique",
+ "data": [1, true],
+ "valid": true
+ },
+ {
+ "description": "0 and false are unique",
+ "data": [0, false],
+ "valid": true
+ },
+ {
+ "description": "unique heterogeneous types are valid",
+ "data": [{}, [1], true, null, 1],
+ "valid": true
+ },
+ {
+ "description": "non-unique heterogeneous types are invalid",
+ "data": [{}, [1], true, null, {}, 1],
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/.DS_Store b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/.DS_Store
new file mode 100644
index 00000000000..ef142295ea0
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/.DS_Store
Binary files differ
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/additionalItems.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/additionalItems.json
new file mode 100644
index 00000000000..521745c8d6e
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/additionalItems.json
@@ -0,0 +1,82 @@
+[
+ {
+ "description": "additionalItems as schema",
+ "schema": {
+ "items": [{}],
+ "additionalItems": {"type": "integer"}
+ },
+ "tests": [
+ {
+ "description": "additional items match schema",
+ "data": [ null, 2, 3, 4 ],
+ "valid": true
+ },
+ {
+ "description": "additional items do not match schema",
+ "data": [ null, 2, 3, "foo" ],
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "items is schema, no additionalItems",
+ "schema": {
+ "items": {},
+ "additionalItems": false
+ },
+ "tests": [
+ {
+ "description": "all items match schema",
+ "data": [ 1, 2, 3, 4, 5 ],
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "array of items with no additionalItems",
+ "schema": {
+ "items": [{}, {}, {}],
+ "additionalItems": false
+ },
+ "tests": [
+ {
+ "description": "no additional items present",
+ "data": [ 1, 2, 3 ],
+ "valid": true
+ },
+ {
+ "description": "additional items are not permitted",
+ "data": [ 1, 2, 3, 4 ],
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "additionalItems as false without items",
+ "schema": {"additionalItems": false},
+ "tests": [
+ {
+ "description":
+ "items defaults to empty schema so everything is valid",
+ "data": [ 1, 2, 3, 4, 5 ],
+ "valid": true
+ },
+ {
+ "description": "ignores non-arrays",
+ "data": {"foo" : "bar"},
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "additionalItems are allowed by default",
+ "schema": {"items": [{"type": "integer"}]},
+ "tests": [
+ {
+ "description": "only the first item is validated",
+ "data": [1, "foo", false],
+ "valid": true
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/additionalProperties.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/additionalProperties.json
new file mode 100644
index 00000000000..40831f9e9aa
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/additionalProperties.json
@@ -0,0 +1,88 @@
+[
+ {
+ "description":
+ "additionalProperties being false does not allow other properties",
+ "schema": {
+ "properties": {"foo": {}, "bar": {}},
+ "patternProperties": { "^v": {} },
+ "additionalProperties": false
+ },
+ "tests": [
+ {
+ "description": "no additional properties is valid",
+ "data": {"foo": 1},
+ "valid": true
+ },
+ {
+ "description": "an additional property is invalid",
+ "data": {"foo" : 1, "bar" : 2, "quux" : "boom"},
+ "valid": false
+ },
+ {
+ "description": "ignores non-objects",
+ "data": [1, 2, 3],
+ "valid": true
+ },
+ {
+ "description": "patternProperties are not additional properties",
+ "data": {"foo":1, "vroom": 2},
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description":
+ "additionalProperties allows a schema which should validate",
+ "schema": {
+ "properties": {"foo": {}, "bar": {}},
+ "additionalProperties": {"type": "boolean"}
+ },
+ "tests": [
+ {
+ "description": "no additional properties is valid",
+ "data": {"foo": 1},
+ "valid": true
+ },
+ {
+ "description": "an additional valid property is valid",
+ "data": {"foo" : 1, "bar" : 2, "quux" : true},
+ "valid": true
+ },
+ {
+ "description": "an additional invalid property is invalid",
+ "data": {"foo" : 1, "bar" : 2, "quux" : 12},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description":
+ "additionalProperties can exist by itself",
+ "schema": {
+ "additionalProperties": {"type": "boolean"}
+ },
+ "tests": [
+ {
+ "description": "an additional valid property is valid",
+ "data": {"foo" : true},
+ "valid": true
+ },
+ {
+ "description": "an additional invalid property is invalid",
+ "data": {"foo" : 1},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "additionalProperties are allowed by default",
+ "schema": {"properties": {"foo": {}, "bar": {}}},
+ "tests": [
+ {
+ "description": "additional properties are allowed",
+ "data": {"foo": 1, "bar": 2, "quux": true},
+ "valid": true
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/allOf.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/allOf.json
new file mode 100644
index 00000000000..bbb5f89e4bc
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/allOf.json
@@ -0,0 +1,112 @@
+[
+ {
+ "description": "allOf",
+ "schema": {
+ "allOf": [
+ {
+ "properties": {
+ "bar": {"type": "integer"}
+ },
+ "required": ["bar"]
+ },
+ {
+ "properties": {
+ "foo": {"type": "string"}
+ },
+ "required": ["foo"]
+ }
+ ]
+ },
+ "tests": [
+ {
+ "description": "allOf",
+ "data": {"foo": "baz", "bar": 2},
+ "valid": true
+ },
+ {
+ "description": "mismatch second",
+ "data": {"foo": "baz"},
+ "valid": false
+ },
+ {
+ "description": "mismatch first",
+ "data": {"bar": 2},
+ "valid": false
+ },
+ {
+ "description": "wrong type",
+ "data": {"foo": "baz", "bar": "quux"},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "allOf with base schema",
+ "schema": {
+ "properties": {"bar": {"type": "integer"}},
+ "required": ["bar"],
+ "allOf" : [
+ {
+ "properties": {
+ "foo": {"type": "string"}
+ },
+ "required": ["foo"]
+ },
+ {
+ "properties": {
+ "baz": {"type": "null"}
+ },
+ "required": ["baz"]
+ }
+ ]
+ },
+ "tests": [
+ {
+ "description": "valid",
+ "data": {"foo": "quux", "bar": 2, "baz": null},
+ "valid": true
+ },
+ {
+ "description": "mismatch base schema",
+ "data": {"foo": "quux", "baz": null},
+ "valid": false
+ },
+ {
+ "description": "mismatch first allOf",
+ "data": {"bar": 2, "baz": null},
+ "valid": false
+ },
+ {
+ "description": "mismatch second allOf",
+ "data": {"foo": "quux", "bar": 2},
+ "valid": false
+ },
+ {
+ "description": "mismatch both",
+ "data": {"bar": 2},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "allOf simple types",
+ "schema": {
+ "allOf": [
+ {"maximum": 30},
+ {"minimum": 20}
+ ]
+ },
+ "tests": [
+ {
+ "description": "valid",
+ "data": 25,
+ "valid": true
+ },
+ {
+ "description": "mismatch one",
+ "data": 35,
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/anyOf.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/anyOf.json
new file mode 100644
index 00000000000..a58714afd89
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/anyOf.json
@@ -0,0 +1,68 @@
+[
+ {
+ "description": "anyOf",
+ "schema": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "minimum": 2
+ }
+ ]
+ },
+ "tests": [
+ {
+ "description": "first anyOf valid",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "second anyOf valid",
+ "data": 2.5,
+ "valid": true
+ },
+ {
+ "description": "both anyOf valid",
+ "data": 3,
+ "valid": true
+ },
+ {
+ "description": "neither anyOf valid",
+ "data": 1.5,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "anyOf with base schema",
+ "schema": {
+ "type": "string",
+ "anyOf" : [
+ {
+ "maxLength": 2
+ },
+ {
+ "minLength": 4
+ }
+ ]
+ },
+ "tests": [
+ {
+ "description": "mismatch base schema",
+ "data": 3,
+ "valid": false
+ },
+ {
+ "description": "one anyOf valid",
+ "data": "foobar",
+ "valid": true
+ },
+ {
+ "description": "both anyOf invalid",
+ "data": "foo",
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/default.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/default.json
new file mode 100644
index 00000000000..17629779fbe
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/default.json
@@ -0,0 +1,49 @@
+[
+ {
+ "description": "invalid type for default",
+ "schema": {
+ "properties": {
+ "foo": {
+ "type": "integer",
+ "default": []
+ }
+ }
+ },
+ "tests": [
+ {
+ "description": "valid when property is specified",
+ "data": {"foo": 13},
+ "valid": true
+ },
+ {
+ "description": "still valid when the invalid default is used",
+ "data": {},
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "invalid string value for default",
+ "schema": {
+ "properties": {
+ "bar": {
+ "type": "string",
+ "minLength": 4,
+ "default": "bad"
+ }
+ }
+ },
+ "tests": [
+ {
+ "description": "valid when property is specified",
+ "data": {"bar": "good"},
+ "valid": true
+ },
+ {
+ "description": "still valid when the invalid default is used",
+ "data": {},
+ "valid": true
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/definitions.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/definitions.json
new file mode 100644
index 00000000000..cf935a32153
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/definitions.json
@@ -0,0 +1,32 @@
+[
+ {
+ "description": "valid definition",
+ "schema": {"$ref": "http://json-schema.org/draft-04/schema#"},
+ "tests": [
+ {
+ "description": "valid definition schema",
+ "data": {
+ "definitions": {
+ "foo": {"type": "integer"}
+ }
+ },
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "invalid definition",
+ "schema": {"$ref": "http://json-schema.org/draft-04/schema#"},
+ "tests": [
+ {
+ "description": "invalid definition schema",
+ "data": {
+ "definitions": {
+ "foo": {"type": 1}
+ }
+ },
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/dependencies.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/dependencies.json
new file mode 100644
index 00000000000..7b9b16a7e12
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/dependencies.json
@@ -0,0 +1,113 @@
+[
+ {
+ "description": "dependencies",
+ "schema": {
+ "dependencies": {"bar": ["foo"]}
+ },
+ "tests": [
+ {
+ "description": "neither",
+ "data": {},
+ "valid": true
+ },
+ {
+ "description": "nondependant",
+ "data": {"foo": 1},
+ "valid": true
+ },
+ {
+ "description": "with dependency",
+ "data": {"foo": 1, "bar": 2},
+ "valid": true
+ },
+ {
+ "description": "missing dependency",
+ "data": {"bar": 2},
+ "valid": false
+ },
+ {
+ "description": "ignores non-objects",
+ "data": "foo",
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "multiple dependencies",
+ "schema": {
+ "dependencies": {"quux": ["foo", "bar"]}
+ },
+ "tests": [
+ {
+ "description": "neither",
+ "data": {},
+ "valid": true
+ },
+ {
+ "description": "nondependants",
+ "data": {"foo": 1, "bar": 2},
+ "valid": true
+ },
+ {
+ "description": "with dependencies",
+ "data": {"foo": 1, "bar": 2, "quux": 3},
+ "valid": true
+ },
+ {
+ "description": "missing dependency",
+ "data": {"foo": 1, "quux": 2},
+ "valid": false
+ },
+ {
+ "description": "missing other dependency",
+ "data": {"bar": 1, "quux": 2},
+ "valid": false
+ },
+ {
+ "description": "missing both dependencies",
+ "data": {"quux": 1},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "multiple dependencies subschema",
+ "schema": {
+ "dependencies": {
+ "bar": {
+ "properties": {
+ "foo": {"type": "integer"},
+ "bar": {"type": "integer"}
+ }
+ }
+ }
+ },
+ "tests": [
+ {
+ "description": "valid",
+ "data": {"foo": 1, "bar": 2},
+ "valid": true
+ },
+ {
+ "description": "no dependency",
+ "data": {"foo": "quux"},
+ "valid": true
+ },
+ {
+ "description": "wrong type",
+ "data": {"foo": "quux", "bar": 2},
+ "valid": false
+ },
+ {
+ "description": "wrong type other",
+ "data": {"foo": 2, "bar": "quux"},
+ "valid": false
+ },
+ {
+ "description": "wrong type both",
+ "data": {"foo": "quux", "bar": "quux"},
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/enum.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/enum.json
new file mode 100644
index 00000000000..f124436a7d9
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/enum.json
@@ -0,0 +1,72 @@
+[
+ {
+ "description": "simple enum validation",
+ "schema": {"enum": [1, 2, 3]},
+ "tests": [
+ {
+ "description": "one of the enum is valid",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "something else is invalid",
+ "data": 4,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "heterogeneous enum validation",
+ "schema": {"enum": [6, "foo", [], true, {"foo": 12}]},
+ "tests": [
+ {
+ "description": "one of the enum is valid",
+ "data": [],
+ "valid": true
+ },
+ {
+ "description": "something else is invalid",
+ "data": null,
+ "valid": false
+ },
+ {
+ "description": "objects are deep compared",
+ "data": {"foo": false},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "enums in properties",
+ "schema": {
+ "type":"object",
+ "properties": {
+ "foo": {"enum":["foo"]},
+ "bar": {"enum":["bar"]}
+ },
+ "required": ["bar"]
+ },
+ "tests": [
+ {
+ "description": "both properties are valid",
+ "data": {"foo":"foo", "bar":"bar"},
+ "valid": true
+ },
+ {
+ "description": "missing optional property is valid",
+ "data": {"bar":"bar"},
+ "valid": true
+ },
+ {
+ "description": "missing required property is invalid",
+ "data": {"foo":"foo"},
+ "valid": false
+ },
+ {
+ "description": "missing all properties is invalid",
+ "data": {},
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/items.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/items.json
new file mode 100644
index 00000000000..f5e18a13848
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/items.json
@@ -0,0 +1,46 @@
+[
+ {
+ "description": "a schema given for items",
+ "schema": {
+ "items": {"type": "integer"}
+ },
+ "tests": [
+ {
+ "description": "valid items",
+ "data": [ 1, 2, 3 ],
+ "valid": true
+ },
+ {
+ "description": "wrong type of items",
+ "data": [1, "x"],
+ "valid": false
+ },
+ {
+ "description": "ignores non-arrays",
+ "data": {"foo" : "bar"},
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "an array of schemas for items",
+ "schema": {
+ "items": [
+ {"type": "integer"},
+ {"type": "string"}
+ ]
+ },
+ "tests": [
+ {
+ "description": "correct types",
+ "data": [ 1, "foo" ],
+ "valid": true
+ },
+ {
+ "description": "wrong types",
+ "data": [ "foo", 1 ],
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/maxItems.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/maxItems.json
new file mode 100644
index 00000000000..3b53a6b371a
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/maxItems.json
@@ -0,0 +1,28 @@
+[
+ {
+ "description": "maxItems validation",
+ "schema": {"maxItems": 2},
+ "tests": [
+ {
+ "description": "shorter is valid",
+ "data": [1],
+ "valid": true
+ },
+ {
+ "description": "exact length is valid",
+ "data": [1, 2],
+ "valid": true
+ },
+ {
+ "description": "too long is invalid",
+ "data": [1, 2, 3],
+ "valid": false
+ },
+ {
+ "description": "ignores non-arrays",
+ "data": "foobar",
+ "valid": true
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/maxLength.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/maxLength.json
new file mode 100644
index 00000000000..811d35b253c
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/maxLength.json
@@ -0,0 +1,33 @@
+[
+ {
+ "description": "maxLength validation",
+ "schema": {"maxLength": 2},
+ "tests": [
+ {
+ "description": "shorter is valid",
+ "data": "f",
+ "valid": true
+ },
+ {
+ "description": "exact length is valid",
+ "data": "fo",
+ "valid": true
+ },
+ {
+ "description": "too long is invalid",
+ "data": "foo",
+ "valid": false
+ },
+ {
+ "description": "ignores non-strings",
+ "data": 100,
+ "valid": true
+ },
+ {
+ "description": "two supplementary Unicode code points is long enough",
+ "data": "\uD83D\uDCA9\uD83D\uDCA9",
+ "valid": true
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/maxProperties.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/maxProperties.json
new file mode 100644
index 00000000000..d282446ad69
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/maxProperties.json
@@ -0,0 +1,28 @@
+[
+ {
+ "description": "maxProperties validation",
+ "schema": {"maxProperties": 2},
+ "tests": [
+ {
+ "description": "shorter is valid",
+ "data": {"foo": 1},
+ "valid": true
+ },
+ {
+ "description": "exact length is valid",
+ "data": {"foo": 1, "bar": 2},
+ "valid": true
+ },
+ {
+ "description": "too long is invalid",
+ "data": {"foo": 1, "bar": 2, "baz": 3},
+ "valid": false
+ },
+ {
+ "description": "ignores non-objects",
+ "data": "foobar",
+ "valid": true
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/maximum.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/maximum.json
new file mode 100644
index 00000000000..86c7b89c9a9
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/maximum.json
@@ -0,0 +1,42 @@
+[
+ {
+ "description": "maximum validation",
+ "schema": {"maximum": 3.0},
+ "tests": [
+ {
+ "description": "below the maximum is valid",
+ "data": 2.6,
+ "valid": true
+ },
+ {
+ "description": "above the maximum is invalid",
+ "data": 3.5,
+ "valid": false
+ },
+ {
+ "description": "ignores non-numbers",
+ "data": "x",
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "exclusiveMaximum validation",
+ "schema": {
+ "maximum": 3.0,
+ "exclusiveMaximum": true
+ },
+ "tests": [
+ {
+ "description": "below the maximum is still valid",
+ "data": 2.2,
+ "valid": true
+ },
+ {
+ "description": "boundary point is invalid",
+ "data": 3.0,
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/minItems.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/minItems.json
new file mode 100644
index 00000000000..ed5118815ee
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/minItems.json
@@ -0,0 +1,28 @@
+[
+ {
+ "description": "minItems validation",
+ "schema": {"minItems": 1},
+ "tests": [
+ {
+ "description": "longer is valid",
+ "data": [1, 2],
+ "valid": true
+ },
+ {
+ "description": "exact length is valid",
+ "data": [1],
+ "valid": true
+ },
+ {
+ "description": "too short is invalid",
+ "data": [],
+ "valid": false
+ },
+ {
+ "description": "ignores non-arrays",
+ "data": "",
+ "valid": true
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/minLength.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/minLength.json
new file mode 100644
index 00000000000..3f09158deef
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/minLength.json
@@ -0,0 +1,33 @@
+[
+ {
+ "description": "minLength validation",
+ "schema": {"minLength": 2},
+ "tests": [
+ {
+ "description": "longer is valid",
+ "data": "foo",
+ "valid": true
+ },
+ {
+ "description": "exact length is valid",
+ "data": "fo",
+ "valid": true
+ },
+ {
+ "description": "too short is invalid",
+ "data": "f",
+ "valid": false
+ },
+ {
+ "description": "ignores non-strings",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "one supplementary Unicode code point is not long enough",
+ "data": "\uD83D\uDCA9",
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/minProperties.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/minProperties.json
new file mode 100644
index 00000000000..a72c7d293e6
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/minProperties.json
@@ -0,0 +1,28 @@
+[
+ {
+ "description": "minProperties validation",
+ "schema": {"minProperties": 1},
+ "tests": [
+ {
+ "description": "longer is valid",
+ "data": {"foo": 1, "bar": 2},
+ "valid": true
+ },
+ {
+ "description": "exact length is valid",
+ "data": {"foo": 1},
+ "valid": true
+ },
+ {
+ "description": "too short is invalid",
+ "data": {},
+ "valid": false
+ },
+ {
+ "description": "ignores non-objects",
+ "data": "",
+ "valid": true
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/minimum.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/minimum.json
new file mode 100644
index 00000000000..d5bf000bcc6
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/minimum.json
@@ -0,0 +1,42 @@
+[
+ {
+ "description": "minimum validation",
+ "schema": {"minimum": 1.1},
+ "tests": [
+ {
+ "description": "above the minimum is valid",
+ "data": 2.6,
+ "valid": true
+ },
+ {
+ "description": "below the minimum is invalid",
+ "data": 0.6,
+ "valid": false
+ },
+ {
+ "description": "ignores non-numbers",
+ "data": "x",
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "exclusiveMinimum validation",
+ "schema": {
+ "minimum": 1.1,
+ "exclusiveMinimum": true
+ },
+ "tests": [
+ {
+ "description": "above the minimum is still valid",
+ "data": 1.2,
+ "valid": true
+ },
+ {
+ "description": "boundary point is invalid",
+ "data": 1.1,
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/multipleOf.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/multipleOf.json
new file mode 100644
index 00000000000..ca3b7618053
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/multipleOf.json
@@ -0,0 +1,60 @@
+[
+ {
+ "description": "by int",
+ "schema": {"multipleOf": 2},
+ "tests": [
+ {
+ "description": "int by int",
+ "data": 10,
+ "valid": true
+ },
+ {
+ "description": "int by int fail",
+ "data": 7,
+ "valid": false
+ },
+ {
+ "description": "ignores non-numbers",
+ "data": "foo",
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "by number",
+ "schema": {"multipleOf": 1.5},
+ "tests": [
+ {
+ "description": "zero is multiple of anything",
+ "data": 0,
+ "valid": true
+ },
+ {
+ "description": "4.5 is multiple of 1.5",
+ "data": 4.5,
+ "valid": true
+ },
+ {
+ "description": "35 is not multiple of 1.5",
+ "data": 35,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "by small number",
+ "schema": {"multipleOf": 0.0001},
+ "tests": [
+ {
+ "description": "0.0075 is multiple of 0.0001",
+ "data": 0.0075,
+ "valid": true
+ },
+ {
+ "description": "0.00751 is not multiple of 0.0001",
+ "data": 0.00751,
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/not.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/not.json
new file mode 100644
index 00000000000..cbb7f46bf8b
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/not.json
@@ -0,0 +1,96 @@
+[
+ {
+ "description": "not",
+ "schema": {
+ "not": {"type": "integer"}
+ },
+ "tests": [
+ {
+ "description": "allowed",
+ "data": "foo",
+ "valid": true
+ },
+ {
+ "description": "disallowed",
+ "data": 1,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "not multiple types",
+ "schema": {
+ "not": {"type": ["integer", "boolean"]}
+ },
+ "tests": [
+ {
+ "description": "valid",
+ "data": "foo",
+ "valid": true
+ },
+ {
+ "description": "mismatch",
+ "data": 1,
+ "valid": false
+ },
+ {
+ "description": "other mismatch",
+ "data": true,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "not more complex schema",
+ "schema": {
+ "not": {
+ "type": "object",
+ "properties": {
+ "foo": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "tests": [
+ {
+ "description": "match",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "other match",
+ "data": {"foo": 1},
+ "valid": true
+ },
+ {
+ "description": "mismatch",
+ "data": {"foo": "bar"},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "forbidden property",
+ "schema": {
+ "properties": {
+ "foo": {
+ "not": {}
+ }
+ }
+ },
+ "tests": [
+ {
+ "description": "property present",
+ "data": {"foo": 1, "bar": 2},
+ "valid": false
+ },
+ {
+ "description": "property absent",
+ "data": {"bar": 1, "baz": 2},
+ "valid": true
+ }
+ ]
+ }
+
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/oneOf.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/oneOf.json
new file mode 100644
index 00000000000..1eaa4e47949
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/oneOf.json
@@ -0,0 +1,68 @@
+[
+ {
+ "description": "oneOf",
+ "schema": {
+ "oneOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "minimum": 2
+ }
+ ]
+ },
+ "tests": [
+ {
+ "description": "first oneOf valid",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "second oneOf valid",
+ "data": 2.5,
+ "valid": true
+ },
+ {
+ "description": "both oneOf valid",
+ "data": 3,
+ "valid": false
+ },
+ {
+ "description": "neither oneOf valid",
+ "data": 1.5,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "oneOf with base schema",
+ "schema": {
+ "type": "string",
+ "oneOf" : [
+ {
+ "minLength": 2
+ },
+ {
+ "maxLength": 4
+ }
+ ]
+ },
+ "tests": [
+ {
+ "description": "mismatch base schema",
+ "data": 3,
+ "valid": false
+ },
+ {
+ "description": "one oneOf valid",
+ "data": "foobar",
+ "valid": true
+ },
+ {
+ "description": "both oneOf valid",
+ "data": "foo",
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/optional/bignum.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/optional/bignum.json
new file mode 100644
index 00000000000..ccc7c17fe8d
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/optional/bignum.json
@@ -0,0 +1,107 @@
+[
+ {
+ "description": "integer",
+ "schema": {"type": "integer"},
+ "tests": [
+ {
+ "description": "a bignum is an integer",
+ "data": 12345678910111213141516171819202122232425262728293031,
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "number",
+ "schema": {"type": "number"},
+ "tests": [
+ {
+ "description": "a bignum is a number",
+ "data": 98249283749234923498293171823948729348710298301928331,
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "integer",
+ "schema": {"type": "integer"},
+ "tests": [
+ {
+ "description": "a negative bignum is an integer",
+ "data": -12345678910111213141516171819202122232425262728293031,
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "number",
+ "schema": {"type": "number"},
+ "tests": [
+ {
+ "description": "a negative bignum is a number",
+ "data": -98249283749234923498293171823948729348710298301928331,
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "string",
+ "schema": {"type": "string"},
+ "tests": [
+ {
+ "description": "a bignum is not a string",
+ "data": 98249283749234923498293171823948729348710298301928331,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "integer comparison",
+ "schema": {"maximum": 18446744073709551615},
+ "tests": [
+ {
+ "description": "comparison works for high numbers",
+ "data": 18446744073709551600,
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "float comparison with high precision",
+ "schema": {
+ "maximum": 972783798187987123879878123.18878137,
+ "exclusiveMaximum": true
+ },
+ "tests": [
+ {
+ "description": "comparison works for high numbers",
+ "data": 972783798187987123879878123.188781371,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "integer comparison",
+ "schema": {"minimum": -18446744073709551615},
+ "tests": [
+ {
+ "description": "comparison works for very negative numbers",
+ "data": -18446744073709551600,
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "float comparison with high precision on negative numbers",
+ "schema": {
+ "minimum": -972783798187987123879878123.18878137,
+ "exclusiveMinimum": true
+ },
+ "tests": [
+ {
+ "description": "comparison works for very negative numbers",
+ "data": -972783798187987123879878123.188781371,
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/optional/format.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/optional/format.json
new file mode 100644
index 00000000000..aacfd119843
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/optional/format.json
@@ -0,0 +1,148 @@
+[
+ {
+ "description": "validation of date-time strings",
+ "schema": {"format": "date-time"},
+ "tests": [
+ {
+ "description": "a valid date-time string",
+ "data": "1963-06-19T08:30:06.283185Z",
+ "valid": true
+ },
+ {
+ "description": "an invalid date-time string",
+ "data": "06/19/1963 08:30:06 PST",
+ "valid": false
+ },
+ {
+ "description": "only RFC3339 not all of ISO 8601 are valid",
+ "data": "2013-350T01:01:01",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "validation of URIs",
+ "schema": {"format": "uri"},
+ "tests": [
+ {
+ "description": "a valid URI",
+ "data": "http://foo.bar/?baz=qux#quux",
+ "valid": true
+ },
+ {
+ "description": "a valid protocol-relative URI",
+ "data": "//foo.bar/?baz=qux#quux",
+ "valid": true
+ },
+ {
+ "description": "an invalid URI",
+ "data": "\\\\WINDOWS\\fileshare",
+ "valid": false
+ },
+ {
+ "description": "an invalid URI though valid URI reference",
+ "data": "abc",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "validation of e-mail addresses",
+ "schema": {"format": "email"},
+ "tests": [
+ {
+ "description": "a valid e-mail address",
+ "data": "joe.bloggs@example.com",
+ "valid": true
+ },
+ {
+ "description": "an invalid e-mail address",
+ "data": "2962",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "validation of IP addresses",
+ "schema": {"format": "ipv4"},
+ "tests": [
+ {
+ "description": "a valid IP address",
+ "data": "192.168.0.1",
+ "valid": true
+ },
+ {
+ "description": "an IP address with too many components",
+ "data": "127.0.0.0.1",
+ "valid": false
+ },
+ {
+ "description": "an IP address with out-of-range values",
+ "data": "256.256.256.256",
+ "valid": false
+ },
+ {
+ "description": "an IP address without 4 components",
+ "data": "127.0",
+ "valid": false
+ },
+ {
+ "description": "an IP address as an integer",
+ "data": "0x7f000001",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "validation of IPv6 addresses",
+ "schema": {"format": "ipv6"},
+ "tests": [
+ {
+ "description": "a valid IPv6 address",
+ "data": "::1",
+ "valid": true
+ },
+ {
+ "description": "an IPv6 address with out-of-range values",
+ "data": "12345::",
+ "valid": false
+ },
+ {
+ "description": "an IPv6 address with too many components",
+ "data": "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1",
+ "valid": false
+ },
+ {
+ "description": "an IPv6 address containing illegal characters",
+ "data": "::laptop",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "validation of host names",
+ "schema": {"format": "hostname"},
+ "tests": [
+ {
+ "description": "a valid host name",
+ "data": "www.example.com",
+ "valid": true
+ },
+ {
+ "description": "a host name starting with an illegal character",
+ "data": "-a-host-name-that-starts-with--",
+ "valid": false
+ },
+ {
+ "description": "a host name containing illegal characters",
+ "data": "not_a_valid_host_name",
+ "valid": false
+ },
+ {
+ "description": "a host name with a component too long",
+ "data": "a-vvvvvvvvvvvvvvvveeeeeeeeeeeeeeeerrrrrrrrrrrrrrrryyyyyyyyyyyyyyyy-long-host-name-component",
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/optional/zeroTerminatedFloats.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/optional/zeroTerminatedFloats.json
new file mode 100644
index 00000000000..9b50ea27769
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/optional/zeroTerminatedFloats.json
@@ -0,0 +1,15 @@
+[
+ {
+ "description": "some languages do not distinguish between different types of numeric value",
+ "schema": {
+ "type": "integer"
+ },
+ "tests": [
+ {
+ "description": "a float is not an integer even without fractional part",
+ "data": 1.0,
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/pattern.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/pattern.json
new file mode 100644
index 00000000000..25e72997314
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/pattern.json
@@ -0,0 +1,34 @@
+[
+ {
+ "description": "pattern validation",
+ "schema": {"pattern": "^a*$"},
+ "tests": [
+ {
+ "description": "a matching pattern is valid",
+ "data": "aaa",
+ "valid": true
+ },
+ {
+ "description": "a non-matching pattern is invalid",
+ "data": "abc",
+ "valid": false
+ },
+ {
+ "description": "ignores non-strings",
+ "data": true,
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "pattern is not anchored",
+ "schema": {"pattern": "a+"},
+ "tests": [
+ {
+ "description": "matches a substring",
+ "data": "xxaayy",
+ "valid": true
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/patternProperties.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/patternProperties.json
new file mode 100644
index 00000000000..18586e5daba
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/patternProperties.json
@@ -0,0 +1,110 @@
+[
+ {
+ "description":
+ "patternProperties validates properties matching a regex",
+ "schema": {
+ "patternProperties": {
+ "f.*o": {"type": "integer"}
+ }
+ },
+ "tests": [
+ {
+ "description": "a single valid match is valid",
+ "data": {"foo": 1},
+ "valid": true
+ },
+ {
+ "description": "multiple valid matches is valid",
+ "data": {"foo": 1, "foooooo" : 2},
+ "valid": true
+ },
+ {
+ "description": "a single invalid match is invalid",
+ "data": {"foo": "bar", "fooooo": 2},
+ "valid": false
+ },
+ {
+ "description": "multiple invalid matches is invalid",
+ "data": {"foo": "bar", "foooooo" : "baz"},
+ "valid": false
+ },
+ {
+ "description": "ignores non-objects",
+ "data": 12,
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "multiple simultaneous patternProperties are validated",
+ "schema": {
+ "patternProperties": {
+ "a*": {"type": "integer"},
+ "aaa*": {"maximum": 20}
+ }
+ },
+ "tests": [
+ {
+ "description": "a single valid match is valid",
+ "data": {"a": 21},
+ "valid": true
+ },
+ {
+ "description": "a simultaneous match is valid",
+ "data": {"aaaa": 18},
+ "valid": true
+ },
+ {
+ "description": "multiple matches is valid",
+ "data": {"a": 21, "aaaa": 18},
+ "valid": true
+ },
+ {
+ "description": "an invalid due to one is invalid",
+ "data": {"a": "bar"},
+ "valid": false
+ },
+ {
+ "description": "an invalid due to the other is invalid",
+ "data": {"aaaa": 31},
+ "valid": false
+ },
+ {
+ "description": "an invalid due to both is invalid",
+ "data": {"aaa": "foo", "aaaa": 31},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "regexes are not anchored by default and are case sensitive",
+ "schema": {
+ "patternProperties": {
+ "[0-9]{2,}": { "type": "boolean" },
+ "X_": { "type": "string" }
+ }
+ },
+ "tests": [
+ {
+ "description": "non recognized members are ignored",
+ "data": { "answer 1": "42" },
+ "valid": true
+ },
+ {
+ "description": "recognized members are accounted for",
+ "data": { "a31b": null },
+ "valid": false
+ },
+ {
+ "description": "regexes are case sensitive",
+ "data": { "a_x_3": 3 },
+ "valid": true
+ },
+ {
+ "description": "regexes are case sensitive, 2",
+ "data": { "a_X_3": 3 },
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/properties.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/properties.json
new file mode 100644
index 00000000000..cd1644dcd91
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/properties.json
@@ -0,0 +1,92 @@
+[
+ {
+ "description": "object properties validation",
+ "schema": {
+ "properties": {
+ "foo": {"type": "integer"},
+ "bar": {"type": "string"}
+ }
+ },
+ "tests": [
+ {
+ "description": "both properties present and valid is valid",
+ "data": {"foo": 1, "bar": "baz"},
+ "valid": true
+ },
+ {
+ "description": "one property invalid is invalid",
+ "data": {"foo": 1, "bar": {}},
+ "valid": false
+ },
+ {
+ "description": "both properties invalid is invalid",
+ "data": {"foo": [], "bar": {}},
+ "valid": false
+ },
+ {
+ "description": "doesn't invalidate other properties",
+ "data": {"quux": []},
+ "valid": true
+ },
+ {
+ "description": "ignores non-objects",
+ "data": [],
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description":
+ "properties, patternProperties, additionalProperties interaction",
+ "schema": {
+ "properties": {
+ "foo": {"type": "array", "maxItems": 3},
+ "bar": {"type": "array"}
+ },
+ "patternProperties": {"f.o": {"minItems": 2}},
+ "additionalProperties": {"type": "integer"}
+ },
+ "tests": [
+ {
+ "description": "property validates property",
+ "data": {"foo": [1, 2]},
+ "valid": true
+ },
+ {
+ "description": "property invalidates property",
+ "data": {"foo": [1, 2, 3, 4]},
+ "valid": false
+ },
+ {
+ "description": "patternProperty invalidates property",
+ "data": {"foo": []},
+ "valid": false
+ },
+ {
+ "description": "patternProperty validates nonproperty",
+ "data": {"fxo": [1, 2]},
+ "valid": true
+ },
+ {
+ "description": "patternProperty invalidates nonproperty",
+ "data": {"fxo": []},
+ "valid": false
+ },
+ {
+ "description": "additionalProperty ignores property",
+ "data": {"bar": []},
+ "valid": true
+ },
+ {
+ "description": "additionalProperty validates others",
+ "data": {"quux": 3},
+ "valid": true
+ },
+ {
+ "description": "additionalProperty invalidates others",
+ "data": {"quux": "foo"},
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/ref.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/ref.json
new file mode 100644
index 00000000000..7e805522492
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/ref.json
@@ -0,0 +1,159 @@
+[
+ {
+ "description": "root pointer ref",
+ "schema": {
+ "properties": {
+ "foo": {"$ref": "#"}
+ },
+ "additionalProperties": false
+ },
+ "tests": [
+ {
+ "description": "match",
+ "data": {"foo": false},
+ "valid": true
+ },
+ {
+ "description": "recursive match",
+ "data": {"foo": {"foo": false}},
+ "valid": true
+ },
+ {
+ "description": "mismatch",
+ "data": {"bar": false},
+ "valid": false
+ },
+ {
+ "description": "recursive mismatch",
+ "data": {"foo": {"bar": false}},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "relative pointer ref to object",
+ "schema": {
+ "properties": {
+ "foo": {"type": "integer"},
+ "bar": {"$ref": "#/properties/foo"}
+ }
+ },
+ "tests": [
+ {
+ "description": "match",
+ "data": {"bar": 3},
+ "valid": true
+ },
+ {
+ "description": "mismatch",
+ "data": {"bar": true},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "relative pointer ref to array",
+ "schema": {
+ "items": [
+ {"type": "integer"},
+ {"$ref": "#/items/0"}
+ ]
+ },
+ "tests": [
+ {
+ "description": "match array",
+ "data": [1, 2],
+ "valid": true
+ },
+ {
+ "description": "mismatch array",
+ "data": [1, "foo"],
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "escaped pointer ref",
+ "schema": {
+ "tilda~field": {"type": "integer"},
+ "slash/field": {"type": "integer"},
+ "percent%field": {"type": "integer"},
+ "properties": {
+ "tilda": {"$ref": "#/tilda~0field"},
+ "slash": {"$ref": "#/slash~1field"},
+ "percent": {"$ref": "#/percent%25field"}
+ }
+ },
+ "tests": [
+ {
+ "description": "slash invalid",
+ "data": {"slash": "aoeu"},
+ "valid": false
+ },
+ {
+ "description": "tilda invalid",
+ "data": {"tilda": "aoeu"},
+ "valid": false
+ },
+ {
+ "description": "percent invalid",
+ "data": {"percent": "aoeu"},
+ "valid": false
+ },
+ {
+ "description": "slash valid",
+ "data": {"slash": 123},
+ "valid": true
+ },
+ {
+ "description": "tilda valid",
+ "data": {"tilda": 123},
+ "valid": true
+ },
+ {
+ "description": "percent valid",
+ "data": {"percent": 123},
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "nested refs",
+ "schema": {
+ "definitions": {
+ "a": {"type": "integer"},
+ "b": {"$ref": "#/definitions/a"},
+ "c": {"$ref": "#/definitions/b"}
+ },
+ "$ref": "#/definitions/c"
+ },
+ "tests": [
+ {
+ "description": "nested ref valid",
+ "data": 5,
+ "valid": true
+ },
+ {
+ "description": "nested ref invalid",
+ "data": "a",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "remote ref, containing refs itself",
+ "schema": {"$ref": "http://json-schema.org/draft-04/schema#"},
+ "tests": [
+ {
+ "description": "remote ref valid",
+ "data": {"minLength": 1},
+ "valid": true
+ },
+ {
+ "description": "remote ref invalid",
+ "data": {"minLength": -1},
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/refRemote.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/refRemote.json
new file mode 100644
index 00000000000..4ca804732c9
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/refRemote.json
@@ -0,0 +1,74 @@
+[
+ {
+ "description": "remote ref",
+ "schema": {"$ref": "http://localhost:1234/integer.json"},
+ "tests": [
+ {
+ "description": "remote ref valid",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "remote ref invalid",
+ "data": "a",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "fragment within remote ref",
+ "schema": {"$ref": "http://localhost:1234/subSchemas.json#/integer"},
+ "tests": [
+ {
+ "description": "remote fragment valid",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "remote fragment invalid",
+ "data": "a",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "ref within remote ref",
+ "schema": {
+ "$ref": "http://localhost:1234/subSchemas.json#/refToInteger"
+ },
+ "tests": [
+ {
+ "description": "ref within ref valid",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "ref within ref invalid",
+ "data": "a",
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "change resolution scope",
+ "schema": {
+ "id": "http://localhost:1234/",
+ "items": {
+ "id": "folder/",
+ "items": {"$ref": "folderInteger.json"}
+ }
+ },
+ "tests": [
+ {
+ "description": "changed scope ref valid",
+ "data": [[1]],
+ "valid": true
+ },
+ {
+ "description": "changed scope ref invalid",
+ "data": [["a"]],
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/required.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/required.json
new file mode 100644
index 00000000000..612f73f3472
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/required.json
@@ -0,0 +1,39 @@
+[
+ {
+ "description": "required validation",
+ "schema": {
+ "properties": {
+ "foo": {},
+ "bar": {}
+ },
+ "required": ["foo"]
+ },
+ "tests": [
+ {
+ "description": "present required property is valid",
+ "data": {"foo": 1},
+ "valid": true
+ },
+ {
+ "description": "non-present required property is invalid",
+ "data": {"bar": 1},
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "required default validation",
+ "schema": {
+ "properties": {
+ "foo": {}
+ }
+ },
+ "tests": [
+ {
+ "description": "not required by default",
+ "data": {},
+ "valid": true
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/type.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/type.json
new file mode 100644
index 00000000000..db42a44d3fa
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/type.json
@@ -0,0 +1,330 @@
+[
+ {
+ "description": "integer type matches integers",
+ "schema": {"type": "integer"},
+ "tests": [
+ {
+ "description": "an integer is an integer",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "a float is not an integer",
+ "data": 1.1,
+ "valid": false
+ },
+ {
+ "description": "a string is not an integer",
+ "data": "foo",
+ "valid": false
+ },
+ {
+ "description": "an object is not an integer",
+ "data": {},
+ "valid": false
+ },
+ {
+ "description": "an array is not an integer",
+ "data": [],
+ "valid": false
+ },
+ {
+ "description": "a boolean is not an integer",
+ "data": true,
+ "valid": false
+ },
+ {
+ "description": "null is not an integer",
+ "data": null,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "number type matches numbers",
+ "schema": {"type": "number"},
+ "tests": [
+ {
+ "description": "an integer is a number",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "a float is a number",
+ "data": 1.1,
+ "valid": true
+ },
+ {
+ "description": "a string is not a number",
+ "data": "foo",
+ "valid": false
+ },
+ {
+ "description": "an object is not a number",
+ "data": {},
+ "valid": false
+ },
+ {
+ "description": "an array is not a number",
+ "data": [],
+ "valid": false
+ },
+ {
+ "description": "a boolean is not a number",
+ "data": true,
+ "valid": false
+ },
+ {
+ "description": "null is not a number",
+ "data": null,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "string type matches strings",
+ "schema": {"type": "string"},
+ "tests": [
+ {
+ "description": "1 is not a string",
+ "data": 1,
+ "valid": false
+ },
+ {
+ "description": "a float is not a string",
+ "data": 1.1,
+ "valid": false
+ },
+ {
+ "description": "a string is a string",
+ "data": "foo",
+ "valid": true
+ },
+ {
+ "description": "an object is not a string",
+ "data": {},
+ "valid": false
+ },
+ {
+ "description": "an array is not a string",
+ "data": [],
+ "valid": false
+ },
+ {
+ "description": "a boolean is not a string",
+ "data": true,
+ "valid": false
+ },
+ {
+ "description": "null is not a string",
+ "data": null,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "object type matches objects",
+ "schema": {"type": "object"},
+ "tests": [
+ {
+ "description": "an integer is not an object",
+ "data": 1,
+ "valid": false
+ },
+ {
+ "description": "a float is not an object",
+ "data": 1.1,
+ "valid": false
+ },
+ {
+ "description": "a string is not an object",
+ "data": "foo",
+ "valid": false
+ },
+ {
+ "description": "an object is an object",
+ "data": {},
+ "valid": true
+ },
+ {
+ "description": "an array is not an object",
+ "data": [],
+ "valid": false
+ },
+ {
+ "description": "a boolean is not an object",
+ "data": true,
+ "valid": false
+ },
+ {
+ "description": "null is not an object",
+ "data": null,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "array type matches arrays",
+ "schema": {"type": "array"},
+ "tests": [
+ {
+ "description": "an integer is not an array",
+ "data": 1,
+ "valid": false
+ },
+ {
+ "description": "a float is not an array",
+ "data": 1.1,
+ "valid": false
+ },
+ {
+ "description": "a string is not an array",
+ "data": "foo",
+ "valid": false
+ },
+ {
+ "description": "an object is not an array",
+ "data": {},
+ "valid": false
+ },
+ {
+ "description": "an array is an array",
+ "data": [],
+ "valid": true
+ },
+ {
+ "description": "a boolean is not an array",
+ "data": true,
+ "valid": false
+ },
+ {
+ "description": "null is not an array",
+ "data": null,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "boolean type matches booleans",
+ "schema": {"type": "boolean"},
+ "tests": [
+ {
+ "description": "an integer is not a boolean",
+ "data": 1,
+ "valid": false
+ },
+ {
+ "description": "a float is not a boolean",
+ "data": 1.1,
+ "valid": false
+ },
+ {
+ "description": "a string is not a boolean",
+ "data": "foo",
+ "valid": false
+ },
+ {
+ "description": "an object is not a boolean",
+ "data": {},
+ "valid": false
+ },
+ {
+ "description": "an array is not a boolean",
+ "data": [],
+ "valid": false
+ },
+ {
+ "description": "a boolean is a boolean",
+ "data": true,
+ "valid": true
+ },
+ {
+ "description": "null is not a boolean",
+ "data": null,
+ "valid": false
+ }
+ ]
+ },
+ {
+ "description": "null type matches only the null object",
+ "schema": {"type": "null"},
+ "tests": [
+ {
+ "description": "an integer is not null",
+ "data": 1,
+ "valid": false
+ },
+ {
+ "description": "a float is not null",
+ "data": 1.1,
+ "valid": false
+ },
+ {
+ "description": "a string is not null",
+ "data": "foo",
+ "valid": false
+ },
+ {
+ "description": "an object is not null",
+ "data": {},
+ "valid": false
+ },
+ {
+ "description": "an array is not null",
+ "data": [],
+ "valid": false
+ },
+ {
+ "description": "a boolean is not null",
+ "data": true,
+ "valid": false
+ },
+ {
+ "description": "null is null",
+ "data": null,
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "multiple types can be specified in an array",
+ "schema": {"type": ["integer", "string"]},
+ "tests": [
+ {
+ "description": "an integer is valid",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "a string is valid",
+ "data": "foo",
+ "valid": true
+ },
+ {
+ "description": "a float is invalid",
+ "data": 1.1,
+ "valid": false
+ },
+ {
+ "description": "an object is invalid",
+ "data": {},
+ "valid": false
+ },
+ {
+ "description": "an array is invalid",
+ "data": [],
+ "valid": false
+ },
+ {
+ "description": "a boolean is invalid",
+ "data": true,
+ "valid": false
+ },
+ {
+ "description": "null is invalid",
+ "data": null,
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft4/uniqueItems.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/uniqueItems.json
new file mode 100644
index 00000000000..c1f4ab99c9a
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft4/uniqueItems.json
@@ -0,0 +1,79 @@
+[
+ {
+ "description": "uniqueItems validation",
+ "schema": {"uniqueItems": true},
+ "tests": [
+ {
+ "description": "unique array of integers is valid",
+ "data": [1, 2],
+ "valid": true
+ },
+ {
+ "description": "non-unique array of integers is invalid",
+ "data": [1, 1],
+ "valid": false
+ },
+ {
+ "description": "numbers are unique if mathematically unequal",
+ "data": [1.0, 1.00, 1],
+ "valid": false
+ },
+ {
+ "description": "unique array of objects is valid",
+ "data": [{"foo": "bar"}, {"foo": "baz"}],
+ "valid": true
+ },
+ {
+ "description": "non-unique array of objects is invalid",
+ "data": [{"foo": "bar"}, {"foo": "bar"}],
+ "valid": false
+ },
+ {
+ "description": "unique array of nested objects is valid",
+ "data": [
+ {"foo": {"bar" : {"baz" : true}}},
+ {"foo": {"bar" : {"baz" : false}}}
+ ],
+ "valid": true
+ },
+ {
+ "description": "non-unique array of nested objects is invalid",
+ "data": [
+ {"foo": {"bar" : {"baz" : true}}},
+ {"foo": {"bar" : {"baz" : true}}}
+ ],
+ "valid": false
+ },
+ {
+ "description": "unique array of arrays is valid",
+ "data": [["foo"], ["bar"]],
+ "valid": true
+ },
+ {
+ "description": "non-unique array of arrays is invalid",
+ "data": [["foo"], ["foo"]],
+ "valid": false
+ },
+ {
+ "description": "1 and true are unique",
+ "data": [1, true],
+ "valid": true
+ },
+ {
+ "description": "0 and false are unique",
+ "data": [0, false],
+ "valid": true
+ },
+ {
+ "description": "unique heterogeneous types are valid",
+ "data": [{}, [1], true, null, 1],
+ "valid": true
+ },
+ {
+ "description": "non-unique heterogeneous types are invalid",
+ "data": [{}, [1], true, null, {}, 1],
+ "valid": false
+ }
+ ]
+ }
+]
diff --git a/3rdparty/rapidjson/bin/jsonschema/tox.ini b/3rdparty/rapidjson/bin/jsonschema/tox.ini
new file mode 100644
index 00000000000..5301222a840
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tox.ini
@@ -0,0 +1,8 @@
+[tox]
+minversion = 1.6
+envlist = py27
+skipsdist = True
+
+[testenv]
+deps = jsonschema
+commands = {envpython} bin/jsonschema_suite check
diff --git a/3rdparty/rapidjson/doc/diagram/makefile b/3rdparty/rapidjson/doc/diagram/makefile
new file mode 100644
index 00000000000..3483977655d
--- /dev/null
+++ b/3rdparty/rapidjson/doc/diagram/makefile
@@ -0,0 +1,8 @@
+%.pdf: %.dot
+ dot $< -Tpdf -o $@
+
+%.png: %.dot
+ dot $< -Tpng -o $@
+
+DOTFILES = $(basename $(wildcard *.dot))
+all: $(addsuffix .png, $(DOTFILES)) $(addsuffix .pdf, $(DOTFILES))
diff --git a/artwork/monochrome-matrix_.png b/artwork/monochrome-matrix_.png
deleted file mode 100644
index c1180363087..00000000000
--- a/artwork/monochrome-matrix_.png
+++ /dev/null
Binary files differ
diff --git a/artwork/monochrome-matrix__.png b/artwork/monochrome-matrix__.png
deleted file mode 100644
index edaf9702307..00000000000
--- a/artwork/monochrome-matrix__.png
+++ /dev/null
Binary files differ
diff --git a/artwork/puckman.zip b/artwork/puckman.zip
deleted file mode 100644
index 6ebba1d7800..00000000000
--- a/artwork/puckman.zip
+++ /dev/null
Binary files differ
diff --git a/scripts/target/mame/debug.lua b/scripts/target/mame/debug.lua
deleted file mode 100644
index 24bd2fb44c0..00000000000
--- a/scripts/target/mame/debug.lua
+++ /dev/null
@@ -1,3595 +0,0 @@
--- license:BSD-3-Clause
--- copyright-holders:MAMEdev Team
-
----------------------------------------------------------------------------
---
--- mame.lua
---
--- MAME target makefile
---
----------------------------------------------------------------------------
-
---------------------------------------------------
--- specify available CPU cores
----------------------------------------------------
-
-CPUS["Z80"] = true
-CPUS["Z180"] = true
-CPUS["I8085"] = true
-CPUS["I8089"] = true
-CPUS["M6502"] = true
-CPUS["H6280"] = true
-CPUS["I86"] = true
-CPUS["I386"] = true
-CPUS["NEC"] = true
-CPUS["V30MZ"] = true
-CPUS["V60"] = true
-CPUS["MCS48"] = true
-CPUS["MCS51"] = true
-CPUS["MCS96"] = true
-CPUS["M6800"] = true
-CPUS["M6805"] = true
-CPUS["HD6309"] = true
-CPUS["M6809"] = true
-CPUS["KONAMI"] = true
-CPUS["M680X0"] = true
-CPUS["T11"] = true
-CPUS["S2650"] = true
-CPUS["TMS340X0"] = true
-CPUS["TMS9900"] = true
-CPUS["TMS9995"] = true
-CPUS["TMS9900L"] = true
-CPUS["Z8000"] = true
-CPUS["Z8001"] = true
-CPUS["TMS32010"] = true
-CPUS["TMS32025"] = true
-CPUS["TMS32031"] = true
-CPUS["TMS32051"] = true
-CPUS["TMS32082"] = true
-CPUS["TMS57002"] = true
-CPUS["CCPU"] = true
-CPUS["ADSP21XX"] = true
-CPUS["ASAP"] = true
-CPUS["AM29000"] = true
-CPUS["UPD7810"] = true
-CPUS["ARM"] = true
-CPUS["ARM7"] = true
-CPUS["JAGUAR"] = true
-CPUS["CUBEQCPU"] = true
-CPUS["ESRIP"] = true
-CPUS["MIPS"] = true
-CPUS["PSX"] = true
-CPUS["SH2"] = true
-CPUS["SH4"] = true
-CPUS["DSP16A"] = true
-CPUS["DSP32C"] = true
-CPUS["PIC16C5X"] = true
-CPUS["PIC16C62X"] = true
-CPUS["G65816"] = true
-CPUS["SPC700"] = true
-CPUS["E1"] = true
-CPUS["I860"] = true
-CPUS["I960"] = true
-CPUS["H8"] = true
-CPUS["V810"] = true
-CPUS["M37710"] = true
-CPUS["POWERPC"] = true
-CPUS["SE3208"] = true
-CPUS["MC68HC11"] = true
-CPUS["ADSP21062"] = true
-CPUS["DSP56156"] = true
-CPUS["RSP"] = true
-CPUS["ALPHA8201"] = true
-CPUS["COP400"] = true
-CPUS["TLCS90"] = true
-CPUS["TLCS900"] = true
-CPUS["MB88XX"] = true
-CPUS["MB86233"] = true
-CPUS["MB86235"] = true
-CPUS["SSP1601"] = true
-CPUS["APEXC"] = true
-CPUS["CP1610"] = true
-CPUS["F8"] = true
-CPUS["LH5801"] = true
-CPUS["PDP1"] = true
-CPUS["SATURN"] = true
-CPUS["SC61860"] = true
-CPUS["LR35902"] = true
-CPUS["TMS7000"] = true
-CPUS["SM8500"] = true
-CPUS["MINX"] = true
-CPUS["SSEM"] = true
-CPUS["AVR8"] = true
---CPUS["TMS0980"] = true
-CPUS["I4004"] = true
-CPUS["SUPERFX"] = true
-CPUS["Z8"] = true
-CPUS["I8008"] = true
-CPUS["SCMP"] = true
-CPUS["MN10200"] = true
-CPUS["COSMAC"] = true
-CPUS["UNSP"] = true
-CPUS["HCD62121"] = true
-CPUS["PPS4"] = true
-CPUS["UPD7725"] = true
-CPUS["HD61700"] = true
-CPUS["LC8670"] = true
-CPUS["SCORE"] = true
-CPUS["ES5510"] = true
-CPUS["SCUDSP"] = true
-CPUS["IE15"] = true
-CPUS["8X300"] = true
-CPUS["ALTO2"] = true
---CPUS["W65816"] = true
-CPUS["ARC"] = true
-CPUS["ARCOMPACT"] = true
---CPUS["AMIS2000"] = true
---CPUS["UCOM4"] = true
-CPUS["HMCS40"] = true
---CPUS["E0C6200"] = true
---CPUS["MELPS4"] = true
---CPUS["HPHYBRID"] = true
---CPUS["SM510"] = true
-
---------------------------------------------------
--- specify available sound cores
---------------------------------------------------
-
-SOUNDS["SAMPLES"] = true
-SOUNDS["DAC"] = true
-SOUNDS["DMADAC"] = true
-SOUNDS["SPEAKER"] = true
-SOUNDS["BEEP"] = true
-SOUNDS["DISCRETE"] = true
-SOUNDS["AY8910"] = true
-SOUNDS["YM2151"] = true
-SOUNDS["YM2203"] = true
-SOUNDS["YM2413"] = true
-SOUNDS["YM2608"] = true
-SOUNDS["YM2610"] = true
-SOUNDS["YM2610B"] = true
-SOUNDS["YM2612"] = true
-SOUNDS["YM3438"] = true
-SOUNDS["YM3812"] = true
-SOUNDS["YM3526"] = true
-SOUNDS["Y8950"] = true
-SOUNDS["YMF262"] = true
-SOUNDS["YMF271"] = true
-SOUNDS["YMF278B"] = true
-SOUNDS["YMZ280B"] = true
-SOUNDS["SN76477"] = true
-SOUNDS["SN76496"] = true
-SOUNDS["POKEY"] = true
-SOUNDS["TIA"] = true
-SOUNDS["NES_APU"] = true
-SOUNDS["AMIGA"] = true
-SOUNDS["ASTROCADE"] = true
-SOUNDS["NAMCO"] = true
-SOUNDS["NAMCO_15XX"] = true
-SOUNDS["NAMCO_CUS30"] = true
-SOUNDS["NAMCO_52XX"] = true
-SOUNDS["NAMCO_63701X"] = true
-SOUNDS["T6W28"] = true
-SOUNDS["SNKWAVE"] = true
-SOUNDS["C140"] = true
-SOUNDS["C352"] = true
-SOUNDS["TMS36XX"] = true
-SOUNDS["TMS3615"] = true
-SOUNDS["TMS5110"] = true
-SOUNDS["TMS5220"] = true
-SOUNDS["VLM5030"] = true
-SOUNDS["ADPCM"] = true
-SOUNDS["MSM5205"] = true
-SOUNDS["MSM5232"] = true
-SOUNDS["OKIM6258"] = true
-SOUNDS["OKIM6295"] = true
-SOUNDS["OKIM6376"] = true
-SOUNDS["OKIM9810"] = true
---SOUNDS["UPD7752"] = true
-SOUNDS["UPD7759"] = true
-SOUNDS["HC55516"] = true
-SOUNDS["TC8830F"] = true
-SOUNDS["K005289"] = true
-SOUNDS["K007232"] = true
-SOUNDS["K051649"] = true
-SOUNDS["K053260"] = true
-SOUNDS["K054539"] = true
-SOUNDS["K056800"] = true
-SOUNDS["SEGAPCM"] = true
-SOUNDS["MULTIPCM"] = true
-SOUNDS["SCSP"] = true
-SOUNDS["AICA"] = true
-SOUNDS["RF5C68"] = true
-SOUNDS["RF5C400"] = true
-SOUNDS["CEM3394"] = true
-SOUNDS["QSOUND"] = true
-SOUNDS["QS1000"] = true
-SOUNDS["SAA1099"] = true
-SOUNDS["IREMGA20"] = true
-SOUNDS["ES5503"] = true
-SOUNDS["ES5505"] = true
-SOUNDS["ES5506"] = true
-SOUNDS["BSMT2000"] = true
-SOUNDS["GAELCO_CG1V"] = true
-SOUNDS["GAELCO_GAE1"] = true
-SOUNDS["C6280"] = true
-SOUNDS["SP0250"] = true
-SOUNDS["SPU"] = true
-SOUNDS["CDDA"] = true
-SOUNDS["ICS2115"] = true
-SOUNDS["I5000_SND"] = true
-SOUNDS["ST0016"] = true
-SOUNDS["NILE"] = true
-SOUNDS["X1_010"] = true
-SOUNDS["VRENDER0"] = true
-SOUNDS["VOTRAX"] = true
-SOUNDS["ES8712"] = true
-SOUNDS["CDP1869"] = true
-SOUNDS["S14001A"] = true
-SOUNDS["WAVE"] = true
-SOUNDS["SID6581"] = true
-SOUNDS["SID8580"] = true
-SOUNDS["SP0256"] = true
-SOUNDS["DIGITALKER"] = true
-SOUNDS["CDP1863"] = true
-SOUNDS["CDP1864"] = true
-SOUNDS["ZSG2"] = true
-SOUNDS["MOS656X"] = true
-SOUNDS["ASC"] = true
-SOUNDS["MAS3507D"] = true
-SOUNDS["SOCRATES"] = true
-SOUNDS["TMC0285"] = true
-SOUNDS["TMS5200"] = true
-SOUNDS["CD2801"] = true
-SOUNDS["CD2802"] = true
-SOUNDS["M58817"] = true
-SOUNDS["TMC0281"] = true
-SOUNDS["TMS5100"] = true
-SOUNDS["TMS5110A"] = true
-SOUNDS["LMC1992"] = true
-SOUNDS["AWACS"] = true
-SOUNDS["YMZ770"] = true
-SOUNDS["T6721A"] = true
-SOUNDS["MOS7360"] = true
---SOUNDS["ESQPUMP"] = true
---SOUNDS["VRC6"] = true
-SOUNDS["SB0400"] = true
-SOUNDS["AC97"] = true
-SOUNDS["ES1373"] = true
-SOUNDS["L7A1045"] = true
-
---------------------------------------------------
--- specify available video cores
---------------------------------------------------
-
-VIDEOS["SEGA315_5124"] = true
-VIDEOS["SEGA315_5313"] = true
-VIDEOS["BUFSPRITE"] = true
---VIDEOS["CDP1861"] = true
---VIDEOS["CDP1862"] = true
---VIDEOS["CRT9007"] = true
---VIDEOS["CRT9021"] = true
---VIDEOS["CRT9212"] = true
---VIDEOS["CRTC_EGA"] = true
---VIDEOS["DL1416"] = true
-VIDEOS["DM9368"] = true
---VIDEOS["EF9340_1"] = true
---VIDEOS["EF9345"] = true
---VIDEOS["GF4500"] = true
-VIDEOS["GF7600GS"] = true
-VIDEOS["EPIC12"] = true
-VIDEOS["FIXFREQ"] = true
-VIDEOS["H63484"] = true
---VIDEOS["HD44102"] = true
---VIDEOS["HD44352"] = true
-VIDEOS["HD44780"] = true
-VIDEOS["HD61830"] = true
-VIDEOS["HD63484"] = true
---VIDEOS["HD66421"] = true
-VIDEOS["HUC6202"] = true
-VIDEOS["HUC6260"] = true
---VIDEOS["HUC6261"] = true
-VIDEOS["HUC6270"] = true
---VIDEOS["HUC6272"] = true
---VIDEOS["I8244"] = true
-VIDEOS["I8275"] = true
-VIDEOS["M50458"] = true
-VIDEOS["MB90082"] = true
-VIDEOS["MB_VCU"] = true
-VIDEOS["MC6845"] = true
---VIDEOS["MC6847"] = true
---VIDEOS["MSM6222B"] = true
---VIDEOS["MSM6255"] = true
---VIDEOS["MOS6566"] = true
-VIDEOS["PC_VGA"] = true
-VIDEOS["POLY"] = true
-VIDEOS["PSX"] = true
-VIDEOS["RAMDAC"] = true
---VIDEOS["S2636"] = true
-VIDEOS["SAA5050"] = true
-VIDEOS["SCN2674"] = true
---VIDEOS["SED1200"] = true
---VIDEOS["SED1330"] = true
---VIDEOS["SED1520"] = true
-VIDEOS["SNES_PPU"] = true
-VIDEOS["STVVDP"] = true
---VIDEOS["T6A04"] = true
-VIDEOS["TLC34076"] = true
-VIDEOS["TMS34061"] = true
---VIDEOS["TMS3556"] = true
-VIDEOS["TMS9927"] = true
-VIDEOS["TMS9928A"] = true
---VIDEOS["UPD3301"] = true
---VIDEOS["UPD7220"] = true
---VIDEOS["UPD7227"] = true
-VIDEOS["V9938"] = true
---VIDEOS["VIC4567"] = true
-VIDEOS["VOODOO"] = true
-VIDEOS["VOODOO_PCI"] = true
-
---------------------------------------------------
--- specify available machine cores
---------------------------------------------------
-
-MACHINES["AKIKO"] = true
-MACHINES["NCR53C7XX"] = true
-MACHINES["LSI53C810"] = true
-MACHINES["6522VIA"] = true
-MACHINES["TPI6525"] = true
-MACHINES["RIOT6532"] = true
-MACHINES["6821PIA"] = true
-MACHINES["6840PTM"] = true
---MACHINES["68561MPCC"] = true
-MACHINES["ACIA6850"] = true
-MACHINES["68681"] = true
-MACHINES["7200FIFO"] = true
---MACHINES["8530SCC"] = true
-MACHINES["TTL74123"] = true
-MACHINES["TTL74145"] = true
-MACHINES["TTL74148"] = true
-MACHINES["TTL74153"] = true
-MACHINES["TTL74181"] = true
-MACHINES["TTL7474"] = true
-MACHINES["KBDC8042"] = true
-MACHINES["I8257"] = true
-MACHINES["AAKARTDEV"] = true
---MACHINES["ACIA6850"] = true
-MACHINES["ADC0808"] = true
-MACHINES["ADC083X"] = true
-MACHINES["ADC1038"] = true
-MACHINES["ADC1213X"] = true
-MACHINES["AICARTC"] = true
-MACHINES["AM53CF96"] = true
-MACHINES["AM9517A"] = true
-MACHINES["AMIGAFDC"] = true
---MACHINES["AT_KEYBC"] = true
-MACHINES["AT28C16"] = true
-MACHINES["AT29X"] = true
-MACHINES["AT45DBXX"] = true
-MACHINES["ATAFLASH"] = true
-MACHINES["AY31015"] = true
-MACHINES["BANKDEV"] = true
-MACHINES["CDP1852"] = true
-MACHINES["CDP1871"] = true
---MACHINES["CMOS40105"] = true
-MACHINES["CDU76S"] = true
-MACHINES["COM8116"] = true
-MACHINES["CR589"] = true
---MACHINES["CS4031"] = true
---MACHINES["CS8221"] = true
---MACHINES["DP8390"] = true
-MACHINES["DS1204"] = true
-MACHINES["DS1302"] = true
---MACHINES["DS1315"] = true
-MACHINES["DS2401"] = true
-MACHINES["DS2404"] = true
-MACHINES["DS75160A"] = true
-MACHINES["DS75161A"] = true
-MACHINES["E0516"] = true
-MACHINES["E05A03"] = true
-MACHINES["E05A30"] = true
-MACHINES["EEPROMDEV"] = true
-MACHINES["ER2055"] = true
-MACHINES["F3853"] = true
---MACHINES["HD63450"] = true
---MACHINES["HD64610"] = true
-MACHINES["I2CMEM"] = true
---MACHINES["I80130"] = true
---MACHINES["I8089"] = true
-MACHINES["I8155"] = true
-MACHINES["I8212"] = true
-MACHINES["I8214"] = true
-MACHINES["I8243"] = true
-MACHINES["I8251"] = true
-MACHINES["I8255"] = true
---MACHINES["I8257"] = true
---MACHINES["I8271"] = true
-MACHINES["I8279"] = true
-MACHINES["I8355"] = true
-MACHINES["IDE"] = true
-MACHINES["IM6402"] = true
-MACHINES["INS8154"] = true
-MACHINES["INS8250"] = true
-MACHINES["INTELFLASH"] = true
-MACHINES["JVS"] = true
-MACHINES["K033906"] = true
-MACHINES["K053252"] = true
-MACHINES["K056230"] = true
---MACHINES["KB3600"] = true
---MACHINES["KBDC8042"] = true
---MACHINES["KR2376"] = true
-MACHINES["LATCH8"] = true
-MACHINES["LC89510"] = true
-MACHINES["LDPR8210"] = true
-MACHINES["LDSTUB"] = true
-MACHINES["LDV1000"] = true
-MACHINES["LDVP931"] = true
---MACHINES["LH5810"] = true
-MACHINES["LINFLASH"] = true
-MACHINES["LPCI"] = true
---MACHINES["LSI53C810"] = true
---MACHINES["M68307"] = true
---MACHINES["M68340"] = true
-MACHINES["M6M80011AP"] = true
-MACHINES["MATSUCD"] = true
-MACHINES["MB14241"] = true
-MACHINES["MB3773"] = true
-MACHINES["MB8421"] = true
-MACHINES["MB87078"] = true
---MACHINES["MB8795"] = true
---MACHINES["MB89352"] = true
-MACHINES["MB89371"] = true
-MACHINES["MC146818"] = true
-MACHINES["MC2661"] = true
-MACHINES["MC6843"] = true
-MACHINES["MC6846"] = true
-MACHINES["MC6852"] = true
-MACHINES["MC6854"] = true
---MACHINES["MC68328"] = true
-MACHINES["MC68901"] = true
-MACHINES["MCCS1850"] = true
-MACHINES["M68307"] = true
-MACHINES["M68340"] = true
-MACHINES["MCF5206E"] = true
-MACHINES["MICROTOUCH"] = true
---MACHINES["MIOT6530"] = true
---MACHINES["MM58167"] = true
-MACHINES["MM58274C"] = true
-MACHINES["MM74C922"] = true
-MACHINES["MOS6526"] = true
-MACHINES["MOS6529"] = true
-MACHINES["MIOT6530"] = true
-MACHINES["MOS6551"] = true
---MACHINES["MOS6702"] = true
---MACHINES["MOS8706"] = true
---MACHINES["MOS8722"] = true
---MACHINES["MOS8726"] = true
---MACHINES["MPU401"] = true
-MACHINES["MSM5832"] = true
-MACHINES["MSM58321"] = true
-MACHINES["MSM6242"] = true
---MACHINES["NCR5380"] = true
---MACHINES["NCR5380N"] = true
---MACHINES["NCR5390"] = true
-MACHINES["NCR539x"] = true
-MACHINES["NETLIST"] = true
---MACHINES["NCR53C7XX"] = true
-MACHINES["NMC9306"] = true
---MACHINES["NSC810"] = true
-MACHINES["NSCSI"] = true
---MACHINES["PC_FDC"] = true
---MACHINES["PC_LPT"] = true
---MACHINES["PCCARD"] = true
-MACHINES["PCF8593"] = true
-MACHINES["PCI"] = true
-MACHINES["PCKEYBRD"] = true
-MACHINES["PIC8259"] = true
-MACHINES["PIT8253"] = true
-MACHINES["PLA"] = true
---MACHINES["PROFILE"] = true
-MACHINES["R10696"] = true
-MACHINES["R10788"] = true
-MACHINES["RA17XX"] = true
---MACHINES["R64H156"] = true
-MACHINES["RF5C296"] = true
---MACHINES["RIOT6532"] = true
-MACHINES["ROC10937"] = true
-MACHINES["RP5C01"] = true
-MACHINES["RP5C15"] = true
-MACHINES["RP5H01"] = true
-MACHINES["RTC4543"] = true
-MACHINES["RTC65271"] = true
-MACHINES["RTC9701"] = true
-MACHINES["S2636"] = true
-MACHINES["S3520CF"] = true
-MACHINES["S3C2400"] = true
-MACHINES["S3C2410"] = true
-MACHINES["S3C2440"] = true
---MACHINES["S3C44B0"] = true
-MACHINES["SATURN"] = true
-MACHINES["SCSI"] = true
-MACHINES["SCUDSP"] = true
---MACHINES["SECFLASH"] = true
-MACHINES["SERFLASH"] = true
-MACHINES["SMC91C9X"] = true
-MACHINES["SMPC"] = true
-MACHINES["STVCD"] = true
-MACHINES["TC0091LVC"] = true
-MACHINES["TIMEKPR"] = true
-MACHINES["TMP68301"] = true
---MACHINES["TMS5501"] = true
-MACHINES["TMS6100"] = true
-MACHINES["TMS9901"] = true
-MACHINES["TMS9902"] = true
---MACHINES["TPI6525"] = true
---MACHINES["TTL74123"] = true
---MACHINES["TTL74145"] = true
---MACHINES["TTL74148"] = true
---MACHINES["TTL74153"] = true
---MACHINES["TTL74181"] = true
---MACHINES["TTL7474"] = true
-MACHINES["UPD1990A"] = true
-MACHINES["UPD4992"] = true
-MACHINES["UPD4701"] = true
-MACHINES["UPD7002"] = true
-MACHINES["UPD71071"] = true
-MACHINES["UPD765"] = true
-MACHINES["V3021"] = true
-MACHINES["WD_FDC"] = true
-MACHINES["WD11C00_17"] = true
-MACHINES["WD2010"] = true
-MACHINES["WD33C93"] = true
-MACHINES["X2212"] = true
-MACHINES["X76F041"] = true
-MACHINES["X76F100"] = true
-MACHINES["Z80CTC"] = true
-MACHINES["Z80DART"] = true
-MACHINES["Z80DMA"] = true
-MACHINES["Z80PIO"] = true
-MACHINES["Z80STI"] = true
-MACHINES["Z8536"] = true
-MACHINES["SECFLASH"] = true
-MACHINES["PCCARD"] = true
-MACHINES["FDC37C665GT"] = true
---MACHINES["SMC92X4"] = true
---MACHINES["TI99_HD"] = true
---MACHINES["STRATA"] = true
-MACHINES["STEPPERS"] = true
---MACHINES["CORVUSHD"] = true
---MACHINES["WOZFDC"] = true
---MACHINES["DIABLO_HD"] = true
-MACHINES["PCI9050"] = true
---MACHINES["TMS1024"] = true
-
---------------------------------------------------
--- specify available bus cores
---------------------------------------------------
-
---BUSES["A1BUS"] = true
---BUSES["A2BUS"] = true
---BUSES["A7800"] = true
---BUSES["A800"] = true
---BUSES["ABCBUS"] = true
---BUSES["ABCKB"] = true
---BUSES["ADAM"] = true
---BUSES["ADAMNET"] = true
---BUSES["APF"] = true
---BUSES["ARCADIA"] = true
---BUSES["ASTROCADE"] = true
---BUSES["BML3"] = true
---BUSES["BW2"] = true
---BUSES["C64"] = true
---BUSES["CBM2"] = true
---BUSES["CBMIEC"] = true
-BUSES["CENTRONICS"] = true
---BUSES["CHANNELF"] = true
---BUSES["COCO"] = true
---BUSES["COLECO"] = true
---BUSES["COMPUCOLOR"] = true
---BUSES["COMX35"] = true
---BUSES["CPC"] = true
---BUSES["CRVISION"] = true
---BUSES["DMV"] = true
---BUSES["ECBBUS"] = true
---BUSES["ECONET"] = true
---BUSES["EP64"] = true
---BUSES["EPSON_SIO"] = true
---BUSES["GAMEBOY"] = true
---BUSES["GBA"] = true
-BUSES["GENERIC"] = true
---BUSES["IEEE488"] = true
---BUSES["IMI7000"] = true
---BUSES["INTV"] = true
---BUSES["IQ151"] = true
-BUSES["ISA"] = true
---BUSES["ISBX"] = true
---BUSES["KC"] = true
---BUSES["LPCI"] = true
---BUSES["MACPDS"] = true
-BUSES["MIDI"] = true
---BUSES["MEGADRIVE"] = true
---BUSES["MSX_SLOT"] = true
-BUSES["NEOGEO"] = true
---BUSES["NES"] = true
---BUSES["NUBUS"] = true
---BUSES["O2"] = true
---BUSES["ORICEXT"] = true
---BUSES["PCE"] = true
-BUSES["PC_JOY"] = true
---BUSES["PC_KBD"] = true
---BUSES["PET"] = true
---BUSES["PLUS4"] = true
---BUSES["PSX_CONTROLLER"] = true
---BUSES["QL"] = true
-BUSES["RS232"] = true
---BUSES["S100"] = true
---BUSES["SATURN"] = true
-BUSES["SCSI"] = true
---BUSES["SCV"] = true
---BUSES["SEGA8"] = true
---BUSES["SMS_CTRL"] = true
---BUSES["SMS_EXP"] = true
---BUSES["SNES"] = true
---BUSES["SPC1000"] = true
---BUSES["TI99PEB"] = true
---BUSES["TVC"] = true
---BUSES["VBOY"] = true
---BUSES["VC4000"] = true
---BUSES["VCS"] = true
---BUSES["VCS_CTRL"] = true
-BUSES["VECTREX"] = true
---BUSES["VIC10"] = true
---BUSES["VIC20"] = true
---BUSES["VIDBRAIN"] = true
---BUSES["VIP"] = true
---BUSES["VTECH_IOEXP"] = true
---BUSES["VTECH_MEMEXP"] = true
---BUSES["WANGPC"] = true
---BUSES["WSWAN"] = true
---BUSES["X68K"] = true
---BUSES["Z88"] = true
---BUSES["ZORRO"] = true
-
---------------------------------------------------
--- this is the list of driver libraries that
--- comprise MAME plus mamedriv.o which contains
--- the list of drivers
---------------------------------------------------
-
-function linkProjects_mame_debug(_target, _subtarget)
- links {
- -- "acorn",
- -- "alba",
- -- "alliedl",
- -- "alpha",
- -- "amiga",
- -- "aristocr",
- -- "ascii",
- -- "atari",
- -- "atlus",
- -- "barcrest",
- -- "bfm",
- -- "bmc",
- -- "capcom",
- -- "cinemat",
- -- "comad",
- -- "cvs",
- -- "dataeast",
- -- "dgrm",
- -- "dooyong",
- -- "dynax",
- -- "edevices",
- -- "eolith",
- -- "excelent",
- -- "exidy",
- -- "f32",
- -- "funworld",
- -- "fuuki",
- -- "gaelco",
- -- "gameplan",
- -- "gametron",
- -- "gottlieb",
- -- "ibmpc",
- -- "igs",
- -- "irem",
- -- "itech",
- -- "jaleco",
- -- "jpm",
- -- "kaneko",
- -- "konami",
- -- "matic",
- -- "maygay",
- -- "meadows",
- -- "merit",
- -- "metro",
- -- "midcoin",
- -- "midw8080",
- -- "midway",
- -- "namco",
- -- "nasco",
- "neogeo",
- -- "nichibut",
- -- "nintendo",
- -- "nix",
- -- "nmk",
- -- "omori",
- -- "olympia",
- -- "orca",
- -- "pacific",
- -- "pacman",
- -- "pce",
- -- "phoenix",
- -- "playmark",
- "psikyo",
- -- "ramtek",
- -- "rare",
- -- "sanritsu",
- -- "sega",
- -- "seibu",
- -- "seta",
- -- "sigma",
- -- "snk",
- -- "sony",
- -- "stern",
- -- "subsino",
- -- "sun",
- -- "suna",
- -- "sure",
- -- "taito",
- -- "tatsumi",
- -- "tch",
- -- "tecfri",
- -- "technos",
- -- "tehkan",
- -- "thepit",
- -- "toaplan",
- -- "tong",
- -- "unico",
- -- "univers",
- -- "upl",
- -- "valadon",
- -- "veltmjr",
- -- "venture",
- -- "vsystem",
- -- "yunsung",
- -- "zaccaria",
- -- "misc",
- -- "pinball",
- "shared",
- }
-end
-
-function createMAMEProjects(_target, _subtarget, _name)
- project (_name)
- targetsubdir(_target .."_" .. _subtarget)
- kind (LIBTYPE)
- uuid (os.uuid("drv-" .. _target .."_" .. _subtarget .. "_" .._name))
-
- includedirs {
- MAME_DIR .. "src/osd",
- MAME_DIR .. "src/emu",
- MAME_DIR .. "src/devices",
- MAME_DIR .. "src/mame",
- MAME_DIR .. "src/lib",
- MAME_DIR .. "src/lib/util",
- MAME_DIR .. "src/lib/netlist",
- MAME_DIR .. "3rdparty",
- GEN_DIR .. "mame/layout",
- }
-end
-
-function createProjects_mame_debug(_target, _subtarget)
---------------------------------------------------
--- the following files are general components and
--- shared across a number of drivers
---------------------------------------------------
-
-createMAMEProjects(_target, _subtarget, "shared")
-files {
- MAME_DIR .. "src/mame/machine/nmk112.cpp",
- MAME_DIR .. "src/mame/machine/pcshare.cpp",
- MAME_DIR .. "src/mame/machine/segacrpt.cpp",
- MAME_DIR .. "src/mame/machine/segacrp2.cpp",
- MAME_DIR .. "src/mame/machine/ticket.cpp",
- MAME_DIR .. "src/mame/video/avgdvg.cpp",
- MAME_DIR .. "src/mame/audio/dcs.cpp",
- MAME_DIR .. "src/mame/audio/decobsmt.cpp",
- MAME_DIR .. "src/mame/audio/segam1audio.cpp",
-}
-
---------------------------------------------------
--- manufacturer-specific groupings for drivers
---------------------------------------------------
-
--- createMAMEProjects(_target, _subtarget, "acorn")
--- files {
--- MAME_DIR .. "src/mame/drivers/ertictac.cpp",
--- MAME_DIR .. "src/mame/drivers/ssfindo.cpp",
--- MAME_DIR .. "src/mame/drivers/aristmk5.cpp",
--- MAME_DIR .. "src/mame/machine/archimds.cpp",
--- MAME_DIR .. "src/mame/video/archimds.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "alba")
--- files {
--- MAME_DIR .. "src/mame/drivers/albazc.cpp",
--- MAME_DIR .. "src/mame/drivers/albazg.cpp",
--- MAME_DIR .. "src/mame/drivers/rmhaihai.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "alliedl")
--- files {
--- MAME_DIR .. "src/mame/drivers/ace.cpp",
--- MAME_DIR .. "src/mame/drivers/aleisttl.cpp",
--- MAME_DIR .. "src/mame/drivers/clayshoo.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "alpha")
--- files {
--- MAME_DIR .. "src/mame/drivers/alpha68k.cpp",
--- MAME_DIR .. "src/mame/video/alpha68k.cpp",
--- MAME_DIR .. "src/mame/drivers/champbas.cpp",
--- MAME_DIR .. "src/mame/video/champbas.cpp",
--- MAME_DIR .. "src/mame/drivers/equites.cpp",
--- MAME_DIR .. "src/mame/video/equites.cpp",
--- MAME_DIR .. "src/mame/drivers/meijinsn.cpp",
--- MAME_DIR .. "src/mame/drivers/shougi.cpp",
--- MAME_DIR .. "src/mame/machine/alpha8201.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "amiga")
--- files {
--- MAME_DIR .. "src/mame/drivers/alg.cpp",
--- MAME_DIR .. "src/mame/machine/amiga.cpp",
--- MAME_DIR .. "src/mame/video/amiga.cpp",
--- MAME_DIR .. "src/mame/video/amigaaga.cpp",
--- MAME_DIR .. "src/mame/drivers/arsystems.cpp",
--- MAME_DIR .. "src/mame/drivers/cubo.cpp",
--- MAME_DIR .. "src/mame/drivers/mquake.cpp",
--- MAME_DIR .. "src/mame/drivers/upscope.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "aristocr")
--- files {
--- MAME_DIR .. "src/mame/drivers/aristmk4.cpp",
--- MAME_DIR .. "src/mame/drivers/aristmk6.cpp",
--- MAME_DIR .. "src/mame/drivers/caswin.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "ascii")
--- files {
--- MAME_DIR .. "src/mame/drivers/big10.cpp",
--- MAME_DIR .. "src/mame/drivers/forte2.cpp",
--- MAME_DIR .. "src/mame/drivers/pengadvb.cpp",
--- MAME_DIR .. "src/mame/drivers/sangho.cpp",
--- MAME_DIR .. "src/mame/drivers/sfkick.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "atari")
--- files {
--- MAME_DIR .. "src/mame/drivers/arcadecl.cpp",
--- MAME_DIR .. "src/mame/video/arcadecl.cpp",
--- MAME_DIR .. "src/mame/drivers/asteroid.cpp",
--- MAME_DIR .. "src/mame/machine/asteroid.cpp",
--- MAME_DIR .. "src/mame/audio/asteroid.cpp",
--- MAME_DIR .. "src/mame/audio/llander.cpp",
--- MAME_DIR .. "src/mame/drivers/atarifb.cpp",
--- MAME_DIR .. "src/mame/machine/atarifb.cpp",
--- MAME_DIR .. "src/mame/audio/atarifb.cpp",
--- MAME_DIR .. "src/mame/video/atarifb.cpp",
--- MAME_DIR .. "src/mame/drivers/atarig1.cpp",
--- MAME_DIR .. "src/mame/video/atarig1.cpp",
--- MAME_DIR .. "src/mame/drivers/atarig42.cpp",
--- MAME_DIR .. "src/mame/video/atarig42.cpp",
--- MAME_DIR .. "src/mame/drivers/atarigt.cpp",
--- MAME_DIR .. "src/mame/video/atarigt.cpp",
--- MAME_DIR .. "src/mame/drivers/atarigx2.cpp",
--- MAME_DIR .. "src/mame/video/atarigx2.cpp",
--- MAME_DIR .. "src/mame/drivers/atarisy1.cpp",
--- MAME_DIR .. "src/mame/video/atarisy1.cpp",
--- MAME_DIR .. "src/mame/drivers/atarisy2.cpp",
--- MAME_DIR .. "src/mame/video/atarisy2.cpp",
--- MAME_DIR .. "src/mame/drivers/atarisy4.cpp",
--- MAME_DIR .. "src/mame/drivers/atarittl.cpp",
--- MAME_DIR .. "src/mame/drivers/atetris.cpp",
--- MAME_DIR .. "src/mame/video/atetris.cpp",
--- MAME_DIR .. "src/mame/drivers/avalnche.cpp",
--- MAME_DIR .. "src/mame/audio/avalnche.cpp",
--- MAME_DIR .. "src/mame/drivers/badlands.cpp",
--- MAME_DIR .. "src/mame/video/badlands.cpp",
--- MAME_DIR .. "src/mame/drivers/bartop52.cpp",
--- MAME_DIR .. "src/mame/drivers/batman.cpp",
--- MAME_DIR .. "src/mame/video/batman.cpp",
--- MAME_DIR .. "src/mame/drivers/beathead.cpp",
--- MAME_DIR .. "src/mame/video/beathead.cpp",
--- MAME_DIR .. "src/mame/drivers/blstroid.cpp",
--- MAME_DIR .. "src/mame/video/blstroid.cpp",
--- MAME_DIR .. "src/mame/drivers/boxer.cpp",
--- MAME_DIR .. "src/mame/drivers/bsktball.cpp",
--- MAME_DIR .. "src/mame/machine/bsktball.cpp",
--- MAME_DIR .. "src/mame/audio/bsktball.cpp",
--- MAME_DIR .. "src/mame/video/bsktball.cpp",
--- MAME_DIR .. "src/mame/drivers/bwidow.cpp",
--- MAME_DIR .. "src/mame/audio/bwidow.cpp",
--- MAME_DIR .. "src/mame/drivers/bzone.cpp",
--- MAME_DIR .. "src/mame/audio/bzone.cpp",
--- MAME_DIR .. "src/mame/drivers/canyon.cpp",
--- MAME_DIR .. "src/mame/audio/canyon.cpp",
--- MAME_DIR .. "src/mame/video/canyon.cpp",
--- MAME_DIR .. "src/mame/drivers/cball.cpp",
--- MAME_DIR .. "src/mame/drivers/ccastles.cpp",
--- MAME_DIR .. "src/mame/video/ccastles.cpp",
--- MAME_DIR .. "src/mame/drivers/centiped.cpp",
--- MAME_DIR .. "src/mame/video/centiped.cpp",
--- MAME_DIR .. "src/mame/drivers/cloak.cpp",
--- MAME_DIR .. "src/mame/video/cloak.cpp",
--- MAME_DIR .. "src/mame/drivers/cloud9.cpp",
--- MAME_DIR .. "src/mame/video/cloud9.cpp",
--- MAME_DIR .. "src/mame/drivers/cmmb.cpp",
--- MAME_DIR .. "src/mame/drivers/cops.cpp",
--- MAME_DIR .. "src/mame/drivers/copsnrob.cpp",
--- MAME_DIR .. "src/mame/audio/copsnrob.cpp",
--- MAME_DIR .. "src/mame/video/copsnrob.cpp",
--- MAME_DIR .. "src/mame/drivers/cyberbal.cpp",
--- MAME_DIR .. "src/mame/audio/cyberbal.cpp",
--- MAME_DIR .. "src/mame/video/cyberbal.cpp",
--- MAME_DIR .. "src/mame/drivers/destroyr.cpp",
--- MAME_DIR .. "src/mame/drivers/dragrace.cpp",
--- MAME_DIR .. "src/mame/audio/dragrace.cpp",
--- MAME_DIR .. "src/mame/video/dragrace.cpp",
--- MAME_DIR .. "src/mame/drivers/eprom.cpp",
--- MAME_DIR .. "src/mame/video/eprom.cpp",
--- MAME_DIR .. "src/mame/drivers/firefox.cpp",
--- MAME_DIR .. "src/mame/drivers/firetrk.cpp",
--- MAME_DIR .. "src/mame/audio/firetrk.cpp",
--- MAME_DIR .. "src/mame/video/firetrk.cpp",
--- MAME_DIR .. "src/mame/drivers/flyball.cpp",
--- MAME_DIR .. "src/mame/drivers/foodf.cpp",
--- MAME_DIR .. "src/mame/video/foodf.cpp",
--- MAME_DIR .. "src/mame/drivers/gauntlet.cpp",
--- MAME_DIR .. "src/mame/video/gauntlet.cpp",
--- MAME_DIR .. "src/mame/drivers/harddriv.cpp",
--- MAME_DIR .. "src/mame/machine/harddriv.cpp",
--- MAME_DIR .. "src/mame/audio/harddriv.cpp",
--- MAME_DIR .. "src/mame/video/harddriv.cpp",
--- MAME_DIR .. "src/mame/drivers/irobot.cpp",
--- MAME_DIR .. "src/mame/machine/irobot.cpp",
--- MAME_DIR .. "src/mame/video/irobot.cpp",
--- MAME_DIR .. "src/mame/drivers/jaguar.cpp",
--- MAME_DIR .. "src/mame/audio/jaguar.cpp",
--- MAME_DIR .. "src/mame/video/jaguar.cpp",
--- MAME_DIR .. "src/mame/drivers/jedi.cpp",
--- MAME_DIR .. "src/mame/audio/jedi.cpp",
--- MAME_DIR .. "src/mame/video/jedi.cpp",
--- MAME_DIR .. "src/mame/drivers/klax.cpp",
--- MAME_DIR .. "src/mame/video/klax.cpp",
--- MAME_DIR .. "src/mame/drivers/liberatr.cpp",
--- MAME_DIR .. "src/mame/video/liberatr.cpp",
--- MAME_DIR .. "src/mame/drivers/mediagx.cpp",
--- MAME_DIR .. "src/mame/drivers/metalmx.cpp",
--- MAME_DIR .. "src/mame/drivers/mgolf.cpp",
--- MAME_DIR .. "src/mame/drivers/mhavoc.cpp",
--- MAME_DIR .. "src/mame/machine/mhavoc.cpp",
--- MAME_DIR .. "src/mame/drivers/missile.cpp",
--- MAME_DIR .. "src/mame/drivers/nitedrvr.cpp",
--- MAME_DIR .. "src/mame/machine/nitedrvr.cpp",
--- MAME_DIR .. "src/mame/audio/nitedrvr.cpp",
--- MAME_DIR .. "src/mame/video/nitedrvr.cpp",
--- MAME_DIR .. "src/mame/drivers/offtwall.cpp",
--- MAME_DIR .. "src/mame/video/offtwall.cpp",
--- MAME_DIR .. "src/mame/drivers/orbit.cpp",
--- MAME_DIR .. "src/mame/audio/orbit.cpp",
--- MAME_DIR .. "src/mame/video/orbit.cpp",
--- MAME_DIR .. "src/mame/drivers/pong.cpp",
--- MAME_DIR .. "src/mame/drivers/nl_pong.cpp",
--- MAME_DIR .. "src/mame/drivers/nl_pongd.cpp",
--- MAME_DIR .. "src/mame/drivers/nl_breakout.cpp",
--- MAME_DIR .. "src/mame/drivers/poolshrk.cpp",
--- MAME_DIR .. "src/mame/audio/poolshrk.cpp",
--- MAME_DIR .. "src/mame/video/poolshrk.cpp",
--- MAME_DIR .. "src/mame/drivers/quantum.cpp",
--- MAME_DIR .. "src/mame/drivers/quizshow.cpp",
--- MAME_DIR .. "src/mame/drivers/rampart.cpp",
--- MAME_DIR .. "src/mame/video/rampart.cpp",
--- MAME_DIR .. "src/mame/drivers/relief.cpp",
--- MAME_DIR .. "src/mame/video/relief.cpp",
--- MAME_DIR .. "src/mame/drivers/runaway.cpp",
--- MAME_DIR .. "src/mame/video/runaway.cpp",
--- MAME_DIR .. "src/mame/drivers/sbrkout.cpp",
--- MAME_DIR .. "src/mame/drivers/shuuz.cpp",
--- MAME_DIR .. "src/mame/video/shuuz.cpp",
--- MAME_DIR .. "src/mame/drivers/skullxbo.cpp",
--- MAME_DIR .. "src/mame/video/skullxbo.cpp",
--- MAME_DIR .. "src/mame/drivers/skydiver.cpp",
--- MAME_DIR .. "src/mame/audio/skydiver.cpp",
--- MAME_DIR .. "src/mame/video/skydiver.cpp",
--- MAME_DIR .. "src/mame/drivers/skyraid.cpp",
--- MAME_DIR .. "src/mame/audio/skyraid.cpp",
--- MAME_DIR .. "src/mame/video/skyraid.cpp",
--- MAME_DIR .. "src/mame/drivers/sprint2.cpp",
--- MAME_DIR .. "src/mame/audio/sprint2.cpp",
--- MAME_DIR .. "src/mame/video/sprint2.cpp",
--- MAME_DIR .. "src/mame/drivers/sprint4.cpp",
--- MAME_DIR .. "src/mame/video/sprint4.cpp",
--- MAME_DIR .. "src/mame/audio/sprint4.cpp",
--- MAME_DIR .. "src/mame/drivers/sprint8.cpp",
--- MAME_DIR .. "src/mame/audio/sprint8.cpp",
--- MAME_DIR .. "src/mame/video/sprint8.cpp",
--- MAME_DIR .. "src/mame/drivers/starshp1.cpp",
--- MAME_DIR .. "src/mame/audio/starshp1.cpp",
--- MAME_DIR .. "src/mame/video/starshp1.cpp",
--- MAME_DIR .. "src/mame/drivers/starwars.cpp",
--- MAME_DIR .. "src/mame/machine/starwars.cpp",
--- MAME_DIR .. "src/mame/audio/starwars.cpp",
--- MAME_DIR .. "src/mame/drivers/subs.cpp",
--- MAME_DIR .. "src/mame/machine/subs.cpp",
--- MAME_DIR .. "src/mame/audio/subs.cpp",
--- MAME_DIR .. "src/mame/video/subs.cpp",
--- MAME_DIR .. "src/mame/drivers/tank8.cpp",
--- MAME_DIR .. "src/mame/audio/tank8.cpp",
--- MAME_DIR .. "src/mame/video/tank8.cpp",
--- MAME_DIR .. "src/mame/drivers/tempest.cpp",
--- MAME_DIR .. "src/mame/drivers/thunderj.cpp",
--- MAME_DIR .. "src/mame/video/thunderj.cpp",
--- MAME_DIR .. "src/mame/drivers/tomcat.cpp",
--- MAME_DIR .. "src/mame/drivers/toobin.cpp",
--- MAME_DIR .. "src/mame/video/toobin.cpp",
--- MAME_DIR .. "src/mame/drivers/tourtabl.cpp",
--- MAME_DIR .. "src/mame/video/tia.cpp",
--- MAME_DIR .. "src/mame/drivers/triplhnt.cpp",
--- MAME_DIR .. "src/mame/audio/triplhnt.cpp",
--- MAME_DIR .. "src/mame/video/triplhnt.cpp",
--- MAME_DIR .. "src/mame/drivers/tunhunt.cpp",
--- MAME_DIR .. "src/mame/video/tunhunt.cpp",
--- MAME_DIR .. "src/mame/drivers/ultratnk.cpp",
--- MAME_DIR .. "src/mame/video/ultratnk.cpp",
--- MAME_DIR .. "src/mame/drivers/videopin.cpp",
--- MAME_DIR .. "src/mame/audio/videopin.cpp",
--- MAME_DIR .. "src/mame/video/videopin.cpp",
--- MAME_DIR .. "src/mame/drivers/vindictr.cpp",
--- MAME_DIR .. "src/mame/video/vindictr.cpp",
--- MAME_DIR .. "src/mame/drivers/wolfpack.cpp",
--- MAME_DIR .. "src/mame/video/wolfpack.cpp",
--- MAME_DIR .. "src/mame/drivers/xybots.cpp",
--- MAME_DIR .. "src/mame/video/xybots.cpp",
--- MAME_DIR .. "src/mame/machine/asic65.cpp",
--- MAME_DIR .. "src/mame/machine/atari_vg.cpp",
--- MAME_DIR .. "src/mame/machine/atarigen.cpp",
--- MAME_DIR .. "src/mame/machine/mathbox.cpp",
--- MAME_DIR .. "src/mame/machine/slapstic.cpp",
--- MAME_DIR .. "src/mame/audio/atarijsa.cpp",
--- MAME_DIR .. "src/mame/audio/cage.cpp",
--- MAME_DIR .. "src/mame/audio/redbaron.cpp",
--- MAME_DIR .. "src/mame/video/atarimo.cpp",
--- MAME_DIR .. "src/mame/video/atarirle.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "atlus")
--- files {
--- MAME_DIR .. "src/mame/drivers/blmbycar.cpp",
--- MAME_DIR .. "src/mame/video/blmbycar.cpp",
--- MAME_DIR .. "src/mame/drivers/ohmygod.cpp",
--- MAME_DIR .. "src/mame/video/ohmygod.cpp",
--- MAME_DIR .. "src/mame/drivers/powerins.cpp",
--- MAME_DIR .. "src/mame/video/powerins.cpp",
--- MAME_DIR .. "src/mame/drivers/bowltry.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "barcrest")
--- files {
--- MAME_DIR .. "src/mame/drivers/mpu2.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu3.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu4hw.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu4sw.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu4.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu4mod2sw.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu4mod4yam.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu4plasma.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu4dealem.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu4vid.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu4avan.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu4union.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu4concept.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu4empire.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu4mdm.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu4crystal.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu4bwb.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu4misc.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu5hw.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu5.cpp",
--- MAME_DIR .. "src/mame/video/awpvid.cpp",
--- MAME_DIR .. "src/mame/machine/meters.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "bfm")
--- files {
--- MAME_DIR .. "src/mame/drivers/bfcobra.cpp",
--- MAME_DIR .. "src/mame/machine/bfm_comn.cpp",
--- MAME_DIR .. "src/mame/drivers/bfm_sc1.cpp",
--- MAME_DIR .. "src/mame/drivers/bfm_sc2.cpp",
--- MAME_DIR .. "src/mame/video/bfm_adr2.cpp",
--- MAME_DIR .. "src/mame/drivers/bfm_sc4.cpp",
--- MAME_DIR .. "src/mame/drivers/bfm_sc4h.cpp",
--- MAME_DIR .. "src/mame/drivers/bfm_sc5.cpp",
--- MAME_DIR .. "src/mame/drivers/bfm_sc5sw.cpp",
--- MAME_DIR .. "src/mame/drivers/bfm_ad5.cpp",
--- MAME_DIR .. "src/mame/drivers/bfm_ad5sw.cpp",
--- MAME_DIR .. "src/mame/drivers/bfm_sc45_helper.cpp",
--- MAME_DIR .. "src/mame/drivers/bfm_swp.cpp",
--- MAME_DIR .. "src/mame/drivers/bfmsys83.cpp",
--- MAME_DIR .. "src/mame/drivers/bfmsys85.cpp",
--- MAME_DIR .. "src/mame/machine/sec.cpp",
--- MAME_DIR .. "src/mame/machine/bfm_bd1.cpp",
--- MAME_DIR .. "src/mame/machine/bfm_bda.cpp",
--- MAME_DIR .. "src/mame/video/bfm_dm01.cpp",
--- MAME_DIR .. "src/mame/drivers/rastersp.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "bmc")
--- files {
--- MAME_DIR .. "src/mame/drivers/bmcbowl.cpp",
--- MAME_DIR .. "src/mame/drivers/koftball.cpp",
--- MAME_DIR .. "src/mame/drivers/popobear.cpp",
--- MAME_DIR .. "src/mame/drivers/bmcpokr.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "capcom")
--- files {
--- MAME_DIR .. "src/mame/drivers/1942.cpp",
--- MAME_DIR .. "src/mame/video/1942.cpp",
--- MAME_DIR .. "src/mame/drivers/1943.cpp",
--- MAME_DIR .. "src/mame/video/1943.cpp",
--- MAME_DIR .. "src/mame/drivers/alien.cpp",
--- MAME_DIR .. "src/mame/drivers/bionicc.cpp",
--- MAME_DIR .. "src/mame/video/bionicc.cpp",
--- MAME_DIR .. "src/mame/drivers/supduck.cpp",
--- MAME_DIR .. "src/mame/video/tigeroad_spr.cpp",
--- MAME_DIR .. "src/mame/drivers/blktiger.cpp",
--- MAME_DIR .. "src/mame/video/blktiger.cpp",
--- MAME_DIR .. "src/mame/drivers/cbasebal.cpp",
--- MAME_DIR .. "src/mame/video/cbasebal.cpp",
--- MAME_DIR .. "src/mame/drivers/commando.cpp",
--- MAME_DIR .. "src/mame/video/commando.cpp",
--- MAME_DIR .. "src/mame/drivers/cps1.cpp",
--- MAME_DIR .. "src/mame/video/cps1.cpp",
--- MAME_DIR .. "src/mame/drivers/kenseim.cpp",
--- MAME_DIR .. "src/mame/drivers/cps2.cpp",
--- MAME_DIR .. "src/mame/machine/cps2crpt.cpp",
--- MAME_DIR .. "src/mame/drivers/cps3.cpp",
--- MAME_DIR .. "src/mame/audio/cps3.cpp",
--- MAME_DIR .. "src/mame/drivers/egghunt.cpp",
--- MAME_DIR .. "src/mame/drivers/exedexes.cpp",
--- MAME_DIR .. "src/mame/video/exedexes.cpp",
--- MAME_DIR .. "src/mame/drivers/fcrash.cpp",
--- MAME_DIR .. "src/mame/drivers/gng.cpp",
--- MAME_DIR .. "src/mame/video/gng.cpp",
--- MAME_DIR .. "src/mame/drivers/gunsmoke.cpp",
--- MAME_DIR .. "src/mame/video/gunsmoke.cpp",
--- MAME_DIR .. "src/mame/drivers/higemaru.cpp",
--- MAME_DIR .. "src/mame/video/higemaru.cpp",
--- MAME_DIR .. "src/mame/drivers/lastduel.cpp",
--- MAME_DIR .. "src/mame/video/lastduel.cpp",
--- MAME_DIR .. "src/mame/drivers/lwings.cpp",
--- MAME_DIR .. "src/mame/video/lwings.cpp",
--- MAME_DIR .. "src/mame/drivers/mitchell.cpp",
--- MAME_DIR .. "src/mame/video/mitchell.cpp",
--- MAME_DIR .. "src/mame/drivers/sf.cpp",
--- MAME_DIR .. "src/mame/video/sf.cpp",
--- MAME_DIR .. "src/mame/drivers/sidearms.cpp",
--- MAME_DIR .. "src/mame/video/sidearms.cpp",
--- MAME_DIR .. "src/mame/drivers/sonson.cpp",
--- MAME_DIR .. "src/mame/video/sonson.cpp",
--- MAME_DIR .. "src/mame/drivers/srumbler.cpp",
--- MAME_DIR .. "src/mame/video/srumbler.cpp",
--- MAME_DIR .. "src/mame/drivers/tigeroad.cpp",
--- MAME_DIR .. "src/mame/video/tigeroad.cpp",
--- MAME_DIR .. "src/mame/machine/tigeroad.cpp",
--- MAME_DIR .. "src/mame/drivers/vulgus.cpp",
--- MAME_DIR .. "src/mame/video/vulgus.cpp",
--- MAME_DIR .. "src/mame/machine/kabuki.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "cinemat")
--- files {
--- MAME_DIR .. "src/mame/drivers/ataxx.cpp",
--- MAME_DIR .. "src/mame/drivers/cinemat.cpp",
--- MAME_DIR .. "src/mame/audio/cinemat.cpp",
--- MAME_DIR .. "src/mame/video/cinemat.cpp",
--- MAME_DIR .. "src/mame/drivers/cchasm.cpp",
--- MAME_DIR .. "src/mame/machine/cchasm.cpp",
--- MAME_DIR .. "src/mame/audio/cchasm.cpp",
--- MAME_DIR .. "src/mame/video/cchasm.cpp",
--- MAME_DIR .. "src/mame/drivers/dlair.cpp",
--- MAME_DIR .. "src/mame/drivers/dlair2.cpp",
--- MAME_DIR .. "src/mame/drivers/embargo.cpp",
--- MAME_DIR .. "src/mame/drivers/jack.cpp",
--- MAME_DIR .. "src/mame/video/jack.cpp",
--- MAME_DIR .. "src/mame/drivers/leland.cpp",
--- MAME_DIR .. "src/mame/machine/leland.cpp",
--- MAME_DIR .. "src/mame/audio/leland.cpp",
--- MAME_DIR .. "src/mame/video/leland.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "comad")
--- files {
--- MAME_DIR .. "src/mame/drivers/funybubl.cpp",
--- MAME_DIR .. "src/mame/video/funybubl.cpp",
--- MAME_DIR .. "src/mame/drivers/galspnbl.cpp",
--- MAME_DIR .. "src/mame/video/galspnbl.cpp",
--- MAME_DIR .. "src/mame/drivers/zerozone.cpp",
--- MAME_DIR .. "src/mame/video/zerozone.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "cvs")
--- files {
--- MAME_DIR .. "src/mame/drivers/cvs.cpp",
--- MAME_DIR .. "src/mame/video/cvs.cpp",
--- MAME_DIR .. "src/mame/drivers/galaxia.cpp",
--- MAME_DIR .. "src/mame/video/galaxia.cpp",
--- MAME_DIR .. "src/mame/drivers/quasar.cpp",
--- MAME_DIR .. "src/mame/video/quasar.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "dataeast")
--- files {
--- MAME_DIR .. "src/mame/drivers/actfancr.cpp",
--- MAME_DIR .. "src/mame/video/actfancr.cpp",
--- MAME_DIR .. "src/mame/drivers/astrof.cpp",
--- MAME_DIR .. "src/mame/audio/astrof.cpp",
--- MAME_DIR .. "src/mame/drivers/backfire.cpp",
--- MAME_DIR .. "src/mame/drivers/battlera.cpp",
--- MAME_DIR .. "src/mame/drivers/boogwing.cpp",
--- MAME_DIR .. "src/mame/video/boogwing.cpp",
--- MAME_DIR .. "src/mame/drivers/brkthru.cpp",
--- MAME_DIR .. "src/mame/video/brkthru.cpp",
--- MAME_DIR .. "src/mame/drivers/btime.cpp",
--- MAME_DIR .. "src/mame/machine/btime.cpp",
--- MAME_DIR .. "src/mame/video/btime.cpp",
--- MAME_DIR .. "src/mame/drivers/bwing.cpp",
--- MAME_DIR .. "src/mame/video/bwing.cpp",
--- MAME_DIR .. "src/mame/drivers/cbuster.cpp",
--- MAME_DIR .. "src/mame/video/cbuster.cpp",
--- MAME_DIR .. "src/mame/drivers/chanbara.cpp",
--- MAME_DIR .. "src/mame/drivers/cninja.cpp",
--- MAME_DIR .. "src/mame/video/cninja.cpp",
--- MAME_DIR .. "src/mame/drivers/cntsteer.cpp",
--- MAME_DIR .. "src/mame/drivers/compgolf.cpp",
--- MAME_DIR .. "src/mame/video/compgolf.cpp",
--- MAME_DIR .. "src/mame/drivers/darkseal.cpp",
--- MAME_DIR .. "src/mame/video/darkseal.cpp",
--- MAME_DIR .. "src/mame/drivers/dassault.cpp",
--- MAME_DIR .. "src/mame/video/dassault.cpp",
--- MAME_DIR .. "src/mame/drivers/dblewing.cpp",
--- MAME_DIR .. "src/mame/drivers/dec0.cpp",
--- MAME_DIR .. "src/mame/machine/dec0.cpp",
--- MAME_DIR .. "src/mame/video/dec0.cpp",
--- MAME_DIR .. "src/mame/drivers/dec8.cpp",
--- MAME_DIR .. "src/mame/video/dec8.cpp",
--- MAME_DIR .. "src/mame/machine/deco222.cpp",
--- MAME_DIR .. "src/mame/machine/decocpu7.cpp",
--- MAME_DIR .. "src/mame/machine/decocpu6.cpp",
--- MAME_DIR .. "src/mame/drivers/deco_ld.cpp",
--- MAME_DIR .. "src/mame/drivers/deco_mlc.cpp",
--- MAME_DIR .. "src/mame/video/deco_mlc.cpp",
--- MAME_DIR .. "src/mame/drivers/deco156.cpp",
--- MAME_DIR .. "src/mame/machine/deco156.cpp",
--- MAME_DIR .. "src/mame/drivers/deco32.cpp",
--- MAME_DIR .. "src/mame/video/deco32.cpp",
--- MAME_DIR .. "src/mame/video/dvi.cpp",
--- MAME_DIR .. "src/mame/video/deco_zoomspr.cpp",
--- MAME_DIR .. "src/mame/drivers/decocass.cpp",
--- MAME_DIR .. "src/mame/machine/decocass.cpp",
--- MAME_DIR .. "src/mame/machine/decocass_tape.cpp",
--- MAME_DIR .. "src/mame/video/decocass.cpp",
--- MAME_DIR .. "src/mame/drivers/deshoros.cpp",
--- MAME_DIR .. "src/mame/drivers/dietgo.cpp",
--- MAME_DIR .. "src/mame/video/dietgo.cpp",
--- MAME_DIR .. "src/mame/drivers/dreambal.cpp",
--- MAME_DIR .. "src/mame/drivers/exprraid.cpp",
--- MAME_DIR .. "src/mame/video/exprraid.cpp",
--- MAME_DIR .. "src/mame/drivers/firetrap.cpp",
--- MAME_DIR .. "src/mame/video/firetrap.cpp",
--- MAME_DIR .. "src/mame/drivers/funkyjet.cpp",
--- MAME_DIR .. "src/mame/video/funkyjet.cpp",
--- MAME_DIR .. "src/mame/drivers/karnov.cpp",
--- MAME_DIR .. "src/mame/video/karnov.cpp",
--- MAME_DIR .. "src/mame/drivers/kchamp.cpp",
--- MAME_DIR .. "src/mame/video/kchamp.cpp",
--- MAME_DIR .. "src/mame/drivers/kingobox.cpp",
--- MAME_DIR .. "src/mame/video/kingobox.cpp",
--- MAME_DIR .. "src/mame/drivers/lemmings.cpp",
--- MAME_DIR .. "src/mame/video/lemmings.cpp",
--- MAME_DIR .. "src/mame/drivers/liberate.cpp",
--- MAME_DIR .. "src/mame/video/liberate.cpp",
--- MAME_DIR .. "src/mame/drivers/madalien.cpp",
--- MAME_DIR .. "src/mame/audio/madalien.cpp",
--- MAME_DIR .. "src/mame/video/madalien.cpp",
--- MAME_DIR .. "src/mame/drivers/madmotor.cpp",
--- MAME_DIR .. "src/mame/video/madmotor.cpp",
--- MAME_DIR .. "src/mame/drivers/metlclsh.cpp",
--- MAME_DIR .. "src/mame/video/metlclsh.cpp",
--- MAME_DIR .. "src/mame/drivers/mirage.cpp",
--- MAME_DIR .. "src/mame/drivers/pcktgal.cpp",
--- MAME_DIR .. "src/mame/video/pcktgal.cpp",
--- MAME_DIR .. "src/mame/drivers/pktgaldx.cpp",
--- MAME_DIR .. "src/mame/video/pktgaldx.cpp",
--- MAME_DIR .. "src/mame/drivers/progolf.cpp",
--- MAME_DIR .. "src/mame/drivers/rohga.cpp",
--- MAME_DIR .. "src/mame/video/rohga.cpp",
--- MAME_DIR .. "src/mame/drivers/shootout.cpp",
--- MAME_DIR .. "src/mame/video/shootout.cpp",
--- MAME_DIR .. "src/mame/drivers/sidepckt.cpp",
--- MAME_DIR .. "src/mame/video/sidepckt.cpp",
--- MAME_DIR .. "src/mame/drivers/simpl156.cpp",
--- MAME_DIR .. "src/mame/video/simpl156.cpp",
--- MAME_DIR .. "src/mame/drivers/sshangha.cpp",
--- MAME_DIR .. "src/mame/video/sshangha.cpp",
--- MAME_DIR .. "src/mame/drivers/stadhero.cpp",
--- MAME_DIR .. "src/mame/video/stadhero.cpp",
--- MAME_DIR .. "src/mame/drivers/supbtime.cpp",
--- MAME_DIR .. "src/mame/video/supbtime.cpp",
--- MAME_DIR .. "src/mame/drivers/tryout.cpp",
--- MAME_DIR .. "src/mame/video/tryout.cpp",
--- MAME_DIR .. "src/mame/drivers/tumbleb.cpp",
--- MAME_DIR .. "src/mame/video/tumbleb.cpp",
--- MAME_DIR .. "src/mame/drivers/tumblep.cpp",
--- MAME_DIR .. "src/mame/video/tumblep.cpp",
--- MAME_DIR .. "src/mame/drivers/vaportra.cpp",
--- MAME_DIR .. "src/mame/video/vaportra.cpp",
--- MAME_DIR .. "src/mame/machine/deco102.cpp",
--- MAME_DIR .. "src/mame/machine/decocrpt.cpp",
--- MAME_DIR .. "src/mame/machine/deco104.cpp",
--- MAME_DIR .. "src/mame/machine/deco146.cpp",
--- MAME_DIR .. "src/mame/video/decbac06.cpp",
--- MAME_DIR .. "src/mame/video/deco16ic.cpp",
--- MAME_DIR .. "src/mame/video/decocomn.cpp",
--- MAME_DIR .. "src/mame/video/decospr.cpp",
--- MAME_DIR .. "src/mame/video/decmxc06.cpp",
--- MAME_DIR .. "src/mame/video/deckarn.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "dgrm")
--- files {
--- MAME_DIR .. "src/mame/drivers/blackt96.cpp",
--- MAME_DIR .. "src/mame/drivers/pokechmp.cpp",
--- MAME_DIR .. "src/mame/video/pokechmp.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "dooyong")
--- files {
--- MAME_DIR .. "src/mame/drivers/dooyong.cpp",
--- MAME_DIR .. "src/mame/video/dooyong.cpp",
--- MAME_DIR .. "src/mame/drivers/gundealr.cpp",
--- MAME_DIR .. "src/mame/video/gundealr.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "dynax")
--- files {
--- MAME_DIR .. "src/mame/drivers/ddenlovr.cpp",
--- MAME_DIR .. "src/mame/drivers/dynax.cpp",
--- MAME_DIR .. "src/mame/video/dynax.cpp",
--- MAME_DIR .. "src/mame/drivers/hnayayoi.cpp",
--- MAME_DIR .. "src/mame/video/hnayayoi.cpp",
--- MAME_DIR .. "src/mame/drivers/realbrk.cpp",
--- MAME_DIR .. "src/mame/video/realbrk.cpp",
--- MAME_DIR .. "src/mame/drivers/royalmah.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "edevices")
--- files {
--- MAME_DIR .. "src/mame/drivers/diverboy.cpp",
--- MAME_DIR .. "src/mame/drivers/fantland.cpp",
--- MAME_DIR .. "src/mame/video/fantland.cpp",
--- MAME_DIR .. "src/mame/drivers/mwarr.cpp",
--- MAME_DIR .. "src/mame/drivers/mugsmash.cpp",
--- MAME_DIR .. "src/mame/video/mugsmash.cpp",
--- MAME_DIR .. "src/mame/drivers/ppmast93.cpp",
--- MAME_DIR .. "src/mame/drivers/pzletime.cpp",
--- MAME_DIR .. "src/mame/drivers/stlforce.cpp",
--- MAME_DIR .. "src/mame/video/stlforce.cpp",
--- MAME_DIR .. "src/mame/drivers/twins.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "eolith")
--- files {
--- MAME_DIR .. "src/mame/drivers/eolith.cpp",
--- MAME_DIR .. "src/mame/video/eolith.cpp",
--- MAME_DIR .. "src/mame/drivers/eolith16.cpp",
--- MAME_DIR .. "src/mame/drivers/eolithsp.cpp",
--- MAME_DIR .. "src/mame/drivers/ghosteo.cpp",
--- MAME_DIR .. "src/mame/drivers/vegaeo.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "excelent")
--- files {
--- MAME_DIR .. "src/mame/drivers/aquarium.cpp",
--- MAME_DIR .. "src/mame/video/aquarium.cpp",
--- MAME_DIR .. "src/mame/drivers/d9final.cpp",
--- MAME_DIR .. "src/mame/drivers/dblcrown.cpp",
--- MAME_DIR .. "src/mame/drivers/gcpinbal.cpp",
--- MAME_DIR .. "src/mame/video/gcpinbal.cpp",
--- MAME_DIR .. "src/mame/video/excellent_spr.cpp",
--- MAME_DIR .. "src/mame/drivers/lastbank.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "exidy")
--- files {
--- MAME_DIR .. "src/mame/drivers/carpolo.cpp",
--- MAME_DIR .. "src/mame/machine/carpolo.cpp",
--- MAME_DIR .. "src/mame/video/carpolo.cpp",
--- MAME_DIR .. "src/mame/drivers/circus.cpp",
--- MAME_DIR .. "src/mame/audio/circus.cpp",
--- MAME_DIR .. "src/mame/video/circus.cpp",
--- MAME_DIR .. "src/mame/drivers/exidy.cpp",
--- MAME_DIR .. "src/mame/audio/exidy.cpp",
--- MAME_DIR .. "src/mame/video/exidy.cpp",
--- MAME_DIR .. "src/mame/audio/targ.cpp",
--- MAME_DIR .. "src/mame/drivers/exidy440.cpp",
--- MAME_DIR .. "src/mame/audio/exidy440.cpp",
--- MAME_DIR .. "src/mame/video/exidy440.cpp",
--- MAME_DIR .. "src/mame/drivers/exidyttl.cpp",
--- MAME_DIR .. "src/mame/drivers/maxaflex.cpp",
--- MAME_DIR .. "src/mame/machine/atari.cpp",
--- MAME_DIR .. "src/mame/video/atari.cpp",
--- MAME_DIR .. "src/mame/video/antic.cpp",
--- MAME_DIR .. "src/mame/video/gtia.cpp",
--- MAME_DIR .. "src/mame/drivers/starfire.cpp",
--- MAME_DIR .. "src/mame/video/starfire.cpp",
--- MAME_DIR .. "src/mame/drivers/vertigo.cpp",
--- MAME_DIR .. "src/mame/machine/vertigo.cpp",
--- MAME_DIR .. "src/mame/video/vertigo.cpp",
--- MAME_DIR .. "src/mame/drivers/victory.cpp",
--- MAME_DIR .. "src/mame/video/victory.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "f32")
--- files {
--- MAME_DIR .. "src/mame/drivers/crospang.cpp",
--- MAME_DIR .. "src/mame/video/crospang.cpp",
--- MAME_DIR .. "src/mame/drivers/silvmil.cpp",
--- MAME_DIR .. "src/mame/drivers/f-32.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "funworld")
--- files {
--- MAME_DIR .. "src/mame/drivers/4roses.cpp",
--- MAME_DIR .. "src/mame/drivers/funworld.cpp",
--- MAME_DIR .. "src/mame/video/funworld.cpp",
--- MAME_DIR .. "src/mame/drivers/snookr10.cpp",
--- MAME_DIR .. "src/mame/video/snookr10.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "fuuki")
--- files {
--- MAME_DIR .. "src/mame/drivers/fuukifg2.cpp",
--- MAME_DIR .. "src/mame/video/fuukifg2.cpp",
--- MAME_DIR .. "src/mame/drivers/fuukifg3.cpp",
--- MAME_DIR .. "src/mame/video/fuukifg3.cpp",
--- MAME_DIR .. "src/mame/video/fuukifg.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "gaelco")
--- files {
--- MAME_DIR .. "src/mame/drivers/atvtrack.cpp",
--- MAME_DIR .. "src/mame/drivers/gaelco.cpp",
--- MAME_DIR .. "src/mame/video/gaelco.cpp",
--- MAME_DIR .. "src/mame/machine/gaelcrpt.cpp",
--- MAME_DIR .. "src/mame/drivers/gaelco2.cpp",
--- MAME_DIR .. "src/mame/machine/gaelco2.cpp",
--- MAME_DIR .. "src/mame/video/gaelco2.cpp",
--- MAME_DIR .. "src/mame/drivers/gaelco3d.cpp",
--- MAME_DIR .. "src/mame/video/gaelco3d.cpp",
--- MAME_DIR .. "src/mame/machine/gaelco3d.cpp",
--- MAME_DIR .. "src/mame/drivers/glass.cpp",
--- MAME_DIR .. "src/mame/video/glass.cpp",
--- MAME_DIR .. "src/mame/drivers/mastboy.cpp",
--- MAME_DIR .. "src/mame/drivers/rollext.cpp",
--- MAME_DIR .. "src/mame/drivers/splash.cpp",
--- MAME_DIR .. "src/mame/video/splash.cpp",
--- MAME_DIR .. "src/mame/drivers/targeth.cpp",
--- MAME_DIR .. "src/mame/video/targeth.cpp",
--- MAME_DIR .. "src/mame/drivers/thoop2.cpp",
--- MAME_DIR .. "src/mame/video/thoop2.cpp",
--- MAME_DIR .. "src/mame/drivers/tokyocop.cpp",
--- MAME_DIR .. "src/mame/drivers/wrally.cpp",
--- MAME_DIR .. "src/mame/machine/wrally.cpp",
--- MAME_DIR .. "src/mame/video/wrally.cpp",
--- MAME_DIR .. "src/mame/drivers/xorworld.cpp",
--- MAME_DIR .. "src/mame/video/xorworld.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "gameplan")
--- files {
--- MAME_DIR .. "src/mame/drivers/enigma2.cpp",
--- MAME_DIR .. "src/mame/drivers/gameplan.cpp",
--- MAME_DIR .. "src/mame/video/gameplan.cpp",
--- MAME_DIR .. "src/mame/drivers/toratora.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "gametron")
--- files {
--- MAME_DIR .. "src/mame/drivers/gatron.cpp",
--- MAME_DIR .. "src/mame/video/gatron.cpp",
--- MAME_DIR .. "src/mame/drivers/gotya.cpp",
--- MAME_DIR .. "src/mame/audio/gotya.cpp",
--- MAME_DIR .. "src/mame/video/gotya.cpp",
--- MAME_DIR .. "src/mame/drivers/sbugger.cpp",
--- MAME_DIR .. "src/mame/video/sbugger.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "gottlieb")
--- files {
--- MAME_DIR .. "src/mame/drivers/exterm.cpp",
--- MAME_DIR .. "src/mame/video/exterm.cpp",
--- MAME_DIR .. "src/mame/drivers/gottlieb.cpp",
--- MAME_DIR .. "src/mame/audio/gottlieb.cpp",
--- MAME_DIR .. "src/mame/video/gottlieb.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "ibmpc")
--- files {
--- MAME_DIR .. "src/mame/drivers/calchase.cpp",
--- MAME_DIR .. "src/mame/drivers/fruitpc.cpp",
--- MAME_DIR .. "src/mame/drivers/pangofun.cpp",
--- MAME_DIR .. "src/mame/drivers/pcat_dyn.cpp",
--- MAME_DIR .. "src/mame/drivers/pcat_nit.cpp",
--- MAME_DIR .. "src/mame/drivers/pcxt.cpp",
--- MAME_DIR .. "src/mame/drivers/quakeat.cpp",
--- MAME_DIR .. "src/mame/drivers/queen.cpp",
--- MAME_DIR .. "src/mame/drivers/igspc.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "igs")
--- files {
--- MAME_DIR .. "src/mame/drivers/cabaret.cpp",
--- MAME_DIR .. "src/mame/drivers/ddz.cpp",
--- MAME_DIR .. "src/mame/drivers/dunhuang.cpp",
--- MAME_DIR .. "src/mame/drivers/goldstar.cpp",
--- MAME_DIR .. "src/mame/video/goldstar.cpp",
--- MAME_DIR .. "src/mame/drivers/jackie.cpp",
--- MAME_DIR .. "src/mame/drivers/igspoker.cpp",
--- MAME_DIR .. "src/mame/drivers/igs009.cpp",
--- MAME_DIR .. "src/mame/drivers/igs011.cpp",
--- MAME_DIR .. "src/mame/drivers/igs017.cpp",
--- MAME_DIR .. "src/mame/video/igs017_igs031.cpp",
--- MAME_DIR .. "src/mame/drivers/igs_fear.cpp",
--- MAME_DIR .. "src/mame/drivers/igs_m027.cpp",
--- MAME_DIR .. "src/mame/drivers/igs_m036.cpp",
--- MAME_DIR .. "src/mame/drivers/iqblock.cpp",
--- MAME_DIR .. "src/mame/video/iqblock.cpp",
--- MAME_DIR .. "src/mame/drivers/lordgun.cpp",
--- MAME_DIR .. "src/mame/video/lordgun.cpp",
--- MAME_DIR .. "src/mame/drivers/pgm.cpp",
--- MAME_DIR .. "src/mame/video/pgm.cpp",
--- MAME_DIR .. "src/mame/machine/pgmprot_igs027a_type1.cpp",
--- MAME_DIR .. "src/mame/machine/pgmprot_igs027a_type2.cpp",
--- MAME_DIR .. "src/mame/machine/pgmprot_igs027a_type3.cpp",
--- MAME_DIR .. "src/mame/machine/pgmprot_igs025_igs012.cpp",
--- MAME_DIR .. "src/mame/machine/pgmprot_igs025_igs022.cpp",
--- MAME_DIR .. "src/mame/machine/pgmprot_igs025_igs028.cpp",
--- MAME_DIR .. "src/mame/machine/pgmprot_orlegend.cpp",
--- MAME_DIR .. "src/mame/drivers/pgm2.cpp",
--- MAME_DIR .. "src/mame/drivers/spoker.cpp",
--- MAME_DIR .. "src/mame/machine/igs036crypt.cpp",
--- MAME_DIR .. "src/mame/machine/pgmcrypt.cpp",
--- MAME_DIR .. "src/mame/machine/igs025.cpp",
--- MAME_DIR .. "src/mame/machine/igs022.cpp",
--- MAME_DIR .. "src/mame/machine/igs028.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "irem")
--- files {
--- MAME_DIR .. "src/mame/drivers/m10.cpp",
--- MAME_DIR .. "src/mame/video/m10.cpp",
--- MAME_DIR .. "src/mame/drivers/m14.cpp",
--- MAME_DIR .. "src/mame/drivers/m52.cpp",
--- MAME_DIR .. "src/mame/video/m52.cpp",
--- MAME_DIR .. "src/mame/drivers/m57.cpp",
--- MAME_DIR .. "src/mame/video/m57.cpp",
--- MAME_DIR .. "src/mame/drivers/m58.cpp",
--- MAME_DIR .. "src/mame/video/m58.cpp",
--- MAME_DIR .. "src/mame/drivers/m62.cpp",
--- MAME_DIR .. "src/mame/video/m62.cpp",
--- MAME_DIR .. "src/mame/drivers/m63.cpp",
--- MAME_DIR .. "src/mame/drivers/m72.cpp",
--- MAME_DIR .. "src/mame/audio/m72.cpp",
--- MAME_DIR .. "src/mame/video/m72.cpp",
--- MAME_DIR .. "src/mame/drivers/m90.cpp",
--- MAME_DIR .. "src/mame/video/m90.cpp",
--- MAME_DIR .. "src/mame/drivers/m92.cpp",
--- MAME_DIR .. "src/mame/video/m92.cpp",
--- MAME_DIR .. "src/mame/drivers/m107.cpp",
--- MAME_DIR .. "src/mame/video/m107.cpp",
--- MAME_DIR .. "src/mame/drivers/olibochu.cpp",
--- MAME_DIR .. "src/mame/drivers/redalert.cpp",
--- MAME_DIR .. "src/mame/audio/redalert.cpp",
--- MAME_DIR .. "src/mame/video/redalert.cpp",
--- MAME_DIR .. "src/mame/drivers/shisen.cpp",
--- MAME_DIR .. "src/mame/video/shisen.cpp",
--- MAME_DIR .. "src/mame/drivers/travrusa.cpp",
--- MAME_DIR .. "src/mame/video/travrusa.cpp",
--- MAME_DIR .. "src/mame/drivers/vigilant.cpp",
--- MAME_DIR .. "src/mame/video/vigilant.cpp",
--- MAME_DIR .. "src/mame/machine/irem_cpu.cpp",
--- MAME_DIR .. "src/mame/audio/irem.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "itech")
--- files {
--- MAME_DIR .. "src/mame/drivers/capbowl.cpp",
--- MAME_DIR .. "src/mame/video/capbowl.cpp",
--- MAME_DIR .. "src/mame/drivers/itech8.cpp",
--- MAME_DIR .. "src/mame/machine/slikshot.cpp",
--- MAME_DIR .. "src/mame/video/itech8.cpp",
--- MAME_DIR .. "src/mame/drivers/itech32.cpp",
--- MAME_DIR .. "src/mame/video/itech32.cpp",
--- MAME_DIR .. "src/mame/drivers/iteagle.cpp",
--- MAME_DIR .. "src/mame/machine/iteagle_fpga.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "jaleco")
--- files {
--- MAME_DIR .. "src/mame/drivers/aeroboto.cpp",
--- MAME_DIR .. "src/mame/video/aeroboto.cpp",
--- MAME_DIR .. "src/mame/drivers/argus.cpp",
--- MAME_DIR .. "src/mame/video/argus.cpp",
--- MAME_DIR .. "src/mame/drivers/bestleag.cpp",
--- MAME_DIR .. "src/mame/drivers/bigstrkb.cpp",
--- MAME_DIR .. "src/mame/video/bigstrkb.cpp",
--- MAME_DIR .. "src/mame/drivers/blueprnt.cpp",
--- MAME_DIR .. "src/mame/video/blueprnt.cpp",
--- MAME_DIR .. "src/mame/drivers/bnstars.cpp",
--- MAME_DIR .. "src/mame/drivers/cischeat.cpp",
--- MAME_DIR .. "src/mame/video/cischeat.cpp",
--- MAME_DIR .. "src/mame/drivers/citycon.cpp",
--- MAME_DIR .. "src/mame/video/citycon.cpp",
--- MAME_DIR .. "src/mame/drivers/ddayjlc.cpp",
--- MAME_DIR .. "src/mame/drivers/exerion.cpp",
--- MAME_DIR .. "src/mame/video/exerion.cpp",
--- MAME_DIR .. "src/mame/drivers/fcombat.cpp",
--- MAME_DIR .. "src/mame/video/fcombat.cpp",
--- MAME_DIR .. "src/mame/drivers/ginganin.cpp",
--- MAME_DIR .. "src/mame/video/ginganin.cpp",
--- MAME_DIR .. "src/mame/drivers/homerun.cpp",
--- MAME_DIR .. "src/mame/video/homerun.cpp",
--- MAME_DIR .. "src/mame/drivers/megasys1.cpp",
--- MAME_DIR .. "src/mame/video/megasys1.cpp",
--- MAME_DIR .. "src/mame/drivers/momoko.cpp",
--- MAME_DIR .. "src/mame/video/momoko.cpp",
--- MAME_DIR .. "src/mame/drivers/ms32.cpp",
--- MAME_DIR .. "src/mame/video/ms32.cpp",
--- MAME_DIR .. "src/mame/drivers/psychic5.cpp",
--- MAME_DIR .. "src/mame/video/psychic5.cpp",
--- MAME_DIR .. "src/mame/drivers/pturn.cpp",
--- MAME_DIR .. "src/mame/drivers/skyfox.cpp",
--- MAME_DIR .. "src/mame/video/skyfox.cpp",
--- MAME_DIR .. "src/mame/drivers/tetrisp2.cpp",
--- MAME_DIR .. "src/mame/video/tetrisp2.cpp",
--- MAME_DIR .. "src/mame/machine/jalcrpt.cpp",
--- MAME_DIR .. "src/mame/video/jalblend.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "jpm")
--- files {
--- MAME_DIR .. "src/mame/drivers/guab.cpp",
--- MAME_DIR .. "src/mame/drivers/jpmsys5.cpp",
--- MAME_DIR .. "src/mame/drivers/jpmsys5sw.cpp",
--- MAME_DIR .. "src/mame/drivers/jpmmps.cpp",
--- MAME_DIR .. "src/mame/drivers/jpms80.cpp",
--- MAME_DIR .. "src/mame/drivers/jpmsru.cpp",
--- MAME_DIR .. "src/mame/drivers/jpmimpct.cpp",
--- MAME_DIR .. "src/mame/video/jpmimpct.cpp",
--- MAME_DIR .. "src/mame/drivers/jpmimpctsw.cpp",
--- MAME_DIR .. "src/mame/drivers/pluto5.cpp",
--- MAME_DIR .. "src/mame/drivers/jpmsys7.cpp",
--- MAME_DIR .. "src/mame/video/awpvid.cpp",
--- MAME_DIR .. "src/mame/machine/meters.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "kaneko")
--- files {
--- MAME_DIR .. "src/mame/drivers/airbustr.cpp",
--- MAME_DIR .. "src/mame/video/airbustr.cpp",
--- MAME_DIR .. "src/mame/drivers/djboy.cpp",
--- MAME_DIR .. "src/mame/video/djboy.cpp",
--- MAME_DIR .. "src/mame/drivers/expro02.cpp",
--- MAME_DIR .. "src/mame/drivers/galpanic.cpp",
--- MAME_DIR .. "src/mame/video/galpanic.cpp",
--- MAME_DIR .. "src/mame/drivers/galpani2.cpp",
--- MAME_DIR .. "src/mame/video/galpani2.cpp",
--- MAME_DIR .. "src/mame/drivers/galpani3.cpp",
--- MAME_DIR .. "src/mame/video/kaneko_grap2.cpp",
--- MAME_DIR .. "src/mame/drivers/hvyunit.cpp",
--- MAME_DIR .. "src/mame/drivers/jchan.cpp",
--- MAME_DIR .. "src/mame/drivers/kaneko16.cpp",
--- MAME_DIR .. "src/mame/video/kaneko16.cpp",
--- MAME_DIR .. "src/mame/video/kaneko_tmap.cpp",
--- MAME_DIR .. "src/mame/video/kaneko_spr.cpp",
--- MAME_DIR .. "src/mame/machine/kaneko_hit.cpp",
--- MAME_DIR .. "src/mame/machine/kaneko_calc3.cpp",
--- MAME_DIR .. "src/mame/machine/kaneko_toybox.cpp",
--- MAME_DIR .. "src/mame/drivers/sandscrp.cpp",
--- MAME_DIR .. "src/mame/drivers/suprnova.cpp",
--- MAME_DIR .. "src/mame/video/suprnova.cpp",
--- MAME_DIR .. "src/mame/video/sknsspr.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "konami")
--- files {
--- MAME_DIR .. "src/mame/drivers/88games.cpp",
--- MAME_DIR .. "src/mame/video/88games.cpp",
--- MAME_DIR .. "src/mame/drivers/ajax.cpp",
--- MAME_DIR .. "src/mame/machine/ajax.cpp",
--- MAME_DIR .. "src/mame/video/ajax.cpp",
--- MAME_DIR .. "src/mame/drivers/aliens.cpp",
--- MAME_DIR .. "src/mame/video/aliens.cpp",
--- MAME_DIR .. "src/mame/drivers/asterix.cpp",
--- MAME_DIR .. "src/mame/video/asterix.cpp",
--- MAME_DIR .. "src/mame/drivers/battlnts.cpp",
--- MAME_DIR .. "src/mame/video/battlnts.cpp",
--- MAME_DIR .. "src/mame/drivers/bishi.cpp",
--- MAME_DIR .. "src/mame/video/bishi.cpp",
--- MAME_DIR .. "src/mame/drivers/bladestl.cpp",
--- MAME_DIR .. "src/mame/video/bladestl.cpp",
--- MAME_DIR .. "src/mame/drivers/blockhl.cpp",
--- MAME_DIR .. "src/mame/drivers/bottom9.cpp",
--- MAME_DIR .. "src/mame/video/bottom9.cpp",
--- MAME_DIR .. "src/mame/drivers/chqflag.cpp",
--- MAME_DIR .. "src/mame/video/chqflag.cpp",
--- MAME_DIR .. "src/mame/drivers/circusc.cpp",
--- MAME_DIR .. "src/mame/video/circusc.cpp",
--- MAME_DIR .. "src/mame/drivers/cobra.cpp",
--- MAME_DIR .. "src/mame/drivers/combatsc.cpp",
--- MAME_DIR .. "src/mame/video/combatsc.cpp",
--- MAME_DIR .. "src/mame/drivers/contra.cpp",
--- MAME_DIR .. "src/mame/video/contra.cpp",
--- MAME_DIR .. "src/mame/drivers/crimfght.cpp",
--- MAME_DIR .. "src/mame/video/crimfght.cpp",
--- MAME_DIR .. "src/mame/drivers/dbz.cpp",
--- MAME_DIR .. "src/mame/video/dbz.cpp",
--- MAME_DIR .. "src/mame/drivers/ddribble.cpp",
--- MAME_DIR .. "src/mame/video/ddribble.cpp",
--- MAME_DIR .. "src/mame/drivers/djmain.cpp",
--- MAME_DIR .. "src/mame/video/djmain.cpp",
--- MAME_DIR .. "src/mame/drivers/fastfred.cpp",
--- MAME_DIR .. "src/mame/video/fastfred.cpp",
--- MAME_DIR .. "src/mame/drivers/fastlane.cpp",
--- MAME_DIR .. "src/mame/video/fastlane.cpp",
--- MAME_DIR .. "src/mame/drivers/finalizr.cpp",
--- MAME_DIR .. "src/mame/video/finalizr.cpp",
--- MAME_DIR .. "src/mame/drivers/firebeat.cpp",
--- MAME_DIR .. "src/mame/machine/midikbd.cpp",
--- MAME_DIR .. "src/mame/drivers/flkatck.cpp",
--- MAME_DIR .. "src/mame/video/flkatck.cpp",
--- MAME_DIR .. "src/mame/drivers/gberet.cpp",
--- MAME_DIR .. "src/mame/video/gberet.cpp",
--- MAME_DIR .. "src/mame/drivers/gijoe.cpp",
--- MAME_DIR .. "src/mame/video/gijoe.cpp",
--- MAME_DIR .. "src/mame/drivers/gradius3.cpp",
--- MAME_DIR .. "src/mame/video/gradius3.cpp",
--- MAME_DIR .. "src/mame/drivers/gticlub.cpp",
--- MAME_DIR .. "src/mame/drivers/gyruss.cpp",
--- MAME_DIR .. "src/mame/video/gyruss.cpp",
--- MAME_DIR .. "src/mame/drivers/hcastle.cpp",
--- MAME_DIR .. "src/mame/video/hcastle.cpp",
--- MAME_DIR .. "src/mame/drivers/hexion.cpp",
--- MAME_DIR .. "src/mame/video/hexion.cpp",
--- MAME_DIR .. "src/mame/drivers/hornet.cpp",
--- MAME_DIR .. "src/mame/machine/konppc.cpp",
--- MAME_DIR .. "src/mame/drivers/hyperspt.cpp",
--- MAME_DIR .. "src/mame/audio/hyprolyb.cpp",
--- MAME_DIR .. "src/mame/video/hyperspt.cpp",
--- MAME_DIR .. "src/mame/drivers/ironhors.cpp",
--- MAME_DIR .. "src/mame/video/ironhors.cpp",
--- MAME_DIR .. "src/mame/drivers/jackal.cpp",
--- MAME_DIR .. "src/mame/video/jackal.cpp",
--- MAME_DIR .. "src/mame/drivers/jailbrek.cpp",
--- MAME_DIR .. "src/mame/video/jailbrek.cpp",
--- MAME_DIR .. "src/mame/drivers/junofrst.cpp",
--- MAME_DIR .. "src/mame/drivers/konamigq.cpp",
--- MAME_DIR .. "src/mame/drivers/konamigv.cpp",
--- MAME_DIR .. "src/mame/drivers/konamigx.cpp",
--- MAME_DIR .. "src/mame/machine/konamigx.cpp",
--- MAME_DIR .. "src/mame/video/konamigx.cpp",
--- MAME_DIR .. "src/mame/drivers/konamim2.cpp",
--- MAME_DIR .. "src/mame/drivers/kontest.cpp",
--- MAME_DIR .. "src/mame/drivers/konendev.cpp",
--- MAME_DIR .. "src/mame/drivers/ksys573.cpp",
--- MAME_DIR .. "src/mame/machine/k573cass.cpp",
--- MAME_DIR .. "src/mame/machine/k573dio.cpp",
--- MAME_DIR .. "src/mame/machine/k573mcr.cpp",
--- MAME_DIR .. "src/mame/machine/k573msu.cpp",
--- MAME_DIR .. "src/mame/machine/k573npu.cpp",
--- MAME_DIR .. "src/mame/machine/zs01.cpp",
--- MAME_DIR .. "src/mame/drivers/labyrunr.cpp",
--- MAME_DIR .. "src/mame/video/labyrunr.cpp",
--- MAME_DIR .. "src/mame/drivers/lethal.cpp",
--- MAME_DIR .. "src/mame/video/lethal.cpp",
--- MAME_DIR .. "src/mame/drivers/mainevt.cpp",
--- MAME_DIR .. "src/mame/video/mainevt.cpp",
--- MAME_DIR .. "src/mame/drivers/megazone.cpp",
--- MAME_DIR .. "src/mame/video/megazone.cpp",
--- MAME_DIR .. "src/mame/drivers/mikie.cpp",
--- MAME_DIR .. "src/mame/video/mikie.cpp",
--- MAME_DIR .. "src/mame/drivers/mogura.cpp",
--- MAME_DIR .. "src/mame/drivers/moo.cpp",
--- MAME_DIR .. "src/mame/video/moo.cpp",
--- MAME_DIR .. "src/mame/drivers/mystwarr.cpp",
--- MAME_DIR .. "src/mame/video/mystwarr.cpp",
--- MAME_DIR .. "src/mame/drivers/nemesis.cpp",
--- MAME_DIR .. "src/mame/video/nemesis.cpp",
--- MAME_DIR .. "src/mame/drivers/nwk-tr.cpp",
--- MAME_DIR .. "src/mame/drivers/overdriv.cpp",
--- MAME_DIR .. "src/mame/video/overdriv.cpp",
--- MAME_DIR .. "src/mame/drivers/pandoras.cpp",
--- MAME_DIR .. "src/mame/video/pandoras.cpp",
--- MAME_DIR .. "src/mame/drivers/parodius.cpp",
--- MAME_DIR .. "src/mame/video/parodius.cpp",
--- MAME_DIR .. "src/mame/drivers/pingpong.cpp",
--- MAME_DIR .. "src/mame/video/pingpong.cpp",
--- MAME_DIR .. "src/mame/drivers/plygonet.cpp",
--- MAME_DIR .. "src/mame/video/plygonet.cpp",
--- MAME_DIR .. "src/mame/drivers/pooyan.cpp",
--- MAME_DIR .. "src/mame/video/pooyan.cpp",
--- MAME_DIR .. "src/mame/drivers/pyson.cpp",
--- MAME_DIR .. "src/mame/drivers/qdrmfgp.cpp",
--- MAME_DIR .. "src/mame/video/qdrmfgp.cpp",
--- MAME_DIR .. "src/mame/drivers/rockrage.cpp",
--- MAME_DIR .. "src/mame/video/rockrage.cpp",
--- MAME_DIR .. "src/mame/drivers/rocnrope.cpp",
--- MAME_DIR .. "src/mame/video/rocnrope.cpp",
--- MAME_DIR .. "src/mame/drivers/rollerg.cpp",
--- MAME_DIR .. "src/mame/video/rollerg.cpp",
--- MAME_DIR .. "src/mame/drivers/rungun.cpp",
--- MAME_DIR .. "src/mame/video/rungun.cpp",
--- MAME_DIR .. "src/mame/drivers/sbasketb.cpp",
--- MAME_DIR .. "src/mame/video/sbasketb.cpp",
--- MAME_DIR .. "src/mame/drivers/scobra.cpp",
--- MAME_DIR .. "src/mame/drivers/scotrsht.cpp",
--- MAME_DIR .. "src/mame/video/scotrsht.cpp",
--- MAME_DIR .. "src/mame/drivers/scramble.cpp",
--- MAME_DIR .. "src/mame/machine/scramble.cpp",
--- MAME_DIR .. "src/mame/audio/scramble.cpp",
--- MAME_DIR .. "src/mame/drivers/shaolins.cpp",
--- MAME_DIR .. "src/mame/video/shaolins.cpp",
--- MAME_DIR .. "src/mame/drivers/simpsons.cpp",
--- MAME_DIR .. "src/mame/machine/simpsons.cpp",
--- MAME_DIR .. "src/mame/video/simpsons.cpp",
--- MAME_DIR .. "src/mame/drivers/spy.cpp",
--- MAME_DIR .. "src/mame/video/spy.cpp",
--- MAME_DIR .. "src/mame/drivers/surpratk.cpp",
--- MAME_DIR .. "src/mame/video/surpratk.cpp",
--- MAME_DIR .. "src/mame/drivers/tasman.cpp",
--- MAME_DIR .. "src/mame/drivers/tgtpanic.cpp",
--- MAME_DIR .. "src/mame/drivers/thunderx.cpp",
--- MAME_DIR .. "src/mame/video/thunderx.cpp",
--- MAME_DIR .. "src/mame/drivers/timeplt.cpp",
--- MAME_DIR .. "src/mame/audio/timeplt.cpp",
--- MAME_DIR .. "src/mame/video/timeplt.cpp",
--- MAME_DIR .. "src/mame/drivers/tmnt.cpp",
--- MAME_DIR .. "src/mame/video/tmnt.cpp",
--- MAME_DIR .. "src/mame/drivers/tp84.cpp",
--- MAME_DIR .. "src/mame/video/tp84.cpp",
--- MAME_DIR .. "src/mame/drivers/trackfld.cpp",
--- MAME_DIR .. "src/mame/machine/konami1.cpp",
--- MAME_DIR .. "src/mame/audio/trackfld.cpp",
--- MAME_DIR .. "src/mame/video/trackfld.cpp",
--- MAME_DIR .. "src/mame/drivers/tutankhm.cpp",
--- MAME_DIR .. "src/mame/video/tutankhm.cpp",
--- MAME_DIR .. "src/mame/drivers/twin16.cpp",
--- MAME_DIR .. "src/mame/video/twin16.cpp",
--- MAME_DIR .. "src/mame/drivers/twinkle.cpp",
--- MAME_DIR .. "src/mame/drivers/ultrsprt.cpp",
--- MAME_DIR .. "src/mame/drivers/ultraman.cpp",
--- MAME_DIR .. "src/mame/video/ultraman.cpp",
--- MAME_DIR .. "src/mame/drivers/vendetta.cpp",
--- MAME_DIR .. "src/mame/video/vendetta.cpp",
--- MAME_DIR .. "src/mame/drivers/viper.cpp",
--- MAME_DIR .. "src/mame/drivers/wecleman.cpp",
--- MAME_DIR .. "src/mame/video/wecleman.cpp",
--- MAME_DIR .. "src/mame/drivers/xexex.cpp",
--- MAME_DIR .. "src/mame/video/xexex.cpp",
--- MAME_DIR .. "src/mame/drivers/xmen.cpp",
--- MAME_DIR .. "src/mame/video/xmen.cpp",
--- MAME_DIR .. "src/mame/drivers/yiear.cpp",
--- MAME_DIR .. "src/mame/video/yiear.cpp",
--- MAME_DIR .. "src/mame/drivers/zr107.cpp",
--- MAME_DIR .. "src/mame/video/konami_helper.cpp",
--- MAME_DIR .. "src/mame/video/k007121.cpp",
--- MAME_DIR .. "src/mame/video/k007342.cpp",
--- MAME_DIR .. "src/mame/video/k007420.cpp",
--- MAME_DIR .. "src/mame/video/k037122.cpp",
--- MAME_DIR .. "src/mame/video/k051316.cpp",
--- MAME_DIR .. "src/mame/video/k051733.cpp",
--- MAME_DIR .. "src/mame/video/k051960.cpp",
--- MAME_DIR .. "src/mame/video/k052109.cpp",
--- MAME_DIR .. "src/mame/video/k053250.cpp",
--- MAME_DIR .. "src/mame/video/k053251.cpp",
--- MAME_DIR .. "src/mame/video/k054156_k054157_k056832.cpp",
--- MAME_DIR .. "src/mame/video/k053244_k053245.cpp",
--- MAME_DIR .. "src/mame/video/k053246_k053247_k055673.cpp",
--- MAME_DIR .. "src/mame/video/k055555.cpp",
--- MAME_DIR .. "src/mame/video/k054000.cpp",
--- MAME_DIR .. "src/mame/video/k054338.cpp",
--- MAME_DIR .. "src/mame/video/k053936.cpp",
--- MAME_DIR .. "src/mame/video/k001006.cpp",
--- MAME_DIR .. "src/mame/video/k001005.cpp",
--- MAME_DIR .. "src/mame/video/k001604.cpp",
--- MAME_DIR .. "src/mame/video/k057714.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "matic")
--- files {
--- MAME_DIR .. "src/mame/drivers/barata.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "maygay")
--- files {
--- MAME_DIR .. "src/mame/drivers/maygay1b.cpp",
--- MAME_DIR .. "src/mame/drivers/maygay1bsw.cpp",
--- MAME_DIR .. "src/mame/drivers/maygayv1.cpp",
--- MAME_DIR .. "src/mame/drivers/maygayep.cpp",
--- MAME_DIR .. "src/mame/drivers/maygaysw.cpp",
--- MAME_DIR .. "src/mame/drivers/mmm.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "meadows")
--- files {
--- MAME_DIR .. "src/mame/drivers/lazercmd.cpp",
--- MAME_DIR .. "src/mame/video/lazercmd.cpp",
--- MAME_DIR .. "src/mame/drivers/meadwttl.cpp",
--- MAME_DIR .. "src/mame/drivers/meadows.cpp",
--- MAME_DIR .. "src/mame/audio/meadows.cpp",
--- MAME_DIR .. "src/mame/video/meadows.cpp",
--- MAME_DIR .. "src/mame/drivers/warpsped.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "merit")
--- files {
--- MAME_DIR .. "src/mame/drivers/mgames.cpp",
--- MAME_DIR .. "src/mame/drivers/merit.cpp",
--- MAME_DIR .. "src/mame/drivers/meritm.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "metro")
--- files {
--- MAME_DIR .. "src/mame/drivers/hyprduel.cpp",
--- MAME_DIR .. "src/mame/video/hyprduel.cpp",
--- MAME_DIR .. "src/mame/drivers/metro.cpp",
--- MAME_DIR .. "src/mame/video/metro.cpp",
--- MAME_DIR .. "src/mame/drivers/rabbit.cpp",
--- MAME_DIR .. "src/mame/drivers/tmmjprd.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "midcoin")
--- files {
--- MAME_DIR .. "src/mame/drivers/wallc.cpp",
--- MAME_DIR .. "src/mame/drivers/wink.cpp",
--- MAME_DIR .. "src/mame/drivers/24cdjuke.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "midw8080")
--- files {
--- MAME_DIR .. "src/mame/drivers/8080bw.cpp",
--- MAME_DIR .. "src/mame/audio/8080bw.cpp",
--- MAME_DIR .. "src/mame/video/8080bw.cpp",
--- MAME_DIR .. "src/mame/drivers/m79amb.cpp",
--- MAME_DIR .. "src/mame/audio/m79amb.cpp",
--- MAME_DIR .. "src/mame/drivers/mw8080bw.cpp",
--- MAME_DIR .. "src/mame/machine/mw8080bw.cpp",
--- MAME_DIR .. "src/mame/audio/mw8080bw.cpp",
--- MAME_DIR .. "src/mame/video/mw8080bw.cpp",
--- MAME_DIR .. "src/mame/drivers/rotaryf.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "midway")
--- files {
--- MAME_DIR .. "src/mame/drivers/astrocde.cpp",
--- MAME_DIR .. "src/mame/video/astrocde.cpp",
--- MAME_DIR .. "src/mame/audio/gorf.cpp",
--- MAME_DIR .. "src/mame/audio/wow.cpp",
--- MAME_DIR .. "src/mame/drivers/atlantis.cpp",
--- MAME_DIR .. "src/mame/drivers/balsente.cpp",
--- MAME_DIR .. "src/mame/machine/balsente.cpp",
--- MAME_DIR .. "src/mame/video/balsente.cpp",
--- MAME_DIR .. "src/mame/drivers/gridlee.cpp",
--- MAME_DIR .. "src/mame/audio/gridlee.cpp",
--- MAME_DIR .. "src/mame/video/gridlee.cpp",
--- MAME_DIR .. "src/mame/drivers/mcr.cpp",
--- MAME_DIR .. "src/mame/machine/mcr.cpp",
--- MAME_DIR .. "src/mame/video/mcr.cpp",
--- MAME_DIR .. "src/mame/drivers/mcr3.cpp",
--- MAME_DIR .. "src/mame/video/mcr3.cpp",
--- MAME_DIR .. "src/mame/drivers/mcr68.cpp",
--- MAME_DIR .. "src/mame/machine/mcr68.cpp",
--- MAME_DIR .. "src/mame/video/mcr68.cpp",
--- MAME_DIR .. "src/mame/drivers/midqslvr.cpp",
--- MAME_DIR .. "src/mame/drivers/midtunit.cpp",
--- MAME_DIR .. "src/mame/machine/midtunit.cpp",
--- MAME_DIR .. "src/mame/video/midtunit.cpp",
--- MAME_DIR .. "src/mame/drivers/midvunit.cpp",
--- MAME_DIR .. "src/mame/video/midvunit.cpp",
--- MAME_DIR .. "src/mame/drivers/midwunit.cpp",
--- MAME_DIR .. "src/mame/machine/midwunit.cpp",
--- MAME_DIR .. "src/mame/drivers/midxunit.cpp",
--- MAME_DIR .. "src/mame/machine/midxunit.cpp",
--- MAME_DIR .. "src/mame/drivers/midyunit.cpp",
--- MAME_DIR .. "src/mame/machine/midyunit.cpp",
--- MAME_DIR .. "src/mame/video/midyunit.cpp",
--- MAME_DIR .. "src/mame/drivers/midzeus.cpp",
--- MAME_DIR .. "src/mame/video/midzeus.cpp",
--- MAME_DIR .. "src/mame/video/midzeus2.cpp",
--- MAME_DIR .. "src/mame/drivers/mw18w.cpp",
--- MAME_DIR .. "src/mame/drivers/mwsub.cpp",
--- MAME_DIR .. "src/mame/drivers/omegrace.cpp",
--- MAME_DIR .. "src/mame/drivers/pinball2k.cpp",
--- MAME_DIR .. "src/mame/drivers/seattle.cpp",
--- MAME_DIR .. "src/mame/drivers/sspeedr.cpp",
--- MAME_DIR .. "src/mame/video/sspeedr.cpp",
--- MAME_DIR .. "src/mame/drivers/tmaster.cpp",
--- MAME_DIR .. "src/mame/drivers/vegas.cpp",
--- MAME_DIR .. "src/mame/drivers/wmg.cpp",
--- MAME_DIR .. "src/mame/drivers/williams.cpp",
--- MAME_DIR .. "src/mame/machine/williams.cpp",
--- MAME_DIR .. "src/mame/audio/williams.cpp",
--- MAME_DIR .. "src/mame/video/williams.cpp",
--- MAME_DIR .. "src/mame/machine/midwayic.cpp",
--- MAME_DIR .. "src/mame/audio/midway.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "namco")
--- files {
--- MAME_DIR .. "src/mame/drivers/20pacgal.cpp",
--- MAME_DIR .. "src/mame/video/20pacgal.cpp",
--- MAME_DIR .. "src/mame/drivers/30test.cpp",
--- MAME_DIR .. "src/mame/drivers/baraduke.cpp",
--- MAME_DIR .. "src/mame/video/baraduke.cpp",
--- MAME_DIR .. "src/mame/drivers/cswat.cpp",
--- MAME_DIR .. "src/mame/drivers/dambustr.cpp",
--- MAME_DIR .. "src/mame/drivers/gal3.cpp",
--- MAME_DIR .. "src/mame/drivers/galaga.cpp",
--- MAME_DIR .. "src/mame/audio/galaga.cpp",
--- MAME_DIR .. "src/mame/video/galaga.cpp",
--- MAME_DIR .. "src/mame/video/bosco.cpp",
--- MAME_DIR .. "src/mame/video/digdug.cpp",
--- MAME_DIR .. "src/mame/machine/xevious.cpp",
--- MAME_DIR .. "src/mame/video/xevious.cpp",
--- MAME_DIR .. "src/mame/drivers/galaxian.cpp",
--- MAME_DIR .. "src/mame/audio/galaxian.cpp",
--- MAME_DIR .. "src/mame/video/galaxian.cpp",
--- MAME_DIR .. "src/mame/drivers/galaxold.cpp",
--- MAME_DIR .. "src/mame/machine/galaxold.cpp",
--- MAME_DIR .. "src/mame/video/galaxold.cpp",
--- MAME_DIR .. "src/mame/drivers/gaplus.cpp",
--- MAME_DIR .. "src/mame/machine/gaplus.cpp",
--- MAME_DIR .. "src/mame/video/gaplus.cpp",
--- MAME_DIR .. "src/mame/drivers/kungfur.cpp",
--- MAME_DIR .. "src/mame/drivers/mappy.cpp",
--- MAME_DIR .. "src/mame/video/mappy.cpp",
--- MAME_DIR .. "src/mame/drivers/namcofl.cpp",
--- MAME_DIR .. "src/mame/video/namcofl.cpp",
--- MAME_DIR .. "src/mame/drivers/namcoic.cpp",
--- MAME_DIR .. "src/mame/drivers/namcona1.cpp",
--- MAME_DIR .. "src/mame/video/namcona1.cpp",
--- MAME_DIR .. "src/mame/drivers/namconb1.cpp",
--- MAME_DIR .. "src/mame/video/namconb1.cpp",
--- MAME_DIR .. "src/mame/drivers/namcond1.cpp",
--- MAME_DIR .. "src/mame/machine/namcond1.cpp",
--- MAME_DIR .. "src/mame/video/ygv608.cpp",
--- MAME_DIR .. "src/mame/drivers/namcops2.cpp",
--- MAME_DIR .. "src/mame/drivers/namcos1.cpp",
--- MAME_DIR .. "src/mame/machine/namcos1.cpp",
--- MAME_DIR .. "src/mame/video/namcos1.cpp",
--- MAME_DIR .. "src/mame/drivers/namcos10.cpp",
--- MAME_DIR .. "src/mame/machine/ns10crypt.cpp",
--- MAME_DIR .. "src/mame/drivers/namcos11.cpp",
--- MAME_DIR .. "src/mame/machine/ns11prot.cpp",
--- MAME_DIR .. "src/mame/drivers/namcos12.cpp",
--- MAME_DIR .. "src/mame/machine/namco_settings.cpp",
--- MAME_DIR .. "src/mame/drivers/namcos2.cpp",
--- MAME_DIR .. "src/mame/machine/namcos2.cpp",
--- MAME_DIR .. "src/mame/video/namcos2.cpp",
--- MAME_DIR .. "src/mame/drivers/namcos21.cpp",
--- MAME_DIR .. "src/mame/video/namcos21.cpp",
--- MAME_DIR .. "src/mame/drivers/namcos22.cpp",
--- MAME_DIR .. "src/mame/video/namcos22.cpp",
--- MAME_DIR .. "src/mame/drivers/namcos23.cpp",
--- MAME_DIR .. "src/mame/drivers/namcos86.cpp",
--- MAME_DIR .. "src/mame/video/namcos86.cpp",
--- MAME_DIR .. "src/mame/drivers/pacland.cpp",
--- MAME_DIR .. "src/mame/video/pacland.cpp",
--- MAME_DIR .. "src/mame/drivers/polepos.cpp",
--- MAME_DIR .. "src/mame/audio/polepos.cpp",
--- MAME_DIR .. "src/mame/video/polepos.cpp",
--- MAME_DIR .. "src/mame/drivers/rallyx.cpp",
--- MAME_DIR .. "src/mame/video/rallyx.cpp",
--- MAME_DIR .. "src/mame/drivers/skykid.cpp",
--- MAME_DIR .. "src/mame/video/skykid.cpp",
--- MAME_DIR .. "src/mame/drivers/tankbatt.cpp",
--- MAME_DIR .. "src/mame/video/tankbatt.cpp",
--- MAME_DIR .. "src/mame/drivers/tceptor.cpp",
--- MAME_DIR .. "src/mame/video/tceptor.cpp",
--- MAME_DIR .. "src/mame/drivers/toypop.cpp",
--- MAME_DIR .. "src/mame/video/toypop.cpp",
--- MAME_DIR .. "src/mame/drivers/turrett.cpp",
--- MAME_DIR .. "src/mame/audio/turrett.cpp",
--- MAME_DIR .. "src/mame/video/turrett.cpp",
--- MAME_DIR .. "src/mame/drivers/warpwarp.cpp",
--- MAME_DIR .. "src/mame/audio/geebee.cpp",
--- MAME_DIR .. "src/mame/audio/warpwarp.cpp",
--- MAME_DIR .. "src/mame/video/warpwarp.cpp",
--- MAME_DIR .. "src/mame/machine/c117.cpp",
--- MAME_DIR .. "src/mame/machine/namcoio.cpp",
--- MAME_DIR .. "src/mame/machine/namco06.cpp",
--- MAME_DIR .. "src/mame/machine/namco50.cpp",
--- MAME_DIR .. "src/mame/machine/namco51.cpp",
--- MAME_DIR .. "src/mame/machine/namco53.cpp",
--- MAME_DIR .. "src/mame/machine/namco62.cpp",
--- MAME_DIR .. "src/mame/machine/namcomcu.cpp",
--- MAME_DIR .. "src/mame/audio/namco52.cpp",
--- MAME_DIR .. "src/mame/audio/namco54.cpp",
--- MAME_DIR .. "src/mame/video/c116.cpp",
--- MAME_DIR .. "src/mame/video/c45.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "nasco")
--- files {
--- MAME_DIR .. "src/mame/drivers/crgolf.cpp",
--- MAME_DIR .. "src/mame/video/crgolf.cpp",
--- MAME_DIR .. "src/mame/drivers/suprgolf.cpp",
--- }
-
-createMAMEProjects(_target, _subtarget, "neogeo")
-files {
- MAME_DIR .. "src/mame/drivers/neogeo.cpp",
- MAME_DIR .. "src/mame/video/neogeo.cpp",
- MAME_DIR .. "src/mame/drivers/neogeo_noslot.cpp",
- MAME_DIR .. "src/mame/video/neogeo_spr.cpp",
- MAME_DIR .. "src/mame/machine/neocrypt.cpp",
- MAME_DIR .. "src/mame/machine/ng_memcard.cpp",
-}
-
--- createMAMEProjects(_target, _subtarget, "nichibut")
--- files {
--- MAME_DIR .. "src/mame/drivers/armedf.cpp",
--- MAME_DIR .. "src/mame/video/armedf.cpp",
--- MAME_DIR .. "src/mame/drivers/cclimber.cpp",
--- MAME_DIR .. "src/mame/machine/cclimber.cpp",
--- MAME_DIR .. "src/mame/audio/cclimber.cpp",
--- MAME_DIR .. "src/mame/video/cclimber.cpp",
--- MAME_DIR .. "src/mame/drivers/clshroad.cpp",
--- MAME_DIR .. "src/mame/video/clshroad.cpp",
--- MAME_DIR .. "src/mame/drivers/csplayh5.cpp",
--- MAME_DIR .. "src/mame/drivers/cop01.cpp",
--- MAME_DIR .. "src/mame/video/cop01.cpp",
--- MAME_DIR .. "src/mame/drivers/dacholer.cpp",
--- MAME_DIR .. "src/mame/drivers/galivan.cpp",
--- MAME_DIR .. "src/mame/video/galivan.cpp",
--- MAME_DIR .. "src/mame/drivers/gomoku.cpp",
--- MAME_DIR .. "src/mame/audio/gomoku.cpp",
--- MAME_DIR .. "src/mame/video/gomoku.cpp",
--- MAME_DIR .. "src/mame/drivers/hyhoo.cpp",
--- MAME_DIR .. "src/mame/video/hyhoo.cpp",
--- MAME_DIR .. "src/mame/drivers/jangou.cpp",
--- MAME_DIR .. "src/mame/drivers/magmax.cpp",
--- MAME_DIR .. "src/mame/video/magmax.cpp",
--- MAME_DIR .. "src/mame/drivers/nbmj8688.cpp",
--- MAME_DIR .. "src/mame/video/nbmj8688.cpp",
--- MAME_DIR .. "src/mame/drivers/nbmj8891.cpp",
--- MAME_DIR .. "src/mame/video/nbmj8891.cpp",
--- MAME_DIR .. "src/mame/drivers/nbmj8900.cpp",
--- MAME_DIR .. "src/mame/video/nbmj8900.cpp",
--- MAME_DIR .. "src/mame/drivers/nbmj8991.cpp",
--- MAME_DIR .. "src/mame/video/nbmj8991.cpp",
--- MAME_DIR .. "src/mame/drivers/nbmj9195.cpp",
--- MAME_DIR .. "src/mame/video/nbmj9195.cpp",
--- MAME_DIR .. "src/mame/drivers/nightgal.cpp",
--- MAME_DIR .. "src/mame/drivers/niyanpai.cpp",
--- MAME_DIR .. "src/mame/video/niyanpai.cpp",
--- MAME_DIR .. "src/mame/drivers/pastelg.cpp",
--- MAME_DIR .. "src/mame/video/pastelg.cpp",
--- MAME_DIR .. "src/mame/drivers/seicross.cpp",
--- MAME_DIR .. "src/mame/video/seicross.cpp",
--- MAME_DIR .. "src/mame/drivers/terracre.cpp",
--- MAME_DIR .. "src/mame/video/terracre.cpp",
--- MAME_DIR .. "src/mame/drivers/tubep.cpp",
--- MAME_DIR .. "src/mame/video/tubep.cpp",
--- MAME_DIR .. "src/mame/drivers/wiping.cpp",
--- MAME_DIR .. "src/mame/audio/wiping.cpp",
--- MAME_DIR .. "src/mame/video/wiping.cpp",
--- MAME_DIR .. "src/mame/machine/nb1413m3.cpp",
--- MAME_DIR .. "src/mame/machine/nb1414m4.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "nintendo")
--- files {
--- MAME_DIR .. "src/mame/drivers/cham24.cpp",
--- MAME_DIR .. "src/mame/drivers/dkong.cpp",
--- MAME_DIR .. "src/mame/audio/dkong.cpp",
--- MAME_DIR .. "src/mame/video/dkong.cpp",
--- MAME_DIR .. "src/mame/drivers/mario.cpp",
--- MAME_DIR .. "src/mame/audio/mario.cpp",
--- MAME_DIR .. "src/mame/video/mario.cpp",
--- MAME_DIR .. "src/mame/drivers/mmagic.cpp",
--- MAME_DIR .. "src/mame/drivers/multigam.cpp",
--- MAME_DIR .. "src/mame/drivers/n8080.cpp",
--- MAME_DIR .. "src/mame/audio/n8080.cpp",
--- MAME_DIR .. "src/mame/video/n8080.cpp",
--- MAME_DIR .. "src/mame/drivers/nss.cpp",
--- MAME_DIR .. "src/mame/machine/snes.cpp",
--- MAME_DIR .. "src/mame/audio/snes_snd.cpp",
--- MAME_DIR .. "src/mame/drivers/playch10.cpp",
--- MAME_DIR .. "src/mame/machine/playch10.cpp",
--- MAME_DIR .. "src/mame/video/playch10.cpp",
--- MAME_DIR .. "src/mame/drivers/popeye.cpp",
--- MAME_DIR .. "src/mame/video/popeye.cpp",
--- MAME_DIR .. "src/mame/drivers/punchout.cpp",
--- MAME_DIR .. "src/mame/video/punchout.cpp",
--- MAME_DIR .. "src/mame/drivers/famibox.cpp",
--- MAME_DIR .. "src/mame/drivers/sfcbox.cpp",
--- MAME_DIR .. "src/mame/drivers/snesb.cpp",
--- MAME_DIR .. "src/mame/drivers/spacefb.cpp",
--- MAME_DIR .. "src/mame/audio/spacefb.cpp",
--- MAME_DIR .. "src/mame/video/spacefb.cpp",
--- MAME_DIR .. "src/mame/drivers/vsnes.cpp",
--- MAME_DIR .. "src/mame/machine/vsnes.cpp",
--- MAME_DIR .. "src/mame/video/vsnes.cpp",
--- MAME_DIR .. "src/mame/video/ppu2c0x.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "nix")
--- files {
--- MAME_DIR .. "src/mame/drivers/fitfight.cpp",
--- MAME_DIR .. "src/mame/video/fitfight.cpp",
--- MAME_DIR .. "src/mame/drivers/pirates.cpp",
--- MAME_DIR .. "src/mame/video/pirates.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "nmk")
--- files {
--- MAME_DIR .. "src/mame/drivers/acommand.cpp",
--- MAME_DIR .. "src/mame/drivers/cultures.cpp",
--- MAME_DIR .. "src/mame/drivers/ddealer.cpp",
--- MAME_DIR .. "src/mame/drivers/jalmah.cpp",
--- MAME_DIR .. "src/mame/drivers/macrossp.cpp",
--- MAME_DIR .. "src/mame/video/macrossp.cpp",
--- MAME_DIR .. "src/mame/drivers/nmk16.cpp",
--- MAME_DIR .. "src/mame/machine/nmk004.cpp",
--- MAME_DIR .. "src/mame/video/nmk16.cpp",
--- MAME_DIR .. "src/mame/drivers/quizdna.cpp",
--- MAME_DIR .. "src/mame/video/quizdna.cpp",
--- MAME_DIR .. "src/mame/drivers/quizpani.cpp",
--- MAME_DIR .. "src/mame/video/quizpani.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "olympia")
--- files {
--- MAME_DIR .. "src/mame/drivers/dday.cpp",
--- MAME_DIR .. "src/mame/video/dday.cpp",
--- MAME_DIR .. "src/mame/drivers/lbeach.cpp",
--- MAME_DIR .. "src/mame/drivers/monzagp.cpp",
--- MAME_DIR .. "src/mame/drivers/portrait.cpp",
--- MAME_DIR .. "src/mame/video/portrait.cpp",
--- MAME_DIR .. "src/mame/drivers/vega.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "omori")
--- files {
--- MAME_DIR .. "src/mame/drivers/battlex.cpp",
--- MAME_DIR .. "src/mame/video/battlex.cpp",
--- MAME_DIR .. "src/mame/drivers/carjmbre.cpp",
--- MAME_DIR .. "src/mame/video/carjmbre.cpp",
--- MAME_DIR .. "src/mame/drivers/popper.cpp",
--- MAME_DIR .. "src/mame/video/popper.cpp",
--- MAME_DIR .. "src/mame/drivers/spaceg.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "orca")
--- files {
--- MAME_DIR .. "src/mame/drivers/espial.cpp",
--- MAME_DIR .. "src/mame/video/espial.cpp",
--- MAME_DIR .. "src/mame/drivers/funkybee.cpp",
--- MAME_DIR .. "src/mame/video/funkybee.cpp",
--- MAME_DIR .. "src/mame/drivers/marineb.cpp",
--- MAME_DIR .. "src/mame/video/marineb.cpp",
--- MAME_DIR .. "src/mame/drivers/vastar.cpp",
--- MAME_DIR .. "src/mame/video/vastar.cpp",
--- MAME_DIR .. "src/mame/drivers/zodiack.cpp",
--- MAME_DIR .. "src/mame/video/zodiack.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "pacific")
--- files {
--- MAME_DIR .. "src/mame/drivers/mrflea.cpp",
--- MAME_DIR .. "src/mame/video/mrflea.cpp",
--- MAME_DIR .. "src/mame/drivers/thief.cpp",
--- MAME_DIR .. "src/mame/video/thief.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "pacman")
--- files {
--- MAME_DIR .. "src/mame/drivers/jrpacman.cpp",
--- MAME_DIR .. "src/mame/drivers/pacman.cpp",
--- MAME_DIR .. "src/mame/video/pacman.cpp",
--- MAME_DIR .. "src/mame/machine/acitya.cpp",
--- MAME_DIR .. "src/mame/machine/jumpshot.cpp",
--- MAME_DIR .. "src/mame/machine/pacplus.cpp",
--- MAME_DIR .. "src/mame/machine/theglobp.cpp",
--- MAME_DIR .. "src/mame/drivers/pengo.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "pce")
--- files {
--- MAME_DIR .. "src/mame/drivers/ggconnie.cpp",
--- MAME_DIR .. "src/mame/drivers/paranoia.cpp",
--- MAME_DIR .. "src/mame/drivers/tourvis.cpp",
--- MAME_DIR .. "src/mame/drivers/uapce.cpp",
--- MAME_DIR .. "src/mame/machine/pcecommn.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "phoenix")
--- files {
--- MAME_DIR .. "src/mame/drivers/naughtyb.cpp",
--- MAME_DIR .. "src/mame/video/naughtyb.cpp",
--- MAME_DIR .. "src/mame/drivers/phoenix.cpp",
--- MAME_DIR .. "src/mame/audio/phoenix.cpp",
--- MAME_DIR .. "src/mame/video/phoenix.cpp",
--- MAME_DIR .. "src/mame/drivers/safarir.cpp",
--- MAME_DIR .. "src/mame/audio/pleiads.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "playmark")
--- files {
--- MAME_DIR .. "src/mame/drivers/drtomy.cpp",
--- MAME_DIR .. "src/mame/drivers/playmark.cpp",
--- MAME_DIR .. "src/mame/video/playmark.cpp",
--- MAME_DIR .. "src/mame/drivers/powerbal.cpp",
--- MAME_DIR .. "src/mame/drivers/sderby.cpp",
--- MAME_DIR .. "src/mame/video/sderby.cpp",
--- MAME_DIR .. "src/mame/drivers/sslam.cpp",
--- MAME_DIR .. "src/mame/video/sslam.cpp",
--- }
-
-createMAMEProjects(_target, _subtarget, "psikyo")
-files {
- MAME_DIR .. "src/mame/drivers/psikyo.cpp",
- MAME_DIR .. "src/mame/video/psikyo.cpp",
- MAME_DIR .. "src/mame/drivers/psikyo4.cpp",
- MAME_DIR .. "src/mame/video/psikyo4.cpp",
- MAME_DIR .. "src/mame/drivers/psikyosh.cpp",
- MAME_DIR .. "src/mame/video/psikyosh.cpp",
-}
-
--- createMAMEProjects(_target, _subtarget, "ramtek")
--- files {
--- MAME_DIR .. "src/mame/drivers/hitme.cpp",
--- MAME_DIR .. "src/mame/audio/hitme.cpp",
--- MAME_DIR .. "src/mame/drivers/ramtek.cpp",
--- MAME_DIR .. "src/mame/drivers/starcrus.cpp",
--- MAME_DIR .. "src/mame/video/starcrus.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "rare")
--- files {
--- MAME_DIR .. "src/mame/drivers/btoads.cpp",
--- MAME_DIR .. "src/mame/video/btoads.cpp",
--- MAME_DIR .. "src/mame/drivers/kinst.cpp",
--- MAME_DIR .. "src/mame/drivers/xtheball.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "sanritsu")
--- files {
--- MAME_DIR .. "src/mame/drivers/appoooh.cpp",
--- MAME_DIR .. "src/mame/video/appoooh.cpp",
--- MAME_DIR .. "src/mame/drivers/bankp.cpp",
--- MAME_DIR .. "src/mame/video/bankp.cpp",
--- MAME_DIR .. "src/mame/drivers/chinsan.cpp",
--- MAME_DIR .. "src/mame/drivers/drmicro.cpp",
--- MAME_DIR .. "src/mame/video/drmicro.cpp",
--- MAME_DIR .. "src/mame/drivers/jantotsu.cpp",
--- MAME_DIR .. "src/mame/drivers/mayumi.cpp",
--- MAME_DIR .. "src/mame/drivers/mermaid.cpp",
--- MAME_DIR .. "src/mame/video/mermaid.cpp",
--- MAME_DIR .. "src/mame/drivers/mjkjidai.cpp",
--- MAME_DIR .. "src/mame/video/mjkjidai.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "sega")
--- files {
--- MAME_DIR .. "src/mame/drivers/angelkds.cpp",
--- MAME_DIR .. "src/mame/video/angelkds.cpp",
--- MAME_DIR .. "src/mame/drivers/bingoc.cpp",
--- MAME_DIR .. "src/mame/drivers/blockade.cpp",
--- MAME_DIR .. "src/mame/audio/blockade.cpp",
--- MAME_DIR .. "src/mame/video/blockade.cpp",
--- MAME_DIR .. "src/mame/drivers/calorie.cpp",
--- MAME_DIR .. "src/mame/drivers/chihiro.cpp",
--- MAME_DIR .. "src/mame/video/chihiro.cpp",
--- MAME_DIR .. "src/mame/drivers/coolridr.cpp",
--- MAME_DIR .. "src/mame/drivers/deniam.cpp",
--- MAME_DIR .. "src/mame/video/deniam.cpp",
--- MAME_DIR .. "src/mame/drivers/dotrikun.cpp",
--- MAME_DIR .. "src/mame/drivers/gpworld.cpp",
--- MAME_DIR .. "src/mame/drivers/hikaru.cpp",
--- MAME_DIR .. "src/mame/drivers/hshavoc.cpp",
--- MAME_DIR .. "src/mame/drivers/kopunch.cpp",
--- MAME_DIR .. "src/mame/video/kopunch.cpp",
--- MAME_DIR .. "src/mame/drivers/lindbergh.cpp",
--- MAME_DIR .. "src/mame/machine/segabb.cpp",
--- MAME_DIR .. "src/mame/machine/megadriv.cpp",
--- MAME_DIR .. "src/mame/drivers/megadrvb.cpp",
--- MAME_DIR .. "src/mame/drivers/megaplay.cpp",
--- MAME_DIR .. "src/mame/drivers/megatech.cpp",
--- MAME_DIR .. "src/mame/drivers/model1.cpp",
--- MAME_DIR .. "src/mame/machine/model1.cpp",
--- MAME_DIR .. "src/mame/video/model1.cpp",
--- MAME_DIR .. "src/mame/machine/s32comm.cpp",
--- MAME_DIR .. "src/mame/machine/m1comm.cpp",
--- MAME_DIR .. "src/mame/audio/dsbz80.cpp",
--- MAME_DIR .. "src/mame/drivers/model2.cpp",
--- MAME_DIR .. "src/mame/video/model2.cpp",
--- MAME_DIR .. "src/mame/drivers/model3.cpp",
--- MAME_DIR .. "src/mame/video/model3.cpp",
--- MAME_DIR .. "src/mame/machine/model3.cpp",
--- MAME_DIR .. "src/mame/drivers/monacogp.cpp",
--- MAME_DIR .. "src/mame/drivers/naomi.cpp",
--- MAME_DIR .. "src/mame/drivers/segasp.cpp",
--- MAME_DIR .. "src/mame/machine/dc.cpp",
--- MAME_DIR .. "src/mame/video/powervr2.cpp",
--- MAME_DIR .. "src/mame/machine/naomi.cpp",
--- MAME_DIR .. "src/mame/machine/naomig1.cpp",
--- MAME_DIR .. "src/mame/machine/naomibd.cpp",
--- MAME_DIR .. "src/mame/machine/naomirom.cpp",
--- MAME_DIR .. "src/mame/machine/naomigd.cpp",
--- MAME_DIR .. "src/mame/machine/naomim1.cpp",
--- MAME_DIR .. "src/mame/machine/naomim2.cpp",
--- MAME_DIR .. "src/mame/machine/naomim4.cpp",
--- MAME_DIR .. "src/mame/machine/315-5881_crypt.cpp",
--- MAME_DIR .. "src/mame/machine/awboard.cpp",
--- MAME_DIR .. "src/mame/machine/mie.cpp",
--- MAME_DIR .. "src/mame/machine/maple-dc.cpp",
--- MAME_DIR .. "src/mame/machine/mapledev.cpp",
--- MAME_DIR .. "src/mame/machine/dc-ctrl.cpp",
--- MAME_DIR .. "src/mame/machine/jvs13551.cpp",
--- MAME_DIR .. "src/mame/drivers/triforce.cpp",
--- MAME_DIR .. "src/mame/drivers/puckpkmn.cpp",
--- MAME_DIR .. "src/mame/drivers/segac2.cpp",
--- MAME_DIR .. "src/mame/drivers/segae.cpp",
--- MAME_DIR .. "src/mame/drivers/shtzone.cpp",
--- MAME_DIR .. "src/mame/drivers/segacoin.cpp",
--- MAME_DIR .. "src/mame/drivers/segag80r.cpp",
--- MAME_DIR .. "src/mame/machine/segag80.cpp",
--- MAME_DIR .. "src/mame/audio/segag80r.cpp",
--- MAME_DIR .. "src/mame/video/segag80r.cpp",
--- MAME_DIR .. "src/mame/drivers/segag80v.cpp",
--- MAME_DIR .. "src/mame/audio/segag80v.cpp",
--- MAME_DIR .. "src/mame/video/segag80v.cpp",
--- MAME_DIR .. "src/mame/drivers/segahang.cpp",
--- MAME_DIR .. "src/mame/video/segahang.cpp",
--- MAME_DIR .. "src/mame/drivers/segajw.cpp",
--- MAME_DIR .. "src/mame/drivers/segald.cpp",
--- MAME_DIR .. "src/mame/drivers/segaorun.cpp",
--- MAME_DIR .. "src/mame/video/segaorun.cpp",
--- MAME_DIR .. "src/mame/drivers/segas16a.cpp",
--- MAME_DIR .. "src/mame/video/segas16a.cpp",
--- MAME_DIR .. "src/mame/drivers/segas16b.cpp",
--- MAME_DIR .. "src/mame/video/segas16b.cpp",
--- MAME_DIR .. "src/mame/drivers/segas18.cpp",
--- MAME_DIR .. "src/mame/video/segas18.cpp",
--- MAME_DIR .. "src/mame/drivers/segas24.cpp",
--- MAME_DIR .. "src/mame/video/segas24.cpp",
--- MAME_DIR .. "src/mame/drivers/segam1.cpp",
--- MAME_DIR .. "src/mame/drivers/segas32.cpp",
--- MAME_DIR .. "src/mame/machine/segas32.cpp",
--- MAME_DIR .. "src/mame/video/segas32.cpp",
--- MAME_DIR .. "src/mame/drivers/segaufo.cpp",
--- MAME_DIR .. "src/mame/drivers/segaxbd.cpp",
--- MAME_DIR .. "src/mame/video/segaxbd.cpp",
--- MAME_DIR .. "src/mame/drivers/segaybd.cpp",
--- MAME_DIR .. "src/mame/video/segaybd.cpp",
--- MAME_DIR .. "src/mame/drivers/sg1000a.cpp",
--- MAME_DIR .. "src/mame/drivers/stactics.cpp",
--- MAME_DIR .. "src/mame/video/stactics.cpp",
--- MAME_DIR .. "src/mame/drivers/stv.cpp",
--- MAME_DIR .. "src/mame/machine/stvprot.cpp",
--- MAME_DIR .. "src/mame/machine/315-5838_317-0229_comp.cpp",
--- MAME_DIR .. "src/mame/drivers/suprloco.cpp",
--- MAME_DIR .. "src/mame/video/suprloco.cpp",
--- MAME_DIR .. "src/mame/drivers/system1.cpp",
--- MAME_DIR .. "src/mame/video/system1.cpp",
--- MAME_DIR .. "src/mame/drivers/system16.cpp",
--- MAME_DIR .. "src/mame/video/system16.cpp",
--- MAME_DIR .. "src/mame/drivers/timetrv.cpp",
--- MAME_DIR .. "src/mame/drivers/turbo.cpp",
--- MAME_DIR .. "src/mame/audio/turbo.cpp",
--- MAME_DIR .. "src/mame/video/turbo.cpp",
--- MAME_DIR .. "src/mame/drivers/vicdual.cpp",
--- MAME_DIR .. "src/mame/audio/vicdual.cpp",
--- MAME_DIR .. "src/mame/video/vicdual.cpp",
--- MAME_DIR .. "src/mame/audio/carnival.cpp",
--- MAME_DIR .. "src/mame/audio/depthch.cpp",
--- MAME_DIR .. "src/mame/audio/invinco.cpp",
--- MAME_DIR .. "src/mame/audio/pulsar.cpp",
--- MAME_DIR .. "src/mame/drivers/zaxxon.cpp",
--- MAME_DIR .. "src/mame/audio/zaxxon.cpp",
--- MAME_DIR .. "src/mame/video/zaxxon.cpp",
--- MAME_DIR .. "src/mame/machine/315_5296.cpp",
--- MAME_DIR .. "src/mame/machine/fd1089.cpp",
--- MAME_DIR .. "src/mame/machine/fd1094.cpp",
--- MAME_DIR .. "src/mame/machine/fddebug.cpp",
--- MAME_DIR .. "src/mame/machine/mc8123.cpp",
--- MAME_DIR .. "src/mame/machine/segaic16.cpp",
--- MAME_DIR .. "src/mame/audio/segasnd.cpp",
--- MAME_DIR .. "src/mame/video/segaic16.cpp",
--- MAME_DIR .. "src/mame/video/segaic16_road.cpp",
--- MAME_DIR .. "src/mame/video/sega16sp.cpp",
--- MAME_DIR .. "src/mame/video/segaic24.cpp",
--- MAME_DIR .. "src/mame/machine/gdrom.cpp",
--- MAME_DIR .. "src/mame/machine/xbox.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "seibu")
--- files {
--- MAME_DIR .. "src/mame/drivers/bloodbro.cpp",
--- MAME_DIR .. "src/mame/video/bloodbro.cpp",
--- MAME_DIR .. "src/mame/drivers/cabal.cpp",
--- MAME_DIR .. "src/mame/video/cabal.cpp",
--- MAME_DIR .. "src/mame/drivers/cshooter.cpp",
--- MAME_DIR .. "src/mame/drivers/dcon.cpp",
--- MAME_DIR .. "src/mame/video/dcon.cpp",
--- MAME_DIR .. "src/mame/drivers/deadang.cpp",
--- MAME_DIR .. "src/mame/video/deadang.cpp",
--- MAME_DIR .. "src/mame/drivers/dynduke.cpp",
--- MAME_DIR .. "src/mame/video/dynduke.cpp",
--- MAME_DIR .. "src/mame/drivers/feversoc.cpp",
--- MAME_DIR .. "src/mame/drivers/goal92.cpp",
--- MAME_DIR .. "src/mame/video/goal92.cpp",
--- MAME_DIR .. "src/mame/drivers/goodejan.cpp",
--- MAME_DIR .. "src/mame/drivers/kncljoe.cpp",
--- MAME_DIR .. "src/mame/video/kncljoe.cpp",
--- MAME_DIR .. "src/mame/drivers/legionna.cpp",
--- MAME_DIR .. "src/mame/video/legionna.cpp",
--- MAME_DIR .. "src/mame/drivers/mustache.cpp",
--- MAME_DIR .. "src/mame/video/mustache.cpp",
--- MAME_DIR .. "src/mame/drivers/panicr.cpp",
--- MAME_DIR .. "src/mame/drivers/raiden.cpp",
--- MAME_DIR .. "src/mame/video/raiden.cpp",
--- MAME_DIR .. "src/mame/drivers/raiden2.cpp",
--- MAME_DIR .. "src/mame/machine/r2crypt.cpp",
--- MAME_DIR .. "src/mame/machine/raiden2cop.cpp",
--- MAME_DIR .. "src/mame/drivers/r2dx_v33.cpp",
--- MAME_DIR .. "src/mame/drivers/seibuspi.cpp",
--- MAME_DIR .. "src/mame/machine/seibuspi.cpp",
--- MAME_DIR .. "src/mame/video/seibuspi.cpp",
--- MAME_DIR .. "src/mame/drivers/sengokmj.cpp",
--- MAME_DIR .. "src/mame/drivers/stfight.cpp",
--- MAME_DIR .. "src/mame/machine/stfight.cpp",
--- MAME_DIR .. "src/mame/video/stfight.cpp",
--- MAME_DIR .. "src/mame/drivers/toki.cpp",
--- MAME_DIR .. "src/mame/video/toki.cpp",
--- MAME_DIR .. "src/mame/drivers/wiz.cpp",
--- MAME_DIR .. "src/mame/video/wiz.cpp",
--- MAME_DIR .. "src/mame/machine/seicop.cpp",
--- MAME_DIR .. "src/mame/machine/spisprit.cpp",
--- MAME_DIR .. "src/mame/audio/seibu.cpp",
--- MAME_DIR .. "src/mame/video/seibu_crtc.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "seta")
--- files {
--- MAME_DIR .. "src/mame/drivers/aleck64.cpp",
--- MAME_DIR .. "src/mame/machine/n64.cpp",
--- MAME_DIR .. "src/mame/video/n64.cpp",
--- MAME_DIR .. "src/mame/video/rdpblend.cpp",
--- MAME_DIR .. "src/mame/video/rdptpipe.cpp",
--- MAME_DIR .. "src/mame/drivers/hanaawas.cpp",
--- MAME_DIR .. "src/mame/video/hanaawas.cpp",
--- MAME_DIR .. "src/mame/drivers/jclub2.cpp",
--- MAME_DIR .. "src/mame/drivers/macs.cpp",
--- MAME_DIR .. "src/mame/drivers/seta.cpp",
--- MAME_DIR .. "src/mame/video/seta.cpp",
--- MAME_DIR .. "src/mame/drivers/seta2.cpp",
--- MAME_DIR .. "src/mame/video/seta2.cpp",
--- MAME_DIR .. "src/mame/drivers/speedatk.cpp",
--- MAME_DIR .. "src/mame/video/speedatk.cpp",
--- MAME_DIR .. "src/mame/drivers/speglsht.cpp",
--- MAME_DIR .. "src/mame/drivers/srmp2.cpp",
--- MAME_DIR .. "src/mame/video/srmp2.cpp",
--- MAME_DIR .. "src/mame/drivers/srmp5.cpp",
--- MAME_DIR .. "src/mame/drivers/srmp6.cpp",
--- MAME_DIR .. "src/mame/drivers/ssv.cpp",
--- MAME_DIR .. "src/mame/video/ssv.cpp",
--- MAME_DIR .. "src/mame/video/st0020.cpp",
--- MAME_DIR .. "src/mame/machine/st0016.cpp",
--- MAME_DIR .. "src/mame/drivers/simple_st0016.cpp",
--- MAME_DIR .. "src/mame/video/seta001.cpp",
--- MAME_DIR .. "src/mame/drivers/thedealr.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "sigma")
--- files {
--- MAME_DIR .. "src/mame/drivers/nyny.cpp",
--- MAME_DIR .. "src/mame/drivers/r2dtank.cpp",
--- MAME_DIR .. "src/mame/drivers/sigmab52.cpp",
--- MAME_DIR .. "src/mame/drivers/sigmab98.cpp",
--- MAME_DIR .. "src/mame/drivers/spiders.cpp",
--- MAME_DIR .. "src/mame/audio/spiders.cpp",
--- MAME_DIR .. "src/mame/drivers/sub.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "snk")
--- files {
--- MAME_DIR .. "src/mame/drivers/bbusters.cpp",
--- MAME_DIR .. "src/mame/video/bbusters.cpp",
--- MAME_DIR .. "src/mame/drivers/dmndrby.cpp",
--- MAME_DIR .. "src/mame/drivers/hng64.cpp",
--- MAME_DIR .. "src/mame/video/hng64.cpp",
--- MAME_DIR .. "src/mame/audio/hng64.cpp",
--- MAME_DIR .. "src/mame/machine/hng64_net.cpp",
--- MAME_DIR .. "src/mame/video/hng64_3d.cpp",
--- MAME_DIR .. "src/mame/video/hng64_sprite.cpp",
--- MAME_DIR .. "src/mame/drivers/lasso.cpp",
--- MAME_DIR .. "src/mame/video/lasso.cpp",
--- MAME_DIR .. "src/mame/drivers/mainsnk.cpp",
--- MAME_DIR .. "src/mame/video/mainsnk.cpp",
--- MAME_DIR .. "src/mame/drivers/munchmo.cpp",
--- MAME_DIR .. "src/mame/video/munchmo.cpp",
--- MAME_DIR .. "src/mame/drivers/prehisle.cpp",
--- MAME_DIR .. "src/mame/video/prehisle.cpp",
--- MAME_DIR .. "src/mame/drivers/snk6502.cpp",
--- MAME_DIR .. "src/mame/audio/snk6502.cpp",
--- MAME_DIR .. "src/mame/video/snk6502.cpp",
--- MAME_DIR .. "src/mame/drivers/snk.cpp",
--- MAME_DIR .. "src/mame/video/snk.cpp",
--- MAME_DIR .. "src/mame/drivers/snk68.cpp",
--- MAME_DIR .. "src/mame/video/snk68.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "sony")
--- files {
--- MAME_DIR .. "src/mame/drivers/zn.cpp",
--- MAME_DIR .. "src/mame/machine/zndip.cpp",
--- MAME_DIR .. "src/mame/machine/cat702.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "stern")
--- files {
--- MAME_DIR .. "src/mame/drivers/astinvad.cpp",
--- MAME_DIR .. "src/mame/drivers/berzerk.cpp",
--- MAME_DIR .. "src/mame/drivers/cliffhgr.cpp",
--- MAME_DIR .. "src/mame/audio/cliffhgr.cpp",
--- MAME_DIR .. "src/mame/drivers/mazerbla.cpp",
--- MAME_DIR .. "src/mame/drivers/supdrapo.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "subsino")
--- files {
--- MAME_DIR .. "src/mame/drivers/lastfght.cpp",
--- MAME_DIR .. "src/mame/drivers/subsino.cpp",
--- MAME_DIR .. "src/mame/drivers/subsino2.cpp",
--- MAME_DIR .. "src/mame/machine/subsino.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "sun")
--- files {
--- MAME_DIR .. "src/mame/drivers/arabian.cpp",
--- MAME_DIR .. "src/mame/video/arabian.cpp",
--- MAME_DIR .. "src/mame/drivers/dai3wksi.cpp",
--- MAME_DIR .. "src/mame/drivers/ikki.cpp",
--- MAME_DIR .. "src/mame/video/ikki.cpp",
--- MAME_DIR .. "src/mame/drivers/kangaroo.cpp",
--- MAME_DIR .. "src/mame/video/kangaroo.cpp",
--- MAME_DIR .. "src/mame/drivers/markham.cpp",
--- MAME_DIR .. "src/mame/video/markham.cpp",
--- MAME_DIR .. "src/mame/drivers/route16.cpp",
--- MAME_DIR .. "src/mame/video/route16.cpp",
--- MAME_DIR .. "src/mame/drivers/shanghai.cpp",
--- MAME_DIR .. "src/mame/drivers/shangha3.cpp",
--- MAME_DIR .. "src/mame/video/shangha3.cpp",
--- MAME_DIR .. "src/mame/drivers/strnskil.cpp",
--- MAME_DIR .. "src/mame/video/strnskil.cpp",
--- MAME_DIR .. "src/mame/drivers/tonton.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "suna")
--- files {
--- MAME_DIR .. "src/mame/drivers/go2000.cpp",
--- MAME_DIR .. "src/mame/drivers/goindol.cpp",
--- MAME_DIR .. "src/mame/video/goindol.cpp",
--- MAME_DIR .. "src/mame/drivers/suna8.cpp",
--- MAME_DIR .. "src/mame/audio/suna8.cpp",
--- MAME_DIR .. "src/mame/video/suna8.cpp",
--- MAME_DIR .. "src/mame/drivers/suna16.cpp",
--- MAME_DIR .. "src/mame/video/suna16.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "sure")
--- files {
--- MAME_DIR .. "src/mame/drivers/mil4000.cpp",
-
--- }
-
--- createMAMEProjects(_target, _subtarget, "taito")
--- files {
--- MAME_DIR .. "src/mame/drivers/2mindril.cpp",
--- MAME_DIR .. "src/mame/drivers/40love.cpp",
--- MAME_DIR .. "src/mame/video/40love.cpp",
--- MAME_DIR .. "src/mame/drivers/arkanoid.cpp",
--- MAME_DIR .. "src/mame/machine/arkanoid.cpp",
--- MAME_DIR .. "src/mame/video/arkanoid.cpp",
--- MAME_DIR .. "src/mame/drivers/ashnojoe.cpp",
--- MAME_DIR .. "src/mame/video/ashnojoe.cpp",
--- MAME_DIR .. "src/mame/drivers/asuka.cpp",
--- MAME_DIR .. "src/mame/machine/bonzeadv.cpp",
--- MAME_DIR .. "src/mame/video/asuka.cpp",
--- MAME_DIR .. "src/mame/drivers/bigevglf.cpp",
--- MAME_DIR .. "src/mame/machine/bigevglf.cpp",
--- MAME_DIR .. "src/mame/video/bigevglf.cpp",
--- MAME_DIR .. "src/mame/drivers/bking.cpp",
--- MAME_DIR .. "src/mame/video/bking.cpp",
--- MAME_DIR .. "src/mame/drivers/bublbobl.cpp",
--- MAME_DIR .. "src/mame/machine/bublbobl.cpp",
--- MAME_DIR .. "src/mame/video/bublbobl.cpp",
--- MAME_DIR .. "src/mame/drivers/buggychl.cpp",
--- MAME_DIR .. "src/mame/machine/buggychl.cpp",
--- MAME_DIR .. "src/mame/video/buggychl.cpp",
--- MAME_DIR .. "src/mame/drivers/capr1.cpp",
--- MAME_DIR .. "src/mame/drivers/caprcyc.cpp",
--- MAME_DIR .. "src/mame/drivers/cchance.cpp",
--- MAME_DIR .. "src/mame/drivers/chaknpop.cpp",
--- MAME_DIR .. "src/mame/machine/chaknpop.cpp",
--- MAME_DIR .. "src/mame/video/chaknpop.cpp",
--- MAME_DIR .. "src/mame/drivers/champbwl.cpp",
--- MAME_DIR .. "src/mame/drivers/changela.cpp",
--- MAME_DIR .. "src/mame/video/changela.cpp",
--- MAME_DIR .. "src/mame/drivers/crbaloon.cpp",
--- MAME_DIR .. "src/mame/video/crbaloon.cpp",
--- MAME_DIR .. "src/mame/audio/crbaloon.cpp",
--- MAME_DIR .. "src/mame/drivers/cyclemb.cpp",
--- MAME_DIR .. "src/mame/drivers/darius.cpp",
--- MAME_DIR .. "src/mame/video/darius.cpp",
--- MAME_DIR .. "src/mame/drivers/darkmist.cpp",
--- MAME_DIR .. "src/mame/video/darkmist.cpp",
--- MAME_DIR .. "src/mame/drivers/exzisus.cpp",
--- MAME_DIR .. "src/mame/video/exzisus.cpp",
--- MAME_DIR .. "src/mame/drivers/fgoal.cpp",
--- MAME_DIR .. "src/mame/video/fgoal.cpp",
--- MAME_DIR .. "src/mame/drivers/flstory.cpp",
--- MAME_DIR .. "src/mame/machine/flstory.cpp",
--- MAME_DIR .. "src/mame/video/flstory.cpp",
--- MAME_DIR .. "src/mame/drivers/galastrm.cpp",
--- MAME_DIR .. "src/mame/video/galastrm.cpp",
--- MAME_DIR .. "src/mame/drivers/gladiatr.cpp",
--- MAME_DIR .. "src/mame/video/gladiatr.cpp",
--- MAME_DIR .. "src/mame/drivers/grchamp.cpp",
--- MAME_DIR .. "src/mame/audio/grchamp.cpp",
--- MAME_DIR .. "src/mame/video/grchamp.cpp",
--- MAME_DIR .. "src/mame/drivers/groundfx.cpp",
--- MAME_DIR .. "src/mame/video/groundfx.cpp",
--- MAME_DIR .. "src/mame/drivers/gsword.cpp",
--- MAME_DIR .. "src/mame/machine/tait8741.cpp",
--- MAME_DIR .. "src/mame/video/gsword.cpp",
--- MAME_DIR .. "src/mame/drivers/gunbustr.cpp",
--- MAME_DIR .. "src/mame/video/gunbustr.cpp",
--- MAME_DIR .. "src/mame/drivers/halleys.cpp",
--- MAME_DIR .. "src/mame/drivers/invqix.cpp",
--- MAME_DIR .. "src/mame/drivers/jollyjgr.cpp",
--- MAME_DIR .. "src/mame/drivers/ksayakyu.cpp",
--- MAME_DIR .. "src/mame/video/ksayakyu.cpp",
--- MAME_DIR .. "src/mame/drivers/lgp.cpp",
--- MAME_DIR .. "src/mame/drivers/lkage.cpp",
--- MAME_DIR .. "src/mame/machine/lkage.cpp",
--- MAME_DIR .. "src/mame/video/lkage.cpp",
--- MAME_DIR .. "src/mame/drivers/lsasquad.cpp",
--- MAME_DIR .. "src/mame/machine/lsasquad.cpp",
--- MAME_DIR .. "src/mame/video/lsasquad.cpp",
--- MAME_DIR .. "src/mame/drivers/marinedt.cpp",
--- MAME_DIR .. "src/mame/drivers/mexico86.cpp",
--- MAME_DIR .. "src/mame/machine/mexico86.cpp",
--- MAME_DIR .. "src/mame/video/mexico86.cpp",
--- MAME_DIR .. "src/mame/drivers/minivadr.cpp",
--- MAME_DIR .. "src/mame/drivers/missb2.cpp",
--- MAME_DIR .. "src/mame/drivers/mlanding.cpp",
--- MAME_DIR .. "src/mame/drivers/msisaac.cpp",
--- MAME_DIR .. "src/mame/video/msisaac.cpp",
--- MAME_DIR .. "src/mame/drivers/ninjaw.cpp",
--- MAME_DIR .. "src/mame/video/ninjaw.cpp",
--- MAME_DIR .. "src/mame/drivers/nycaptor.cpp",
--- MAME_DIR .. "src/mame/machine/nycaptor.cpp",
--- MAME_DIR .. "src/mame/video/nycaptor.cpp",
--- MAME_DIR .. "src/mame/drivers/opwolf.cpp",
--- MAME_DIR .. "src/mame/machine/opwolf.cpp",
--- MAME_DIR .. "src/mame/video/opwolf.cpp",
--- MAME_DIR .. "src/mame/drivers/othunder.cpp",
--- MAME_DIR .. "src/mame/video/othunder.cpp",
--- MAME_DIR .. "src/mame/drivers/pitnrun.cpp",
--- MAME_DIR .. "src/mame/machine/pitnrun.cpp",
--- MAME_DIR .. "src/mame/video/pitnrun.cpp",
--- MAME_DIR .. "src/mame/drivers/qix.cpp",
--- MAME_DIR .. "src/mame/machine/qix.cpp",
--- MAME_DIR .. "src/mame/audio/qix.cpp",
--- MAME_DIR .. "src/mame/video/qix.cpp",
--- MAME_DIR .. "src/mame/drivers/rbisland.cpp",
--- MAME_DIR .. "src/mame/machine/rbisland.cpp",
--- MAME_DIR .. "src/mame/video/rbisland.cpp",
--- MAME_DIR .. "src/mame/drivers/rastan.cpp",
--- MAME_DIR .. "src/mame/video/rastan.cpp",
--- MAME_DIR .. "src/mame/drivers/retofinv.cpp",
--- MAME_DIR .. "src/mame/machine/retofinv.cpp",
--- MAME_DIR .. "src/mame/video/retofinv.cpp",
--- MAME_DIR .. "src/mame/drivers/rollrace.cpp",
--- MAME_DIR .. "src/mame/video/rollrace.cpp",
--- MAME_DIR .. "src/mame/drivers/sbowling.cpp",
--- MAME_DIR .. "src/mame/drivers/slapshot.cpp",
--- MAME_DIR .. "src/mame/video/slapshot.cpp",
--- MAME_DIR .. "src/mame/drivers/ssrj.cpp",
--- MAME_DIR .. "src/mame/video/ssrj.cpp",
--- MAME_DIR .. "src/mame/drivers/superchs.cpp",
--- MAME_DIR .. "src/mame/video/superchs.cpp",
--- MAME_DIR .. "src/mame/drivers/superqix.cpp",
--- MAME_DIR .. "src/mame/video/superqix.cpp",
--- MAME_DIR .. "src/mame/drivers/taito_b.cpp",
--- MAME_DIR .. "src/mame/video/taito_b.cpp",
--- MAME_DIR .. "src/mame/drivers/taito_f2.cpp",
--- MAME_DIR .. "src/mame/video/taito_f2.cpp",
--- MAME_DIR .. "src/mame/drivers/taito_f3.cpp",
--- MAME_DIR .. "src/mame/video/taito_f3.cpp",
--- MAME_DIR .. "src/mame/audio/taito_en.cpp",
--- MAME_DIR .. "src/mame/drivers/taito_h.cpp",
--- MAME_DIR .. "src/mame/video/taito_h.cpp",
--- MAME_DIR .. "src/mame/drivers/taito_l.cpp",
--- MAME_DIR .. "src/mame/video/taito_l.cpp",
--- MAME_DIR .. "src/mame/drivers/taito_x.cpp",
--- MAME_DIR .. "src/mame/machine/cchip.cpp",
--- MAME_DIR .. "src/mame/drivers/taito_z.cpp",
--- MAME_DIR .. "src/mame/video/taito_z.cpp",
--- MAME_DIR .. "src/mame/drivers/taito_o.cpp",
--- MAME_DIR .. "src/mame/video/taito_o.cpp",
--- MAME_DIR .. "src/mame/drivers/taitoair.cpp",
--- MAME_DIR .. "src/mame/video/taitoair.cpp",
--- MAME_DIR .. "src/mame/drivers/taitogn.cpp",
--- MAME_DIR .. "src/mame/drivers/taitojc.cpp",
--- MAME_DIR .. "src/mame/video/taitojc.cpp",
--- MAME_DIR .. "src/mame/drivers/taitopjc.cpp",
--- MAME_DIR .. "src/mame/drivers/taitosj.cpp",
--- MAME_DIR .. "src/mame/machine/taitosj.cpp",
--- MAME_DIR .. "src/mame/video/taitosj.cpp",
--- MAME_DIR .. "src/mame/drivers/taitottl.cpp",
--- MAME_DIR .. "src/mame/drivers/taitotz.cpp",
--- MAME_DIR .. "src/mame/drivers/taitotx.cpp",
--- MAME_DIR .. "src/mame/drivers/taitowlf.cpp",
--- MAME_DIR .. "src/mame/drivers/tnzs.cpp",
--- MAME_DIR .. "src/mame/machine/tnzs.cpp",
--- MAME_DIR .. "src/mame/video/tnzs.cpp",
--- MAME_DIR .. "src/mame/drivers/topspeed.cpp",
--- MAME_DIR .. "src/mame/video/topspeed.cpp",
--- MAME_DIR .. "src/mame/drivers/tsamurai.cpp",
--- MAME_DIR .. "src/mame/video/tsamurai.cpp",
--- MAME_DIR .. "src/mame/drivers/undrfire.cpp",
--- MAME_DIR .. "src/mame/video/undrfire.cpp",
--- MAME_DIR .. "src/mame/drivers/volfied.cpp",
--- MAME_DIR .. "src/mame/machine/volfied.cpp",
--- MAME_DIR .. "src/mame/video/volfied.cpp",
--- MAME_DIR .. "src/mame/drivers/warriorb.cpp",
--- MAME_DIR .. "src/mame/video/warriorb.cpp",
--- MAME_DIR .. "src/mame/drivers/wgp.cpp",
--- MAME_DIR .. "src/mame/video/wgp.cpp",
--- MAME_DIR .. "src/mame/drivers/wyvernf0.cpp",
--- MAME_DIR .. "src/mame/audio/taitosnd.cpp",
--- MAME_DIR .. "src/mame/audio/taito_zm.cpp",
--- MAME_DIR .. "src/mame/audio/t5182.cpp",
--- MAME_DIR .. "src/mame/machine/taitoio.cpp",
--- MAME_DIR .. "src/mame/video/taito_helper.cpp",
--- MAME_DIR .. "src/mame/video/pc080sn.cpp",
--- MAME_DIR .. "src/mame/video/pc090oj.cpp",
--- MAME_DIR .. "src/mame/video/tc0080vco.cpp",
--- MAME_DIR .. "src/mame/video/tc0100scn.cpp",
--- MAME_DIR .. "src/mame/video/tc0150rod.cpp",
--- MAME_DIR .. "src/mame/video/tc0280grd.cpp",
--- MAME_DIR .. "src/mame/video/tc0360pri.cpp",
--- MAME_DIR .. "src/mame/video/tc0480scp.cpp",
--- MAME_DIR .. "src/mame/video/tc0110pcr.cpp",
--- MAME_DIR .. "src/mame/video/tc0180vcu.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "tatsumi")
--- files {
--- MAME_DIR .. "src/mame/drivers/kingdrby.cpp",
--- MAME_DIR .. "src/mame/drivers/lockon.cpp",
--- MAME_DIR .. "src/mame/video/lockon.cpp",
--- MAME_DIR .. "src/mame/drivers/tatsumi.cpp",
--- MAME_DIR .. "src/mame/machine/tatsumi.cpp",
--- MAME_DIR .. "src/mame/video/tatsumi.cpp",
--- MAME_DIR .. "src/mame/drivers/tx1.cpp",
--- MAME_DIR .. "src/mame/machine/tx1.cpp",
--- MAME_DIR .. "src/mame/audio/tx1.cpp",
--- MAME_DIR .. "src/mame/video/tx1.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "tch")
--- files {
--- MAME_DIR .. "src/mame/drivers/kickgoal.cpp",
--- MAME_DIR .. "src/mame/video/kickgoal.cpp",
--- MAME_DIR .. "src/mame/drivers/littlerb.cpp",
--- MAME_DIR .. "src/mame/drivers/rltennis.cpp",
--- MAME_DIR .. "src/mame/video/rltennis.cpp",
--- MAME_DIR .. "src/mame/drivers/speedspn.cpp",
--- MAME_DIR .. "src/mame/video/speedspn.cpp",
--- MAME_DIR .. "src/mame/drivers/wheelfir.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "tecfri")
--- files {
--- MAME_DIR .. "src/mame/drivers/ambush.cpp",
--- MAME_DIR .. "src/mame/video/ambush.cpp",
--- MAME_DIR .. "src/mame/drivers/holeland.cpp",
--- MAME_DIR .. "src/mame/video/holeland.cpp",
--- MAME_DIR .. "src/mame/drivers/sauro.cpp",
--- MAME_DIR .. "src/mame/video/sauro.cpp",
--- MAME_DIR .. "src/mame/drivers/speedbal.cpp",
--- MAME_DIR .. "src/mame/video/speedbal.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "technos")
--- files {
--- MAME_DIR .. "src/mame/drivers/battlane.cpp",
--- MAME_DIR .. "src/mame/video/battlane.cpp",
--- MAME_DIR .. "src/mame/drivers/blockout.cpp",
--- MAME_DIR .. "src/mame/video/blockout.cpp",
--- MAME_DIR .. "src/mame/drivers/bogeyman.cpp",
--- MAME_DIR .. "src/mame/video/bogeyman.cpp",
--- MAME_DIR .. "src/mame/drivers/chinagat.cpp",
--- MAME_DIR .. "src/mame/drivers/ddragon.cpp",
--- MAME_DIR .. "src/mame/video/ddragon.cpp",
--- MAME_DIR .. "src/mame/drivers/ddragon3.cpp",
--- MAME_DIR .. "src/mame/video/ddragon3.cpp",
--- MAME_DIR .. "src/mame/drivers/dogfgt.cpp",
--- MAME_DIR .. "src/mame/video/dogfgt.cpp",
--- MAME_DIR .. "src/mame/drivers/matmania.cpp",
--- MAME_DIR .. "src/mame/video/matmania.cpp",
--- MAME_DIR .. "src/mame/drivers/mystston.cpp",
--- MAME_DIR .. "src/mame/video/mystston.cpp",
--- MAME_DIR .. "src/mame/drivers/renegade.cpp",
--- MAME_DIR .. "src/mame/video/renegade.cpp",
--- MAME_DIR .. "src/mame/drivers/scregg.cpp",
--- MAME_DIR .. "src/mame/drivers/shadfrce.cpp",
--- MAME_DIR .. "src/mame/video/shadfrce.cpp",
--- MAME_DIR .. "src/mame/drivers/spdodgeb.cpp",
--- MAME_DIR .. "src/mame/video/spdodgeb.cpp",
--- MAME_DIR .. "src/mame/drivers/ssozumo.cpp",
--- MAME_DIR .. "src/mame/video/ssozumo.cpp",
--- MAME_DIR .. "src/mame/drivers/tagteam.cpp",
--- MAME_DIR .. "src/mame/video/tagteam.cpp",
--- MAME_DIR .. "src/mame/drivers/vball.cpp",
--- MAME_DIR .. "src/mame/video/vball.cpp",
--- MAME_DIR .. "src/mame/drivers/wwfsstar.cpp",
--- MAME_DIR .. "src/mame/video/wwfsstar.cpp",
--- MAME_DIR .. "src/mame/drivers/xain.cpp",
--- MAME_DIR .. "src/mame/video/xain.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "tehkan")
--- files {
--- MAME_DIR .. "src/mame/video/tecmo_spr.cpp",
--- MAME_DIR .. "src/mame/video/tecmo_mix.cpp",
--- MAME_DIR .. "src/mame/drivers/bombjack.cpp",
--- MAME_DIR .. "src/mame/video/bombjack.cpp",
--- MAME_DIR .. "src/mame/drivers/gaiden.cpp",
--- MAME_DIR .. "src/mame/video/gaiden.cpp",
--- MAME_DIR .. "src/mame/drivers/lvcards.cpp",
--- MAME_DIR .. "src/mame/video/lvcards.cpp",
--- MAME_DIR .. "src/mame/drivers/pbaction.cpp",
--- MAME_DIR .. "src/mame/video/pbaction.cpp",
--- MAME_DIR .. "src/mame/drivers/senjyo.cpp",
--- MAME_DIR .. "src/mame/audio/senjyo.cpp",
--- MAME_DIR .. "src/mame/video/senjyo.cpp",
--- MAME_DIR .. "src/mame/drivers/solomon.cpp",
--- MAME_DIR .. "src/mame/video/solomon.cpp",
--- MAME_DIR .. "src/mame/drivers/spbactn.cpp",
--- MAME_DIR .. "src/mame/video/spbactn.cpp",
--- MAME_DIR .. "src/mame/drivers/tbowl.cpp",
--- MAME_DIR .. "src/mame/video/tbowl.cpp",
--- MAME_DIR .. "src/mame/drivers/tecmo.cpp",
--- MAME_DIR .. "src/mame/video/tecmo.cpp",
--- MAME_DIR .. "src/mame/drivers/tecmo16.cpp",
--- MAME_DIR .. "src/mame/video/tecmo16.cpp",
--- MAME_DIR .. "src/mame/drivers/tecmosys.cpp",
--- MAME_DIR .. "src/mame/machine/tecmosys.cpp",
--- MAME_DIR .. "src/mame/video/tecmosys.cpp",
--- MAME_DIR .. "src/mame/drivers/tehkanwc.cpp",
--- MAME_DIR .. "src/mame/video/tehkanwc.cpp",
--- MAME_DIR .. "src/mame/drivers/wc90.cpp",
--- MAME_DIR .. "src/mame/video/wc90.cpp",
--- MAME_DIR .. "src/mame/drivers/wc90b.cpp",
--- MAME_DIR .. "src/mame/video/wc90b.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "thepit")
--- files {
--- MAME_DIR .. "src/mame/drivers/thepit.cpp",
--- MAME_DIR .. "src/mame/video/thepit.cpp",
--- MAME_DIR .. "src/mame/drivers/timelimt.cpp",
--- MAME_DIR .. "src/mame/video/timelimt.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "toaplan")
--- files {
--- MAME_DIR .. "src/mame/drivers/mjsister.cpp",
--- MAME_DIR .. "src/mame/drivers/slapfght.cpp",
--- MAME_DIR .. "src/mame/machine/slapfght.cpp",
--- MAME_DIR .. "src/mame/video/slapfght.cpp",
--- MAME_DIR .. "src/mame/drivers/snowbros.cpp",
--- MAME_DIR .. "src/mame/video/kan_pand.cpp",
--- MAME_DIR .. "src/mame/video/kan_panb.cpp",
--- MAME_DIR .. "src/mame/drivers/toaplan1.cpp",
--- MAME_DIR .. "src/mame/machine/toaplan1.cpp",
--- MAME_DIR .. "src/mame/video/toaplan1.cpp",
--- MAME_DIR .. "src/mame/drivers/toaplan2.cpp",
--- MAME_DIR .. "src/mame/video/toaplan2.cpp",
--- MAME_DIR .. "src/mame/video/gp9001.cpp",
--- MAME_DIR .. "src/mame/drivers/twincobr.cpp",
--- MAME_DIR .. "src/mame/machine/twincobr.cpp",
--- MAME_DIR .. "src/mame/video/twincobr.cpp",
--- MAME_DIR .. "src/mame/drivers/wardner.cpp",
--- MAME_DIR .. "src/mame/video/toaplan_scu.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "tong")
--- files {
--- MAME_DIR .. "src/mame/drivers/beezer.cpp",
--- MAME_DIR .. "src/mame/machine/beezer.cpp",
--- MAME_DIR .. "src/mame/video/beezer.cpp",
--- MAME_DIR .. "src/mame/audio/beezer.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "unico")
--- files {
--- MAME_DIR .. "src/mame/drivers/drgnmst.cpp",
--- MAME_DIR .. "src/mame/video/drgnmst.cpp",
--- MAME_DIR .. "src/mame/drivers/silkroad.cpp",
--- MAME_DIR .. "src/mame/video/silkroad.cpp",
--- MAME_DIR .. "src/mame/drivers/unico.cpp",
--- MAME_DIR .. "src/mame/video/unico.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "univers")
--- files {
--- MAME_DIR .. "src/mame/drivers/cheekyms.cpp",
--- MAME_DIR .. "src/mame/video/cheekyms.cpp",
--- MAME_DIR .. "src/mame/drivers/cosmic.cpp",
--- MAME_DIR .. "src/mame/video/cosmic.cpp",
--- MAME_DIR .. "src/mame/drivers/docastle.cpp",
--- MAME_DIR .. "src/mame/machine/docastle.cpp",
--- MAME_DIR .. "src/mame/video/docastle.cpp",
--- MAME_DIR .. "src/mame/drivers/ladybug.cpp",
--- MAME_DIR .. "src/mame/video/ladybug.cpp",
--- MAME_DIR .. "src/mame/drivers/mrdo.cpp",
--- MAME_DIR .. "src/mame/video/mrdo.cpp",
--- MAME_DIR .. "src/mame/drivers/redclash.cpp",
--- MAME_DIR .. "src/mame/video/redclash.cpp",
--- MAME_DIR .. "src/mame/drivers/superdq.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "upl")
--- files {
--- MAME_DIR .. "src/mame/drivers/mouser.cpp",
--- MAME_DIR .. "src/mame/video/mouser.cpp",
--- MAME_DIR .. "src/mame/drivers/ninjakd2.cpp",
--- MAME_DIR .. "src/mame/video/ninjakd2.cpp",
--- MAME_DIR .. "src/mame/drivers/nova2001.cpp",
--- MAME_DIR .. "src/mame/video/nova2001.cpp",
--- MAME_DIR .. "src/mame/drivers/xxmissio.cpp",
--- MAME_DIR .. "src/mame/video/xxmissio.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "valadon")
--- files {
--- MAME_DIR .. "src/mame/drivers/bagman.cpp",
--- MAME_DIR .. "src/mame/machine/bagman.cpp",
--- MAME_DIR .. "src/mame/video/bagman.cpp",
--- MAME_DIR .. "src/mame/drivers/tankbust.cpp",
--- MAME_DIR .. "src/mame/video/tankbust.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "veltmjr")
--- files {
--- MAME_DIR .. "src/mame/drivers/cardline.cpp",
--- MAME_DIR .. "src/mame/drivers/witch.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "venture")
--- files {
--- MAME_DIR .. "src/mame/drivers/looping.cpp",
--- MAME_DIR .. "src/mame/drivers/spcforce.cpp",
--- MAME_DIR .. "src/mame/video/spcforce.cpp",
--- MAME_DIR .. "src/mame/drivers/suprridr.cpp",
--- MAME_DIR .. "src/mame/video/suprridr.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "vsystem")
--- files {
--- MAME_DIR .. "src/mame/video/vsystem_spr.cpp",
--- MAME_DIR .. "src/mame/video/vsystem_spr2.cpp",
--- MAME_DIR .. "src/mame/drivers/aerofgt.cpp",
--- MAME_DIR .. "src/mame/video/aerofgt.cpp",
--- MAME_DIR .. "src/mame/drivers/crshrace.cpp",
--- MAME_DIR .. "src/mame/video/crshrace.cpp",
--- MAME_DIR .. "src/mame/drivers/f1gp.cpp",
--- MAME_DIR .. "src/mame/video/f1gp.cpp",
--- MAME_DIR .. "src/mame/drivers/fromance.cpp",
--- MAME_DIR .. "src/mame/video/fromance.cpp",
--- MAME_DIR .. "src/mame/drivers/fromanc2.cpp",
--- MAME_DIR .. "src/mame/video/fromanc2.cpp",
--- MAME_DIR .. "src/mame/drivers/gstriker.cpp",
--- MAME_DIR .. "src/mame/video/gstriker.cpp",
--- MAME_DIR .. "src/mame/video/mb60553.cpp",
--- MAME_DIR .. "src/mame/video/vs920a.cpp",
--- MAME_DIR .. "src/mame/drivers/inufuku.cpp",
--- MAME_DIR .. "src/mame/video/inufuku.cpp",
--- MAME_DIR .. "src/mame/drivers/ojankohs.cpp",
--- MAME_DIR .. "src/mame/video/ojankohs.cpp",
--- MAME_DIR .. "src/mame/drivers/pipedrm.cpp",
--- MAME_DIR .. "src/mame/drivers/rpunch.cpp",
--- MAME_DIR .. "src/mame/video/rpunch.cpp",
--- MAME_DIR .. "src/mame/drivers/suprslam.cpp",
--- MAME_DIR .. "src/mame/video/suprslam.cpp",
--- MAME_DIR .. "src/mame/drivers/tail2nos.cpp",
--- MAME_DIR .. "src/mame/video/tail2nos.cpp",
--- MAME_DIR .. "src/mame/drivers/taotaido.cpp",
--- MAME_DIR .. "src/mame/video/taotaido.cpp",
--- MAME_DIR .. "src/mame/drivers/welltris.cpp",
--- MAME_DIR .. "src/mame/video/welltris.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "yunsung")
--- files {
--- MAME_DIR .. "src/mame/drivers/nmg5.cpp",
--- MAME_DIR .. "src/mame/drivers/paradise.cpp",
--- MAME_DIR .. "src/mame/video/paradise.cpp",
--- MAME_DIR .. "src/mame/drivers/yunsung8.cpp",
--- MAME_DIR .. "src/mame/video/yunsung8.cpp",
--- MAME_DIR .. "src/mame/drivers/yunsun16.cpp",
--- MAME_DIR .. "src/mame/video/yunsun16.cpp",
--- }
-
--- createMAMEProjects(_target, _subtarget, "zaccaria")
--- files {
--- MAME_DIR .. "src/mame/drivers/laserbat.cpp",
--- MAME_DIR .. "src/mame/audio/laserbat.cpp",
--- MAME_DIR .. "src/mame/drivers/seabattl.cpp",
--- MAME_DIR .. "src/mame/drivers/zac2650.cpp",
--- MAME_DIR .. "src/mame/video/zac2650.cpp",
--- MAME_DIR .. "src/mame/drivers/zaccaria.cpp",
--- MAME_DIR .. "src/mame/video/zaccaria.cpp",
--- }
-
---------------------------------------------------
--- pinball drivers
---------------------------------------------------
-
--- createMAMEProjects(_target, _subtarget, "pinball")
--- files {
--- MAME_DIR .. "src/mame/drivers/allied.cpp",
--- MAME_DIR .. "src/mame/drivers/alvg.cpp",
--- MAME_DIR .. "src/mame/drivers/atari_s1.cpp",
--- MAME_DIR .. "src/mame/drivers/atari_s2.cpp",
--- MAME_DIR .. "src/mame/drivers/bingo.cpp",
--- MAME_DIR .. "src/mame/drivers/by17.cpp",
--- MAME_DIR .. "src/mame/drivers/by35.cpp",
--- MAME_DIR .. "src/mame/drivers/by6803.cpp",
--- MAME_DIR .. "src/mame/drivers/by68701.cpp",
--- MAME_DIR .. "src/mame/drivers/byvid.cpp",
--- MAME_DIR .. "src/mame/drivers/capcom.cpp",
--- MAME_DIR .. "src/mame/drivers/de_2.cpp",
--- MAME_DIR .. "src/mame/drivers/de_3.cpp",
--- MAME_DIR .. "src/mame/machine/decopincpu.cpp",
--- MAME_DIR .. "src/mame/video/decodmd1.cpp",
--- MAME_DIR .. "src/mame/video/decodmd2.cpp",
--- MAME_DIR .. "src/mame/video/decodmd3.cpp",
--- MAME_DIR .. "src/mame/drivers/de_3b.cpp",
--- MAME_DIR .. "src/mame/drivers/flicker.cpp",
--- MAME_DIR .. "src/mame/drivers/g627.cpp",
--- MAME_DIR .. "src/mame/drivers/gp_1.cpp",
--- MAME_DIR .. "src/mame/machine/genpin.cpp",
--- MAME_DIR .. "src/mame/drivers/gp_2.cpp",
--- MAME_DIR .. "src/mame/drivers/gts1.cpp",
--- MAME_DIR .. "src/mame/drivers/gts3.cpp",
--- MAME_DIR .. "src/mame/drivers/gts3a.cpp",
--- MAME_DIR .. "src/mame/drivers/gts80.cpp",
--- MAME_DIR .. "src/mame/drivers/gts80a.cpp",
--- MAME_DIR .. "src/mame/drivers/gts80b.cpp",
--- MAME_DIR .. "src/mame/drivers/hankin.cpp",
--- MAME_DIR .. "src/mame/drivers/icecold.cpp",
--- MAME_DIR .. "src/mame/drivers/inder.cpp",
--- MAME_DIR .. "src/mame/drivers/jeutel.cpp",
--- MAME_DIR .. "src/mame/drivers/jp.cpp",
--- MAME_DIR .. "src/mame/drivers/jvh.cpp",
--- MAME_DIR .. "src/mame/drivers/kissproto.cpp",
--- MAME_DIR .. "src/mame/drivers/ltd.cpp",
--- MAME_DIR .. "src/mame/drivers/micropin.cpp",
--- MAME_DIR .. "src/mame/drivers/mephistp.cpp",
--- MAME_DIR .. "src/mame/drivers/mrgame.cpp",
--- MAME_DIR .. "src/mame/drivers/nsm.cpp",
--- MAME_DIR .. "src/mame/drivers/peyper.cpp",
--- MAME_DIR .. "src/mame/drivers/play_1.cpp",
--- MAME_DIR .. "src/mame/drivers/play_2.cpp",
--- MAME_DIR .. "src/mame/drivers/play_3.cpp",
--- MAME_DIR .. "src/mame/drivers/play_5.cpp",
--- MAME_DIR .. "src/mame/drivers/rowamet.cpp",
--- MAME_DIR .. "src/mame/drivers/s11.cpp",
--- MAME_DIR .. "src/mame/drivers/s11a.cpp",
--- MAME_DIR .. "src/mame/drivers/s11b.cpp",
--- MAME_DIR .. "src/mame/drivers/s11c.cpp",
--- MAME_DIR .. "src/mame/audio/s11c_bg.cpp",
--- MAME_DIR .. "src/mame/drivers/s3.cpp",
--- MAME_DIR .. "src/mame/drivers/s4.cpp",
--- MAME_DIR .. "src/mame/drivers/s6.cpp",
--- MAME_DIR .. "src/mame/drivers/s6a.cpp",
--- MAME_DIR .. "src/mame/drivers/s7.cpp",
--- MAME_DIR .. "src/mame/drivers/s8.cpp",
--- MAME_DIR .. "src/mame/drivers/s8a.cpp",
--- MAME_DIR .. "src/mame/drivers/s9.cpp",
--- MAME_DIR .. "src/mame/drivers/sam.cpp",
--- MAME_DIR .. "src/mame/drivers/sleic.cpp",
--- MAME_DIR .. "src/mame/drivers/spectra.cpp",
--- MAME_DIR .. "src/mame/drivers/spinb.cpp",
--- MAME_DIR .. "src/mame/drivers/st_mp100.cpp",
--- MAME_DIR .. "src/mame/drivers/st_mp200.cpp",
--- MAME_DIR .. "src/mame/drivers/taito.cpp",
--- MAME_DIR .. "src/mame/drivers/techno.cpp",
--- MAME_DIR .. "src/mame/drivers/vd.cpp",
--- MAME_DIR .. "src/mame/drivers/whitestar.cpp",
--- MAME_DIR .. "src/mame/drivers/white_mod.cpp",
--- MAME_DIR .. "src/mame/drivers/wico.cpp",
--- MAME_DIR .. "src/mame/drivers/wpc_95.cpp",
--- MAME_DIR .. "src/mame/drivers/wpc_an.cpp",
--- MAME_DIR .. "src/mame/drivers/wpc_dcs.cpp",
--- MAME_DIR .. "src/mame/drivers/wpc_dot.cpp",
--- MAME_DIR .. "src/mame/drivers/wpc_flip1.cpp",
--- MAME_DIR .. "src/mame/drivers/wpc_flip2.cpp",
--- MAME_DIR .. "src/mame/drivers/wpc_s.cpp",
--- MAME_DIR .. "src/mame/machine/wpc.cpp",
--- MAME_DIR .. "src/mame/audio/wpcsnd.cpp",
--- MAME_DIR .. "src/mame/video/wpc_dmd.cpp",
--- MAME_DIR .. "src/mame/machine/wpc_pic.cpp",
--- MAME_DIR .. "src/mame/machine/wpc_lamp.cpp",
--- MAME_DIR .. "src/mame/machine/wpc_out.cpp",
--- MAME_DIR .. "src/mame/machine/wpc_shift.cpp",
--- MAME_DIR .. "src/mame/drivers/zac_1.cpp",
--- MAME_DIR .. "src/mame/drivers/zac_2.cpp",
--- MAME_DIR .. "src/mame/drivers/zac_proto.cpp",
--- }
-
---------------------------------------------------
--- remaining drivers
---------------------------------------------------
-
--- createMAMEProjects(_target, _subtarget, "misc")
--- files {
--- MAME_DIR .. "src/mame/drivers/1945kiii.cpp",
--- MAME_DIR .. "src/mame/drivers/39in1.cpp",
--- MAME_DIR .. "src/mame/drivers/3do.cpp",
--- MAME_DIR .. "src/mame/machine/3do.cpp",
--- MAME_DIR .. "src/mame/drivers/3x3puzzl.cpp",
--- MAME_DIR .. "src/mame/drivers/4enraya.cpp",
--- MAME_DIR .. "src/mame/video/4enraya.cpp",
--- MAME_DIR .. "src/mame/drivers/4enlinea.cpp",
--- MAME_DIR .. "src/mame/drivers/5clown.cpp",
--- MAME_DIR .. "src/mame/drivers/a1supply.cpp",
--- MAME_DIR .. "src/mame/drivers/acefruit.cpp",
--- MAME_DIR .. "src/mame/drivers/aces1.cpp",
--- MAME_DIR .. "src/mame/drivers/acesp.cpp",
--- MAME_DIR .. "src/mame/drivers/adp.cpp",
--- MAME_DIR .. "src/mame/drivers/alinvade.cpp",
--- MAME_DIR .. "src/mame/drivers/amaticmg.cpp",
--- MAME_DIR .. "src/mame/drivers/ampoker2.cpp",
--- MAME_DIR .. "src/mame/video/ampoker2.cpp",
--- MAME_DIR .. "src/mame/drivers/amspdwy.cpp",
--- MAME_DIR .. "src/mame/video/amspdwy.cpp",
--- MAME_DIR .. "src/mame/drivers/amusco.cpp",
--- MAME_DIR .. "src/mame/drivers/arachnid.cpp",
--- MAME_DIR .. "src/mame/drivers/artmagic.cpp",
--- MAME_DIR .. "src/mame/video/artmagic.cpp",
--- MAME_DIR .. "src/mame/drivers/astrafr.cpp",
--- MAME_DIR .. "src/mame/drivers/astrcorp.cpp",
--- MAME_DIR .. "src/mame/drivers/astropc.cpp",
--- MAME_DIR .. "src/mame/drivers/atronic.cpp",
--- MAME_DIR .. "src/mame/drivers/attckufo.cpp",
--- MAME_DIR .. "src/mame/drivers/avt.cpp",
--- MAME_DIR .. "src/mame/drivers/aztarac.cpp",
--- MAME_DIR .. "src/mame/audio/aztarac.cpp",
--- MAME_DIR .. "src/mame/video/aztarac.cpp",
--- MAME_DIR .. "src/mame/drivers/bailey.cpp",
--- MAME_DIR .. "src/mame/drivers/beaminv.cpp",
--- MAME_DIR .. "src/mame/drivers/belatra.cpp",
--- MAME_DIR .. "src/mame/drivers/bgt.cpp",
--- MAME_DIR .. "src/mame/drivers/bingoman.cpp",
--- MAME_DIR .. "src/mame/drivers/bingor.cpp",
--- MAME_DIR .. "src/mame/drivers/blitz.cpp",
--- MAME_DIR .. "src/mame/drivers/blitz68k.cpp",
--- MAME_DIR .. "src/mame/drivers/buster.cpp",
--- MAME_DIR .. "src/mame/drivers/calomega.cpp",
--- MAME_DIR .. "src/mame/video/calomega.cpp",
--- MAME_DIR .. "src/mame/drivers/carrera.cpp",
--- MAME_DIR .. "src/mame/drivers/castle.cpp",
--- MAME_DIR .. "src/mame/drivers/cave.cpp",
--- MAME_DIR .. "src/mame/video/cave.cpp",
--- MAME_DIR .. "src/mame/drivers/cavepc.cpp",
--- MAME_DIR .. "src/mame/drivers/cv1k.cpp",
--- MAME_DIR .. "src/mame/drivers/cb2001.cpp",
--- MAME_DIR .. "src/mame/drivers/cdi.cpp",
--- MAME_DIR .. "src/mame/video/mcd212.cpp",
--- MAME_DIR .. "src/mame/machine/cdi070.cpp",
--- MAME_DIR .. "src/mame/machine/cdislave.cpp",
--- MAME_DIR .. "src/mame/machine/cdicdic.cpp",
--- MAME_DIR .. "src/mame/drivers/cesclass.cpp",
--- MAME_DIR .. "src/mame/drivers/chance32.cpp",
--- MAME_DIR .. "src/mame/drivers/chexx.cpp",
--- MAME_DIR .. "src/mame/drivers/chicago.cpp",
--- MAME_DIR .. "src/mame/drivers/chsuper.cpp",
--- MAME_DIR .. "src/mame/drivers/cidelsa.cpp",
--- MAME_DIR .. "src/mame/video/cidelsa.cpp",
--- MAME_DIR .. "src/mame/drivers/cocoloco.cpp",
--- MAME_DIR .. "src/mame/drivers/coinmstr.cpp",
--- MAME_DIR .. "src/mame/drivers/coinmvga.cpp",
--- MAME_DIR .. "src/mame/drivers/comebaby.cpp",
--- MAME_DIR .. "src/mame/drivers/cupidon.cpp",
--- MAME_DIR .. "src/mame/drivers/bntyhunt.cpp",
--- MAME_DIR .. "src/mame/drivers/coolpool.cpp",
--- MAME_DIR .. "src/mame/drivers/megaphx.cpp",
--- MAME_DIR .. "src/mame/machine/inder_sb.cpp",
--- MAME_DIR .. "src/mame/machine/inder_vid.cpp",
--- MAME_DIR .. "src/mame/drivers/corona.cpp",
--- MAME_DIR .. "src/mame/drivers/crystal.cpp",
--- MAME_DIR .. "src/mame/video/vrender0.cpp",
--- MAME_DIR .. "src/mame/drivers/cubeqst.cpp",
--- MAME_DIR .. "src/mame/drivers/cybertnk.cpp",
--- MAME_DIR .. "src/mame/drivers/dcheese.cpp",
--- MAME_DIR .. "src/mame/video/dcheese.cpp",
--- MAME_DIR .. "src/mame/drivers/dfruit.cpp",
--- MAME_DIR .. "src/mame/drivers/dgpix.cpp",
--- MAME_DIR .. "src/mame/drivers/discoboy.cpp",
--- MAME_DIR .. "src/mame/drivers/dominob.cpp",
--- MAME_DIR .. "src/mame/drivers/dorachan.cpp",
--- MAME_DIR .. "src/mame/drivers/dreamwld.cpp",
--- MAME_DIR .. "src/mame/drivers/dribling.cpp",
--- MAME_DIR .. "src/mame/video/dribling.cpp",
--- MAME_DIR .. "src/mame/drivers/drw80pkr.cpp",
--- MAME_DIR .. "src/mame/drivers/dwarfd.cpp",
--- MAME_DIR .. "src/mame/drivers/dynadice.cpp",
--- MAME_DIR .. "src/mame/drivers/ecoinfr.cpp",
--- MAME_DIR .. "src/mame/drivers/ecoinf1.cpp",
--- MAME_DIR .. "src/mame/drivers/ecoinf2.cpp",
--- MAME_DIR .. "src/mame/drivers/ecoinf3.cpp",
--- MAME_DIR .. "src/mame/drivers/electra.cpp",
--- MAME_DIR .. "src/mame/drivers/epos.cpp",
--- MAME_DIR .. "src/mame/video/epos.cpp",
--- MAME_DIR .. "src/mame/drivers/esd16.cpp",
--- MAME_DIR .. "src/mame/video/esd16.cpp",
--- MAME_DIR .. "src/mame/drivers/esh.cpp",
--- MAME_DIR .. "src/mame/drivers/esripsys.cpp",
--- MAME_DIR .. "src/mame/video/esripsys.cpp",
--- MAME_DIR .. "src/mame/drivers/ettrivia.cpp",
--- MAME_DIR .. "src/mame/drivers/extrema.cpp",
--- MAME_DIR .. "src/mame/drivers/fireball.cpp",
--- MAME_DIR .. "src/mame/drivers/flipjack.cpp",
--- MAME_DIR .. "src/mame/drivers/flower.cpp",
--- MAME_DIR .. "src/mame/audio/flower.cpp",
--- MAME_DIR .. "src/mame/video/flower.cpp",
--- MAME_DIR .. "src/mame/drivers/fortecar.cpp",
--- MAME_DIR .. "src/mame/drivers/fresh.cpp",
--- MAME_DIR .. "src/mame/drivers/freekick.cpp",
--- MAME_DIR .. "src/mame/video/freekick.cpp",
--- MAME_DIR .. "src/mame/drivers/fungames.cpp",
--- MAME_DIR .. "src/mame/drivers/funkball.cpp",
--- MAME_DIR .. "src/mame/drivers/gambl186.cpp",
--- MAME_DIR .. "src/mame/drivers/galaxi.cpp",
--- MAME_DIR .. "src/mame/drivers/galgame.cpp",
--- MAME_DIR .. "src/mame/drivers/gamecstl.cpp",
--- MAME_DIR .. "src/mame/drivers/gammagic.cpp",
--- MAME_DIR .. "src/mame/drivers/gamtor.cpp",
--- MAME_DIR .. "src/mame/drivers/gei.cpp",
--- MAME_DIR .. "src/mame/drivers/globalfr.cpp",
--- MAME_DIR .. "src/mame/drivers/globalvr.cpp",
--- MAME_DIR .. "src/mame/drivers/gluck2.cpp",
--- MAME_DIR .. "src/mame/drivers/goldngam.cpp",
--- MAME_DIR .. "src/mame/drivers/goldnpkr.cpp",
--- MAME_DIR .. "src/mame/drivers/good.cpp",
--- MAME_DIR .. "src/mame/drivers/gotcha.cpp",
--- MAME_DIR .. "src/mame/video/gotcha.cpp",
--- MAME_DIR .. "src/mame/drivers/gstream.cpp",
--- MAME_DIR .. "src/mame/drivers/gumbo.cpp",
--- MAME_DIR .. "src/mame/video/gumbo.cpp",
--- MAME_DIR .. "src/mame/drivers/gunpey.cpp",
--- MAME_DIR .. "src/mame/drivers/hideseek.cpp",
--- MAME_DIR .. "src/mame/drivers/hazelgr.cpp",
--- MAME_DIR .. "src/mame/drivers/headonb.cpp",
--- MAME_DIR .. "src/mame/drivers/highvdeo.cpp",
--- MAME_DIR .. "src/mame/drivers/himesiki.cpp",
--- MAME_DIR .. "src/mame/video/himesiki.cpp",
--- MAME_DIR .. "src/mame/drivers/hitpoker.cpp",
--- MAME_DIR .. "src/mame/drivers/homedata.cpp",
--- MAME_DIR .. "src/mame/video/homedata.cpp",
--- MAME_DIR .. "src/mame/drivers/hotblock.cpp",
--- MAME_DIR .. "src/mame/drivers/hotstuff.cpp",
--- MAME_DIR .. "src/mame/drivers/ichiban.cpp",
--- MAME_DIR .. "src/mame/drivers/imolagp.cpp",
--- MAME_DIR .. "src/mame/drivers/intrscti.cpp",
--- MAME_DIR .. "src/mame/drivers/istellar.cpp",
--- MAME_DIR .. "src/mame/drivers/itgambl2.cpp",
--- MAME_DIR .. "src/mame/drivers/itgambl3.cpp",
--- MAME_DIR .. "src/mame/drivers/itgamble.cpp",
--- MAME_DIR .. "src/mame/drivers/jackpool.cpp",
--- MAME_DIR .. "src/mame/drivers/jankenmn.cpp",
--- MAME_DIR .. "src/mame/drivers/jokrwild.cpp",
--- MAME_DIR .. "src/mame/drivers/jongkyo.cpp",
--- MAME_DIR .. "src/mame/drivers/joystand.cpp",
--- MAME_DIR .. "src/mame/drivers/jubilee.cpp",
--- MAME_DIR .. "src/mame/drivers/kas89.cpp",
--- MAME_DIR .. "src/mame/drivers/kingpin.cpp",
--- MAME_DIR .. "src/mame/drivers/koikoi.cpp",
--- MAME_DIR .. "src/mame/drivers/kurukuru.cpp",
--- MAME_DIR .. "src/mame/drivers/kyugo.cpp",
--- MAME_DIR .. "src/mame/video/kyugo.cpp",
--- MAME_DIR .. "src/mame/drivers/ladyfrog.cpp",
--- MAME_DIR .. "src/mame/video/ladyfrog.cpp",
--- MAME_DIR .. "src/mame/drivers/laserbas.cpp",
--- MAME_DIR .. "src/mame/drivers/lethalj.cpp",
--- MAME_DIR .. "src/mame/video/lethalj.cpp",
--- MAME_DIR .. "src/mame/drivers/limenko.cpp",
--- MAME_DIR .. "src/mame/drivers/ltcasino.cpp",
--- MAME_DIR .. "src/mame/drivers/lucky74.cpp",
--- MAME_DIR .. "src/mame/video/lucky74.cpp",
--- MAME_DIR .. "src/mame/drivers/luckgrln.cpp",
--- MAME_DIR .. "src/mame/drivers/magic10.cpp",
--- MAME_DIR .. "src/mame/drivers/magicard.cpp",
--- MAME_DIR .. "src/mame/drivers/magicfly.cpp",
--- MAME_DIR .. "src/mame/drivers/magictg.cpp",
--- MAME_DIR .. "src/mame/drivers/magtouch.cpp",
--- MAME_DIR .. "src/mame/drivers/majorpkr.cpp",
--- MAME_DIR .. "src/mame/drivers/malzak.cpp",
--- MAME_DIR .. "src/mame/video/malzak.cpp",
--- MAME_DIR .. "src/mame/drivers/manohman.cpp",
--- MAME_DIR .. "src/mame/drivers/mcatadv.cpp",
--- MAME_DIR .. "src/mame/video/mcatadv.cpp",
--- MAME_DIR .. "src/mame/drivers/mgavegas.cpp",
--- MAME_DIR .. "src/mame/drivers/meyc8080.cpp",
--- MAME_DIR .. "src/mame/drivers/meyc8088.cpp",
--- MAME_DIR .. "src/mame/drivers/micro3d.cpp",
--- MAME_DIR .. "src/mame/machine/micro3d.cpp",
--- MAME_DIR .. "src/mame/video/micro3d.cpp",
--- MAME_DIR .. "src/mame/audio/micro3d.cpp",
--- MAME_DIR .. "src/mame/drivers/midas.cpp",
--- MAME_DIR .. "src/mame/drivers/miniboy7.cpp",
--- MAME_DIR .. "src/mame/drivers/mirax.cpp",
--- MAME_DIR .. "src/mame/drivers/mole.cpp",
--- MAME_DIR .. "src/mame/drivers/mosaic.cpp",
--- MAME_DIR .. "src/mame/video/mosaic.cpp",
--- MAME_DIR .. "src/mame/drivers/mpu12wbk.cpp",
--- MAME_DIR .. "src/mame/drivers/mrjong.cpp",
--- MAME_DIR .. "src/mame/video/mrjong.cpp",
--- MAME_DIR .. "src/mame/drivers/multfish.cpp",
--- MAME_DIR .. "src/mame/drivers/multfish_boot.cpp",
--- MAME_DIR .. "src/mame/drivers/multfish_ref.cpp",
--- MAME_DIR .. "src/mame/drivers/murogem.cpp",
--- MAME_DIR .. "src/mame/drivers/murogmbl.cpp",
--- MAME_DIR .. "src/mame/drivers/neoprint.cpp",
--- MAME_DIR .. "src/mame/drivers/neptunp2.cpp",
--- MAME_DIR .. "src/mame/drivers/news.cpp",
--- MAME_DIR .. "src/mame/video/news.cpp",
--- MAME_DIR .. "src/mame/drivers/nexus3d.cpp",
--- MAME_DIR .. "src/mame/drivers/norautp.cpp",
--- MAME_DIR .. "src/mame/audio/norautp.cpp",
--- MAME_DIR .. "src/mame/drivers/nsmpoker.cpp",
--- MAME_DIR .. "src/mame/drivers/oneshot.cpp",
--- MAME_DIR .. "src/mame/video/oneshot.cpp",
--- MAME_DIR .. "src/mame/drivers/onetwo.cpp",
--- MAME_DIR .. "src/mame/drivers/othello.cpp",
--- MAME_DIR .. "src/mame/drivers/pachifev.cpp",
--- MAME_DIR .. "src/mame/drivers/pasha2.cpp",
--- MAME_DIR .. "src/mame/drivers/pass.cpp",
--- MAME_DIR .. "src/mame/video/pass.cpp",
--- MAME_DIR .. "src/mame/drivers/peplus.cpp",
--- MAME_DIR .. "src/mame/drivers/photon.cpp",
--- MAME_DIR .. "src/mame/drivers/piggypas.cpp",
--- MAME_DIR .. "src/mame/video/pk8000.cpp",
--- MAME_DIR .. "src/mame/drivers/photon2.cpp",
--- MAME_DIR .. "src/mame/drivers/photoply.cpp",
--- MAME_DIR .. "src/mame/drivers/pinkiri8.cpp",
--- MAME_DIR .. "src/mame/drivers/pipeline.cpp",
--- MAME_DIR .. "src/mame/drivers/pkscram.cpp",
--- MAME_DIR .. "src/mame/drivers/pntnpuzl.cpp",
--- MAME_DIR .. "src/mame/drivers/policetr.cpp",
--- MAME_DIR .. "src/mame/video/policetr.cpp",
--- MAME_DIR .. "src/mame/drivers/polyplay.cpp",
--- MAME_DIR .. "src/mame/audio/polyplay.cpp",
--- MAME_DIR .. "src/mame/video/polyplay.cpp",
--- MAME_DIR .. "src/mame/drivers/poker72.cpp",
--- MAME_DIR .. "src/mame/drivers/potgoldu.cpp",
--- MAME_DIR .. "src/mame/drivers/proconn.cpp",
--- MAME_DIR .. "src/mame/drivers/psattack.cpp",
--- MAME_DIR .. "src/mame/drivers/pse.cpp",
--- MAME_DIR .. "src/mame/drivers/quizo.cpp",
--- MAME_DIR .. "src/mame/drivers/quizpun2.cpp",
--- MAME_DIR .. "src/mame/drivers/rbmk.cpp",
--- MAME_DIR .. "src/mame/drivers/rcorsair.cpp",
--- MAME_DIR .. "src/mame/drivers/re900.cpp",
--- MAME_DIR .. "src/mame/drivers/rgum.cpp",
--- MAME_DIR .. "src/mame/drivers/roul.cpp",
--- MAME_DIR .. "src/mame/drivers/savquest.cpp",
--- MAME_DIR .. "src/mame/drivers/sanremo.cpp",
--- MAME_DIR .. "src/mame/drivers/sealy.cpp",
--- MAME_DIR .. "src/mame/drivers/sfbonus.cpp",
--- MAME_DIR .. "src/mame/drivers/shangkid.cpp",
--- MAME_DIR .. "src/mame/video/shangkid.cpp",
--- MAME_DIR .. "src/mame/drivers/skeetsht.cpp",
--- MAME_DIR .. "src/mame/drivers/skimaxx.cpp",
--- MAME_DIR .. "src/mame/drivers/skyarmy.cpp",
--- MAME_DIR .. "src/mame/drivers/skylncr.cpp",
--- MAME_DIR .. "src/mame/drivers/sliver.cpp",
--- MAME_DIR .. "src/mame/drivers/slotcarn.cpp",
--- MAME_DIR .. "src/mame/drivers/smsmcorp.cpp",
--- MAME_DIR .. "src/mame/drivers/sothello.cpp",
--- MAME_DIR .. "src/mame/drivers/splus.cpp",
--- MAME_DIR .. "src/mame/drivers/spool99.cpp",
--- MAME_DIR .. "src/mame/drivers/sprcros2.cpp",
--- MAME_DIR .. "src/mame/video/sprcros2.cpp",
--- MAME_DIR .. "src/mame/drivers/sshot.cpp",
--- MAME_DIR .. "src/mame/drivers/ssingles.cpp",
--- MAME_DIR .. "src/mame/drivers/sstrangr.cpp",
--- MAME_DIR .. "src/mame/drivers/statriv2.cpp",
--- MAME_DIR .. "src/mame/drivers/stellafr.cpp",
--- MAME_DIR .. "src/mame/drivers/stuntair.cpp",
--- MAME_DIR .. "src/mame/drivers/su2000.cpp",
--- MAME_DIR .. "src/mame/drivers/subhuntr.cpp",
--- MAME_DIR .. "src/mame/drivers/summit.cpp",
--- MAME_DIR .. "src/mame/drivers/sumt8035.cpp",
--- MAME_DIR .. "src/mame/drivers/supercrd.cpp",
--- MAME_DIR .. "src/mame/drivers/supertnk.cpp",
--- MAME_DIR .. "src/mame/drivers/superwng.cpp",
--- MAME_DIR .. "src/mame/drivers/tapatune.cpp",
--- MAME_DIR .. "src/mame/drivers/tattack.cpp",
--- MAME_DIR .. "src/mame/drivers/taxidriv.cpp",
--- MAME_DIR .. "src/mame/video/taxidriv.cpp",
--- MAME_DIR .. "src/mame/drivers/tcl.cpp",
--- MAME_DIR .. "src/mame/drivers/thayers.cpp",
--- MAME_DIR .. "src/mame/drivers/thedeep.cpp",
--- MAME_DIR .. "src/mame/video/thedeep.cpp",
--- MAME_DIR .. "src/mame/drivers/tiamc1.cpp",
--- MAME_DIR .. "src/mame/video/tiamc1.cpp",
--- MAME_DIR .. "src/mame/audio/tiamc1.cpp",
--- MAME_DIR .. "src/mame/drivers/tickee.cpp",
--- MAME_DIR .. "src/mame/drivers/tmspoker.cpp",
--- MAME_DIR .. "src/mame/drivers/truco.cpp",
--- MAME_DIR .. "src/mame/video/truco.cpp",
--- MAME_DIR .. "src/mame/drivers/trucocl.cpp",
--- MAME_DIR .. "src/mame/video/trucocl.cpp",
--- MAME_DIR .. "src/mame/drivers/trvmadns.cpp",
--- MAME_DIR .. "src/mame/drivers/trvquest.cpp",
--- MAME_DIR .. "src/mame/drivers/ttchamp.cpp",
--- MAME_DIR .. "src/mame/drivers/tugboat.cpp",
--- MAME_DIR .. "src/mame/drivers/umipoker.cpp",
--- MAME_DIR .. "src/mame/drivers/unkfr.cpp",
--- MAME_DIR .. "src/mame/drivers/unkhorse.cpp",
--- MAME_DIR .. "src/mame/drivers/usgames.cpp",
--- MAME_DIR .. "src/mame/video/usgames.cpp",
--- MAME_DIR .. "src/mame/drivers/vamphalf.cpp",
--- MAME_DIR .. "src/mame/drivers/vcombat.cpp",
--- MAME_DIR .. "src/mame/drivers/vectrex.cpp",
--- MAME_DIR .. "src/mame/video/vectrex.cpp",
--- MAME_DIR .. "src/mame/machine/vectrex.cpp",
--- MAME_DIR .. "src/mame/drivers/videopkr.cpp",
--- MAME_DIR .. "src/mame/drivers/vlc.cpp",
--- MAME_DIR .. "src/mame/drivers/voyager.cpp",
--- MAME_DIR .. "src/mame/drivers/vp101.cpp",
--- MAME_DIR .. "src/mame/drivers/vpoker.cpp",
--- MAME_DIR .. "src/mame/drivers/vroulet.cpp",
--- MAME_DIR .. "src/mame/drivers/wildpkr.cpp",
--- MAME_DIR .. "src/mame/drivers/wms.cpp",
--- MAME_DIR .. "src/mame/drivers/wacky_gator.cpp",
--- MAME_DIR .. "src/mame/drivers/xtom3d.cpp",
--- MAME_DIR .. "src/mame/drivers/xyonix.cpp",
--- MAME_DIR .. "src/mame/video/xyonix.cpp",
--- }
-end
-
diff --git a/src/devices/cpu/m68000/m68kops.cpp b/src/devices/cpu/m68000/m68kops.cpp
deleted file mode 100644
index 4cbeb42d78c..00000000000
--- a/src/devices/cpu/m68000/m68kops.cpp
+++ /dev/null
@@ -1,34876 +0,0 @@
-#include "emu.h"
-#include "m68kcpu.h"
-extern void m68040_fpu_op0(m68000_base_device *m68k);
-extern void m68040_fpu_op1(m68000_base_device *m68k);
-extern void m68881_mmu_ops(m68000_base_device *m68k);
-extern void m68881_ftrap(m68000_base_device *m68k);
-
-/* ======================================================================== */
-/* ========================= INSTRUCTION HANDLERS ========================= */
-/* ======================================================================== */
-
-
-void m68000_base_device_ops::m68k_op_1010(m68000_base_device* mc68kcpu)
-{
- m68ki_exception_1010(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_1111(m68000_base_device* mc68kcpu)
-{
- m68ki_exception_1111(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_040fpu0_32(m68000_base_device* mc68kcpu)
-{
- if((mc68kcpu)->has_fpu)
- {
- m68040_fpu_op0(mc68kcpu);
- return;
- }
- m68ki_exception_1111(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_040fpu1_32(m68000_base_device* mc68kcpu)
-{
- if((mc68kcpu)->has_fpu)
- {
- m68040_fpu_op1(mc68kcpu);
- return;
- }
- m68ki_exception_1111(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_abcd_8_rr(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = DY(mc68kcpu);
- UINT32 dst = *r_dst;
- UINT32 res = LOW_NIBBLE(src) + LOW_NIBBLE(dst) + XFLAG_AS_1(mc68kcpu);
-
- (mc68kcpu)->v_flag = ~res; /* Undefined V behavior */
-
- if(res > 9)
- res += 6;
- res += HIGH_NIBBLE(src) + HIGH_NIBBLE(dst);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = (res > 0x99) << 8;
- if((mc68kcpu)->c_flag)
- res -= 0xa0;
-
- (mc68kcpu)->v_flag &= res; /* Undefined V behavior part II */
- (mc68kcpu)->n_flag = NFLAG_8(res); /* Undefined N behavior */
-
- res = MASK_OUT_ABOVE_8(res);
- (mc68kcpu)->not_z_flag |= res;
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | res;
-}
-
-
-void m68000_base_device_ops::m68k_op_abcd_8_mm_ax7(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_AY_PD_8(mc68kcpu);
- UINT32 ea = EA_A7_PD_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = LOW_NIBBLE(src) + LOW_NIBBLE(dst) + XFLAG_AS_1(mc68kcpu);
-
- (mc68kcpu)->v_flag = ~res; /* Undefined V behavior */
-
- if(res > 9)
- res += 6;
- res += HIGH_NIBBLE(src) + HIGH_NIBBLE(dst);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = (res > 0x99) << 8;
- if((mc68kcpu)->c_flag)
- res -= 0xa0;
-
- (mc68kcpu)->v_flag &= res; /* Undefined V behavior part II */
- (mc68kcpu)->n_flag = NFLAG_8(res); /* Undefined N behavior */
-
- res = MASK_OUT_ABOVE_8(res);
- (mc68kcpu)->not_z_flag |= res;
-
- m68ki_write_8((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_abcd_8_mm_ay7(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_A7_PD_8(mc68kcpu);
- UINT32 ea = EA_AX_PD_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = LOW_NIBBLE(src) + LOW_NIBBLE(dst) + XFLAG_AS_1(mc68kcpu);
-
- (mc68kcpu)->v_flag = ~res; /* Undefined V behavior */
-
- if(res > 9)
- res += 6;
- res += HIGH_NIBBLE(src) + HIGH_NIBBLE(dst);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = (res > 0x99) << 8;
- if((mc68kcpu)->c_flag)
- res -= 0xa0;
-
- (mc68kcpu)->v_flag &= res; /* Undefined V behavior part II */
- (mc68kcpu)->n_flag = NFLAG_8(res); /* Undefined N behavior */
-
- res = MASK_OUT_ABOVE_8(res);
- (mc68kcpu)->not_z_flag |= res;
-
- m68ki_write_8((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_abcd_8_mm_axy7(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_A7_PD_8(mc68kcpu);
- UINT32 ea = EA_A7_PD_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = LOW_NIBBLE(src) + LOW_NIBBLE(dst) + XFLAG_AS_1(mc68kcpu);
-
- (mc68kcpu)->v_flag = ~res; /* Undefined V behavior */
-
- if(res > 9)
- res += 6;
- res += HIGH_NIBBLE(src) + HIGH_NIBBLE(dst);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = (res > 0x99) << 8;
- if((mc68kcpu)->c_flag)
- res -= 0xa0;
-
- (mc68kcpu)->v_flag &= res; /* Undefined V behavior part II */
- (mc68kcpu)->n_flag = NFLAG_8(res); /* Undefined N behavior */
-
- res = MASK_OUT_ABOVE_8(res);
- (mc68kcpu)->not_z_flag |= res;
-
- m68ki_write_8((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_abcd_8_mm(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_AY_PD_8(mc68kcpu);
- UINT32 ea = EA_AX_PD_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = LOW_NIBBLE(src) + LOW_NIBBLE(dst) + XFLAG_AS_1(mc68kcpu);
-
- (mc68kcpu)->v_flag = ~res; /* Undefined V behavior */
-
- if(res > 9)
- res += 6;
- res += HIGH_NIBBLE(src) + HIGH_NIBBLE(dst);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = (res > 0x99) << 8;
- if((mc68kcpu)->c_flag)
- res -= 0xa0;
-
- (mc68kcpu)->v_flag &= res; /* Undefined V behavior part II */
- (mc68kcpu)->n_flag = NFLAG_8(res); /* Undefined N behavior */
-
- res = MASK_OUT_ABOVE_8(res);
- (mc68kcpu)->not_z_flag |= res;
-
- m68ki_write_8((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_er_d(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_8(DY(mc68kcpu));
- UINT32 dst = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_er_ai(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AY_AI_8(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_er_pi(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AY_PI_8(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_er_pi7(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_A7_PI_8(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_er_pd(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AY_PD_8(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_er_pd7(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_A7_PD_8(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_er_di(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AY_DI_8(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_er_ix(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AY_IX_8(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_er_aw(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AW_8(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_er_al(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AL_8(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_er_pcdi(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_PCDI_8(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_er_pcix(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_PCIX_8(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_er_i(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_16_er_d(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_16(DY(mc68kcpu));
- UINT32 dst = MASK_OUT_ABOVE_16(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- *r_dst = MASK_OUT_BELOW_16(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_16_er_a(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_16(AY(mc68kcpu));
- UINT32 dst = MASK_OUT_ABOVE_16(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- *r_dst = MASK_OUT_BELOW_16(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_16_er_ai(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AY_AI_16(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_16(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- *r_dst = MASK_OUT_BELOW_16(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_16_er_pi(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AY_PI_16(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_16(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- *r_dst = MASK_OUT_BELOW_16(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_16_er_pd(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AY_PD_16(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_16(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- *r_dst = MASK_OUT_BELOW_16(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_16_er_di(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AY_DI_16(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_16(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- *r_dst = MASK_OUT_BELOW_16(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_16_er_ix(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AY_IX_16(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_16(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- *r_dst = MASK_OUT_BELOW_16(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_16_er_aw(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AW_16(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_16(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- *r_dst = MASK_OUT_BELOW_16(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_16_er_al(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AL_16(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_16(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- *r_dst = MASK_OUT_BELOW_16(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_16_er_pcdi(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_PCDI_16(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_16(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- *r_dst = MASK_OUT_BELOW_16(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_16_er_pcix(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_PCIX_16(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_16(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- *r_dst = MASK_OUT_BELOW_16(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_16_er_i(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_I_16(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_16(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- *r_dst = MASK_OUT_BELOW_16(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_32_er_d(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = DY(mc68kcpu);
- UINT32 dst = *r_dst;
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- *r_dst = (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_32_er_a(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = AY(mc68kcpu);
- UINT32 dst = *r_dst;
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- *r_dst = (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_32_er_ai(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AY_AI_32(mc68kcpu);
- UINT32 dst = *r_dst;
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- *r_dst = (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_32_er_pi(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AY_PI_32(mc68kcpu);
- UINT32 dst = *r_dst;
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- *r_dst = (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_32_er_pd(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AY_PD_32(mc68kcpu);
- UINT32 dst = *r_dst;
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- *r_dst = (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_32_er_di(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AY_DI_32(mc68kcpu);
- UINT32 dst = *r_dst;
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- *r_dst = (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_32_er_ix(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AY_IX_32(mc68kcpu);
- UINT32 dst = *r_dst;
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- *r_dst = (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_32_er_aw(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AW_32(mc68kcpu);
- UINT32 dst = *r_dst;
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- *r_dst = (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_32_er_al(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_AL_32(mc68kcpu);
- UINT32 dst = *r_dst;
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- *r_dst = (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_32_er_pcdi(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_PCDI_32(mc68kcpu);
- UINT32 dst = *r_dst;
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- *r_dst = (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_32_er_pcix(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_PCIX_32(mc68kcpu);
- UINT32 dst = *r_dst;
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- *r_dst = (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_32_er_i(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = OPER_I_32(mc68kcpu);
- UINT32 dst = *r_dst;
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- *r_dst = (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_re_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_8(DX(mc68kcpu));
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_re_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PI_8(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_8(DX(mc68kcpu));
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_re_pi7(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_A7_PI_8(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_8(DX(mc68kcpu));
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_re_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PD_8(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_8(DX(mc68kcpu));
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_re_pd7(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_A7_PD_8(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_8(DX(mc68kcpu));
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_re_di(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_8(DX(mc68kcpu));
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_re_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_8(DX(mc68kcpu));
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_re_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AW_8(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_8(DX(mc68kcpu));
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_8_re_al(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AL_8(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_8(DX(mc68kcpu));
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_16_re_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_AI_16(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_16(DX(mc68kcpu));
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_16_re_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PI_16(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_16(DX(mc68kcpu));
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_16_re_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PD_16(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_16(DX(mc68kcpu));
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_16_re_di(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_DI_16(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_16(DX(mc68kcpu));
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_16_re_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_IX_16(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_16(DX(mc68kcpu));
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_16_re_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AW_16(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_16(DX(mc68kcpu));
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_16_re_al(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AL_16(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_16(DX(mc68kcpu));
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_32_re_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_AI_32(mc68kcpu);
- UINT32 src = DX(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_32_re_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PI_32(mc68kcpu);
- UINT32 src = DX(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_32_re_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PD_32(mc68kcpu);
- UINT32 src = DX(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_32_re_di(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_DI_32(mc68kcpu);
- UINT32 src = DX(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_32_re_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_IX_32(mc68kcpu);
- UINT32 src = DX(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_32_re_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AW_32(mc68kcpu);
- UINT32 src = DX(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_add_32_re_al(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AL_32(mc68kcpu);
- UINT32 src = DX(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_16_d(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + MAKE_INT_16(DY(mc68kcpu)));
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_16_a(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + MAKE_INT_16(AY(mc68kcpu)));
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_16_ai(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = MAKE_INT_16(OPER_AY_AI_16(mc68kcpu));
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_16_pi(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = MAKE_INT_16(OPER_AY_PI_16(mc68kcpu));
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_16_pd(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = MAKE_INT_16(OPER_AY_PD_16(mc68kcpu));
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_16_di(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = MAKE_INT_16(OPER_AY_DI_16(mc68kcpu));
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_16_ix(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = MAKE_INT_16(OPER_AY_IX_16(mc68kcpu));
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_16_aw(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = MAKE_INT_16(OPER_AW_16(mc68kcpu));
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_16_al(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = MAKE_INT_16(OPER_AL_16(mc68kcpu));
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_16_pcdi(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = MAKE_INT_16(OPER_PCDI_16(mc68kcpu));
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_16_pcix(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = MAKE_INT_16(OPER_PCIX_16(mc68kcpu));
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_16_i(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = MAKE_INT_16(OPER_I_16(mc68kcpu));
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_32_d(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + DY(mc68kcpu));
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_32_a(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + AY(mc68kcpu));
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_32_ai(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = OPER_AY_AI_32(mc68kcpu);
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_32_pi(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = OPER_AY_PI_32(mc68kcpu);
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_32_pd(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = OPER_AY_PD_32(mc68kcpu);
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_32_di(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = OPER_AY_DI_32(mc68kcpu);
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_32_ix(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = OPER_AY_IX_32(mc68kcpu);
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_32_aw(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = OPER_AW_32(mc68kcpu);
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_32_al(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = OPER_AL_32(mc68kcpu);
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_32_pcdi(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = OPER_PCDI_32(mc68kcpu);
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_32_pcix(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = OPER_PCIX_32(mc68kcpu);
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_adda_32_i(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AX(mc68kcpu);
- UINT32 src = OPER_I_32(mc68kcpu);
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + src);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_8_d(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_8_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_8_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 ea = EA_AY_PI_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_8_pi7(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 ea = EA_A7_PI_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_8_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 ea = EA_AY_PD_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_8_pd7(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 ea = EA_A7_PD_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_8_di(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_8_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_8_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 ea = EA_AW_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_8_al(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 ea = EA_AL_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_16_d(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 src = OPER_I_16(mc68kcpu);
- UINT32 dst = MASK_OUT_ABOVE_16(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- *r_dst = MASK_OUT_BELOW_16(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_16_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AY_AI_16(mc68kcpu);
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_16_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AY_PI_16(mc68kcpu);
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_16_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AY_PD_16(mc68kcpu);
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_16_di(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AY_DI_16(mc68kcpu);
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_16_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AY_IX_16(mc68kcpu);
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_16_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AW_16(mc68kcpu);
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_16_al(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AL_16(mc68kcpu);
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_32_d(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 src = OPER_I_32(mc68kcpu);
- UINT32 dst = *r_dst;
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- *r_dst = (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_32_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_32(mc68kcpu);
- UINT32 ea = EA_AY_AI_32(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_32_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_32(mc68kcpu);
- UINT32 ea = EA_AY_PI_32(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_32_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_32(mc68kcpu);
- UINT32 ea = EA_AY_PD_32(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_32_di(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_32(mc68kcpu);
- UINT32 ea = EA_AY_DI_32(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_32_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_32(mc68kcpu);
- UINT32 ea = EA_AY_IX_32(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_32_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_32(mc68kcpu);
- UINT32 ea = EA_AW_32(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addi_32_al(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_32(mc68kcpu);
- UINT32 ea = EA_AL_32(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_8_d(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 dst = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_8_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_8_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AY_PI_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_8_pi7(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_A7_PI_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_8_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AY_PD_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_8_pd7(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_A7_PD_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_8_di(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_8_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_8_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AW_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_8_al(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AL_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_16_d(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 dst = MASK_OUT_ABOVE_16(*r_dst);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- *r_dst = MASK_OUT_BELOW_16(*r_dst) | (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_16_a(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AY(mc68kcpu);
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_16_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AY_AI_16(mc68kcpu);
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_16_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AY_PI_16(mc68kcpu);
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_16_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AY_PD_16(mc68kcpu);
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_16_di(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AY_DI_16(mc68kcpu);
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_16_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AY_IX_16(mc68kcpu);
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_16_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AW_16(mc68kcpu);
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_16_al(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AL_16(mc68kcpu);
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_32_d(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 dst = *r_dst;
- UINT32 res = src + dst;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- *r_dst = (mc68kcpu)->not_z_flag;
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_32_a(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &AY(mc68kcpu);
-
- *r_dst = MASK_OUT_ABOVE_32(*r_dst + ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_32_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AY_AI_32(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_32_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AY_PI_32(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_32_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AY_PD_32(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_32_di(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AY_DI_32(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_32_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AY_IX_32(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_32_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AW_32(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addq_32_al(m68000_base_device* mc68kcpu)
-{
- UINT32 src = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 ea = EA_AL_32(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst;
-
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_32(res);
-
- m68ki_write_32((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_addx_8_rr(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_8(DY(mc68kcpu));
- UINT32 dst = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = src + dst + XFLAG_AS_1(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
-
- res = MASK_OUT_ABOVE_8(res);
- (mc68kcpu)->not_z_flag |= res;
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | res;
-}
-
-
-void m68000_base_device_ops::m68k_op_addx_16_rr(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = MASK_OUT_ABOVE_16(DY(mc68kcpu));
- UINT32 dst = MASK_OUT_ABOVE_16(*r_dst);
- UINT32 res = src + dst + XFLAG_AS_1(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
-
- res = MASK_OUT_ABOVE_16(res);
- (mc68kcpu)->not_z_flag |= res;
-
- *r_dst = MASK_OUT_BELOW_16(*r_dst) | res;
-}
-
-
-void m68000_base_device_ops::m68k_op_addx_32_rr(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DX(mc68kcpu);
- UINT32 src = DY(mc68kcpu);
- UINT32 dst = *r_dst;
- UINT32 res = src + dst + XFLAG_AS_1(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
-
- res = MASK_OUT_ABOVE_32(res);
- (mc68kcpu)->not_z_flag |= res;
-
- *r_dst = res;
-}
-
-
-void m68000_base_device_ops::m68k_op_addx_8_mm_ax7(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_AY_PD_8(mc68kcpu);
- UINT32 ea = EA_A7_PD_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst + XFLAG_AS_1(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
-
- res = MASK_OUT_ABOVE_8(res);
- (mc68kcpu)->not_z_flag |= res;
-
- m68ki_write_8((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_addx_8_mm_ay7(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_A7_PD_8(mc68kcpu);
- UINT32 ea = EA_AX_PD_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst + XFLAG_AS_1(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
-
- res = MASK_OUT_ABOVE_8(res);
- (mc68kcpu)->not_z_flag |= res;
-
- m68ki_write_8((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_addx_8_mm_axy7(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_A7_PD_8(mc68kcpu);
- UINT32 ea = EA_A7_PD_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst + XFLAG_AS_1(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
-
- res = MASK_OUT_ABOVE_8(res);
- (mc68kcpu)->not_z_flag |= res;
-
- m68ki_write_8((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_addx_8_mm(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_AY_PD_8(mc68kcpu);
- UINT32 ea = EA_AX_PD_8(mc68kcpu);
- UINT32 dst = m68ki_read_8((mc68kcpu), ea);
- UINT32 res = src + dst + XFLAG_AS_1(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_8(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_8(res);
-
- res = MASK_OUT_ABOVE_8(res);
- (mc68kcpu)->not_z_flag |= res;
-
- m68ki_write_8((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_addx_16_mm(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_AY_PD_16(mc68kcpu);
- UINT32 ea = EA_AX_PD_16(mc68kcpu);
- UINT32 dst = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src + dst + XFLAG_AS_1(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_16(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_16(res);
-
- res = MASK_OUT_ABOVE_16(res);
- (mc68kcpu)->not_z_flag |= res;
-
- m68ki_write_16((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_addx_32_mm(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_AY_PD_32(mc68kcpu);
- UINT32 ea = EA_AX_PD_32(mc68kcpu);
- UINT32 dst = m68ki_read_32((mc68kcpu), ea);
- UINT32 res = src + dst + XFLAG_AS_1(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->v_flag = VFLAG_ADD_32(src, dst, res);
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = CFLAG_ADD_32(src, dst, res);
-
- res = MASK_OUT_ABOVE_32(res);
- (mc68kcpu)->not_z_flag |= res;
-
- m68ki_write_32((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_er_d(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(DX(mc68kcpu) &= (DY(mc68kcpu) | 0xffffff00));
-
- (mc68kcpu)->n_flag = NFLAG_8((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_er_ai(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(DX(mc68kcpu) &= (OPER_AY_AI_8(mc68kcpu) | 0xffffff00));
-
- (mc68kcpu)->n_flag = NFLAG_8((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_er_pi(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(DX(mc68kcpu) &= (OPER_AY_PI_8(mc68kcpu) | 0xffffff00));
-
- (mc68kcpu)->n_flag = NFLAG_8((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_er_pi7(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(DX(mc68kcpu) &= (OPER_A7_PI_8(mc68kcpu) | 0xffffff00));
-
- (mc68kcpu)->n_flag = NFLAG_8((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_er_pd(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(DX(mc68kcpu) &= (OPER_AY_PD_8(mc68kcpu) | 0xffffff00));
-
- (mc68kcpu)->n_flag = NFLAG_8((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_er_pd7(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(DX(mc68kcpu) &= (OPER_A7_PD_8(mc68kcpu) | 0xffffff00));
-
- (mc68kcpu)->n_flag = NFLAG_8((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_er_di(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(DX(mc68kcpu) &= (OPER_AY_DI_8(mc68kcpu) | 0xffffff00));
-
- (mc68kcpu)->n_flag = NFLAG_8((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_er_ix(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(DX(mc68kcpu) &= (OPER_AY_IX_8(mc68kcpu) | 0xffffff00));
-
- (mc68kcpu)->n_flag = NFLAG_8((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_er_aw(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(DX(mc68kcpu) &= (OPER_AW_8(mc68kcpu) | 0xffffff00));
-
- (mc68kcpu)->n_flag = NFLAG_8((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_er_al(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(DX(mc68kcpu) &= (OPER_AL_8(mc68kcpu) | 0xffffff00));
-
- (mc68kcpu)->n_flag = NFLAG_8((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_er_pcdi(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(DX(mc68kcpu) &= (OPER_PCDI_8(mc68kcpu) | 0xffffff00));
-
- (mc68kcpu)->n_flag = NFLAG_8((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_er_pcix(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(DX(mc68kcpu) &= (OPER_PCIX_8(mc68kcpu) | 0xffffff00));
-
- (mc68kcpu)->n_flag = NFLAG_8((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_er_i(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(DX(mc68kcpu) &= (OPER_I_8(mc68kcpu) | 0xffffff00));
-
- (mc68kcpu)->n_flag = NFLAG_8((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_16_er_d(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(DX(mc68kcpu) &= (DY(mc68kcpu) | 0xffff0000));
-
- (mc68kcpu)->n_flag = NFLAG_16((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_16_er_ai(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(DX(mc68kcpu) &= (OPER_AY_AI_16(mc68kcpu) | 0xffff0000));
-
- (mc68kcpu)->n_flag = NFLAG_16((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_16_er_pi(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(DX(mc68kcpu) &= (OPER_AY_PI_16(mc68kcpu) | 0xffff0000));
-
- (mc68kcpu)->n_flag = NFLAG_16((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_16_er_pd(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(DX(mc68kcpu) &= (OPER_AY_PD_16(mc68kcpu) | 0xffff0000));
-
- (mc68kcpu)->n_flag = NFLAG_16((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_16_er_di(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(DX(mc68kcpu) &= (OPER_AY_DI_16(mc68kcpu) | 0xffff0000));
-
- (mc68kcpu)->n_flag = NFLAG_16((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_16_er_ix(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(DX(mc68kcpu) &= (OPER_AY_IX_16(mc68kcpu) | 0xffff0000));
-
- (mc68kcpu)->n_flag = NFLAG_16((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_16_er_aw(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(DX(mc68kcpu) &= (OPER_AW_16(mc68kcpu) | 0xffff0000));
-
- (mc68kcpu)->n_flag = NFLAG_16((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_16_er_al(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(DX(mc68kcpu) &= (OPER_AL_16(mc68kcpu) | 0xffff0000));
-
- (mc68kcpu)->n_flag = NFLAG_16((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_16_er_pcdi(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(DX(mc68kcpu) &= (OPER_PCDI_16(mc68kcpu) | 0xffff0000));
-
- (mc68kcpu)->n_flag = NFLAG_16((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_16_er_pcix(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(DX(mc68kcpu) &= (OPER_PCIX_16(mc68kcpu) | 0xffff0000));
-
- (mc68kcpu)->n_flag = NFLAG_16((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_16_er_i(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(DX(mc68kcpu) &= (OPER_I_16(mc68kcpu) | 0xffff0000));
-
- (mc68kcpu)->n_flag = NFLAG_16((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_32_er_d(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = DX(mc68kcpu) &= DY(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_32((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_32_er_ai(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = DX(mc68kcpu) &= OPER_AY_AI_32(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_32((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_32_er_pi(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = DX(mc68kcpu) &= OPER_AY_PI_32(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_32((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_32_er_pd(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = DX(mc68kcpu) &= OPER_AY_PD_32(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_32((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_32_er_di(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = DX(mc68kcpu) &= OPER_AY_DI_32(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_32((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_32_er_ix(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = DX(mc68kcpu) &= OPER_AY_IX_32(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_32((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_32_er_aw(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = DX(mc68kcpu) &= OPER_AW_32(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_32((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_32_er_al(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = DX(mc68kcpu) &= OPER_AL_32(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_32((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_32_er_pcdi(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = DX(mc68kcpu) &= OPER_PCDI_32(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_32((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_32_er_pcix(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = DX(mc68kcpu) &= OPER_PCIX_32(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_32((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_32_er_i(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = DX(mc68kcpu) &= OPER_I_32(mc68kcpu);
-
- (mc68kcpu)->n_flag = NFLAG_32((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_re_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_re_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PI_8(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_re_pi7(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_A7_PI_8(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_re_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PD_8(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_re_pd7(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_A7_PD_8(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_re_di(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_re_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_re_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AW_8(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_8_re_al(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AL_8(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
-
- m68ki_write_8((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_16_re_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_AI_16(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_16((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_16_re_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PI_16(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_16((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_16_re_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PD_16(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_16((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_16_re_di(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_DI_16(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_16((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_16_re_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_IX_16(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_16((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_16_re_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AW_16(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_16((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_16_re_al(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AL_16(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_16((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(res);
-
- m68ki_write_16((mc68kcpu), ea, (mc68kcpu)->not_z_flag);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_32_re_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_AI_32(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_32((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_32_re_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PI_32(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_32((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_32_re_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PD_32(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_32((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_32_re_di(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_DI_32(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_32((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_32_re_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_IX_32(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_32((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_32_re_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AW_32(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_32((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_and_32_re_al(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AL_32(mc68kcpu);
- UINT32 res = DX(mc68kcpu) & m68ki_read_32((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_8_d(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(DY(mc68kcpu) &= (OPER_I_8(mc68kcpu) | 0xffffff00));
-
- (mc68kcpu)->n_flag = NFLAG_8((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_8_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
- UINT32 res = src & m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_8((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_8_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 ea = EA_AY_PI_8(mc68kcpu);
- UINT32 res = src & m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_8((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_8_pi7(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 ea = EA_A7_PI_8(mc68kcpu);
- UINT32 res = src & m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_8((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_8_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 ea = EA_AY_PD_8(mc68kcpu);
- UINT32 res = src & m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_8((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_8_pd7(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 ea = EA_A7_PD_8(mc68kcpu);
- UINT32 res = src & m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_8((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_8_di(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
- UINT32 res = src & m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_8((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_8_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
- UINT32 res = src & m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_8((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_8_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 ea = EA_AW_8(mc68kcpu);
- UINT32 res = src & m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_8((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_8_al(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_8(mc68kcpu);
- UINT32 ea = EA_AL_8(mc68kcpu);
- UINT32 res = src & m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_8((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_16_d(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_16(DY(mc68kcpu) &= (OPER_I_16(mc68kcpu) | 0xffff0000));
-
- (mc68kcpu)->n_flag = NFLAG_16((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_16_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AY_AI_16(mc68kcpu);
- UINT32 res = src & m68ki_read_16((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_16((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_16_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AY_PI_16(mc68kcpu);
- UINT32 res = src & m68ki_read_16((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_16((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_16_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AY_PD_16(mc68kcpu);
- UINT32 res = src & m68ki_read_16((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_16((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_16_di(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AY_DI_16(mc68kcpu);
- UINT32 res = src & m68ki_read_16((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_16((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_16_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AY_IX_16(mc68kcpu);
- UINT32 res = src & m68ki_read_16((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_16((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_16_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AW_16(mc68kcpu);
- UINT32 res = src & m68ki_read_16((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_16((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_16_al(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AL_16(mc68kcpu);
- UINT32 res = src & m68ki_read_16((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_16((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_32_d(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = DY(mc68kcpu) &= (OPER_I_32(mc68kcpu));
-
- (mc68kcpu)->n_flag = NFLAG_32((mc68kcpu)->not_z_flag);
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_32_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_32(mc68kcpu);
- UINT32 ea = EA_AY_AI_32(mc68kcpu);
- UINT32 res = src & m68ki_read_32((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_32_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_32(mc68kcpu);
- UINT32 ea = EA_AY_PI_32(mc68kcpu);
- UINT32 res = src & m68ki_read_32((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_32_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_32(mc68kcpu);
- UINT32 ea = EA_AY_PD_32(mc68kcpu);
- UINT32 res = src & m68ki_read_32((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_32_di(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_32(mc68kcpu);
- UINT32 ea = EA_AY_DI_32(mc68kcpu);
- UINT32 res = src & m68ki_read_32((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_32_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_32(mc68kcpu);
- UINT32 ea = EA_AY_IX_32(mc68kcpu);
- UINT32 res = src & m68ki_read_32((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_32_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_32(mc68kcpu);
- UINT32 ea = EA_AW_32(mc68kcpu);
- UINT32 res = src & m68ki_read_32((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_32_al(m68000_base_device* mc68kcpu)
-{
- UINT32 src = OPER_I_32(mc68kcpu);
- UINT32 ea = EA_AL_32(mc68kcpu);
- UINT32 res = src & m68ki_read_32((mc68kcpu), ea);
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, res);
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_16_toc(m68000_base_device* mc68kcpu)
-{
- m68ki_set_ccr((mc68kcpu), m68ki_get_ccr(mc68kcpu) & OPER_I_16(mc68kcpu));
-}
-
-
-void m68000_base_device_ops::m68k_op_andi_16_tos(m68000_base_device* mc68kcpu)
-{
- if((mc68kcpu)->s_flag)
- {
- UINT32 src = OPER_I_16(mc68kcpu);
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_set_sr((mc68kcpu), m68ki_get_sr(mc68kcpu) & src);
- return;
- }
- m68ki_exception_privilege_violation(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_asr_8_s(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 shift = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 src = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = src >> shift;
-
- if(shift != 0)
- (mc68kcpu)->remaining_cycles -= shift<<(mc68kcpu)->cyc_shift;
-
- if(GET_MSB_8(src))
- res |= m68ki_shift_8_table[shift];
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | res;
-
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = src << (9-shift);
-}
-
-
-void m68000_base_device_ops::m68k_op_asr_16_s(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 shift = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 src = MASK_OUT_ABOVE_16(*r_dst);
- UINT32 res = src >> shift;
-
- if(shift != 0)
- (mc68kcpu)->remaining_cycles -= shift<<(mc68kcpu)->cyc_shift;
-
- if(GET_MSB_16(src))
- res |= m68ki_shift_16_table[shift];
-
- *r_dst = MASK_OUT_BELOW_16(*r_dst) | res;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = src << (9-shift);
-}
-
-
-void m68000_base_device_ops::m68k_op_asr_32_s(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 shift = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 src = *r_dst;
- UINT32 res = src >> shift;
-
- if(shift != 0)
- (mc68kcpu)->remaining_cycles -= shift<<(mc68kcpu)->cyc_shift;
-
- if(GET_MSB_32(src))
- res |= m68ki_shift_32_table[shift];
-
- *r_dst = res;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = src << (9-shift);
-}
-
-
-void m68000_base_device_ops::m68k_op_asr_8_r(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 shift = DX(mc68kcpu) & 0x3f;
- UINT32 src = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = src >> shift;
-
- if(shift != 0)
- {
- (mc68kcpu)->remaining_cycles -= shift<<(mc68kcpu)->cyc_shift;
-
- if(shift < 8)
- {
- if(GET_MSB_8(src))
- res |= m68ki_shift_8_table[shift];
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | res;
-
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = src << (9-shift);
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- return;
- }
-
- if(GET_MSB_8(src))
- {
- *r_dst |= 0xff;
- (mc68kcpu)->c_flag = CFLAG_SET;
- (mc68kcpu)->x_flag = XFLAG_SET;
- (mc68kcpu)->n_flag = NFLAG_SET;
- (mc68kcpu)->not_z_flag = ZFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- return;
- }
-
- *r_dst &= 0xffffff00;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->x_flag = XFLAG_CLEAR;
- (mc68kcpu)->n_flag = NFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = ZFLAG_SET;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- return;
- }
-
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->n_flag = NFLAG_8(src);
- (mc68kcpu)->not_z_flag = src;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_asr_16_r(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 shift = DX(mc68kcpu) & 0x3f;
- UINT32 src = MASK_OUT_ABOVE_16(*r_dst);
- UINT32 res = src >> shift;
-
- if(shift != 0)
- {
- (mc68kcpu)->remaining_cycles -= shift<<(mc68kcpu)->cyc_shift;
-
- if(shift < 16)
- {
- if(GET_MSB_16(src))
- res |= m68ki_shift_16_table[shift];
-
- *r_dst = MASK_OUT_BELOW_16(*r_dst) | res;
-
- (mc68kcpu)->c_flag = (mc68kcpu)->x_flag = (src >> (shift - 1))<<8;
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- return;
- }
-
- if(GET_MSB_16(src))
- {
- *r_dst |= 0xffff;
- (mc68kcpu)->c_flag = CFLAG_SET;
- (mc68kcpu)->x_flag = XFLAG_SET;
- (mc68kcpu)->n_flag = NFLAG_SET;
- (mc68kcpu)->not_z_flag = ZFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- return;
- }
-
- *r_dst &= 0xffff0000;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->x_flag = XFLAG_CLEAR;
- (mc68kcpu)->n_flag = NFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = ZFLAG_SET;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- return;
- }
-
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->n_flag = NFLAG_16(src);
- (mc68kcpu)->not_z_flag = src;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_asr_32_r(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 shift = DX(mc68kcpu) & 0x3f;
- UINT32 src = *r_dst;
- UINT32 res = src >> shift;
-
- if(shift != 0)
- {
- (mc68kcpu)->remaining_cycles -= shift<<(mc68kcpu)->cyc_shift;
-
- if(shift < 32)
- {
- if(GET_MSB_32(src))
- res |= m68ki_shift_32_table[shift];
-
- *r_dst = res;
-
- (mc68kcpu)->c_flag = (mc68kcpu)->x_flag = (src >> (shift - 1))<<8;
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- return;
- }
-
- if(GET_MSB_32(src))
- {
- *r_dst = 0xffffffff;
- (mc68kcpu)->c_flag = CFLAG_SET;
- (mc68kcpu)->x_flag = XFLAG_SET;
- (mc68kcpu)->n_flag = NFLAG_SET;
- (mc68kcpu)->not_z_flag = ZFLAG_CLEAR;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- return;
- }
-
- *r_dst = 0;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->x_flag = XFLAG_CLEAR;
- (mc68kcpu)->n_flag = NFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = ZFLAG_SET;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- return;
- }
-
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->n_flag = NFLAG_32(src);
- (mc68kcpu)->not_z_flag = src;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_asr_16_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_AI_16(mc68kcpu);
- UINT32 src = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src >> 1;
-
- if(GET_MSB_16(src))
- res |= 0x8000;
-
- m68ki_write_16((mc68kcpu), ea, res);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = (mc68kcpu)->x_flag = src << 8;
-}
-
-
-void m68000_base_device_ops::m68k_op_asr_16_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PI_16(mc68kcpu);
- UINT32 src = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src >> 1;
-
- if(GET_MSB_16(src))
- res |= 0x8000;
-
- m68ki_write_16((mc68kcpu), ea, res);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = (mc68kcpu)->x_flag = src << 8;
-}
-
-
-void m68000_base_device_ops::m68k_op_asr_16_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PD_16(mc68kcpu);
- UINT32 src = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src >> 1;
-
- if(GET_MSB_16(src))
- res |= 0x8000;
-
- m68ki_write_16((mc68kcpu), ea, res);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = (mc68kcpu)->x_flag = src << 8;
-}
-
-
-void m68000_base_device_ops::m68k_op_asr_16_di(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_DI_16(mc68kcpu);
- UINT32 src = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src >> 1;
-
- if(GET_MSB_16(src))
- res |= 0x8000;
-
- m68ki_write_16((mc68kcpu), ea, res);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = (mc68kcpu)->x_flag = src << 8;
-}
-
-
-void m68000_base_device_ops::m68k_op_asr_16_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_IX_16(mc68kcpu);
- UINT32 src = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src >> 1;
-
- if(GET_MSB_16(src))
- res |= 0x8000;
-
- m68ki_write_16((mc68kcpu), ea, res);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = (mc68kcpu)->x_flag = src << 8;
-}
-
-
-void m68000_base_device_ops::m68k_op_asr_16_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AW_16(mc68kcpu);
- UINT32 src = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src >> 1;
-
- if(GET_MSB_16(src))
- res |= 0x8000;
-
- m68ki_write_16((mc68kcpu), ea, res);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = (mc68kcpu)->x_flag = src << 8;
-}
-
-
-void m68000_base_device_ops::m68k_op_asr_16_al(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AL_16(mc68kcpu);
- UINT32 src = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = src >> 1;
-
- if(GET_MSB_16(src))
- res |= 0x8000;
-
- m68ki_write_16((mc68kcpu), ea, res);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = (mc68kcpu)->x_flag = src << 8;
-}
-
-
-void m68000_base_device_ops::m68k_op_asl_8_s(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 shift = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 src = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = MASK_OUT_ABOVE_8(src << shift);
-
- if(shift != 0)
- (mc68kcpu)->remaining_cycles -= shift<<(mc68kcpu)->cyc_shift;
-
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | res;
-
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = src << shift;
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = res;
- src &= m68ki_shift_8_table[shift + 1];
- (mc68kcpu)->v_flag = (!(src == 0 || (src == m68ki_shift_8_table[shift + 1] && shift < 8)))<<7;
-}
-
-
-void m68000_base_device_ops::m68k_op_asl_16_s(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 shift = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 src = MASK_OUT_ABOVE_16(*r_dst);
- UINT32 res = MASK_OUT_ABOVE_16(src << shift);
-
- if(shift != 0)
- (mc68kcpu)->remaining_cycles -= shift<<(mc68kcpu)->cyc_shift;
-
- *r_dst = MASK_OUT_BELOW_16(*r_dst) | res;
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = src >> (8-shift);
- src &= m68ki_shift_16_table[shift + 1];
- (mc68kcpu)->v_flag = (!(src == 0 || src == m68ki_shift_16_table[shift + 1]))<<7;
-}
-
-
-void m68000_base_device_ops::m68k_op_asl_32_s(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 shift = ((((mc68kcpu)->ir >> 9) - 1) & 7) + 1;
- UINT32 src = *r_dst;
- UINT32 res = MASK_OUT_ABOVE_32(src << shift);
-
- if(shift != 0)
- (mc68kcpu)->remaining_cycles -= shift<<(mc68kcpu)->cyc_shift;
-
- *r_dst = res;
-
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = src >> (24-shift);
- src &= m68ki_shift_32_table[shift + 1];
- (mc68kcpu)->v_flag = (!(src == 0 || src == m68ki_shift_32_table[shift + 1]))<<7;
-}
-
-
-void m68000_base_device_ops::m68k_op_asl_8_r(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 shift = DX(mc68kcpu) & 0x3f;
- UINT32 src = MASK_OUT_ABOVE_8(*r_dst);
- UINT32 res = MASK_OUT_ABOVE_8(src << shift);
-
- if(shift != 0)
- {
- (mc68kcpu)->remaining_cycles -= shift<<(mc68kcpu)->cyc_shift;
-
- if(shift < 8)
- {
- *r_dst = MASK_OUT_BELOW_8(*r_dst) | res;
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = src << shift;
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = res;
- src &= m68ki_shift_8_table[shift + 1];
- (mc68kcpu)->v_flag = (!(src == 0 || src == m68ki_shift_8_table[shift + 1]))<<7;
- return;
- }
-
- *r_dst &= 0xffffff00;
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = ((shift == 8 ? src & 1 : 0))<<8;
- (mc68kcpu)->n_flag = NFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = ZFLAG_SET;
- (mc68kcpu)->v_flag = (!(src == 0))<<7;
- return;
- }
-
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->n_flag = NFLAG_8(src);
- (mc68kcpu)->not_z_flag = src;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_asl_16_r(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 shift = DX(mc68kcpu) & 0x3f;
- UINT32 src = MASK_OUT_ABOVE_16(*r_dst);
- UINT32 res = MASK_OUT_ABOVE_16(src << shift);
-
- if(shift != 0)
- {
- (mc68kcpu)->remaining_cycles -= shift<<(mc68kcpu)->cyc_shift;
-
- if(shift < 16)
- {
- *r_dst = MASK_OUT_BELOW_16(*r_dst) | res;
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = (src << shift) >> 8;
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- src &= m68ki_shift_16_table[shift + 1];
- (mc68kcpu)->v_flag = (!(src == 0 || src == m68ki_shift_16_table[shift + 1]))<<7;
- return;
- }
-
- *r_dst &= 0xffff0000;
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = ((shift == 16 ? src & 1 : 0))<<8;
- (mc68kcpu)->n_flag = NFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = ZFLAG_SET;
- (mc68kcpu)->v_flag = (!(src == 0))<<7;
- return;
- }
-
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->n_flag = NFLAG_16(src);
- (mc68kcpu)->not_z_flag = src;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_asl_32_r(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 shift = DX(mc68kcpu) & 0x3f;
- UINT32 src = *r_dst;
- UINT32 res = MASK_OUT_ABOVE_32(src << shift);
-
- if(shift != 0)
- {
- (mc68kcpu)->remaining_cycles -= shift<<(mc68kcpu)->cyc_shift;
-
- if(shift < 32)
- {
- *r_dst = res;
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = (src >> (32 - shift)) << 8;
- (mc68kcpu)->n_flag = NFLAG_32(res);
- (mc68kcpu)->not_z_flag = res;
- src &= m68ki_shift_32_table[shift + 1];
- (mc68kcpu)->v_flag = (!(src == 0 || src == m68ki_shift_32_table[shift + 1]))<<7;
- return;
- }
-
- *r_dst = 0;
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = ((shift == 32 ? src & 1 : 0))<<8;
- (mc68kcpu)->n_flag = NFLAG_CLEAR;
- (mc68kcpu)->not_z_flag = ZFLAG_SET;
- (mc68kcpu)->v_flag = (!(src == 0))<<7;
- return;
- }
-
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
- (mc68kcpu)->n_flag = NFLAG_32(src);
- (mc68kcpu)->not_z_flag = src;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
-}
-
-
-void m68000_base_device_ops::m68k_op_asl_16_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_AI_16(mc68kcpu);
- UINT32 src = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = MASK_OUT_ABOVE_16(src << 1);
-
- m68ki_write_16((mc68kcpu), ea, res);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = src >> 7;
- src &= 0xc000;
- (mc68kcpu)->v_flag = (!(src == 0 || src == 0xc000))<<7;
-}
-
-
-void m68000_base_device_ops::m68k_op_asl_16_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PI_16(mc68kcpu);
- UINT32 src = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = MASK_OUT_ABOVE_16(src << 1);
-
- m68ki_write_16((mc68kcpu), ea, res);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = src >> 7;
- src &= 0xc000;
- (mc68kcpu)->v_flag = (!(src == 0 || src == 0xc000))<<7;
-}
-
-
-void m68000_base_device_ops::m68k_op_asl_16_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PD_16(mc68kcpu);
- UINT32 src = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = MASK_OUT_ABOVE_16(src << 1);
-
- m68ki_write_16((mc68kcpu), ea, res);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = src >> 7;
- src &= 0xc000;
- (mc68kcpu)->v_flag = (!(src == 0 || src == 0xc000))<<7;
-}
-
-
-void m68000_base_device_ops::m68k_op_asl_16_di(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_DI_16(mc68kcpu);
- UINT32 src = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = MASK_OUT_ABOVE_16(src << 1);
-
- m68ki_write_16((mc68kcpu), ea, res);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = src >> 7;
- src &= 0xc000;
- (mc68kcpu)->v_flag = (!(src == 0 || src == 0xc000))<<7;
-}
-
-
-void m68000_base_device_ops::m68k_op_asl_16_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_IX_16(mc68kcpu);
- UINT32 src = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = MASK_OUT_ABOVE_16(src << 1);
-
- m68ki_write_16((mc68kcpu), ea, res);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = src >> 7;
- src &= 0xc000;
- (mc68kcpu)->v_flag = (!(src == 0 || src == 0xc000))<<7;
-}
-
-
-void m68000_base_device_ops::m68k_op_asl_16_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AW_16(mc68kcpu);
- UINT32 src = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = MASK_OUT_ABOVE_16(src << 1);
-
- m68ki_write_16((mc68kcpu), ea, res);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = src >> 7;
- src &= 0xc000;
- (mc68kcpu)->v_flag = (!(src == 0 || src == 0xc000))<<7;
-}
-
-
-void m68000_base_device_ops::m68k_op_asl_16_al(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AL_16(mc68kcpu);
- UINT32 src = m68ki_read_16((mc68kcpu), ea);
- UINT32 res = MASK_OUT_ABOVE_16(src << 1);
-
- m68ki_write_16((mc68kcpu), ea, res);
-
- (mc68kcpu)->n_flag = NFLAG_16(res);
- (mc68kcpu)->not_z_flag = res;
- (mc68kcpu)->x_flag = (mc68kcpu)->c_flag = src >> 7;
- src &= 0xc000;
- (mc68kcpu)->v_flag = (!(src == 0 || src == 0xc000))<<7;
-}
-
-
-void m68000_base_device_ops::m68k_op_bhi_8(m68000_base_device* mc68kcpu)
-{
- if(COND_HI(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
-}
-
-
-void m68000_base_device_ops::m68k_op_bls_8(m68000_base_device* mc68kcpu)
-{
- if(COND_LS(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
-}
-
-
-void m68000_base_device_ops::m68k_op_bcc_8(m68000_base_device* mc68kcpu)
-{
- if(COND_CC(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
-}
-
-
-void m68000_base_device_ops::m68k_op_bcs_8(m68000_base_device* mc68kcpu)
-{
- if(COND_CS(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
-}
-
-
-void m68000_base_device_ops::m68k_op_bne_8(m68000_base_device* mc68kcpu)
-{
- if(COND_NE(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
-}
-
-
-void m68000_base_device_ops::m68k_op_beq_8(m68000_base_device* mc68kcpu)
-{
- if(COND_EQ(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
-}
-
-
-void m68000_base_device_ops::m68k_op_bvc_8(m68000_base_device* mc68kcpu)
-{
- if(COND_VC(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
-}
-
-
-void m68000_base_device_ops::m68k_op_bvs_8(m68000_base_device* mc68kcpu)
-{
- if(COND_VS(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
-}
-
-
-void m68000_base_device_ops::m68k_op_bpl_8(m68000_base_device* mc68kcpu)
-{
- if(COND_PL(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
-}
-
-
-void m68000_base_device_ops::m68k_op_bmi_8(m68000_base_device* mc68kcpu)
-{
- if(COND_MI(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
-}
-
-
-void m68000_base_device_ops::m68k_op_bge_8(m68000_base_device* mc68kcpu)
-{
- if(COND_GE(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
-}
-
-
-void m68000_base_device_ops::m68k_op_blt_8(m68000_base_device* mc68kcpu)
-{
- if(COND_LT(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
-}
-
-
-void m68000_base_device_ops::m68k_op_bgt_8(m68000_base_device* mc68kcpu)
-{
- if(COND_GT(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
-}
-
-
-void m68000_base_device_ops::m68k_op_ble_8(m68000_base_device* mc68kcpu)
-{
- if(COND_LE(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
-}
-
-
-void m68000_base_device_ops::m68k_op_bhi_16(m68000_base_device* mc68kcpu)
-{
- if(COND_HI(mc68kcpu))
- {
- UINT32 offset = OPER_I_16(mc68kcpu);
- REG_PC(mc68kcpu) -= 2;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_16((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 2;
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_w;
-}
-
-
-void m68000_base_device_ops::m68k_op_bls_16(m68000_base_device* mc68kcpu)
-{
- if(COND_LS(mc68kcpu))
- {
- UINT32 offset = OPER_I_16(mc68kcpu);
- REG_PC(mc68kcpu) -= 2;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_16((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 2;
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_w;
-}
-
-
-void m68000_base_device_ops::m68k_op_bcc_16(m68000_base_device* mc68kcpu)
-{
- if(COND_CC(mc68kcpu))
- {
- UINT32 offset = OPER_I_16(mc68kcpu);
- REG_PC(mc68kcpu) -= 2;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_16((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 2;
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_w;
-}
-
-
-void m68000_base_device_ops::m68k_op_bcs_16(m68000_base_device* mc68kcpu)
-{
- if(COND_CS(mc68kcpu))
- {
- UINT32 offset = OPER_I_16(mc68kcpu);
- REG_PC(mc68kcpu) -= 2;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_16((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 2;
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_w;
-}
-
-
-void m68000_base_device_ops::m68k_op_bne_16(m68000_base_device* mc68kcpu)
-{
- if(COND_NE(mc68kcpu))
- {
- UINT32 offset = OPER_I_16(mc68kcpu);
- REG_PC(mc68kcpu) -= 2;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_16((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 2;
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_w;
-}
-
-
-void m68000_base_device_ops::m68k_op_beq_16(m68000_base_device* mc68kcpu)
-{
- if(COND_EQ(mc68kcpu))
- {
- UINT32 offset = OPER_I_16(mc68kcpu);
- REG_PC(mc68kcpu) -= 2;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_16((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 2;
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_w;
-}
-
-
-void m68000_base_device_ops::m68k_op_bvc_16(m68000_base_device* mc68kcpu)
-{
- if(COND_VC(mc68kcpu))
- {
- UINT32 offset = OPER_I_16(mc68kcpu);
- REG_PC(mc68kcpu) -= 2;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_16((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 2;
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_w;
-}
-
-
-void m68000_base_device_ops::m68k_op_bvs_16(m68000_base_device* mc68kcpu)
-{
- if(COND_VS(mc68kcpu))
- {
- UINT32 offset = OPER_I_16(mc68kcpu);
- REG_PC(mc68kcpu) -= 2;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_16((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 2;
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_w;
-}
-
-
-void m68000_base_device_ops::m68k_op_bpl_16(m68000_base_device* mc68kcpu)
-{
- if(COND_PL(mc68kcpu))
- {
- UINT32 offset = OPER_I_16(mc68kcpu);
- REG_PC(mc68kcpu) -= 2;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_16((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 2;
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_w;
-}
-
-
-void m68000_base_device_ops::m68k_op_bmi_16(m68000_base_device* mc68kcpu)
-{
- if(COND_MI(mc68kcpu))
- {
- UINT32 offset = OPER_I_16(mc68kcpu);
- REG_PC(mc68kcpu) -= 2;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_16((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 2;
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_w;
-}
-
-
-void m68000_base_device_ops::m68k_op_bge_16(m68000_base_device* mc68kcpu)
-{
- if(COND_GE(mc68kcpu))
- {
- UINT32 offset = OPER_I_16(mc68kcpu);
- REG_PC(mc68kcpu) -= 2;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_16((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 2;
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_w;
-}
-
-
-void m68000_base_device_ops::m68k_op_blt_16(m68000_base_device* mc68kcpu)
-{
- if(COND_LT(mc68kcpu))
- {
- UINT32 offset = OPER_I_16(mc68kcpu);
- REG_PC(mc68kcpu) -= 2;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_16((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 2;
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_w;
-}
-
-
-void m68000_base_device_ops::m68k_op_bgt_16(m68000_base_device* mc68kcpu)
-{
- if(COND_GT(mc68kcpu))
- {
- UINT32 offset = OPER_I_16(mc68kcpu);
- REG_PC(mc68kcpu) -= 2;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_16((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 2;
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_w;
-}
-
-
-void m68000_base_device_ops::m68k_op_ble_16(m68000_base_device* mc68kcpu)
-{
- if(COND_LE(mc68kcpu))
- {
- UINT32 offset = OPER_I_16(mc68kcpu);
- REG_PC(mc68kcpu) -= 2;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_16((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 2;
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_w;
-}
-
-
-void m68000_base_device_ops::m68k_op_bhi_32(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- if(COND_HI(mc68kcpu))
- {
- UINT32 offset = OPER_I_32(mc68kcpu);
- REG_PC(mc68kcpu) -= 4;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_32((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 4;
- return;
- }
- else
- {
- if(COND_HI(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
- }
-}
-
-
-void m68000_base_device_ops::m68k_op_bls_32(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- if(COND_LS(mc68kcpu))
- {
- UINT32 offset = OPER_I_32(mc68kcpu);
- REG_PC(mc68kcpu) -= 4;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_32((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 4;
- return;
- }
- else
- {
- if(COND_LS(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
- }
-}
-
-
-void m68000_base_device_ops::m68k_op_bcc_32(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- if(COND_CC(mc68kcpu))
- {
- UINT32 offset = OPER_I_32(mc68kcpu);
- REG_PC(mc68kcpu) -= 4;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_32((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 4;
- return;
- }
- else
- {
- if(COND_CC(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
- }
-}
-
-
-void m68000_base_device_ops::m68k_op_bcs_32(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- if(COND_CS(mc68kcpu))
- {
- UINT32 offset = OPER_I_32(mc68kcpu);
- REG_PC(mc68kcpu) -= 4;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_32((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 4;
- return;
- }
- else
- {
- if(COND_CS(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
- }
-}
-
-
-void m68000_base_device_ops::m68k_op_bne_32(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- if(COND_NE(mc68kcpu))
- {
- UINT32 offset = OPER_I_32(mc68kcpu);
- REG_PC(mc68kcpu) -= 4;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_32((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 4;
- return;
- }
- else
- {
- if(COND_NE(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
- }
-}
-
-
-void m68000_base_device_ops::m68k_op_beq_32(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- if(COND_EQ(mc68kcpu))
- {
- UINT32 offset = OPER_I_32(mc68kcpu);
- REG_PC(mc68kcpu) -= 4;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_32((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 4;
- return;
- }
- else
- {
- if(COND_EQ(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
- }
-}
-
-
-void m68000_base_device_ops::m68k_op_bvc_32(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- if(COND_VC(mc68kcpu))
- {
- UINT32 offset = OPER_I_32(mc68kcpu);
- REG_PC(mc68kcpu) -= 4;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_32((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 4;
- return;
- }
- else
- {
- if(COND_VC(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
- }
-}
-
-
-void m68000_base_device_ops::m68k_op_bvs_32(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- if(COND_VS(mc68kcpu))
- {
- UINT32 offset = OPER_I_32(mc68kcpu);
- REG_PC(mc68kcpu) -= 4;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_32((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 4;
- return;
- }
- else
- {
- if(COND_VS(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
- }
-}
-
-
-void m68000_base_device_ops::m68k_op_bpl_32(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- if(COND_PL(mc68kcpu))
- {
- UINT32 offset = OPER_I_32(mc68kcpu);
- REG_PC(mc68kcpu) -= 4;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_32((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 4;
- return;
- }
- else
- {
- if(COND_PL(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
- }
-}
-
-
-void m68000_base_device_ops::m68k_op_bmi_32(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- if(COND_MI(mc68kcpu))
- {
- UINT32 offset = OPER_I_32(mc68kcpu);
- REG_PC(mc68kcpu) -= 4;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_32((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 4;
- return;
- }
- else
- {
- if(COND_MI(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
- }
-}
-
-
-void m68000_base_device_ops::m68k_op_bge_32(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- if(COND_GE(mc68kcpu))
- {
- UINT32 offset = OPER_I_32(mc68kcpu);
- REG_PC(mc68kcpu) -= 4;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_32((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 4;
- return;
- }
- else
- {
- if(COND_GE(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
- }
-}
-
-
-void m68000_base_device_ops::m68k_op_blt_32(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- if(COND_LT(mc68kcpu))
- {
- UINT32 offset = OPER_I_32(mc68kcpu);
- REG_PC(mc68kcpu) -= 4;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_32((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 4;
- return;
- }
- else
- {
- if(COND_LT(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
- }
-}
-
-
-void m68000_base_device_ops::m68k_op_bgt_32(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- if(COND_GT(mc68kcpu))
- {
- UINT32 offset = OPER_I_32(mc68kcpu);
- REG_PC(mc68kcpu) -= 4;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_32((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 4;
- return;
- }
- else
- {
- if(COND_GT(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
- }
-}
-
-
-void m68000_base_device_ops::m68k_op_ble_32(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- if(COND_LE(mc68kcpu))
- {
- UINT32 offset = OPER_I_32(mc68kcpu);
- REG_PC(mc68kcpu) -= 4;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_32((mc68kcpu), offset);
- return;
- }
- REG_PC(mc68kcpu) += 4;
- return;
- }
- else
- {
- if(COND_LE(mc68kcpu))
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- return;
- }
- (mc68kcpu)->remaining_cycles -= (mc68kcpu)->cyc_bcc_notake_b;
- }
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_32_r_d(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 mask = 1 << (DX(mc68kcpu) & 0x1f);
-
- (mc68kcpu)->not_z_flag = *r_dst & mask;
- *r_dst ^= mask;
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_8_r_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src ^ mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_8_r_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src ^ mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_8_r_pi7(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_A7_PI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src ^ mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_8_r_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PD_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src ^ mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_8_r_pd7(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_A7_PD_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src ^ mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_8_r_di(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src ^ mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_8_r_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src ^ mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_8_r_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AW_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src ^ mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_8_r_al(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AL_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src ^ mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_32_s_d(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 0x1f);
-
- (mc68kcpu)->not_z_flag = *r_dst & mask;
- *r_dst ^= mask;
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_8_s_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src ^ mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_8_s_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AY_PI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src ^ mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_8_s_pi7(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_A7_PI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src ^ mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_8_s_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AY_PD_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src ^ mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_8_s_pd7(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_A7_PD_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src ^ mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_8_s_di(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src ^ mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_8_s_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src ^ mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_8_s_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AW_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src ^ mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bchg_8_s_al(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AL_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src ^ mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_32_r_d(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 mask = 1 << (DX(mc68kcpu) & 0x1f);
-
- (mc68kcpu)->not_z_flag = *r_dst & mask;
- *r_dst &= ~mask;
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_8_r_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src & ~mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_8_r_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src & ~mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_8_r_pi7(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_A7_PI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src & ~mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_8_r_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PD_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src & ~mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_8_r_pd7(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_A7_PD_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src & ~mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_8_r_di(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src & ~mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_8_r_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src & ~mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_8_r_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AW_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src & ~mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_8_r_al(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AL_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src & ~mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_32_s_d(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 0x1f);
-
- (mc68kcpu)->not_z_flag = *r_dst & mask;
- *r_dst &= ~mask;
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_8_s_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src & ~mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_8_s_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AY_PI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src & ~mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_8_s_pi7(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_A7_PI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src & ~mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_8_s_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AY_PD_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src & ~mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_8_s_pd7(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_A7_PD_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src & ~mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_8_s_di(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src & ~mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_8_s_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src & ~mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_8_s_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AW_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src & ~mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bclr_8_s_al(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AL_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src & ~mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfchg_32_d(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- UINT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32* data = &DY(mc68kcpu);
- UINT64 mask;
-
-
- if(BIT_B(word2))
- offset = REG_D(mc68kcpu)[offset&7];
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- offset &= 31;
- width = ((width-1) & 31) + 1;
-
- mask = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask = ROR_32(mask, offset);
-
- (mc68kcpu)->n_flag = NFLAG_32(*data<<offset);
- (mc68kcpu)->not_z_flag = *data & mask;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- *data ^= mask;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfchg_32_ai(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = NFLAG_32(data_long << offset);
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, data_long ^ mask_long);
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, data_byte ^ mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfchg_32_di(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = NFLAG_32(data_long << offset);
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, data_long ^ mask_long);
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, data_byte ^ mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfchg_32_ix(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = NFLAG_32(data_long << offset);
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, data_long ^ mask_long);
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, data_byte ^ mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfchg_32_aw(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AW_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = NFLAG_32(data_long << offset);
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, data_long ^ mask_long);
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, data_byte ^ mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfchg_32_al(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AL_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = NFLAG_32(data_long << offset);
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, data_long ^ mask_long);
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, data_byte ^ mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfclr_32_d(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- UINT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32* data = &DY(mc68kcpu);
- UINT64 mask;
-
-
- if(BIT_B(word2))
- offset = REG_D(mc68kcpu)[offset&7];
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
-
- offset &= 31;
- width = ((width-1) & 31) + 1;
-
-
- mask = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask = ROR_32(mask, offset);
-
- (mc68kcpu)->n_flag = NFLAG_32(*data<<offset);
- (mc68kcpu)->not_z_flag = *data & mask;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- *data &= ~mask;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfclr_32_ai(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = NFLAG_32(data_long << offset);
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, data_long & ~mask_long);
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, data_byte & ~mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfclr_32_di(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = NFLAG_32(data_long << offset);
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, data_long & ~mask_long);
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, data_byte & ~mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfclr_32_ix(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = NFLAG_32(data_long << offset);
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, data_long & ~mask_long);
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, data_byte & ~mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfclr_32_aw(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AW_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = NFLAG_32(data_long << offset);
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, data_long & ~mask_long);
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, data_byte & ~mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfclr_32_al(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AL_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = NFLAG_32(data_long << offset);
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, data_long & ~mask_long);
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, data_byte & ~mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfexts_32_d(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- UINT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT64 data = DY(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = REG_D(mc68kcpu)[offset&7];
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- offset &= 31;
- width = ((width-1) & 31) + 1;
-
- data = ROL_32(data, offset);
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data = MAKE_INT_32(data) >> (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- REG_D(mc68kcpu)[(word2>>12)&7] = data;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfexts_32_ai(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 data;
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- if(BIT_B(word2))
- {
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 8 ? (m68ki_read_8((mc68kcpu), ea) << 24) :
- (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
-
- data = MASK_OUT_ABOVE_32(data<<offset);
-
- if((offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data = MAKE_INT_32(data) >> (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- REG_D(mc68kcpu)[(word2 >> 12) & 7] = data;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfexts_32_di(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 data;
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- if(BIT_B(word2))
- {
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 8 ? (m68ki_read_8((mc68kcpu), ea) << 24) :
- (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
-
- data = MASK_OUT_ABOVE_32(data<<offset);
-
- if((offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data = MAKE_INT_32(data) >> (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- REG_D(mc68kcpu)[(word2 >> 12) & 7] = data;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfexts_32_ix(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 data;
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- if(BIT_B(word2))
- {
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 8 ? (m68ki_read_8((mc68kcpu), ea) << 24) :
- (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
-
- data = MASK_OUT_ABOVE_32(data<<offset);
-
- if((offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data = MAKE_INT_32(data) >> (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- REG_D(mc68kcpu)[(word2 >> 12) & 7] = data;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfexts_32_aw(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 data;
- UINT32 ea = EA_AW_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- if(BIT_B(word2))
- {
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 8 ? (m68ki_read_8((mc68kcpu), ea) << 24) :
- (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
-
- data = MASK_OUT_ABOVE_32(data<<offset);
-
- if((offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data = MAKE_INT_32(data) >> (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- REG_D(mc68kcpu)[(word2 >> 12) & 7] = data;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfexts_32_al(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 data;
- UINT32 ea = EA_AL_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- if(BIT_B(word2))
- {
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 8 ? (m68ki_read_8((mc68kcpu), ea) << 24) :
- (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
-
- data = MASK_OUT_ABOVE_32(data<<offset);
-
- if((offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data = MAKE_INT_32(data) >> (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- REG_D(mc68kcpu)[(word2 >> 12) & 7] = data;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfexts_32_pcdi(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 data;
- UINT32 ea = EA_PCDI_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- if(BIT_B(word2))
- {
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 8 ? (m68ki_read_8((mc68kcpu), ea) << 24) :
- (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
-
- data = MASK_OUT_ABOVE_32(data<<offset);
-
- if((offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data = MAKE_INT_32(data) >> (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- REG_D(mc68kcpu)[(word2 >> 12) & 7] = data;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfexts_32_pcix(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 data;
- UINT32 ea = EA_PCIX_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- if(BIT_B(word2))
- {
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 8 ? (m68ki_read_8((mc68kcpu), ea) << 24) :
- (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
-
- data = MASK_OUT_ABOVE_32(data<<offset);
-
- if((offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data = MAKE_INT_32(data) >> (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- REG_D(mc68kcpu)[(word2 >> 12) & 7] = data;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfextu_32_d(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- UINT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT64 data = DY(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = REG_D(mc68kcpu)[offset&7];
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- offset &= 31;
- width = ((width-1) & 31) + 1;
-
- data = ROL_32(data, offset);
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data >>= 32 - width;
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- REG_D(mc68kcpu)[(word2>>12)&7] = data;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfextu_32_ai(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 data;
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- if(BIT_B(word2))
- {
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 8 ? (m68ki_read_8((mc68kcpu), ea) << 24) :
- (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
- data = MASK_OUT_ABOVE_32(data<<offset);
-
- if((offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data >>= (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- REG_D(mc68kcpu)[(word2 >> 12) & 7] = data;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfextu_32_di(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 data;
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- if(BIT_B(word2))
- {
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 8 ? (m68ki_read_8((mc68kcpu), ea) << 24) :
- (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
- data = MASK_OUT_ABOVE_32(data<<offset);
-
- if((offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data >>= (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- REG_D(mc68kcpu)[(word2 >> 12) & 7] = data;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfextu_32_ix(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 data;
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- if(BIT_B(word2))
- {
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 8 ? (m68ki_read_8((mc68kcpu), ea) << 24) :
- (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
- data = MASK_OUT_ABOVE_32(data<<offset);
-
- if((offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data >>= (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- REG_D(mc68kcpu)[(word2 >> 12) & 7] = data;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfextu_32_aw(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 data;
- UINT32 ea = EA_AW_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- if(BIT_B(word2))
- {
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 8 ? (m68ki_read_8((mc68kcpu), ea) << 24) :
- (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
- data = MASK_OUT_ABOVE_32(data<<offset);
-
- if((offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data >>= (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- REG_D(mc68kcpu)[(word2 >> 12) & 7] = data;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfextu_32_al(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 data;
- UINT32 ea = EA_AL_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- if(BIT_B(word2))
- {
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 8 ? (m68ki_read_8((mc68kcpu), ea) << 24) :
- (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
- data = MASK_OUT_ABOVE_32(data<<offset);
-
- if((offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data >>= (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- REG_D(mc68kcpu)[(word2 >> 12) & 7] = data;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfextu_32_pcdi(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 data;
- UINT32 ea = EA_PCDI_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- if(BIT_B(word2))
- {
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 8 ? (m68ki_read_8((mc68kcpu), ea) << 24) :
- (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
- data = MASK_OUT_ABOVE_32(data<<offset);
-
- if((offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data >>= (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- REG_D(mc68kcpu)[(word2 >> 12) & 7] = data;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfextu_32_pcix(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 data;
- UINT32 ea = EA_PCIX_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- if(BIT_B(word2))
- {
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 8 ? (m68ki_read_8((mc68kcpu), ea) << 24) :
- (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
- data = MASK_OUT_ABOVE_32(data<<offset);
-
- if((offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data >>= (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- REG_D(mc68kcpu)[(word2 >> 12) & 7] = data;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfffo_32_d(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- UINT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT64 data = DY(mc68kcpu);
- UINT32 bit;
-
-
- if(BIT_B(word2))
- offset = REG_D(mc68kcpu)[offset&7];
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- offset &= 31;
- width = ((width-1) & 31) + 1;
-
- data = ROL_32(data, offset);
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data >>= 32 - width;
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- for(bit = 1<<(width-1);bit && !(data & bit);bit>>= 1)
- offset++;
-
- REG_D(mc68kcpu)[(word2>>12)&7] = offset;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfffo_32_ai(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- INT32 local_offset;
- UINT32 width = word2;
- UINT32 data;
- UINT32 bit;
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- local_offset = offset % 8;
- if(local_offset < 0)
- {
- local_offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
- data = MASK_OUT_ABOVE_32(data<<local_offset);
-
- if((local_offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << local_offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data >>= (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- for(bit = 1<<(width-1);bit && !(data & bit);bit>>= 1)
- offset++;
-
- REG_D(mc68kcpu)[(word2>>12)&7] = offset;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfffo_32_di(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- INT32 local_offset;
- UINT32 width = word2;
- UINT32 data;
- UINT32 bit;
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- local_offset = offset % 8;
- if(local_offset < 0)
- {
- local_offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
- data = MASK_OUT_ABOVE_32(data<<local_offset);
-
- if((local_offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << local_offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data >>= (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- for(bit = 1<<(width-1);bit && !(data & bit);bit>>= 1)
- offset++;
-
- REG_D(mc68kcpu)[(word2>>12)&7] = offset;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfffo_32_ix(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- INT32 local_offset;
- UINT32 width = word2;
- UINT32 data;
- UINT32 bit;
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- local_offset = offset % 8;
- if(local_offset < 0)
- {
- local_offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
- data = MASK_OUT_ABOVE_32(data<<local_offset);
-
- if((local_offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << local_offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data >>= (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- for(bit = 1<<(width-1);bit && !(data & bit);bit>>= 1)
- offset++;
-
- REG_D(mc68kcpu)[(word2>>12)&7] = offset;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfffo_32_aw(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- INT32 local_offset;
- UINT32 width = word2;
- UINT32 data;
- UINT32 bit;
- UINT32 ea = EA_AW_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- local_offset = offset % 8;
- if(local_offset < 0)
- {
- local_offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
- data = MASK_OUT_ABOVE_32(data<<local_offset);
-
- if((local_offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << local_offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data >>= (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- for(bit = 1<<(width-1);bit && !(data & bit);bit>>= 1)
- offset++;
-
- REG_D(mc68kcpu)[(word2>>12)&7] = offset;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfffo_32_al(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- INT32 local_offset;
- UINT32 width = word2;
- UINT32 data;
- UINT32 bit;
- UINT32 ea = EA_AL_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- local_offset = offset % 8;
- if(local_offset < 0)
- {
- local_offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
- data = MASK_OUT_ABOVE_32(data<<local_offset);
-
- if((local_offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << local_offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data >>= (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- for(bit = 1<<(width-1);bit && !(data & bit);bit>>= 1)
- offset++;
-
- REG_D(mc68kcpu)[(word2>>12)&7] = offset;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfffo_32_pcdi(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- INT32 local_offset;
- UINT32 width = word2;
- UINT32 data;
- UINT32 bit;
- UINT32 ea = EA_PCDI_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- local_offset = offset % 8;
- if(local_offset < 0)
- {
- local_offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
- data = MASK_OUT_ABOVE_32(data<<local_offset);
-
- if((local_offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << local_offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data >>= (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- for(bit = 1<<(width-1);bit && !(data & bit);bit>>= 1)
- offset++;
-
- REG_D(mc68kcpu)[(word2>>12)&7] = offset;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfffo_32_pcix(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- INT32 local_offset;
- UINT32 width = word2;
- UINT32 data;
- UINT32 bit;
- UINT32 ea = EA_PCIX_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- local_offset = offset % 8;
- if(local_offset < 0)
- {
- local_offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- data = (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
- data = MASK_OUT_ABOVE_32(data<<local_offset);
-
- if((local_offset+width) > 32)
- data |= (m68ki_read_8((mc68kcpu), ea+4) << local_offset) >> 8;
-
- (mc68kcpu)->n_flag = NFLAG_32(data);
- data >>= (32 - width);
-
- (mc68kcpu)->not_z_flag = data;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- for(bit = 1<<(width-1);bit && !(data & bit);bit>>= 1)
- offset++;
-
- REG_D(mc68kcpu)[(word2>>12)&7] = offset;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfins_32_d(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- UINT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32* data = &DY(mc68kcpu);
- UINT64 mask;
- UINT64 insert = REG_D(mc68kcpu)[(word2>>12)&7];
-
-
- if(BIT_B(word2))
- offset = REG_D(mc68kcpu)[offset&7];
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
-
- offset &= 31;
- width = ((width-1) & 31) + 1;
-
-
- mask = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask = ROR_32(mask, offset);
-
- insert = MASK_OUT_ABOVE_32(insert << (32 - width));
- (mc68kcpu)->n_flag = NFLAG_32(insert);
- (mc68kcpu)->not_z_flag = insert;
- insert = ROR_32(insert, offset);
-
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- *data &= ~mask;
- *data |= insert;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfins_32_ai(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 insert_base = REG_D(mc68kcpu)[(word2>>12)&7];
- UINT32 insert_long;
- UINT32 insert_byte;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- if(BIT_B(word2))
- {
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- insert_base = MASK_OUT_ABOVE_32(insert_base << (32 - width));
- (mc68kcpu)->n_flag = NFLAG_32(insert_base);
- (mc68kcpu)->not_z_flag = insert_base;
- insert_long = insert_base >> offset;
-
- data_long = (offset+width) < 8 ? (m68ki_read_8((mc68kcpu), ea) << 24) :
- (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- if((width + offset) < 8)
- {
- m68ki_write_8((mc68kcpu), ea, ((data_long & ~mask_long) | insert_long) >> 24);
- }
- else if((width + offset) < 16)
- {
- m68ki_write_16((mc68kcpu), ea, ((data_long & ~mask_long) | insert_long) >> 16);
- }
- else
- {
- m68ki_write_32((mc68kcpu), ea, (data_long & ~mask_long) | insert_long);
- }
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- insert_byte = MASK_OUT_ABOVE_8(insert_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (insert_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, (data_byte & ~mask_byte) | insert_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfins_32_di(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 insert_base = REG_D(mc68kcpu)[(word2>>12)&7];
- UINT32 insert_long;
- UINT32 insert_byte;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- if(BIT_B(word2))
- {
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- insert_base = MASK_OUT_ABOVE_32(insert_base << (32 - width));
- (mc68kcpu)->n_flag = NFLAG_32(insert_base);
- (mc68kcpu)->not_z_flag = insert_base;
- insert_long = insert_base >> offset;
-
- data_long = (offset+width) < 8 ? (m68ki_read_8((mc68kcpu), ea) << 24) :
- (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- if((width + offset) < 8)
- {
- m68ki_write_8((mc68kcpu), ea, ((data_long & ~mask_long) | insert_long) >> 24);
- }
- else if((width + offset) < 16)
- {
- m68ki_write_16((mc68kcpu), ea, ((data_long & ~mask_long) | insert_long) >> 16);
- }
- else
- {
- m68ki_write_32((mc68kcpu), ea, (data_long & ~mask_long) | insert_long);
- }
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- insert_byte = MASK_OUT_ABOVE_8(insert_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (insert_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, (data_byte & ~mask_byte) | insert_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfins_32_ix(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 insert_base = REG_D(mc68kcpu)[(word2>>12)&7];
- UINT32 insert_long;
- UINT32 insert_byte;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- if(BIT_B(word2))
- {
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- insert_base = MASK_OUT_ABOVE_32(insert_base << (32 - width));
- (mc68kcpu)->n_flag = NFLAG_32(insert_base);
- (mc68kcpu)->not_z_flag = insert_base;
- insert_long = insert_base >> offset;
-
- data_long = (offset+width) < 8 ? (m68ki_read_8((mc68kcpu), ea) << 24) :
- (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- if((width + offset) < 8)
- {
- m68ki_write_8((mc68kcpu), ea, ((data_long & ~mask_long) | insert_long) >> 24);
- }
- else if((width + offset) < 16)
- {
- m68ki_write_16((mc68kcpu), ea, ((data_long & ~mask_long) | insert_long) >> 16);
- }
- else
- {
- m68ki_write_32((mc68kcpu), ea, (data_long & ~mask_long) | insert_long);
- }
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- insert_byte = MASK_OUT_ABOVE_8(insert_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (insert_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, (data_byte & ~mask_byte) | insert_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfins_32_aw(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 insert_base = REG_D(mc68kcpu)[(word2>>12)&7];
- UINT32 insert_long;
- UINT32 insert_byte;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AW_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- if(BIT_B(word2))
- {
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- insert_base = MASK_OUT_ABOVE_32(insert_base << (32 - width));
- (mc68kcpu)->n_flag = NFLAG_32(insert_base);
- (mc68kcpu)->not_z_flag = insert_base;
- insert_long = insert_base >> offset;
-
- data_long = (offset+width) < 8 ? (m68ki_read_8((mc68kcpu), ea) << 24) :
- (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- if((width + offset) < 8)
- {
- m68ki_write_8((mc68kcpu), ea, ((data_long & ~mask_long) | insert_long) >> 24);
- }
- else if((width + offset) < 16)
- {
- m68ki_write_16((mc68kcpu), ea, ((data_long & ~mask_long) | insert_long) >> 16);
- }
- else
- {
- m68ki_write_32((mc68kcpu), ea, (data_long & ~mask_long) | insert_long);
- }
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- insert_byte = MASK_OUT_ABOVE_8(insert_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (insert_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, (data_byte & ~mask_byte) | insert_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfins_32_al(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 insert_base = REG_D(mc68kcpu)[(word2>>12)&7];
- UINT32 insert_long;
- UINT32 insert_byte;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AL_8(mc68kcpu);
-
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- if(BIT_B(word2))
- {
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- insert_base = MASK_OUT_ABOVE_32(insert_base << (32 - width));
- (mc68kcpu)->n_flag = NFLAG_32(insert_base);
- (mc68kcpu)->not_z_flag = insert_base;
- insert_long = insert_base >> offset;
-
- data_long = (offset+width) < 8 ? (m68ki_read_8((mc68kcpu), ea) << 24) :
- (offset+width) < 16 ? (m68ki_read_16((mc68kcpu), ea) << 16) : m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- if((width + offset) < 8)
- {
- m68ki_write_8((mc68kcpu), ea, ((data_long & ~mask_long) | insert_long) >> 24);
- }
- else if((width + offset) < 16)
- {
- m68ki_write_16((mc68kcpu), ea, ((data_long & ~mask_long) | insert_long) >> 16);
- }
- else
- {
- m68ki_write_32((mc68kcpu), ea, (data_long & ~mask_long) | insert_long);
- }
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- insert_byte = MASK_OUT_ABOVE_8(insert_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (insert_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, (data_byte & ~mask_byte) | insert_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfset_32_d(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- UINT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32* data = &DY(mc68kcpu);
- UINT64 mask;
-
-
- if(BIT_B(word2))
- offset = REG_D(mc68kcpu)[offset&7];
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
-
- offset &= 31;
- width = ((width-1) & 31) + 1;
-
-
- mask = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask = ROR_32(mask, offset);
-
- (mc68kcpu)->n_flag = NFLAG_32(*data<<offset);
- (mc68kcpu)->not_z_flag = *data & mask;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- *data |= mask;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfset_32_ai(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = NFLAG_32(data_long << offset);
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, data_long | mask_long);
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, data_byte | mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfset_32_di(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = NFLAG_32(data_long << offset);
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, data_long | mask_long);
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, data_byte | mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfset_32_ix(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = NFLAG_32(data_long << offset);
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, data_long | mask_long);
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, data_byte | mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfset_32_aw(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AW_8(mc68kcpu);
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = NFLAG_32(data_long << offset);
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, data_long | mask_long);
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, data_byte | mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bfset_32_al(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AL_8(mc68kcpu);
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = NFLAG_32(data_long << offset);
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- m68ki_write_32((mc68kcpu), ea, data_long | mask_long);
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- m68ki_write_8((mc68kcpu), ea+4, data_byte | mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bftst_32_d(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- UINT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32* data = &DY(mc68kcpu);
- UINT64 mask;
-
-
- if(BIT_B(word2))
- offset = REG_D(mc68kcpu)[offset&7];
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
-
- offset &= 31;
- width = ((width-1) & 31) + 1;
-
-
- mask = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask = ROR_32(mask, offset);
-
- (mc68kcpu)->n_flag = NFLAG_32(*data<<offset);
- (mc68kcpu)->not_z_flag = *data & mask;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bftst_32_ai(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = ((data_long & (0x80000000 >> offset))<<offset)>>24;
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bftst_32_di(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = ((data_long & (0x80000000 >> offset))<<offset)>>24;
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bftst_32_ix(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = ((data_long & (0x80000000 >> offset))<<offset)>>24;
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bftst_32_aw(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AW_8(mc68kcpu);
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = ((data_long & (0x80000000 >> offset))<<offset)>>24;
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bftst_32_al(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_AL_8(mc68kcpu);
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = ((data_long & (0x80000000 >> offset))<<offset)>>24;
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bftst_32_pcdi(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_PCDI_8(mc68kcpu);
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = ((data_long & (0x80000000 >> offset))<<offset)>>24;
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bftst_32_pcix(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- INT32 offset = (word2>>6)&31;
- UINT32 width = word2;
- UINT32 mask_base;
- UINT32 data_long;
- UINT32 mask_long;
- UINT32 data_byte = 0;
- UINT32 mask_byte = 0;
- UINT32 ea = EA_PCIX_8(mc68kcpu);
-
- if(BIT_B(word2))
- offset = MAKE_INT_32(REG_D(mc68kcpu)[offset&7]);
- if(BIT_5(word2))
- width = REG_D(mc68kcpu)[width&7];
-
- /* Offset is signed so we have to use ugly math =( */
- ea += offset / 8;
- offset %= 8;
- if(offset < 0)
- {
- offset += 8;
- ea--;
- }
- width = ((width-1) & 31) + 1;
-
-
- mask_base = MASK_OUT_ABOVE_32(0xffffffff << (32 - width));
- mask_long = mask_base >> offset;
-
- data_long = m68ki_read_32((mc68kcpu), ea);
- (mc68kcpu)->n_flag = ((data_long & (0x80000000 >> offset))<<offset)>>24;
- (mc68kcpu)->not_z_flag = data_long & mask_long;
- (mc68kcpu)->v_flag = VFLAG_CLEAR;
- (mc68kcpu)->c_flag = CFLAG_CLEAR;
-
- if((width + offset) > 32)
- {
- mask_byte = MASK_OUT_ABOVE_8(mask_base) << (8-offset);
- data_byte = m68ki_read_8((mc68kcpu), ea+4);
- (mc68kcpu)->not_z_flag |= (data_byte & mask_byte);
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bkpt(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_010_PLUS((mc68kcpu)->cpu_type))
- {
- if (!(mc68kcpu)->bkpt_ack_callback.isnull())
- ((mc68kcpu)->bkpt_ack_callback)((*mc68kcpu->program), 0, CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type) ? (mc68kcpu)->ir & 7 : 0, 0xffffffff);
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_bra_8(m68000_base_device* mc68kcpu)
-{
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- if(REG_PC(mc68kcpu) == REG_PPC(mc68kcpu) && (mc68kcpu)->remaining_cycles > 0)
- (mc68kcpu)->remaining_cycles = 0;
-}
-
-
-void m68000_base_device_ops::m68k_op_bra_16(m68000_base_device* mc68kcpu)
-{
- UINT32 offset = OPER_I_16(mc68kcpu);
- REG_PC(mc68kcpu) -= 2;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_16((mc68kcpu), offset);
- if(REG_PC(mc68kcpu) == REG_PPC(mc68kcpu) && (mc68kcpu)->remaining_cycles > 0)
- (mc68kcpu)->remaining_cycles = 0;
-}
-
-
-void m68000_base_device_ops::m68k_op_bra_32(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 offset = OPER_I_32(mc68kcpu);
- REG_PC(mc68kcpu) -= 4;
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_32((mc68kcpu), offset);
- if(REG_PC(mc68kcpu) == REG_PPC(mc68kcpu) && (mc68kcpu)->remaining_cycles > 0)
- (mc68kcpu)->remaining_cycles = 0;
- return;
- }
- else
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- if(REG_PC(mc68kcpu) == REG_PPC(mc68kcpu) && (mc68kcpu)->remaining_cycles > 0)
- (mc68kcpu)->remaining_cycles = 0;
- }
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_32_r_d(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 mask = 1 << (DX(mc68kcpu) & 0x1f);
-
- (mc68kcpu)->not_z_flag = *r_dst & mask;
- *r_dst |= mask;
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_8_r_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src | mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_8_r_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src | mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_8_r_pi7(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_A7_PI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src | mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_8_r_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_PD_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src | mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_8_r_pd7(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_A7_PD_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src | mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_8_r_di(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src | mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_8_r_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src | mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_8_r_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AW_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src | mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_8_r_al(m68000_base_device* mc68kcpu)
-{
- UINT32 ea = EA_AL_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
- UINT32 mask = 1 << (DX(mc68kcpu) & 7);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src | mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_32_s_d(m68000_base_device* mc68kcpu)
-{
- UINT32* r_dst = &DY(mc68kcpu);
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 0x1f);
-
- (mc68kcpu)->not_z_flag = *r_dst & mask;
- *r_dst |= mask;
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_8_s_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src | mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_8_s_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AY_PI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src | mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_8_s_pi7(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_A7_PI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src | mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_8_s_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AY_PD_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src | mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_8_s_pd7(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_A7_PD_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src | mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_8_s_di(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src | mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_8_s_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src | mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_8_s_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AW_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src | mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bset_8_s_al(m68000_base_device* mc68kcpu)
-{
- UINT32 mask = 1 << (OPER_I_8(mc68kcpu) & 7);
- UINT32 ea = EA_AL_8(mc68kcpu);
- UINT32 src = m68ki_read_8((mc68kcpu), ea);
-
- (mc68kcpu)->not_z_flag = src & mask;
- m68ki_write_8((mc68kcpu), ea, src | mask);
-}
-
-
-void m68000_base_device_ops::m68k_op_bsr_8(m68000_base_device* mc68kcpu)
-{
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_push_32((mc68kcpu), REG_PC(mc68kcpu));
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
-}
-
-
-void m68000_base_device_ops::m68k_op_bsr_16(m68000_base_device* mc68kcpu)
-{
- UINT32 offset = OPER_I_16(mc68kcpu);
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_push_32((mc68kcpu), REG_PC(mc68kcpu));
- REG_PC(mc68kcpu) -= 2;
- m68ki_branch_16((mc68kcpu), offset);
-}
-
-
-void m68000_base_device_ops::m68k_op_bsr_32(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 offset = OPER_I_32(mc68kcpu);
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_push_32((mc68kcpu), REG_PC(mc68kcpu));
- REG_PC(mc68kcpu) -= 4;
- m68ki_branch_32((mc68kcpu), offset);
- return;
- }
- else
- {
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- m68ki_push_32((mc68kcpu), REG_PC(mc68kcpu));
- m68ki_branch_8((mc68kcpu), MASK_OUT_ABOVE_8((mc68kcpu)->ir));
- }
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_32_r_d(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = DY(mc68kcpu) & (1 << (DX(mc68kcpu) & 0x1f));
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_r_ai(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = OPER_AY_AI_8(mc68kcpu) & (1 << (DX(mc68kcpu) & 7));
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_r_pi(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = OPER_AY_PI_8(mc68kcpu) & (1 << (DX(mc68kcpu) & 7));
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_r_pi7(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = OPER_A7_PI_8(mc68kcpu) & (1 << (DX(mc68kcpu) & 7));
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_r_pd(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = OPER_AY_PD_8(mc68kcpu) & (1 << (DX(mc68kcpu) & 7));
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_r_pd7(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = OPER_A7_PD_8(mc68kcpu) & (1 << (DX(mc68kcpu) & 7));
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_r_di(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = OPER_AY_DI_8(mc68kcpu) & (1 << (DX(mc68kcpu) & 7));
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_r_ix(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = OPER_AY_IX_8(mc68kcpu) & (1 << (DX(mc68kcpu) & 7));
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_r_aw(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = OPER_AW_8(mc68kcpu) & (1 << (DX(mc68kcpu) & 7));
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_r_al(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = OPER_AL_8(mc68kcpu) & (1 << (DX(mc68kcpu) & 7));
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_r_pcdi(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = OPER_PCDI_8(mc68kcpu) & (1 << (DX(mc68kcpu) & 7));
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_r_pcix(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = OPER_PCIX_8(mc68kcpu) & (1 << (DX(mc68kcpu) & 7));
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_r_i(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = OPER_I_8(mc68kcpu) & (1 << (DX(mc68kcpu) & 7));
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_32_s_d(m68000_base_device* mc68kcpu)
-{
- (mc68kcpu)->not_z_flag = DY(mc68kcpu) & (1 << (OPER_I_8(mc68kcpu) & 0x1f));
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_s_ai(m68000_base_device* mc68kcpu)
-{
- UINT32 bit = OPER_I_8(mc68kcpu) & 7;
-
- (mc68kcpu)->not_z_flag = OPER_AY_AI_8(mc68kcpu) & (1 << bit);
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_s_pi(m68000_base_device* mc68kcpu)
-{
- UINT32 bit = OPER_I_8(mc68kcpu) & 7;
-
- (mc68kcpu)->not_z_flag = OPER_AY_PI_8(mc68kcpu) & (1 << bit);
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_s_pi7(m68000_base_device* mc68kcpu)
-{
- UINT32 bit = OPER_I_8(mc68kcpu) & 7;
-
- (mc68kcpu)->not_z_flag = OPER_A7_PI_8(mc68kcpu) & (1 << bit);
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_s_pd(m68000_base_device* mc68kcpu)
-{
- UINT32 bit = OPER_I_8(mc68kcpu) & 7;
-
- (mc68kcpu)->not_z_flag = OPER_AY_PD_8(mc68kcpu) & (1 << bit);
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_s_pd7(m68000_base_device* mc68kcpu)
-{
- UINT32 bit = OPER_I_8(mc68kcpu) & 7;
-
- (mc68kcpu)->not_z_flag = OPER_A7_PD_8(mc68kcpu) & (1 << bit);
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_s_di(m68000_base_device* mc68kcpu)
-{
- UINT32 bit = OPER_I_8(mc68kcpu) & 7;
-
- (mc68kcpu)->not_z_flag = OPER_AY_DI_8(mc68kcpu) & (1 << bit);
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_s_ix(m68000_base_device* mc68kcpu)
-{
- UINT32 bit = OPER_I_8(mc68kcpu) & 7;
-
- (mc68kcpu)->not_z_flag = OPER_AY_IX_8(mc68kcpu) & (1 << bit);
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_s_aw(m68000_base_device* mc68kcpu)
-{
- UINT32 bit = OPER_I_8(mc68kcpu) & 7;
-
- (mc68kcpu)->not_z_flag = OPER_AW_8(mc68kcpu) & (1 << bit);
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_s_al(m68000_base_device* mc68kcpu)
-{
- UINT32 bit = OPER_I_8(mc68kcpu) & 7;
-
- (mc68kcpu)->not_z_flag = OPER_AL_8(mc68kcpu) & (1 << bit);
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_s_pcdi(m68000_base_device* mc68kcpu)
-{
- UINT32 bit = OPER_I_8(mc68kcpu) & 7;
-
- (mc68kcpu)->not_z_flag = OPER_PCDI_8(mc68kcpu) & (1 << bit);
-}
-
-
-void m68000_base_device_ops::m68k_op_btst_8_s_pcix(m68000_base_device* mc68kcpu)
-{
- UINT32 bit = OPER_I_8(mc68kcpu) & 7;
-
- (mc68kcpu)->not_z_flag = OPER_PCIX_8(mc68kcpu) & (1 << bit);
-}
-
-
-void m68000_base_device_ops::m68k_op_callm_32_ai(m68000_base_device* mc68kcpu)
-{
- /* note: watch out for pcrelative modes */
- if(CPU_TYPE_IS_020_VARIANT((mc68kcpu)->cpu_type))
- {
- UINT32 ea = EA_AY_AI_32(mc68kcpu);
-
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- REG_PC(mc68kcpu) += 2;
-(void)ea; /* just to avoid an 'unused variable' warning */
- mc68kcpu->logerror("%s at %08x: called unimplemented instruction %04x (callm)\n",
- (mc68kcpu)->tag(), REG_PC(mc68kcpu) - 2, (mc68kcpu)->ir);
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_callm_32_di(m68000_base_device* mc68kcpu)
-{
- /* note: watch out for pcrelative modes */
- if(CPU_TYPE_IS_020_VARIANT((mc68kcpu)->cpu_type))
- {
- UINT32 ea = EA_AY_DI_32(mc68kcpu);
-
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- REG_PC(mc68kcpu) += 2;
-(void)ea; /* just to avoid an 'unused variable' warning */
- mc68kcpu->logerror("%s at %08x: called unimplemented instruction %04x (callm)\n",
- (mc68kcpu)->tag(), REG_PC(mc68kcpu) - 2, (mc68kcpu)->ir);
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_callm_32_ix(m68000_base_device* mc68kcpu)
-{
- /* note: watch out for pcrelative modes */
- if(CPU_TYPE_IS_020_VARIANT((mc68kcpu)->cpu_type))
- {
- UINT32 ea = EA_AY_IX_32(mc68kcpu);
-
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- REG_PC(mc68kcpu) += 2;
-(void)ea; /* just to avoid an 'unused variable' warning */
- mc68kcpu->logerror("%s at %08x: called unimplemented instruction %04x (callm)\n",
- (mc68kcpu)->tag(), REG_PC(mc68kcpu) - 2, (mc68kcpu)->ir);
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_callm_32_aw(m68000_base_device* mc68kcpu)
-{
- /* note: watch out for pcrelative modes */
- if(CPU_TYPE_IS_020_VARIANT((mc68kcpu)->cpu_type))
- {
- UINT32 ea = EA_AW_32(mc68kcpu);
-
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- REG_PC(mc68kcpu) += 2;
-(void)ea; /* just to avoid an 'unused variable' warning */
- mc68kcpu->logerror("%s at %08x: called unimplemented instruction %04x (callm)\n",
- (mc68kcpu)->tag(), REG_PC(mc68kcpu) - 2, (mc68kcpu)->ir);
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_callm_32_al(m68000_base_device* mc68kcpu)
-{
- /* note: watch out for pcrelative modes */
- if(CPU_TYPE_IS_020_VARIANT((mc68kcpu)->cpu_type))
- {
- UINT32 ea = EA_AL_32(mc68kcpu);
-
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- REG_PC(mc68kcpu) += 2;
-(void)ea; /* just to avoid an 'unused variable' warning */
- mc68kcpu->logerror("%s at %08x: called unimplemented instruction %04x (callm)\n",
- (mc68kcpu)->tag(), REG_PC(mc68kcpu) - 2, (mc68kcpu)->ir);
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_callm_32_pcdi(m68000_base_device* mc68kcpu)
-{
- /* note: watch out for pcrelative modes */
- if(CPU_TYPE_IS_020_VARIANT((mc68kcpu)->cpu_type))
- {
- UINT32 ea = EA_PCDI_32(mc68kcpu);
-
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- REG_PC(mc68kcpu) += 2;
-(void)ea; /* just to avoid an 'unused variable' warning */
- mc68kcpu->logerror("%s at %08x: called unimplemented instruction %04x (callm)\n",
- (mc68kcpu)->tag(), REG_PC(mc68kcpu) - 2, (mc68kcpu)->ir);
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_callm_32_pcix(m68000_base_device* mc68kcpu)
-{
- /* note: watch out for pcrelative modes */
- if(CPU_TYPE_IS_020_VARIANT((mc68kcpu)->cpu_type))
- {
- UINT32 ea = EA_PCIX_32(mc68kcpu);
-
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- REG_PC(mc68kcpu) += 2;
-(void)ea; /* just to avoid an 'unused variable' warning */
- mc68kcpu->logerror("%s at %08x: called unimplemented instruction %04x (callm)\n",
- (mc68kcpu)->tag(), REG_PC(mc68kcpu) - 2, (mc68kcpu)->ir);
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_cas_8_ai(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AY_AI_8(mc68kcpu);
- UINT32 dest = m68ki_read_8((mc68kcpu), ea);
- UINT32* compare = &REG_D(mc68kcpu)[word2 & 7];
- UINT32 res = dest - MASK_OUT_ABOVE_8(*compare);
-
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
- (mc68kcpu)->v_flag = VFLAG_SUB_8(*compare, dest, res);
- (mc68kcpu)->c_flag = CFLAG_8(res);
-
- if(COND_NE(mc68kcpu))
- *compare = MASK_OUT_BELOW_8(*compare) | dest;
- else
- {
- (mc68kcpu)->remaining_cycles -= 3;
- m68ki_write_8((mc68kcpu), ea, MASK_OUT_ABOVE_8(REG_D(mc68kcpu)[(word2 >> 6) & 7]));
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_cas_8_pi(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AY_PI_8(mc68kcpu);
- UINT32 dest = m68ki_read_8((mc68kcpu), ea);
- UINT32* compare = &REG_D(mc68kcpu)[word2 & 7];
- UINT32 res = dest - MASK_OUT_ABOVE_8(*compare);
-
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
- (mc68kcpu)->v_flag = VFLAG_SUB_8(*compare, dest, res);
- (mc68kcpu)->c_flag = CFLAG_8(res);
-
- if(COND_NE(mc68kcpu))
- *compare = MASK_OUT_BELOW_8(*compare) | dest;
- else
- {
- (mc68kcpu)->remaining_cycles -= 3;
- m68ki_write_8((mc68kcpu), ea, MASK_OUT_ABOVE_8(REG_D(mc68kcpu)[(word2 >> 6) & 7]));
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_cas_8_pi7(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_A7_PI_8(mc68kcpu);
- UINT32 dest = m68ki_read_8((mc68kcpu), ea);
- UINT32* compare = &REG_D(mc68kcpu)[word2 & 7];
- UINT32 res = dest - MASK_OUT_ABOVE_8(*compare);
-
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
- (mc68kcpu)->v_flag = VFLAG_SUB_8(*compare, dest, res);
- (mc68kcpu)->c_flag = CFLAG_8(res);
-
- if(COND_NE(mc68kcpu))
- *compare = MASK_OUT_BELOW_8(*compare) | dest;
- else
- {
- (mc68kcpu)->remaining_cycles -= 3;
- m68ki_write_8((mc68kcpu), ea, MASK_OUT_ABOVE_8(REG_D(mc68kcpu)[(word2 >> 6) & 7]));
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_cas_8_pd(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AY_PD_8(mc68kcpu);
- UINT32 dest = m68ki_read_8((mc68kcpu), ea);
- UINT32* compare = &REG_D(mc68kcpu)[word2 & 7];
- UINT32 res = dest - MASK_OUT_ABOVE_8(*compare);
-
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
- (mc68kcpu)->v_flag = VFLAG_SUB_8(*compare, dest, res);
- (mc68kcpu)->c_flag = CFLAG_8(res);
-
- if(COND_NE(mc68kcpu))
- *compare = MASK_OUT_BELOW_8(*compare) | dest;
- else
- {
- (mc68kcpu)->remaining_cycles -= 3;
- m68ki_write_8((mc68kcpu), ea, MASK_OUT_ABOVE_8(REG_D(mc68kcpu)[(word2 >> 6) & 7]));
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_cas_8_pd7(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_A7_PD_8(mc68kcpu);
- UINT32 dest = m68ki_read_8((mc68kcpu), ea);
- UINT32* compare = &REG_D(mc68kcpu)[word2 & 7];
- UINT32 res = dest - MASK_OUT_ABOVE_8(*compare);
-
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
- (mc68kcpu)->v_flag = VFLAG_SUB_8(*compare, dest, res);
- (mc68kcpu)->c_flag = CFLAG_8(res);
-
- if(COND_NE(mc68kcpu))
- *compare = MASK_OUT_BELOW_8(*compare) | dest;
- else
- {
- (mc68kcpu)->remaining_cycles -= 3;
- m68ki_write_8((mc68kcpu), ea, MASK_OUT_ABOVE_8(REG_D(mc68kcpu)[(word2 >> 6) & 7]));
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_cas_8_di(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AY_DI_8(mc68kcpu);
- UINT32 dest = m68ki_read_8((mc68kcpu), ea);
- UINT32* compare = &REG_D(mc68kcpu)[word2 & 7];
- UINT32 res = dest - MASK_OUT_ABOVE_8(*compare);
-
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
- (mc68kcpu)->v_flag = VFLAG_SUB_8(*compare, dest, res);
- (mc68kcpu)->c_flag = CFLAG_8(res);
-
- if(COND_NE(mc68kcpu))
- *compare = MASK_OUT_BELOW_8(*compare) | dest;
- else
- {
- (mc68kcpu)->remaining_cycles -= 3;
- m68ki_write_8((mc68kcpu), ea, MASK_OUT_ABOVE_8(REG_D(mc68kcpu)[(word2 >> 6) & 7]));
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_cas_8_ix(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AY_IX_8(mc68kcpu);
- UINT32 dest = m68ki_read_8((mc68kcpu), ea);
- UINT32* compare = &REG_D(mc68kcpu)[word2 & 7];
- UINT32 res = dest - MASK_OUT_ABOVE_8(*compare);
-
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
- (mc68kcpu)->v_flag = VFLAG_SUB_8(*compare, dest, res);
- (mc68kcpu)->c_flag = CFLAG_8(res);
-
- if(COND_NE(mc68kcpu))
- *compare = MASK_OUT_BELOW_8(*compare) | dest;
- else
- {
- (mc68kcpu)->remaining_cycles -= 3;
- m68ki_write_8((mc68kcpu), ea, MASK_OUT_ABOVE_8(REG_D(mc68kcpu)[(word2 >> 6) & 7]));
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_cas_8_aw(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AW_8(mc68kcpu);
- UINT32 dest = m68ki_read_8((mc68kcpu), ea);
- UINT32* compare = &REG_D(mc68kcpu)[word2 & 7];
- UINT32 res = dest - MASK_OUT_ABOVE_8(*compare);
-
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
- (mc68kcpu)->v_flag = VFLAG_SUB_8(*compare, dest, res);
- (mc68kcpu)->c_flag = CFLAG_8(res);
-
- if(COND_NE(mc68kcpu))
- *compare = MASK_OUT_BELOW_8(*compare) | dest;
- else
- {
- (mc68kcpu)->remaining_cycles -= 3;
- m68ki_write_8((mc68kcpu), ea, MASK_OUT_ABOVE_8(REG_D(mc68kcpu)[(word2 >> 6) & 7]));
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_cas_8_al(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OPER_I_16(mc68kcpu);
- UINT32 ea = EA_AL_8(mc68kcpu);
- UINT32 dest = m68ki_read_8((mc68kcpu), ea);
- UINT32* compare = &REG_D(mc68kcpu)[word2 & 7];
- UINT32 res = dest - MASK_OUT_ABOVE_8(*compare);
-
- m68ki_trace_t0(mc68kcpu); /* auto-disable (see m68kcpu.h) */
- (mc68kcpu)->n_flag = NFLAG_8(res);
- (mc68kcpu)->not_z_flag = MASK_OUT_ABOVE_8(res);
- (mc68kcpu)->v_flag = VFLAG_SUB_8(*compare, dest, res);
- (mc68kcpu)->c_flag = CFLAG_8(res);
-
- if(COND_NE(mc68kcpu))
- *compare = MASK_OUT_BELOW_8(*compare) | dest;
- else
- {
- (mc68kcpu)->remaining_cycles -= 3;
- m68ki_write_8((mc68kcpu), ea, MASK_OUT_ABOVE_8(REG_D(mc68kcpu)[(word2 >> 6) & 7]));
- }
- return;
- }
- m68ki_exception_illegal(mc68kcpu);
-}
-
-
-void m68000_base_device_ops::m68k_op_cas_16_ai(m68000_base_device* mc68kcpu)
-{
- if(CPU_TYPE_IS_EC020_PLUS((mc68kcpu)->cpu_type))
- {
- UINT32 word2 = OP