mirror of
https://github.com/holub/mame
synced 2025-06-05 20:33:45 +03:00
Merge branch 'master' of https://github.com/mamedev/mame
This commit is contained in:
commit
db1bf1e3bd
@ -1,7 +1,398 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE softwarelist SYSTEM "softwarelist.dtd">
|
||||
<softwarelist name="fmtowns_cd" description="FM Towns CD-ROMs">
|
||||
<!-- skeleton test list -->
|
||||
<!--
|
||||
Preliminary list for FM Towns CDs.
|
||||
|
||||
Most images come from the Neo Kobe Collection, dated 2016-02-25.
|
||||
|
||||
Software with a CUE file was converted directly with CHDMAN. The rest were
|
||||
converted to CUE+BIN with IsoBuster+EAC (preserving the pregaps if present)
|
||||
and then converted to CHD with CHDMAN.
|
||||
|
||||
Floppy disks are included for software that actually requires them to boot.
|
||||
User/save disks that can be created from the game itself are not included.
|
||||
-->
|
||||
|
||||
<software name="3x3eyes">
|
||||
<description>3x3 Eyes: Sanjiyan Henjou</description>
|
||||
<year>1993</year>
|
||||
<publisher>Nihon Create</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="3x3 Eyes - Sanjiyan Henjou" sha1="243e61ee754eb6c7efc55a692cc89b0dd31d944c" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="4dboxing">
|
||||
<description>4D Boxing</description>
|
||||
<year>1992</year>
|
||||
<publisher>Electronic Arts Victor</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="4D Boxing" sha1="0691df337359f39a820e8953c85d56c807fabaa9" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<!-- Converted from MDS/MDF -->
|
||||
<software name="4ddriv">
|
||||
<description>4D Driving</description>
|
||||
<year>1993</year>
|
||||
<publisher>Electronic Arts Victor</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="4D Driving" sha1="b09e774be4ee926dc32efd2e3b28dd72bc223c76" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="4dtennis">
|
||||
<description>4D Tennis</description>
|
||||
<year>1993</year>
|
||||
<publisher>Electronic Arts Victor</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="4D Tennis" sha1="5ee1a3342469e87bc0f1d613982a92bc8ab5c5bb" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="38mank">
|
||||
<description>38-man Kilo no Kokuu</description>
|
||||
<year>1989</year>
|
||||
<publisher>System Sacom</publisher>
|
||||
<part name="flop1" interface="floppy_3_5">
|
||||
<dataarea name="flop" size="1261568">
|
||||
<rom name="38-man Kilo no Kokuu (Utility disk).hdm" size="1261568" crc="43a7b57f" sha1="1477b8a9297d91a069132d74ec9ed1b67828c2fd" offset="000000" />
|
||||
</dataarea>
|
||||
</part>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="38-man Kilo no Kokuu" sha1="8b3aed4b095183e3b9a0ee88e7dfd34d1c44e7d7" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="atrain3">
|
||||
<description>A Ressha de Ikou III</description>
|
||||
<year>1991</year>
|
||||
<publisher>Artdink</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="A Ressha de Ikou III" sha1="095710f80f004917dce963719cb1c4bae4d5fc49" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="atrain4">
|
||||
<description>A Ressha de Ikou IV</description>
|
||||
<year>1992</year>
|
||||
<publisher>Artdink</publisher>
|
||||
<part name="flop1" interface="floppy_3_5">
|
||||
<dataarea name="flop" size="1261568">
|
||||
<rom name="A Ressha de Ikou IV (System disk).hdm" size="1261568" crc="469ff718" sha1="f9667e06ae1948350bee029e98903216d1cda98f" offset="000000" />
|
||||
</dataarea>
|
||||
</part>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="A Ressha de Ikou IV" sha1="c032ef409acb0f3ff797c4446f4dfb97ddffad27" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="abel">
|
||||
<description>Abel: Shin Mokushiroku Taisen</description>
|
||||
<year>1995</year>
|
||||
<publisher>Family Soft</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Abel" sha1="5fb92a84f3d1e7530b6dce9060f9814ec2fa6d2b" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="adtennis">
|
||||
<description>Advantage Tennis</description>
|
||||
<year>1992</year>
|
||||
<publisher>Fujitsu</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Advantage Tennis" sha1="4210307af2238e8b0bc546b36f13f2fe651464cd" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="aeternam">
|
||||
<description>Aeternam</description>
|
||||
<year>1992</year>
|
||||
<publisher>Fujitsu</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Aeternam" sha1="e5c5955e303d9fbc9f1e7b3bb4d601aeace34765" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="aburner">
|
||||
<description>After Burner</description>
|
||||
<year>1989</year>
|
||||
<publisher>CRI</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="After Burner" sha1="e1c6cc2df19b89ca1dab88358337d97ece90dd58" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="aburner3">
|
||||
<description>After Burner III</description>
|
||||
<year>1992</year>
|
||||
<publisher>CRI</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="After Burner III" sha1="70b10643e32f4d4a254a0c8f29e3224c2f810c1d" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="aircmb2s">
|
||||
<description>Air Combat II Special</description>
|
||||
<year>1993</year>
|
||||
<publisher>Victor</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Air Combat II Special" sha1="8a8b49b7ca086084fe3c1ff23e6ee95e69559cf3" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="alice1">
|
||||
<description>Alice no Yakata CD</description>
|
||||
<year>1992</year>
|
||||
<publisher>Alice Soft</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Alice no Yakata CD" sha1="03ee698cd4801d8e297eb6eade6aae7c87b7f2e8" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="alice2">
|
||||
<description>Alice no Yakata II</description>
|
||||
<year>1992</year>
|
||||
<publisher>Alice Soft</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Alice no Yakata CD 2" sha1="d375cc44c0e421834f6ec3b2da3568eec7d28192" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<!-- probably a bad dump -->
|
||||
<software name="alice3">
|
||||
<description>Alice no Yakata III</description>
|
||||
<year>1995</year>
|
||||
<publisher>Alice Soft</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Alice no Yakata III" sha1="03ee698cd4801d8e297eb6eade6aae7c87b7f2e8" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="aitd">
|
||||
<description>Alone in the Dark</description>
|
||||
<year>1993</year>
|
||||
<publisher>Arrow Micro-Techs</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Alone in the Dark" sha1="7cd07179e94161d59e0f426b71d87a72aeeae581" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="aitd2">
|
||||
<description>Alone in the Dark 2</description>
|
||||
<year>1994</year>
|
||||
<publisher>Arrow Micro-Techs</publisher>
|
||||
<info name="usage" value="Requires HDD installation"/>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Alone in the Dark 2" sha1="6ac20d5879eaa4e4e65b0bc2377306e27ecc37a1" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="alshark">
|
||||
<description>Alshark</description>
|
||||
<year>1993</year>
|
||||
<publisher>Right Stuff</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Alshark" sha1="ecbdc6dead64d45836037a341bfd49332c7f8e29" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="amarant3">
|
||||
<description>Amaranth III</description>
|
||||
<year>1994</year>
|
||||
<publisher>Fuga System</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Amaranth 3" sha1="9c83fcd4623dd62dcfc7c683c82836704f8665a7" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="ambival">
|
||||
<description>Ambivalenz</description>
|
||||
<year>1994</year>
|
||||
<publisher>Alice Soft</publisher>
|
||||
<part name="flop1" interface="floppy_3_5">
|
||||
<dataarea name="flop" size="1261568">
|
||||
<rom name="Ambivalenz (Boot disk).hdm" size="1261568" crc="7f3d6d6e" sha1="61c23afc9dc3b3ceaf2c28d6ab571d9bc83720fa" offset="000000" />
|
||||
</dataarea>
|
||||
</part>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Ambivalenz" sha1="ccb8f8fafb4d321023d11f78d57f7cd9cf9b772a" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="aouq">
|
||||
<description>America Oudan Ultra Quiz</description>
|
||||
<year>1994</year>
|
||||
<publisher>Fujitsu</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="America Oudan Ultra Quiz" sha1="08cdcfb5ba9d421da422852be6d29f4544a99e9b" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="angel">
|
||||
<description>Angel</description>
|
||||
<year>1993</year>
|
||||
<publisher>Cocktail Soft</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Angel" sha1="e8da3eae3b949459751fd027579aee52b167dc2f" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="anghalo">
|
||||
<description>Angel Halo</description>
|
||||
<year>1996</year>
|
||||
<publisher>Active</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Angel Halo" sha1="9d79b87bdfa4a3c3308c15a7e7c2927686f79c68" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="aokiooka">
|
||||
<description>Aoki Ookami to Shiroki Mejika: Genchou Hishi</description>
|
||||
<year>1993</year>
|
||||
<publisher>Koei</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Aoki Ookami to Shiroki Mejika - Genchou Hishi" sha1="45b8790a77cb77632f067f366cc055e830eddae8" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="arabesq">
|
||||
<description>Arabesque</description>
|
||||
<year>1994</year>
|
||||
<publisher>Fairytale</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Arabesque" sha1="5869c0c1d2eee0f551722a7d08d7feef6be53868" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="aska">
|
||||
<description>Aska Towns</description>
|
||||
<year>1989</year>
|
||||
<publisher>Algo Software</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Aska Towns" sha1="027d5a8920980d5eccff93df192148b9acf51309" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="asukabfe">
|
||||
<description>Asuka 120% Burning Fest. Excellent</description>
|
||||
<year>1994</year>
|
||||
<publisher>Family Soft</publisher>
|
||||
<part name="flop1" interface="floppy_3_5">
|
||||
<dataarea name="flop" size="1261568">
|
||||
<rom name="Asuka 120% Burning Fest. Excellent (Boot disk).hdm" size="1261568" crc="12c7d6e2" sha1="0eb696be9666300d76863ae08882485eb69725d4" offset="000000" />
|
||||
</dataarea>
|
||||
</part>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Asuka 120% Burning Fest. Excellent" sha1="a93c4f091a1d74deaf556fb27c2800cd97cd52cf" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="awesome">
|
||||
<description>Awesome</description>
|
||||
<year>1992</year>
|
||||
<publisher>Fujitsu</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Awesome" sha1="f758d24ebb1e94dfe1499b1af38c32fd1b9de8ff" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="ayumi">
|
||||
<description>Ayumi-chan Monogatari</description>
|
||||
<year>1993</year>
|
||||
<publisher>Alice Soft</publisher>
|
||||
<part name="flop1" interface="floppy_3_5">
|
||||
<dataarea name="flop" size="1261568">
|
||||
<rom name="Ayumi-chan Monogatari.hdm" size="1261568" crc="9bf209ba" sha1="cc2be00834492b0ccf5b25a1b0a5ceb810a2e330" offset="000000" />
|
||||
</dataarea>
|
||||
</part>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Ayumi-chan Monogatari" sha1="b4adc7cb1f2f74f8beea76afb930d053addea67e" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="ayumi">
|
||||
<description>Ayumi-chan Monogatari Jissha-ban</description>
|
||||
<year>1995</year>
|
||||
<publisher>Core Magazine</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Ayumi-chan Monogatari Jissha-ban" sha1="5a78396c9acb9c593710e0ce9aad520147b3759d" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<software name="azure">
|
||||
<description>Azure</description>
|
||||
<year>1993</year>
|
||||
<publisher>Family Soft</publisher>
|
||||
<part name="cdrom" interface="fmt_cdrom">
|
||||
<diskarea name="cdrom">
|
||||
<disk name="Azure" sha1="cc85c3223336a3f237ff2e5030fefae78e6d0d01" />
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
<!-- works well on fmtmarty, keyboard seems to interfere with movements on fmtowns -->
|
||||
<software name="raiden">
|
||||
|
29
makefile
29
makefile
@ -211,6 +211,9 @@ ifndef SUBTARGET
|
||||
SUBTARGET := $(TARGET)
|
||||
endif
|
||||
|
||||
SUBTARGET_FULL := $(subst -,_,$(SUBTARGET))
|
||||
|
||||
|
||||
CONFIG = release
|
||||
ifdef DEBUG
|
||||
CONFIG := debug
|
||||
@ -578,8 +581,8 @@ ifdef TARGET
|
||||
PARAMS += --target='$(TARGET)'
|
||||
endif
|
||||
|
||||
ifdef SUBTARGET
|
||||
PARAMS += --subtarget='$(SUBTARGET)'
|
||||
ifdef SUBTARGET_FULL
|
||||
PARAMS += --subtarget='$(SUBTARGET_FULL)'
|
||||
endif
|
||||
|
||||
ifdef OSD
|
||||
@ -757,15 +760,15 @@ SCRIPTS = scripts/genie.lua \
|
||||
scripts/toolchain.lua \
|
||||
scripts/src/osd/modules.lua \
|
||||
$(wildcard src/osd/$(OSD)/$(OSD).mak) \
|
||||
$(wildcard src/$(TARGET)/$(SUBTARGET).mak)
|
||||
$(wildcard src/$(TARGET)/$(SUBTARGET_FULL).mak)
|
||||
|
||||
ifeq ($(SUBTARGET),mame)
|
||||
ifeq ($(SUBTARGET_FULL),mame)
|
||||
SCRIPTS += scripts/target/$(TARGET)/arcade.lua
|
||||
SCRIPTS += scripts/target/$(TARGET)/mess.lua
|
||||
endif
|
||||
|
||||
ifndef SOURCES
|
||||
SCRIPTS += scripts/target/$(TARGET)/$(SUBTARGET).lua
|
||||
SCRIPTS += scripts/target/$(TARGET)/$(SUBTARGET_FULL).lua
|
||||
endif
|
||||
|
||||
ifdef REGENIE
|
||||
@ -809,12 +812,12 @@ SRC = src
|
||||
|
||||
# all 3rd party sources are under the 3rdparty/ directory
|
||||
3RDPARTY = 3rdparty
|
||||
ifeq ($(SUBTARGET),mame)
|
||||
PROJECT_NAME := $(SUBTARGET)
|
||||
else ifeq ($(SUBTARGET),mess)
|
||||
PROJECT_NAME := $(SUBTARGET)
|
||||
ifeq ($(SUBTARGET_FULL),mame)
|
||||
PROJECT_NAME := $(SUBTARGET_FULL)
|
||||
else ifeq ($(SUBTARGET_FULL),mess)
|
||||
PROJECT_NAME := $(SUBTARGET_FULL)
|
||||
else
|
||||
PROJECT_NAME := $(TARGET)$(SUBTARGET)
|
||||
PROJECT_NAME := $(TARGET)$(SUBTARGET_FULL))
|
||||
endif
|
||||
|
||||
|
||||
@ -892,10 +895,10 @@ endif
|
||||
|
||||
GENIE := 3rdparty/genie/bin/$(GENIEOS)/genie$(EXE)
|
||||
|
||||
ifeq ($(TARGET),$(SUBTARGET))
|
||||
ifeq ($(TARGET),$(SUBTARGET_FULL))
|
||||
FULLTARGET := $(TARGET)
|
||||
else
|
||||
FULLTARGET := $(TARGET)$(SUBTARGET)
|
||||
FULLTARGET := $(TARGET)$(SUBTARGET_FULL)
|
||||
endif
|
||||
PROJECTDIR := $(BUILDDIR)/projects/$(OSD)/$(FULLTARGET)
|
||||
PROJECTDIR_SDL := $(BUILDDIR)/projects/sdl/$(FULLTARGET)
|
||||
@ -1433,7 +1436,7 @@ clean: genieclean
|
||||
$(SILENT) $(MAKE) -C $(SRC)/devices/cpu/m68000 clean
|
||||
-@rm -rf 3rdparty/bgfx/.build
|
||||
|
||||
GEN_FOLDERS := $(GENDIR)/$(TARGET)/layout/ $(GENDIR)/$(TARGET)/$(SUBTARGET)/
|
||||
GEN_FOLDERS := $(GENDIR)/$(TARGET)/layout/ $(GENDIR)/$(TARGET)/$(SUBTARGET_FULL)/
|
||||
|
||||
rwildcard=$(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) $(filter $(subst *,%,$2),$d))
|
||||
LAYOUTS=$(wildcard $(SRC)/$(TARGET)/layout/*.lay)
|
||||
|
@ -2087,6 +2087,10 @@ end
|
||||
---------------------------------------------------
|
||||
--
|
||||
--@src/devices/bus/ti99x/990_dk.h,BUSES["TI99X"] = true
|
||||
--@src/devices/bus/ti99x/990_tap.h,BUSES["TI99X"] = true
|
||||
--@src/devices/bus/ti99x/990_hd.h,BUSES["TI99X"] = true
|
||||
--@src/devices/bus/ti99x/genboard.h,BUSES["TI99X"] = true
|
||||
--@src/devices/bus/ti99x/joyport.h,BUSES["TI99X"] = true
|
||||
---------------------------------------------------
|
||||
|
||||
if (BUSES["TI99X"]~=null) then
|
||||
|
@ -1032,7 +1032,7 @@ end
|
||||
|
||||
--------------------------------------------------
|
||||
-- Fujitsu MB86235
|
||||
--@src/devices/cpu/mb86233/mb86235.h,CPUS["MB86235"] = true
|
||||
--@src/devices/cpu/mb86235/mb86235.h,CPUS["MB86235"] = true
|
||||
--------------------------------------------------
|
||||
|
||||
if (CPUS["MB86235"]~=null) then
|
||||
@ -1925,6 +1925,7 @@ end
|
||||
--@src/devices/cpu/tms9900/tms9900.h,CPUS["TMS9900"] = true
|
||||
--@src/devices/cpu/tms9900/tms9980a.h,CPUS["TMS9900"] = true
|
||||
--@src/devices/cpu/tms9900/tms9995.h,CPUS["TMS9900"] = true
|
||||
--@src/devices/cpu/tms9900/ti990_10.h,CPUS["TMS9900"] = true
|
||||
--------------------------------------------------
|
||||
|
||||
if (CPUS["TMS9900"]~=null) then
|
||||
|
@ -2558,7 +2558,7 @@ end
|
||||
|
||||
---------------------------------------------------
|
||||
--
|
||||
--@src/devices/machine/ncr5389.h,MACHINES["NCR5390"] = true
|
||||
--@src/devices/machine/ncr5390.h,MACHINES["NCR5390"] = true
|
||||
---------------------------------------------------
|
||||
|
||||
if (MACHINES["NCR5390"]~=null) then
|
||||
@ -2831,3 +2831,46 @@ if (MACHINES["WATCHDOG"]~=null) then
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
---------------------------------------------------
|
||||
--
|
||||
--@src/devices/machine/smartmed.h,MACHINES["SMARTMEDIA"] = true
|
||||
---------------------------------------------------
|
||||
if (MACHINES["SMARTMEDIA"]~=null) then
|
||||
files {
|
||||
MAME_DIR .. "src/devices/machine/smartmed.cpp",
|
||||
MAME_DIR .. "src/devices/machine/smartmed.h",
|
||||
}
|
||||
end
|
||||
|
||||
---------------------------------------------------
|
||||
--
|
||||
--@src/devices/machine/appldriv.h,MACHINES["APPLE_DRIVE"] = true
|
||||
---------------------------------------------------
|
||||
if (MACHINES["APPLE_DRIVE"]~=null) then
|
||||
files {
|
||||
MAME_DIR .. "src/devices/machine/appldriv.cpp",
|
||||
MAME_DIR .. "src/devices/machine/appldriv.h",
|
||||
}
|
||||
end
|
||||
|
||||
---------------------------------------------------
|
||||
--
|
||||
--@src/devices/machine/applefdc.h,MACHINES["APPLE_FDC"] = true
|
||||
---------------------------------------------------
|
||||
if (MACHINES["APPLE_FDC"]~=null) then
|
||||
files {
|
||||
MAME_DIR .. "src/devices/machine/applefdc.cpp",
|
||||
MAME_DIR .. "src/devices/machine/applefdc.h",
|
||||
}
|
||||
end
|
||||
---------------------------------------------------
|
||||
--
|
||||
--@src/devices/machine/sonydriv.h,MACHINES["SONY_DRIVE"] = true
|
||||
---------------------------------------------------
|
||||
if (MACHINES["SONY_DRIVE"]~=null) then
|
||||
files {
|
||||
MAME_DIR .. "src/devices/machine/sonydriv.cpp",
|
||||
MAME_DIR .. "src/devices/machine/sonydriv.h",
|
||||
}
|
||||
end
|
||||
|
@ -1060,9 +1060,12 @@ files {
|
||||
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/machine/nl_pong.cpp",
|
||||
MAME_DIR .. "src/mame/machine/nl_pong.h",
|
||||
MAME_DIR .. "src/mame/machine/nl_pongd.cpp",
|
||||
MAME_DIR .. "src/mame/machine/nl_pongd.h",
|
||||
MAME_DIR .. "src/mame/machine/nl_breakout.cpp",
|
||||
MAME_DIR .. "src/mame/machine/nl_breakout.h",
|
||||
MAME_DIR .. "src/mame/drivers/poolshrk.cpp",
|
||||
MAME_DIR .. "src/mame/includes/poolshrk.h",
|
||||
MAME_DIR .. "src/mame/audio/poolshrk.cpp",
|
||||
@ -2488,6 +2491,7 @@ files {
|
||||
MAME_DIR .. "src/mame/video/midyunit.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/midzeus.cpp",
|
||||
MAME_DIR .. "src/mame/includes/midzeus.h",
|
||||
MAME_DIR .. "src/mame/includes/midzeus2.h",
|
||||
MAME_DIR .. "src/mame/video/midzeus.cpp",
|
||||
MAME_DIR .. "src/mame/video/midzeus2.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/mw18w.cpp",
|
||||
@ -2556,7 +2560,7 @@ files {
|
||||
MAME_DIR .. "src/mame/drivers/namcofl.cpp",
|
||||
MAME_DIR .. "src/mame/includes/namcofl.h",
|
||||
MAME_DIR .. "src/mame/video/namcofl.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/namcoic.cpp",
|
||||
MAME_DIR .. "src/mame/machine/namcoic.cpp",
|
||||
MAME_DIR .. "src/mame/includes/namcoic.h",
|
||||
MAME_DIR .. "src/mame/drivers/namcona1.cpp",
|
||||
MAME_DIR .. "src/mame/includes/namcona1.h",
|
||||
@ -2889,9 +2893,13 @@ files {
|
||||
MAME_DIR .. "src/mame/includes/pacman.h",
|
||||
MAME_DIR .. "src/mame/video/pacman.cpp",
|
||||
MAME_DIR .. "src/mame/machine/acitya.cpp",
|
||||
MAME_DIR .. "src/mame/machine/acitya.h",
|
||||
MAME_DIR .. "src/mame/machine/jumpshot.cpp",
|
||||
MAME_DIR .. "src/mame/machine/jumpshot.h",
|
||||
MAME_DIR .. "src/mame/machine/pacplus.cpp",
|
||||
MAME_DIR .. "src/mame/machine/pacplus.h",
|
||||
MAME_DIR .. "src/mame/machine/theglobp.cpp",
|
||||
MAME_DIR .. "src/mame/machine/theglobp.h",
|
||||
MAME_DIR .. "src/mame/drivers/pengo.cpp",
|
||||
}
|
||||
|
||||
@ -3020,6 +3028,7 @@ files {
|
||||
MAME_DIR .. "src/mame/machine/megadriv.cpp",
|
||||
MAME_DIR .. "src/mame/includes/megadriv.h",
|
||||
MAME_DIR .. "src/mame/drivers/megadrvb.cpp",
|
||||
MAME_DIR .. "src/mame/includes/megadrvb.h",
|
||||
MAME_DIR .. "src/mame/drivers/megaplay.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/megatech.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/model1.cpp",
|
||||
@ -3341,8 +3350,9 @@ files {
|
||||
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/machine/hng64_net.h",
|
||||
MAME_DIR .. "src/mame/video/hng64_3d.inc",
|
||||
MAME_DIR .. "src/mame/video/hng64_sprite.inc",
|
||||
MAME_DIR .. "src/mame/drivers/lasso.cpp",
|
||||
MAME_DIR .. "src/mame/includes/lasso.h",
|
||||
MAME_DIR .. "src/mame/video/lasso.cpp",
|
||||
@ -3463,6 +3473,7 @@ files {
|
||||
MAME_DIR .. "src/mame/drivers/asuka.cpp",
|
||||
MAME_DIR .. "src/mame/includes/asuka.h",
|
||||
MAME_DIR .. "src/mame/machine/bonzeadv.cpp",
|
||||
MAME_DIR .. "src/mame/machine/bonzeadv.h",
|
||||
MAME_DIR .. "src/mame/video/asuka.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/bigevglf.cpp",
|
||||
MAME_DIR .. "src/mame/includes/bigevglf.h",
|
||||
@ -3630,6 +3641,7 @@ files {
|
||||
MAME_DIR .. "src/mame/drivers/taito_x.cpp",
|
||||
MAME_DIR .. "src/mame/includes/taito_x.h",
|
||||
MAME_DIR .. "src/mame/machine/cchip.cpp",
|
||||
MAME_DIR .. "src/mame/machine/cchip.h",
|
||||
MAME_DIR .. "src/mame/drivers/taito_z.cpp",
|
||||
MAME_DIR .. "src/mame/includes/taito_z.h",
|
||||
MAME_DIR .. "src/mame/video/taito_z.cpp",
|
||||
@ -3946,6 +3958,7 @@ files {
|
||||
MAME_DIR .. "src/mame/includes/mrdo.h",
|
||||
MAME_DIR .. "src/mame/video/mrdo.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/redclash.cpp",
|
||||
MAME_DIR .. "src/mame/includes/redclash.h",
|
||||
MAME_DIR .. "src/mame/video/redclash.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/superdq.cpp",
|
||||
}
|
||||
|
@ -578,6 +578,10 @@ MACHINES["VT82C496"] = true
|
||||
MACHINES["GENPC"] = true
|
||||
MACHINES["GEN_LATCH"] = true
|
||||
MACHINES["WATCHDOG"] = true
|
||||
MACHINES["SMARTMEDIA"] = true
|
||||
MACHINES["APPLE_DRIVE"] = true
|
||||
MACHINES["APPLE_FDC"] = true
|
||||
MACHINES["SONY_DRIVE"] = true
|
||||
|
||||
--------------------------------------------------
|
||||
-- specify available bus cores
|
||||
@ -1070,16 +1074,8 @@ createMESSProjects(_target, _subtarget, "messshared")
|
||||
files {
|
||||
MAME_DIR .. "src/mame/audio/mea8000.cpp",
|
||||
MAME_DIR .. "src/mame/audio/mea8000.h",
|
||||
MAME_DIR .. "src/mame/machine/appldriv.cpp",
|
||||
MAME_DIR .. "src/mame/machine/appldriv.h",
|
||||
MAME_DIR .. "src/mame/machine/applefdc.cpp",
|
||||
MAME_DIR .. "src/mame/machine/applefdc.h",
|
||||
MAME_DIR .. "src/mame/machine/microdrv.cpp",
|
||||
MAME_DIR .. "src/mame/machine/microdrv.h",
|
||||
MAME_DIR .. "src/mame/machine/smartmed.cpp",
|
||||
MAME_DIR .. "src/mame/machine/smartmed.h",
|
||||
MAME_DIR .. "src/mame/machine/sonydriv.cpp",
|
||||
MAME_DIR .. "src/mame/machine/sonydriv.h",
|
||||
MAME_DIR .. "src/mame/machine/teleprinter.cpp",
|
||||
MAME_DIR .. "src/mame/machine/teleprinter.h",
|
||||
MAME_DIR .. "src/mame/machine/z80bin.cpp",
|
||||
@ -1206,6 +1202,7 @@ files {
|
||||
MAME_DIR .. "src/mame/drivers/apple2.cpp",
|
||||
MAME_DIR .. "src/mame/includes/apple2.h",
|
||||
MAME_DIR .. "src/mame/drivers/apple2e.cpp",
|
||||
MAME_DIR .. "src/mame/includes/apple2e.h",
|
||||
MAME_DIR .. "src/mame/machine/apple2.cpp",
|
||||
MAME_DIR .. "src/mame/video/apple2.cpp",
|
||||
MAME_DIR .. "src/mame/video/apple2.h",
|
||||
@ -1228,6 +1225,7 @@ files {
|
||||
MAME_DIR .. "src/mame/machine/egret.h",
|
||||
MAME_DIR .. "src/mame/machine/mac.cpp",
|
||||
MAME_DIR .. "src/mame/machine/macadb.cpp",
|
||||
MAME_DIR .. "src/mame/machine/macadb.h",
|
||||
MAME_DIR .. "src/mame/machine/macrtc.cpp",
|
||||
MAME_DIR .. "src/mame/machine/macrtc.h",
|
||||
MAME_DIR .. "src/mame/machine/mackbd.cpp",
|
||||
@ -1903,6 +1901,7 @@ files {
|
||||
MAME_DIR .. "src/mame/includes/kaypro.h",
|
||||
MAME_DIR .. "src/mame/machine/kaypro.cpp",
|
||||
MAME_DIR .. "src/mame/machine/kay_kbd.cpp",
|
||||
MAME_DIR .. "src/mame/machine/kay_kbd.h",
|
||||
MAME_DIR .. "src/mame/video/kaypro.cpp",
|
||||
}
|
||||
|
||||
@ -2537,8 +2536,11 @@ files {
|
||||
MAME_DIR .. "src/mame/drivers/spectrum.cpp",
|
||||
MAME_DIR .. "src/mame/includes/spectrum.h",
|
||||
MAME_DIR .. "src/mame/drivers/spec128.cpp",
|
||||
MAME_DIR .. "src/mame/includes/spec128.h",
|
||||
MAME_DIR .. "src/mame/drivers/timex.cpp",
|
||||
MAME_DIR .. "src/mame/includes/timex.h",
|
||||
MAME_DIR .. "src/mame/drivers/specpls3.cpp",
|
||||
MAME_DIR .. "src/mame/includes/specpls3.h",
|
||||
MAME_DIR .. "src/mame/drivers/scorpion.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/atm.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/pentagon.cpp",
|
||||
|
@ -86,8 +86,8 @@ function createProjects_mame_nl(_target, _subtarget)
|
||||
targetsubdir(_target .."_" .. _subtarget)
|
||||
kind (LIBTYPE)
|
||||
uuid (os.uuid("drv-mame-nl"))
|
||||
addprojectflags()
|
||||
precompiledheaders()
|
||||
addprojectflags()
|
||||
precompiledheaders()
|
||||
|
||||
includedirs {
|
||||
MAME_DIR .. "src/osd",
|
||||
@ -103,9 +103,12 @@ function createProjects_mame_nl(_target, _subtarget)
|
||||
|
||||
files{
|
||||
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/machine/nl_pong.cpp",
|
||||
MAME_DIR .. "src/mame/machine/nl_pong.h",
|
||||
MAME_DIR .. "src/mame/machine/nl_pongd.cpp",
|
||||
MAME_DIR .. "src/mame/machine/nl_pongd.h",
|
||||
MAME_DIR .. "src/mame/machine/nl_breakout.cpp",
|
||||
MAME_DIR .. "src/mame/machine/nl_breakout.h",
|
||||
|
||||
MAME_DIR .. "src/mame/drivers/1942.cpp",
|
||||
MAME_DIR .. "src/mame/includes/1942.h",
|
||||
@ -114,13 +117,13 @@ files{
|
||||
MAME_DIR .. "src/mame/includes/popeye.h",
|
||||
MAME_DIR .. "src/mame/video/popeye.cpp",
|
||||
|
||||
MAME_DIR .. "src/mame/drivers/m62.cpp",
|
||||
MAME_DIR .. "src/mame/includes/m62.h",
|
||||
MAME_DIR .. "src/mame/video/m62.cpp",
|
||||
MAME_DIR .. "src/mame/audio/irem.cpp",
|
||||
MAME_DIR .. "src/mame/audio/nl_kidniki.cpp",
|
||||
MAME_DIR .. "src/mame/audio/irem.h",
|
||||
|
||||
MAME_DIR .. "src/mame/drivers/m62.cpp",
|
||||
MAME_DIR .. "src/mame/includes/m62.h",
|
||||
MAME_DIR .. "src/mame/video/m62.cpp",
|
||||
MAME_DIR .. "src/mame/audio/irem.cpp",
|
||||
MAME_DIR .. "src/mame/audio/irem.h",
|
||||
MAME_DIR .. "src/mame/audio/nl_kidniki.cpp",
|
||||
MAME_DIR .. "src/mame/audio/nl_kidniki.h",
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -46,6 +46,7 @@
|
||||
#include "emu.h"
|
||||
#include "cpu/g65816/g65816.h"
|
||||
#include "includes/apple2.h"
|
||||
#include "includes/apple2e.h"
|
||||
#include "imagedev/flopdrv.h"
|
||||
#include "formats/ap2_dsk.h"
|
||||
#include "formats/ap_dsk35.h"
|
||||
|
@ -226,6 +226,7 @@ DIP locations verified for:
|
||||
#include "sound/2151intf.h"
|
||||
#include "sound/msm5205.h"
|
||||
#include "includes/asuka.h"
|
||||
#include "machine/bonzeadv.h"
|
||||
|
||||
|
||||
/***********************************************************
|
||||
|
@ -13,12 +13,15 @@ computer to boot up (with keyboard problems).
|
||||
|
||||
#include "emu.h"
|
||||
#include "includes/spectrum.h"
|
||||
#include "includes/spec128.h"
|
||||
#include "includes/specpls3.h"
|
||||
#include "imagedev/snapquik.h"
|
||||
#include "imagedev/cassette.h"
|
||||
#include "sound/ay8910.h"
|
||||
#include "sound/speaker.h"
|
||||
#include "machine/beta.h"
|
||||
#include "machine/ram.h"
|
||||
#include "machine/spec_snqk.h"
|
||||
|
||||
|
||||
class atm_state : public spectrum_state
|
||||
|
@ -441,6 +441,7 @@ or Fatal Fury for example).
|
||||
#include "cpu/mips/mips3.h"
|
||||
#include "machine/nvram.h"
|
||||
#include "includes/hng64.h"
|
||||
#include "machine/hng64_net.h"
|
||||
|
||||
/* TODO: NOT measured! */
|
||||
#define PIXEL_CLOCK ((HNG64_MASTER_CLOCK*2)/4) // x 2 is due of the interlaced screen ...
|
||||
@ -1527,7 +1528,6 @@ void hng64_state::machine_reset()
|
||||
}
|
||||
|
||||
MACHINE_CONFIG_EXTERN(hng64_audio);
|
||||
MACHINE_CONFIG_EXTERN(hng64_network);
|
||||
|
||||
static MACHINE_CONFIG_START(hng64, hng64_state)
|
||||
/* basic machine hardware */
|
||||
|
@ -42,6 +42,7 @@ Unfortunately it's read protected.
|
||||
#include "sound/2612intf.h"
|
||||
#include "sound/sn76496.h"
|
||||
#include "includes/megadriv.h"
|
||||
#include "includes/megadrvb.h"
|
||||
|
||||
static INPUT_PORTS_START( hshavoc )
|
||||
PORT_START("IN0") /* 16bit */
|
||||
|
@ -42,6 +42,7 @@
|
||||
**************************************************************************************************/
|
||||
|
||||
#include "includes/kaypro.h"
|
||||
#include "machine/kay_kbd.h"
|
||||
#include "formats/kaypro_dsk.h"
|
||||
#include "softlist.h"
|
||||
|
||||
|
@ -66,65 +66,6 @@ TODO:
|
||||
#include "includes/ladybug.h"
|
||||
|
||||
|
||||
/* Sound comm between CPU's */
|
||||
READ8_MEMBER(ladybug_state::sraider_sound_low_r)
|
||||
{
|
||||
return m_sound_low;
|
||||
}
|
||||
|
||||
READ8_MEMBER(ladybug_state::sraider_sound_high_r)
|
||||
{
|
||||
return m_sound_high;
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(ladybug_state::sraider_sound_low_w)
|
||||
{
|
||||
m_sound_low = data;
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(ladybug_state::sraider_sound_high_w)
|
||||
{
|
||||
m_sound_high = data;
|
||||
}
|
||||
|
||||
/* Protection? */
|
||||
READ8_MEMBER(ladybug_state::sraider_8005_r)
|
||||
{
|
||||
/* This must return X011111X or cpu #1 will hang */
|
||||
/* see code at rst $10 */
|
||||
return 0x3e;
|
||||
}
|
||||
|
||||
/* Unknown IO */
|
||||
WRITE8_MEMBER(ladybug_state::sraider_misc_w)
|
||||
{
|
||||
switch(offset)
|
||||
{
|
||||
/* These 8 bits are stored in the latch at A7 */
|
||||
case 0x00:
|
||||
case 0x01:
|
||||
case 0x02:
|
||||
case 0x03:
|
||||
case 0x04:
|
||||
case 0x05:
|
||||
case 0x06:
|
||||
case 0x07:
|
||||
m_weird_value[offset & 7] = data & 1;
|
||||
break;
|
||||
/* These 6 bits are stored in the latch at N7 */
|
||||
case 0x08:
|
||||
m_sraider_0x30 = data&0x3f;
|
||||
break;
|
||||
/* These 6 bits are stored in the latch at N8 */
|
||||
case 0x10:
|
||||
m_sraider_0x38 = data&0x3f;
|
||||
break;
|
||||
default:
|
||||
osd_printf_debug("(%04X) write to %02X\n", space.device().safe_pc(), offset);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
static ADDRESS_MAP_START( ladybug_map, AS_PROGRAM, 8, ladybug_state )
|
||||
AM_RANGE(0x0000, 0x5fff) AM_ROM
|
||||
AM_RANGE(0x6000, 0x6fff) AM_RAM
|
||||
@ -146,47 +87,6 @@ static ADDRESS_MAP_START( decrypted_opcodes_map, AS_DECRYPTED_OPCODES, 8, ladybu
|
||||
AM_RANGE(0x0000, 0x5fff) AM_ROM AM_SHARE("decrypted_opcodes")
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
static ADDRESS_MAP_START( sraider_cpu1_map, AS_PROGRAM, 8, ladybug_state )
|
||||
AM_RANGE(0x0000, 0x5fff) AM_ROM
|
||||
AM_RANGE(0x6000, 0x6fff) AM_RAM
|
||||
AM_RANGE(0x7000, 0x73ff) AM_WRITEONLY AM_SHARE("spriteram")
|
||||
AM_RANGE(0x8005, 0x8005) AM_READ(sraider_8005_r) // protection check?
|
||||
AM_RANGE(0x8006, 0x8006) AM_WRITE(sraider_sound_low_w)
|
||||
AM_RANGE(0x8007, 0x8007) AM_WRITE(sraider_sound_high_w)
|
||||
AM_RANGE(0x9000, 0x9000) AM_READ_PORT("IN0")
|
||||
AM_RANGE(0x9001, 0x9001) AM_READ_PORT("IN1")
|
||||
AM_RANGE(0x9002, 0x9002) AM_READ_PORT("DSW0")
|
||||
AM_RANGE(0x9003, 0x9003) AM_READ_PORT("DSW1")
|
||||
AM_RANGE(0xd000, 0xd3ff) AM_WRITE(ladybug_videoram_w) AM_SHARE("videoram")
|
||||
AM_RANGE(0xd400, 0xd7ff) AM_WRITE(ladybug_colorram_w) AM_SHARE("colorram")
|
||||
AM_RANGE(0xe000, 0xe000) AM_WRITENOP //unknown 0x10 when in attract, 0x20 when coined/playing
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
static ADDRESS_MAP_START( sraider_cpu2_map, AS_PROGRAM, 8, ladybug_state )
|
||||
AM_RANGE(0x0000, 0x5fff) AM_ROM
|
||||
AM_RANGE(0x6000, 0x63ff) AM_RAM
|
||||
AM_RANGE(0x8000, 0x8000) AM_READ(sraider_sound_low_r)
|
||||
AM_RANGE(0xa000, 0xa000) AM_READ(sraider_sound_high_r)
|
||||
AM_RANGE(0xc000, 0xc000) AM_READNOP //some kind of sync
|
||||
AM_RANGE(0xe000, 0xe0ff) AM_WRITEONLY AM_SHARE("grid_data")
|
||||
AM_RANGE(0xe800, 0xe800) AM_WRITE(sraider_io_w)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
static ADDRESS_MAP_START( sraider_cpu2_io_map, AS_IO, 8, ladybug_state )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x00, 0x00) AM_DEVWRITE("sn1", sn76489_device, write)
|
||||
AM_RANGE(0x08, 0x08) AM_DEVWRITE("sn2", sn76489_device, write)
|
||||
AM_RANGE(0x10, 0x10) AM_DEVWRITE("sn3", sn76489_device, write)
|
||||
AM_RANGE(0x18, 0x18) AM_DEVWRITE("sn4", sn76489_device, write)
|
||||
AM_RANGE(0x20, 0x20) AM_DEVWRITE("sn5", sn76489_device, write)
|
||||
AM_RANGE(0x28, 0x3f) AM_WRITE(sraider_misc_w) // lots unknown
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
|
||||
INPUT_CHANGED_MEMBER(ladybug_state::coin1_inserted)
|
||||
{
|
||||
/* left coin insertion causes an NMI */
|
||||
@ -567,81 +467,6 @@ static INPUT_PORTS_START( dorodon )
|
||||
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_CHANGED_MEMBER(DEVICE_SELF, ladybug_state,coin2_inserted, 0)
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( sraider )
|
||||
PORT_START("IN0") /* IN0 */
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY
|
||||
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
|
||||
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 )
|
||||
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("IN1") /* IN1 */
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL
|
||||
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
|
||||
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )
|
||||
|
||||
PORT_START("DSW0") /* DSW0 */
|
||||
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
|
||||
PORT_DIPSETTING( 0x03, DEF_STR( Easy ) )
|
||||
PORT_DIPSETTING( 0x02, DEF_STR( Medium ) )
|
||||
PORT_DIPSETTING( 0x01, DEF_STR( Hard ) )
|
||||
PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) )
|
||||
PORT_DIPNAME( 0x04, 0x04, "High Score Names" )
|
||||
PORT_DIPSETTING( 0x00, "3 Letters" )
|
||||
PORT_DIPSETTING( 0x04, "10 Letters" )
|
||||
PORT_DIPNAME( 0x08, 0x08, DEF_STR( Allow_Continue ) )
|
||||
PORT_DIPSETTING( 0x08, DEF_STR( No ) )
|
||||
PORT_DIPSETTING( 0x00, DEF_STR( Yes ) )
|
||||
PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
|
||||
PORT_DIPSETTING( 0x10, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||
PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) )
|
||||
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
|
||||
PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) )
|
||||
PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) )
|
||||
PORT_DIPSETTING( 0x00, "2" )
|
||||
PORT_DIPSETTING( 0xc0, "3" )
|
||||
PORT_DIPSETTING( 0x80, "4" )
|
||||
PORT_DIPSETTING( 0x40, "5" )
|
||||
|
||||
/* Free Play setting works when it's set for both */
|
||||
PORT_START("DSW1") /* DSW1 */
|
||||
PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
|
||||
/* settings 0x00 through 0x05 all give 1 Coin/1 Credit */
|
||||
PORT_DIPSETTING( 0x06, DEF_STR( 4C_1C ) )
|
||||
PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) )
|
||||
PORT_DIPSETTING( 0x0a, DEF_STR( 2C_1C ) )
|
||||
PORT_DIPSETTING( 0x07, DEF_STR( 3C_2C ) )
|
||||
PORT_DIPSETTING( 0x09, DEF_STR( 2C_2C ) )
|
||||
PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) )
|
||||
PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) )
|
||||
PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) )
|
||||
PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) )
|
||||
PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) )
|
||||
PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )
|
||||
PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) )
|
||||
/* settings 0x00 through 0x50 all give 1 Coin/1 Credit */
|
||||
PORT_DIPSETTING( 0x60, DEF_STR( 4C_1C ) )
|
||||
PORT_DIPSETTING( 0x80, DEF_STR( 3C_1C ) )
|
||||
PORT_DIPSETTING( 0xa0, DEF_STR( 2C_1C ) )
|
||||
PORT_DIPSETTING( 0x70, DEF_STR( 3C_2C ) )
|
||||
PORT_DIPSETTING( 0x90, DEF_STR( 2C_2C ) )
|
||||
PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) )
|
||||
PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) )
|
||||
PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ) )
|
||||
PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) )
|
||||
PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) )
|
||||
PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )
|
||||
INPUT_PORTS_END
|
||||
|
||||
static const gfx_layout charlayout =
|
||||
{
|
||||
8,8, /* 8*8 characters */
|
||||
@ -675,87 +500,16 @@ static const gfx_layout spritelayout2 =
|
||||
16*8 /* every sprite takes 16 consecutive bytes */
|
||||
};
|
||||
|
||||
static const gfx_layout gridlayout =
|
||||
{
|
||||
8,8, /* 8*8 characters */
|
||||
512, /* 512 characters */
|
||||
1, /* 1 bit per pixel */
|
||||
{ 0 },
|
||||
{ 7, 6, 5, 4, 3, 2, 1, 0 },
|
||||
{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8},
|
||||
8*8 /* every char takes 8 consecutive bytes */
|
||||
};
|
||||
|
||||
static const gfx_layout gridlayout2 =
|
||||
{
|
||||
8,8, /* 8*8 characters */
|
||||
512, /* 512 characters */
|
||||
1, /* 1 bit per pixel */
|
||||
{ 0 },
|
||||
{ 7, 6, 5, 4, 3, 2, 1, 0 },
|
||||
{ 7*8, 6*8, 5*8, 4*8, 3*8, 2*8, 1*8, 0*8 },
|
||||
8*8 /* every char takes 8 consecutive bytes */
|
||||
};
|
||||
|
||||
static GFXDECODE_START( ladybug )
|
||||
GFXDECODE_ENTRY( "gfx1", 0, charlayout, 0, 8 )
|
||||
GFXDECODE_ENTRY( "gfx2", 0, spritelayout, 4*8, 16 )
|
||||
GFXDECODE_ENTRY( "gfx2", 0, spritelayout2, 4*8, 16 )
|
||||
GFXDECODE_END
|
||||
|
||||
static GFXDECODE_START( sraider )
|
||||
GFXDECODE_ENTRY( "gfx1", 0, charlayout, 0, 8 )
|
||||
GFXDECODE_ENTRY( "gfx2", 0, spritelayout, 4*8, 16 )
|
||||
GFXDECODE_ENTRY( "gfx2", 0, spritelayout2, 4*8, 16 )
|
||||
GFXDECODE_ENTRY( "gfx3", 0, gridlayout, 4*8+4*16+32, 1 )
|
||||
GFXDECODE_ENTRY( "gfx3", 0, gridlayout2, 4*8+4*16+32, 1 )
|
||||
GFXDECODE_END
|
||||
|
||||
|
||||
MACHINE_START_MEMBER(ladybug_state,ladybug)
|
||||
{
|
||||
}
|
||||
|
||||
MACHINE_START_MEMBER(ladybug_state,sraider)
|
||||
{
|
||||
save_item(NAME(m_grid_color));
|
||||
save_item(NAME(m_sound_low));
|
||||
save_item(NAME(m_sound_high));
|
||||
save_item(NAME(m_sraider_0x30));
|
||||
save_item(NAME(m_sraider_0x38));
|
||||
save_item(NAME(m_weird_value));
|
||||
|
||||
/* for stars */
|
||||
save_item(NAME(m_star_speed));
|
||||
save_item(NAME(m_stars_enable));
|
||||
save_item(NAME(m_stars_speed));
|
||||
save_item(NAME(m_stars_state));
|
||||
save_item(NAME(m_stars_offset));
|
||||
save_item(NAME(m_stars_count));
|
||||
}
|
||||
|
||||
MACHINE_RESET_MEMBER(ladybug_state,sraider)
|
||||
{
|
||||
int i;
|
||||
|
||||
m_grid_color = 0;
|
||||
m_sound_low = 0;
|
||||
m_sound_high = 0;
|
||||
m_sraider_0x30 = 0;
|
||||
m_sraider_0x38 = 0;
|
||||
|
||||
/* for stars */
|
||||
m_star_speed = 0;
|
||||
m_stars_enable = 0;
|
||||
m_stars_speed = 0;
|
||||
m_stars_state = 0;
|
||||
m_stars_offset = 0;
|
||||
m_stars_count = 0;
|
||||
|
||||
for (i = 0; i < 8; i++)
|
||||
m_weird_value[i] = 0;
|
||||
}
|
||||
|
||||
static MACHINE_CONFIG_START( ladybug, ladybug_state )
|
||||
|
||||
/* basic machine hardware */
|
||||
@ -795,57 +549,6 @@ static MACHINE_CONFIG_DERIVED( dorodon, ladybug )
|
||||
MCFG_CPU_DECRYPTED_OPCODES_MAP(decrypted_opcodes_map)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_START( sraider, ladybug_state )
|
||||
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", Z80, 4000000) /* 4 MHz */
|
||||
MCFG_CPU_PROGRAM_MAP(sraider_cpu1_map)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", ladybug_state, irq0_line_hold)
|
||||
|
||||
MCFG_CPU_ADD("sub", Z80, 4000000) /* 4 MHz */
|
||||
MCFG_CPU_PROGRAM_MAP(sraider_cpu2_map)
|
||||
MCFG_CPU_IO_MAP(sraider_cpu2_io_map)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", ladybug_state, irq0_line_hold)
|
||||
|
||||
MCFG_MACHINE_START_OVERRIDE(ladybug_state,sraider)
|
||||
MCFG_MACHINE_RESET_OVERRIDE(ladybug_state,sraider)
|
||||
|
||||
/* video hardware */
|
||||
MCFG_SCREEN_ADD("screen", RASTER)
|
||||
MCFG_SCREEN_REFRESH_RATE(60)
|
||||
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
|
||||
MCFG_SCREEN_SIZE(32*8, 32*8)
|
||||
MCFG_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 4*8, 28*8-1)
|
||||
MCFG_SCREEN_UPDATE_DRIVER(ladybug_state, screen_update_sraider)
|
||||
MCFG_SCREEN_VBLANK_DRIVER(ladybug_state, screen_eof_sraider)
|
||||
MCFG_SCREEN_PALETTE("palette")
|
||||
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", "palette", sraider)
|
||||
MCFG_PALETTE_ADD("palette", 4*8+4*16+32+2)
|
||||
MCFG_PALETTE_INDIRECT_ENTRIES(32+32+1)
|
||||
MCFG_PALETTE_INIT_OWNER(ladybug_state,sraider)
|
||||
|
||||
MCFG_VIDEO_START_OVERRIDE(ladybug_state,sraider)
|
||||
|
||||
/* sound hardware */
|
||||
MCFG_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MCFG_SOUND_ADD("sn1", SN76489, 4000000)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
MCFG_SOUND_ADD("sn2", SN76489, 4000000)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
MCFG_SOUND_ADD("sn3", SN76489, 4000000)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
MCFG_SOUND_ADD("sn4", SN76489, 4000000)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
MCFG_SOUND_ADD("sn5", SN76489, 4000000)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
|
||||
@ -1017,35 +720,6 @@ ROM_START( dorodon2 )
|
||||
ROM_LOAD( "dorodon.bp2", 0x0040, 0x0020, CRC(27fa3a50) SHA1(7cf59b7a37c156640d6ea91554d1c4276c1780e0) ) /* timing?? */
|
||||
ROM_END
|
||||
|
||||
ROM_START( sraider )
|
||||
ROM_REGION( 0x10000, "maincpu", 0 )
|
||||
ROM_LOAD( "sraid3.r4", 0x0000, 0x2000, CRC(0f389774) SHA1(c67596e6bf00175ff0a241506cd2f88114d05933) )
|
||||
ROM_LOAD( "sraid2.n4", 0x2000, 0x2000, CRC(38a48db0) SHA1(6f4f384d702fb8ee4bb2ef579638239d57e32ddd) )
|
||||
ROM_LOAD( "sraid1.m4", 0x4000, 0x2000, CRC(2f302a4e) SHA1(3a902ce6858f38df88b60830bef4b1d45b09b2df) )
|
||||
|
||||
ROM_REGION( 0x10000, "sub", 0 )
|
||||
ROM_LOAD( "sraid-s4.h6", 0x0000, 0x2000, CRC(57173a12) SHA1(6cb8fd4826e499f9a4e63621d58bc4b596cc261e) )
|
||||
ROM_LOAD( "sraid-s5.j6", 0x2000, 0x2000, CRC(5a459179) SHA1(a261c8f3c7c4cd4587c003bbbe815d2c4e01ffbc) )
|
||||
ROM_LOAD( "sraid-s6.l6", 0x4000, 0x2000, CRC(ea3aa25d) SHA1(353c0d075d5e0a3bc25a65e2748f5eb5212a844d) )
|
||||
|
||||
ROM_REGION( 0x2000, "gfx1", 0 )
|
||||
ROM_LOAD( "sraid-s0.k6", 0x0000, 0x1000, CRC(a0373909) SHA1(00e3bd5dd90769d670fc3c51edd1cd4b69e6132d) )
|
||||
ROM_LOAD( "sraids11.l6", 0x1000, 0x1000, CRC(ba22d949) SHA1(83762ced1df92ff594887e44d5b783826bbfb0c9) )
|
||||
|
||||
ROM_REGION( 0x2000, "gfx2", 0 )
|
||||
ROM_LOAD( "sraid-s7.m2", 0x0000, 0x1000, CRC(299f8e07) SHA1(1de71f251286088487da7285d6f8070147002af5) )
|
||||
ROM_LOAD( "sraid-s8.n2", 0x1000, 0x1000, CRC(57ba8888) SHA1(2aa1a5f682d146a55a96e471bb78e5c60da02bf9) )
|
||||
|
||||
ROM_REGION( 0x1000, "gfx3", 0 ) /* fixed portion of the grid */
|
||||
ROM_LOAD( "sraid-s9.f6", 0x0000, 0x1000, CRC(2380b90f) SHA1(0310554e3f2ec973c2bb6e816d04e5c0c1e0a0b9) )
|
||||
|
||||
ROM_REGION( 0x0060, "proms", 0 )
|
||||
ROM_LOAD( "srpr10-1.a2", 0x0000, 0x0020, CRC(121fdb99) SHA1(3bc092da40beb129a4df3db2f55d22bbbcf7bad8) )
|
||||
ROM_LOAD( "srpr10-2.l3", 0x0020, 0x0020, CRC(88b67e70) SHA1(e21ee2939e96dffee101bd92c62ed975b6b64001) )
|
||||
ROM_LOAD( "srpr10-3.c1", 0x0040, 0x0020, CRC(27fa3a50) SHA1(7cf59b7a37c156640d6ea91554d1c4276c1780e0) ) /* ?? */
|
||||
ROM_END
|
||||
|
||||
|
||||
DRIVER_INIT_MEMBER(ladybug_state,dorodon)
|
||||
{
|
||||
/* decode the opcodes */
|
||||
@ -1066,4 +740,3 @@ GAME( 1981, ladybgb2, ladybug, ladybug, ladybug, driver_device, 0, ROT270
|
||||
GAME( 1982, dorodon, 0, dorodon, dorodon, ladybug_state, dorodon, ROT270, "UPL (Falcon license?)", "Dorodon (set 1)", MACHINE_SUPPORTS_SAVE ) // license or bootleg?
|
||||
GAME( 1982, dorodon2, dorodon, dorodon, dorodon, ladybug_state, dorodon, ROT270, "UPL (Falcon license?)", "Dorodon (set 2)", MACHINE_SUPPORTS_SAVE ) // "
|
||||
GAME( 1982, snapjack, 0, ladybug, snapjack, driver_device, 0, ROT0, "Universal", "Snap Jack", MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1982, sraider, 0, sraider, sraider, driver_device, 0, ROT270, "Universal", "Space Raider", MACHINE_SUPPORTS_SAVE )
|
||||
|
@ -84,6 +84,7 @@
|
||||
#include "bus/macpds/pds_tpdfpd.h"
|
||||
|
||||
#include "includes/mac.h"
|
||||
#include "machine/macadb.h"
|
||||
#include "softlist.h"
|
||||
#include "mac.lh"
|
||||
|
||||
|
@ -258,8 +258,38 @@ connector, but of course, I can be wrong.
|
||||
|
||||
#include "emu.h"
|
||||
#include "includes/megadriv.h"
|
||||
#include "includes/megadrvb.h"
|
||||
|
||||
|
||||
/************************************ Megadrive Bootlegs *************************************/
|
||||
|
||||
// smaller ROM region because some bootlegs check for RAM there (used by topshoot and hshavoc)
|
||||
static ADDRESS_MAP_START( md_bootleg_map, AS_PROGRAM, 16, md_boot_state )
|
||||
AM_RANGE(0x000000, 0x0fffff) AM_ROM /* Cartridge Program Rom */
|
||||
AM_RANGE(0x200000, 0x2023ff) AM_RAM // tested
|
||||
|
||||
AM_RANGE(0xa00000, 0xa01fff) AM_READWRITE(megadriv_68k_read_z80_ram, megadriv_68k_write_z80_ram)
|
||||
AM_RANGE(0xa02000, 0xa03fff) AM_WRITE(megadriv_68k_write_z80_ram)
|
||||
AM_RANGE(0xa04000, 0xa04003) AM_READWRITE8(megadriv_68k_YM2612_read, megadriv_68k_YM2612_write, 0xffff)
|
||||
AM_RANGE(0xa06000, 0xa06001) AM_WRITE(megadriv_68k_z80_bank_write)
|
||||
|
||||
AM_RANGE(0xa10000, 0xa1001f) AM_READWRITE(megadriv_68k_io_read, megadriv_68k_io_write)
|
||||
AM_RANGE(0xa11100, 0xa11101) AM_READWRITE(megadriv_68k_check_z80_bus, megadriv_68k_req_z80_bus)
|
||||
AM_RANGE(0xa11200, 0xa11201) AM_WRITE(megadriv_68k_req_z80_reset)
|
||||
|
||||
AM_RANGE(0xc00000, 0xc0001f) AM_DEVREADWRITE("gen_vdp", sega315_5313_device, vdp_r, vdp_w)
|
||||
AM_RANGE(0xd00000, 0xd0001f) AM_DEVREADWRITE("gen_vdp", sega315_5313_device, vdp_r, vdp_w)
|
||||
|
||||
AM_RANGE(0xe00000, 0xe0ffff) AM_RAM AM_MIRROR(0x1f0000) AM_SHARE("megadrive_ram")
|
||||
ADDRESS_MAP_END
|
||||
|
||||
MACHINE_CONFIG_START( md_bootleg, md_boot_state )
|
||||
MCFG_FRAGMENT_ADD( md_ntsc )
|
||||
|
||||
MCFG_CPU_MODIFY("maincpu")
|
||||
MCFG_CPU_PROGRAM_MAP(md_bootleg_map)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
/*************************************
|
||||
*
|
||||
* Games memory handlers
|
||||
|
@ -31,6 +31,7 @@ The Grid v1.2 10/18/2000
|
||||
#include "cpu/adsp2100/adsp2100.h"
|
||||
#include "cpu/pic16c5x/pic16c5x.h"
|
||||
#include "includes/midzeus.h"
|
||||
#include "includes/midzeus2.h"
|
||||
#include "machine/midwayic.h"
|
||||
#include "audio/dcs.h"
|
||||
#include "machine/nvram.h"
|
||||
|
@ -322,7 +322,7 @@ rumbling on a subwoofer in the cabinet.)
|
||||
#include "includes/taitoipt.h"
|
||||
#include "includes/ninjaw.h"
|
||||
|
||||
extern const internal_layout layout_darius;
|
||||
#include "ninjaw.lh"
|
||||
|
||||
void ninjaw_state::parse_control( ) /* assumes Z80 sandwiched between 68Ks */
|
||||
{
|
||||
@ -749,7 +749,7 @@ static MACHINE_CONFIG_START( ninjaw, ninjaw_state )
|
||||
MCFG_PALETTE_ADD("palette2", 4096)
|
||||
MCFG_PALETTE_ADD("palette3", 4096)
|
||||
|
||||
MCFG_DEFAULT_LAYOUT(layout_darius)
|
||||
MCFG_DEFAULT_LAYOUT(layout_ninjaw)
|
||||
|
||||
MCFG_SCREEN_ADD("lscreen", RASTER)
|
||||
MCFG_SCREEN_REFRESH_RATE(60)
|
||||
@ -869,7 +869,7 @@ static MACHINE_CONFIG_START( darius2, ninjaw_state )
|
||||
MCFG_PALETTE_ADD("palette2", 4096)
|
||||
MCFG_PALETTE_ADD("palette3", 4096)
|
||||
|
||||
MCFG_DEFAULT_LAYOUT(layout_darius)
|
||||
MCFG_DEFAULT_LAYOUT(layout_ninjaw)
|
||||
|
||||
MCFG_SCREEN_ADD("lscreen", RASTER)
|
||||
MCFG_SCREEN_REFRESH_RATE(60)
|
||||
|
@ -345,6 +345,10 @@ Boards:
|
||||
#include "machine/watchdog.h"
|
||||
#include "sound/ay8910.h"
|
||||
#include "sound/sn76496.h"
|
||||
#include "machine/acitya.h"
|
||||
#include "machine/jumpshot.h"
|
||||
#include "machine/pacplus.h"
|
||||
#include "machine/theglobp.h"
|
||||
|
||||
|
||||
/*************************************
|
||||
|
@ -2,6 +2,7 @@
|
||||
// copyright-holders:Miodrag Milanovic, MetalliC
|
||||
#include "emu.h"
|
||||
#include "includes/spectrum.h"
|
||||
#include "includes/spec128.h"
|
||||
#include "imagedev/snapquik.h"
|
||||
#include "imagedev/cassette.h"
|
||||
#include "sound/ay8910.h"
|
||||
@ -10,6 +11,7 @@
|
||||
#include "machine/beta.h"
|
||||
#include "machine/ram.h"
|
||||
#include "softlist.h"
|
||||
#include "machine/spec_snqk.h"
|
||||
|
||||
class pentagon_state : public spectrum_state
|
||||
{
|
||||
|
@ -50,6 +50,9 @@ TODO: Superpong is believed to use the Pong (Rev E) PCB with some minor modifica
|
||||
#include "netlist/devices/net_lib.h"
|
||||
#include "sound/dac.h"
|
||||
#include "video/fixfreq.h"
|
||||
#include "machine/nl_breakout.h"
|
||||
#include "machine/nl_pong.h"
|
||||
#include "machine/nl_pongd.h"
|
||||
|
||||
#include "breakout.lh"
|
||||
|
||||
@ -118,10 +121,6 @@ enum input_changed_enum
|
||||
IC_VR2
|
||||
};
|
||||
|
||||
NETLIST_EXTERNAL(pongdoubles)
|
||||
NETLIST_EXTERNAL(pong_fast)
|
||||
NETLIST_EXTERNAL(breakout)
|
||||
|
||||
class ttl_mono_state : public driver_device
|
||||
{
|
||||
public:
|
||||
|
@ -51,7 +51,7 @@ Notes:
|
||||
#include "sound/2612intf.h"
|
||||
|
||||
#include "includes/megadriv.h"
|
||||
|
||||
#include "includes/megadrvb.h"
|
||||
|
||||
/* Puckman Pockimon Input Ports */
|
||||
static INPUT_PORTS_START( puckpkmn )
|
||||
|
@ -24,15 +24,114 @@ TODO:
|
||||
|
||||
#include "emu.h"
|
||||
#include "cpu/z80/z80.h"
|
||||
#include "includes/ladybug.h"
|
||||
#include "sound/sn76496.h"
|
||||
#include "includes/redclash.h"
|
||||
|
||||
|
||||
WRITE8_MEMBER( ladybug_state::irqack_w )
|
||||
/* Sound comm between CPU's */
|
||||
READ8_MEMBER(redclash_state::sraider_sound_low_r)
|
||||
{
|
||||
return m_sound_low;
|
||||
}
|
||||
|
||||
READ8_MEMBER(redclash_state::sraider_sound_high_r)
|
||||
{
|
||||
return m_sound_high;
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(redclash_state::sraider_sound_low_w)
|
||||
{
|
||||
m_sound_low = data;
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(redclash_state::sraider_sound_high_w)
|
||||
{
|
||||
m_sound_high = data;
|
||||
}
|
||||
|
||||
/* Protection? */
|
||||
READ8_MEMBER(redclash_state::sraider_8005_r)
|
||||
{
|
||||
/* This must return X011111X or cpu #1 will hang */
|
||||
/* see code at rst $10 */
|
||||
return 0x3e;
|
||||
}
|
||||
|
||||
/* Unknown IO */
|
||||
WRITE8_MEMBER(redclash_state::sraider_misc_w)
|
||||
{
|
||||
switch(offset)
|
||||
{
|
||||
/* These 8 bits are stored in the latch at A7 */
|
||||
case 0x00:
|
||||
case 0x01:
|
||||
case 0x02:
|
||||
case 0x03:
|
||||
case 0x04:
|
||||
case 0x05:
|
||||
case 0x06:
|
||||
case 0x07:
|
||||
m_weird_value[offset & 7] = data & 1;
|
||||
break;
|
||||
/* These 6 bits are stored in the latch at N7 */
|
||||
case 0x08:
|
||||
m_sraider_0x30 = data&0x3f;
|
||||
break;
|
||||
/* These 6 bits are stored in the latch at N8 */
|
||||
case 0x10:
|
||||
m_sraider_0x38 = data&0x3f;
|
||||
break;
|
||||
default:
|
||||
osd_printf_debug("(%04X) write to %02X\n", space.device().safe_pc(), offset);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
static ADDRESS_MAP_START( sraider_cpu1_map, AS_PROGRAM, 8, redclash_state )
|
||||
AM_RANGE(0x0000, 0x5fff) AM_ROM
|
||||
AM_RANGE(0x6000, 0x6fff) AM_RAM
|
||||
AM_RANGE(0x7000, 0x73ff) AM_WRITEONLY AM_SHARE("spriteram")
|
||||
AM_RANGE(0x8005, 0x8005) AM_READ(sraider_8005_r) // protection check?
|
||||
AM_RANGE(0x8006, 0x8006) AM_WRITE(sraider_sound_low_w)
|
||||
AM_RANGE(0x8007, 0x8007) AM_WRITE(sraider_sound_high_w)
|
||||
AM_RANGE(0x9000, 0x9000) AM_READ_PORT("IN0")
|
||||
AM_RANGE(0x9001, 0x9001) AM_READ_PORT("IN1")
|
||||
AM_RANGE(0x9002, 0x9002) AM_READ_PORT("DSW0")
|
||||
AM_RANGE(0x9003, 0x9003) AM_READ_PORT("DSW1")
|
||||
AM_RANGE(0xd000, 0xd3ff) AM_WRITE(ladybug_videoram_w) AM_SHARE("videoram")
|
||||
AM_RANGE(0xd400, 0xd7ff) AM_WRITE(ladybug_colorram_w) AM_SHARE("colorram")
|
||||
AM_RANGE(0xe000, 0xe000) AM_WRITENOP //unknown 0x10 when in attract, 0x20 when coined/playing
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
static ADDRESS_MAP_START( sraider_cpu2_map, AS_PROGRAM, 8, redclash_state )
|
||||
AM_RANGE(0x0000, 0x5fff) AM_ROM
|
||||
AM_RANGE(0x6000, 0x63ff) AM_RAM
|
||||
AM_RANGE(0x8000, 0x8000) AM_READ(sraider_sound_low_r)
|
||||
AM_RANGE(0xa000, 0xa000) AM_READ(sraider_sound_high_r)
|
||||
AM_RANGE(0xc000, 0xc000) AM_READNOP //some kind of sync
|
||||
AM_RANGE(0xe000, 0xe0ff) AM_WRITEONLY AM_SHARE("grid_data")
|
||||
AM_RANGE(0xe800, 0xe800) AM_WRITE(sraider_io_w)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
static ADDRESS_MAP_START( sraider_cpu2_io_map, AS_IO, 8, redclash_state )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x00, 0x00) AM_DEVWRITE("sn1", sn76489_device, write)
|
||||
AM_RANGE(0x08, 0x08) AM_DEVWRITE("sn2", sn76489_device, write)
|
||||
AM_RANGE(0x10, 0x10) AM_DEVWRITE("sn3", sn76489_device, write)
|
||||
AM_RANGE(0x18, 0x18) AM_DEVWRITE("sn4", sn76489_device, write)
|
||||
AM_RANGE(0x20, 0x20) AM_DEVWRITE("sn5", sn76489_device, write)
|
||||
AM_RANGE(0x28, 0x3f) AM_WRITE(sraider_misc_w) // lots unknown
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
WRITE8_MEMBER( redclash_state::irqack_w )
|
||||
{
|
||||
m_maincpu->set_input_line(0, CLEAR_LINE);
|
||||
}
|
||||
|
||||
static ADDRESS_MAP_START( zerohour_map, AS_PROGRAM, 8, ladybug_state )
|
||||
static ADDRESS_MAP_START( zerohour_map, AS_PROGRAM, 8, redclash_state )
|
||||
AM_RANGE(0x0000, 0x2fff) AM_ROM
|
||||
AM_RANGE(0x3000, 0x37ff) AM_RAM
|
||||
AM_RANGE(0x3800, 0x3bff) AM_RAM AM_SHARE("spriteram")
|
||||
@ -51,7 +150,7 @@ static ADDRESS_MAP_START( zerohour_map, AS_PROGRAM, 8, ladybug_state )
|
||||
AM_RANGE(0x7800, 0x7800) AM_WRITE(irqack_w)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( redclash_map, AS_PROGRAM, 8, ladybug_state )
|
||||
static ADDRESS_MAP_START( redclash_map, AS_PROGRAM, 8, redclash_state )
|
||||
AM_RANGE(0x0000, 0x2fff) AM_ROM
|
||||
// AM_RANGE(0x3000, 0x3000) AM_WRITENOP
|
||||
// AM_RANGE(0x3800, 0x3800) AM_WRITENOP
|
||||
@ -77,13 +176,13 @@ ADDRESS_MAP_END
|
||||
Interrupts are still used, but they are related to coin
|
||||
slots. Left slot generates an IRQ, Right slot a NMI.
|
||||
*/
|
||||
INPUT_CHANGED_MEMBER( ladybug_state::left_coin_inserted )
|
||||
INPUT_CHANGED_MEMBER( redclash_state::left_coin_inserted )
|
||||
{
|
||||
if(newval)
|
||||
m_maincpu->set_input_line(0, ASSERT_LINE);
|
||||
}
|
||||
|
||||
INPUT_CHANGED_MEMBER( ladybug_state::right_coin_inserted )
|
||||
INPUT_CHANGED_MEMBER( redclash_state::right_coin_inserted )
|
||||
{
|
||||
if(newval)
|
||||
m_maincpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
|
||||
@ -179,8 +278,8 @@ static INPUT_PORTS_START( redclash )
|
||||
/* handler to be notified of coin insertions. We use IMPULSE to */
|
||||
/* trigger exactly one interrupt, without having to check when the */
|
||||
/* user releases the key. */
|
||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1) PORT_CHANGED_MEMBER(DEVICE_SELF, ladybug_state, left_coin_inserted, 0)
|
||||
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1) PORT_CHANGED_MEMBER(DEVICE_SELF, ladybug_state, right_coin_inserted, 0)
|
||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1) PORT_CHANGED_MEMBER(DEVICE_SELF, redclash_state, left_coin_inserted, 0)
|
||||
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1) PORT_CHANGED_MEMBER(DEVICE_SELF, redclash_state, right_coin_inserted, 0)
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( zerohour )
|
||||
@ -255,8 +354,83 @@ static INPUT_PORTS_START( zerohour )
|
||||
/* handler to be notified of coin insertions. We use IMPULSE to */
|
||||
/* trigger exactly one interrupt, without having to check when the */
|
||||
/* user releases the key. */
|
||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1) PORT_CHANGED_MEMBER(DEVICE_SELF, ladybug_state, left_coin_inserted, 0)
|
||||
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1) PORT_CHANGED_MEMBER(DEVICE_SELF, ladybug_state, right_coin_inserted, 0)
|
||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1) PORT_CHANGED_MEMBER(DEVICE_SELF, redclash_state, left_coin_inserted, 0)
|
||||
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1) PORT_CHANGED_MEMBER(DEVICE_SELF, redclash_state, right_coin_inserted, 0)
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( sraider )
|
||||
PORT_START("IN0") /* IN0 */
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY
|
||||
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
|
||||
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 )
|
||||
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("IN1") /* IN1 */
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL
|
||||
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
|
||||
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )
|
||||
|
||||
PORT_START("DSW0") /* DSW0 */
|
||||
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
|
||||
PORT_DIPSETTING( 0x03, DEF_STR( Easy ) )
|
||||
PORT_DIPSETTING( 0x02, DEF_STR( Medium ) )
|
||||
PORT_DIPSETTING( 0x01, DEF_STR( Hard ) )
|
||||
PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) )
|
||||
PORT_DIPNAME( 0x04, 0x04, "High Score Names" )
|
||||
PORT_DIPSETTING( 0x00, "3 Letters" )
|
||||
PORT_DIPSETTING( 0x04, "10 Letters" )
|
||||
PORT_DIPNAME( 0x08, 0x08, DEF_STR( Allow_Continue ) )
|
||||
PORT_DIPSETTING( 0x08, DEF_STR( No ) )
|
||||
PORT_DIPSETTING( 0x00, DEF_STR( Yes ) )
|
||||
PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
|
||||
PORT_DIPSETTING( 0x10, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||
PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) )
|
||||
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
|
||||
PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) )
|
||||
PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) )
|
||||
PORT_DIPSETTING( 0x00, "2" )
|
||||
PORT_DIPSETTING( 0xc0, "3" )
|
||||
PORT_DIPSETTING( 0x80, "4" )
|
||||
PORT_DIPSETTING( 0x40, "5" )
|
||||
|
||||
/* Free Play setting works when it's set for both */
|
||||
PORT_START("DSW1") /* DSW1 */
|
||||
PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
|
||||
/* settings 0x00 through 0x05 all give 1 Coin/1 Credit */
|
||||
PORT_DIPSETTING( 0x06, DEF_STR( 4C_1C ) )
|
||||
PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) )
|
||||
PORT_DIPSETTING( 0x0a, DEF_STR( 2C_1C ) )
|
||||
PORT_DIPSETTING( 0x07, DEF_STR( 3C_2C ) )
|
||||
PORT_DIPSETTING( 0x09, DEF_STR( 2C_2C ) )
|
||||
PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) )
|
||||
PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) )
|
||||
PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) )
|
||||
PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) )
|
||||
PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) )
|
||||
PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )
|
||||
PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) )
|
||||
/* settings 0x00 through 0x50 all give 1 Coin/1 Credit */
|
||||
PORT_DIPSETTING( 0x60, DEF_STR( 4C_1C ) )
|
||||
PORT_DIPSETTING( 0x80, DEF_STR( 3C_1C ) )
|
||||
PORT_DIPSETTING( 0xa0, DEF_STR( 2C_1C ) )
|
||||
PORT_DIPSETTING( 0x70, DEF_STR( 3C_2C ) )
|
||||
PORT_DIPSETTING( 0x90, DEF_STR( 2C_2C ) )
|
||||
PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) )
|
||||
PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) )
|
||||
PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ) )
|
||||
PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) )
|
||||
PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) )
|
||||
PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )
|
||||
INPUT_PORTS_END
|
||||
|
||||
static const gfx_layout charlayout =
|
||||
@ -323,9 +497,111 @@ static GFXDECODE_START( redclash )
|
||||
GFXDECODE_ENTRY( "gfx2", 0x0004, spritelayout16x16bis, 4*8, 16 )
|
||||
GFXDECODE_END
|
||||
|
||||
static const gfx_layout charlayout2 =
|
||||
{
|
||||
8,8, /* 8*8 characters */
|
||||
512, /* 512 characters */
|
||||
2, /* 2 bits per pixel */
|
||||
{ 0, 512*8*8 }, /* the two bitplanes are separated */
|
||||
{ 7, 6, 5, 4, 3, 2, 1, 0 },
|
||||
{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
|
||||
8*8 /* every char takes 8 consecutive bytes */
|
||||
};
|
||||
static const gfx_layout spritelayout =
|
||||
{
|
||||
16,16, /* 16*16 sprites */
|
||||
128, /* 128 sprites */
|
||||
2, /* 2 bits per pixel */
|
||||
{ 1, 0 }, /* the two bitplanes are packed in two consecutive bits */
|
||||
{ 0, 2, 4, 6, 8, 10, 12, 14,
|
||||
8*16+0, 8*16+2, 8*16+4, 8*16+6, 8*16+8, 8*16+10, 8*16+12, 8*16+14 },
|
||||
{ 23*16, 22*16, 21*16, 20*16, 19*16, 18*16, 17*16, 16*16,
|
||||
7*16, 6*16, 5*16, 4*16, 3*16, 2*16, 1*16, 0*16 },
|
||||
64*8 /* every sprite takes 64 consecutive bytes */
|
||||
};
|
||||
static const gfx_layout spritelayout2 =
|
||||
{
|
||||
8,8, /* 8*8 sprites */
|
||||
512, /* 512 sprites */
|
||||
2, /* 2 bits per pixel */
|
||||
{ 1, 0 }, /* the two bitplanes are packed in two consecutive bits */
|
||||
{ 0, 2, 4, 6, 8, 10, 12, 14 },
|
||||
{ 7*16, 6*16, 5*16, 4*16, 3*16, 2*16, 1*16, 0*16 },
|
||||
16*8 /* every sprite takes 16 consecutive bytes */
|
||||
};
|
||||
|
||||
static const gfx_layout gridlayout =
|
||||
{
|
||||
8,8, /* 8*8 characters */
|
||||
512, /* 512 characters */
|
||||
1, /* 1 bit per pixel */
|
||||
{ 0 },
|
||||
{ 7, 6, 5, 4, 3, 2, 1, 0 },
|
||||
{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8},
|
||||
8*8 /* every char takes 8 consecutive bytes */
|
||||
};
|
||||
|
||||
static const gfx_layout gridlayout2 =
|
||||
{
|
||||
8,8, /* 8*8 characters */
|
||||
512, /* 512 characters */
|
||||
1, /* 1 bit per pixel */
|
||||
{ 0 },
|
||||
{ 7, 6, 5, 4, 3, 2, 1, 0 },
|
||||
{ 7*8, 6*8, 5*8, 4*8, 3*8, 2*8, 1*8, 0*8 },
|
||||
8*8 /* every char takes 8 consecutive bytes */
|
||||
};
|
||||
|
||||
static GFXDECODE_START( sraider )
|
||||
GFXDECODE_ENTRY( "gfx1", 0, charlayout2, 0, 8 )
|
||||
GFXDECODE_ENTRY( "gfx2", 0, spritelayout, 4*8, 16 )
|
||||
GFXDECODE_ENTRY( "gfx2", 0, spritelayout2, 4*8, 16 )
|
||||
GFXDECODE_ENTRY( "gfx3", 0, gridlayout, 4*8+4*16+32, 1 )
|
||||
GFXDECODE_ENTRY( "gfx3", 0, gridlayout2, 4*8+4*16+32, 1 )
|
||||
GFXDECODE_END
|
||||
|
||||
MACHINE_START_MEMBER(redclash_state,sraider)
|
||||
{
|
||||
save_item(NAME(m_grid_color));
|
||||
save_item(NAME(m_sound_low));
|
||||
save_item(NAME(m_sound_high));
|
||||
save_item(NAME(m_sraider_0x30));
|
||||
save_item(NAME(m_sraider_0x38));
|
||||
save_item(NAME(m_weird_value));
|
||||
|
||||
/* for stars */
|
||||
save_item(NAME(m_star_speed));
|
||||
save_item(NAME(m_stars_enable));
|
||||
save_item(NAME(m_stars_speed));
|
||||
save_item(NAME(m_stars_state));
|
||||
save_item(NAME(m_stars_offset));
|
||||
save_item(NAME(m_stars_count));
|
||||
}
|
||||
|
||||
MACHINE_RESET_MEMBER(redclash_state,sraider)
|
||||
{
|
||||
int i;
|
||||
|
||||
m_grid_color = 0;
|
||||
m_sound_low = 0;
|
||||
m_sound_high = 0;
|
||||
m_sraider_0x30 = 0;
|
||||
m_sraider_0x38 = 0;
|
||||
|
||||
/* for stars */
|
||||
m_star_speed = 0;
|
||||
m_stars_enable = 0;
|
||||
m_stars_speed = 0;
|
||||
m_stars_state = 0;
|
||||
m_stars_offset = 0;
|
||||
m_stars_count = 0;
|
||||
|
||||
for (i = 0; i < 8; i++)
|
||||
m_weird_value[i] = 0;
|
||||
}
|
||||
|
||||
|
||||
MACHINE_START_MEMBER(ladybug_state,redclash)
|
||||
MACHINE_START_MEMBER(redclash_state,redclash)
|
||||
{
|
||||
save_item(NAME(m_star_speed));
|
||||
save_item(NAME(m_gfxbank));
|
||||
@ -336,7 +612,7 @@ MACHINE_START_MEMBER(ladybug_state,redclash)
|
||||
save_item(NAME(m_stars_count));
|
||||
}
|
||||
|
||||
MACHINE_RESET_MEMBER(ladybug_state,redclash)
|
||||
MACHINE_RESET_MEMBER(redclash_state,redclash)
|
||||
{
|
||||
m_star_speed = 0;
|
||||
m_gfxbank = 0;
|
||||
@ -347,14 +623,14 @@ MACHINE_RESET_MEMBER(ladybug_state,redclash)
|
||||
m_stars_count = 0;
|
||||
}
|
||||
|
||||
static MACHINE_CONFIG_START( zerohour, ladybug_state )
|
||||
static MACHINE_CONFIG_START( zerohour, redclash_state )
|
||||
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", Z80, 4000000) /* 4 MHz */
|
||||
MCFG_CPU_PROGRAM_MAP(zerohour_map)
|
||||
|
||||
MCFG_MACHINE_START_OVERRIDE(ladybug_state,redclash)
|
||||
MCFG_MACHINE_RESET_OVERRIDE(ladybug_state,redclash)
|
||||
MCFG_MACHINE_START_OVERRIDE(redclash_state,redclash)
|
||||
MCFG_MACHINE_RESET_OVERRIDE(redclash_state,redclash)
|
||||
|
||||
/* video hardware */
|
||||
MCFG_SCREEN_ADD("screen", RASTER)
|
||||
@ -362,28 +638,28 @@ static MACHINE_CONFIG_START( zerohour, ladybug_state )
|
||||
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
|
||||
MCFG_SCREEN_SIZE(32*8, 32*8)
|
||||
MCFG_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 4*8, 28*8-1)
|
||||
MCFG_SCREEN_UPDATE_DRIVER(ladybug_state, screen_update_redclash)
|
||||
MCFG_SCREEN_VBLANK_DRIVER(ladybug_state, screen_eof_redclash)
|
||||
MCFG_SCREEN_UPDATE_DRIVER(redclash_state, screen_update_redclash)
|
||||
MCFG_SCREEN_VBLANK_DRIVER(redclash_state, screen_eof_redclash)
|
||||
MCFG_SCREEN_PALETTE("palette")
|
||||
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", "palette", redclash)
|
||||
MCFG_PALETTE_ADD("palette", 4*8+4*16+32)
|
||||
MCFG_PALETTE_INDIRECT_ENTRIES(32+32)
|
||||
MCFG_PALETTE_INIT_OWNER(ladybug_state,redclash)
|
||||
MCFG_VIDEO_START_OVERRIDE(ladybug_state,redclash)
|
||||
MCFG_PALETTE_INIT_OWNER(redclash_state,redclash)
|
||||
MCFG_VIDEO_START_OVERRIDE(redclash_state,redclash)
|
||||
|
||||
/* sound hardware */
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
static MACHINE_CONFIG_START( redclash, ladybug_state )
|
||||
static MACHINE_CONFIG_START( redclash, redclash_state )
|
||||
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", Z80, 4000000) /* 4 MHz */
|
||||
MCFG_CPU_PROGRAM_MAP(redclash_map)
|
||||
|
||||
MCFG_MACHINE_START_OVERRIDE(ladybug_state,redclash)
|
||||
MCFG_MACHINE_RESET_OVERRIDE(ladybug_state,redclash)
|
||||
MCFG_MACHINE_START_OVERRIDE(redclash_state,redclash)
|
||||
MCFG_MACHINE_RESET_OVERRIDE(redclash_state,redclash)
|
||||
|
||||
/* video hardware */
|
||||
MCFG_SCREEN_ADD("screen", RASTER)
|
||||
@ -391,19 +667,72 @@ static MACHINE_CONFIG_START( redclash, ladybug_state )
|
||||
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
|
||||
MCFG_SCREEN_SIZE(32*8, 32*8)
|
||||
MCFG_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 4*8, 28*8-1)
|
||||
MCFG_SCREEN_UPDATE_DRIVER(ladybug_state, screen_update_redclash)
|
||||
MCFG_SCREEN_VBLANK_DRIVER(ladybug_state, screen_eof_redclash)
|
||||
MCFG_SCREEN_UPDATE_DRIVER(redclash_state, screen_update_redclash)
|
||||
MCFG_SCREEN_VBLANK_DRIVER(redclash_state, screen_eof_redclash)
|
||||
MCFG_SCREEN_PALETTE("palette")
|
||||
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", "palette", redclash)
|
||||
MCFG_PALETTE_ADD("palette", 4*8+4*16+32)
|
||||
MCFG_PALETTE_INDIRECT_ENTRIES(32+32)
|
||||
MCFG_PALETTE_INIT_OWNER(ladybug_state,redclash)
|
||||
MCFG_VIDEO_START_OVERRIDE(ladybug_state,redclash)
|
||||
MCFG_PALETTE_INIT_OWNER(redclash_state,redclash)
|
||||
MCFG_VIDEO_START_OVERRIDE(redclash_state,redclash)
|
||||
|
||||
/* sound hardware */
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_START( sraider, redclash_state )
|
||||
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", Z80, 4000000) /* 4 MHz */
|
||||
MCFG_CPU_PROGRAM_MAP(sraider_cpu1_map)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", redclash_state, irq0_line_hold)
|
||||
|
||||
MCFG_CPU_ADD("sub", Z80, 4000000) /* 4 MHz */
|
||||
MCFG_CPU_PROGRAM_MAP(sraider_cpu2_map)
|
||||
MCFG_CPU_IO_MAP(sraider_cpu2_io_map)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", redclash_state, irq0_line_hold)
|
||||
|
||||
MCFG_MACHINE_START_OVERRIDE(redclash_state,sraider)
|
||||
MCFG_MACHINE_RESET_OVERRIDE(redclash_state,sraider)
|
||||
|
||||
/* video hardware */
|
||||
MCFG_SCREEN_ADD("screen", RASTER)
|
||||
MCFG_SCREEN_REFRESH_RATE(60)
|
||||
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
|
||||
MCFG_SCREEN_SIZE(32*8, 32*8)
|
||||
MCFG_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 4*8, 28*8-1)
|
||||
MCFG_SCREEN_UPDATE_DRIVER(redclash_state, screen_update_sraider)
|
||||
MCFG_SCREEN_VBLANK_DRIVER(redclash_state, screen_eof_sraider)
|
||||
MCFG_SCREEN_PALETTE("palette")
|
||||
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", "palette", sraider)
|
||||
MCFG_PALETTE_ADD("palette", 4*8+4*16+32+2)
|
||||
MCFG_PALETTE_INDIRECT_ENTRIES(32+32+1)
|
||||
MCFG_PALETTE_INIT_OWNER(redclash_state,sraider)
|
||||
|
||||
MCFG_VIDEO_START_OVERRIDE(redclash_state,sraider)
|
||||
|
||||
/* sound hardware */
|
||||
MCFG_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MCFG_SOUND_ADD("sn1", SN76489, 4000000)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
MCFG_SOUND_ADD("sn2", SN76489, 4000000)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
MCFG_SOUND_ADD("sn3", SN76489, 4000000)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
MCFG_SOUND_ADD("sn4", SN76489, 4000000)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
MCFG_SOUND_ADD("sn5", SN76489, 4000000)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
|
||||
Game driver(s)
|
||||
@ -568,7 +897,36 @@ ROM_START( redclashk )
|
||||
ROM_LOAD( "3.11e", 0x0040, 0x0020, CRC(27fa3a50) SHA1(7cf59b7a37c156640d6ea91554d1c4276c1780e0) ) /* 6331.6w */
|
||||
ROM_END
|
||||
|
||||
DRIVER_INIT_MEMBER(ladybug_state,redclash)
|
||||
ROM_START( sraider )
|
||||
ROM_REGION( 0x10000, "maincpu", 0 )
|
||||
ROM_LOAD( "sraid3.r4", 0x0000, 0x2000, CRC(0f389774) SHA1(c67596e6bf00175ff0a241506cd2f88114d05933) )
|
||||
ROM_LOAD( "sraid2.n4", 0x2000, 0x2000, CRC(38a48db0) SHA1(6f4f384d702fb8ee4bb2ef579638239d57e32ddd) )
|
||||
ROM_LOAD( "sraid1.m4", 0x4000, 0x2000, CRC(2f302a4e) SHA1(3a902ce6858f38df88b60830bef4b1d45b09b2df) )
|
||||
|
||||
ROM_REGION( 0x10000, "sub", 0 )
|
||||
ROM_LOAD( "sraid-s4.h6", 0x0000, 0x2000, CRC(57173a12) SHA1(6cb8fd4826e499f9a4e63621d58bc4b596cc261e) )
|
||||
ROM_LOAD( "sraid-s5.j6", 0x2000, 0x2000, CRC(5a459179) SHA1(a261c8f3c7c4cd4587c003bbbe815d2c4e01ffbc) )
|
||||
ROM_LOAD( "sraid-s6.l6", 0x4000, 0x2000, CRC(ea3aa25d) SHA1(353c0d075d5e0a3bc25a65e2748f5eb5212a844d) )
|
||||
|
||||
ROM_REGION( 0x2000, "gfx1", 0 )
|
||||
ROM_LOAD( "sraid-s0.k6", 0x0000, 0x1000, CRC(a0373909) SHA1(00e3bd5dd90769d670fc3c51edd1cd4b69e6132d) )
|
||||
ROM_LOAD( "sraids11.l6", 0x1000, 0x1000, CRC(ba22d949) SHA1(83762ced1df92ff594887e44d5b783826bbfb0c9) )
|
||||
|
||||
ROM_REGION( 0x2000, "gfx2", 0 )
|
||||
ROM_LOAD( "sraid-s7.m2", 0x0000, 0x1000, CRC(299f8e07) SHA1(1de71f251286088487da7285d6f8070147002af5) )
|
||||
ROM_LOAD( "sraid-s8.n2", 0x1000, 0x1000, CRC(57ba8888) SHA1(2aa1a5f682d146a55a96e471bb78e5c60da02bf9) )
|
||||
|
||||
ROM_REGION( 0x1000, "gfx3", 0 ) /* fixed portion of the grid */
|
||||
ROM_LOAD( "sraid-s9.f6", 0x0000, 0x1000, CRC(2380b90f) SHA1(0310554e3f2ec973c2bb6e816d04e5c0c1e0a0b9) )
|
||||
|
||||
ROM_REGION( 0x0060, "proms", 0 )
|
||||
ROM_LOAD( "srpr10-1.a2", 0x0000, 0x0020, CRC(121fdb99) SHA1(3bc092da40beb129a4df3db2f55d22bbbcf7bad8) )
|
||||
ROM_LOAD( "srpr10-2.l3", 0x0020, 0x0020, CRC(88b67e70) SHA1(e21ee2939e96dffee101bd92c62ed975b6b64001) )
|
||||
ROM_LOAD( "srpr10-3.c1", 0x0040, 0x0020, CRC(27fa3a50) SHA1(7cf59b7a37c156640d6ea91554d1c4276c1780e0) ) /* ?? */
|
||||
ROM_END
|
||||
|
||||
|
||||
DRIVER_INIT_MEMBER(redclash_state,redclash)
|
||||
{
|
||||
int i,j;
|
||||
const UINT8 *src = memregion("gfx2")->base();
|
||||
@ -584,9 +942,10 @@ DRIVER_INIT_MEMBER(ladybug_state,redclash)
|
||||
}
|
||||
|
||||
|
||||
GAME( 1980, zerohour, 0, zerohour, zerohour, ladybug_state, redclash, ROT270, "Universal", "Zero Hour (set 1)", MACHINE_NO_SOUND | MACHINE_WRONG_COLORS | MACHINE_IMPERFECT_GRAPHICS | MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1980, zerohoura, zerohour, zerohour, zerohour, ladybug_state, redclash, ROT270, "Universal", "Zero Hour (set 2)", MACHINE_NO_SOUND | MACHINE_WRONG_COLORS | MACHINE_IMPERFECT_GRAPHICS | MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1980, zerohouri, zerohour, zerohour, zerohour, ladybug_state, redclash, ROT270, "bootleg (Inder SA)", "Zero Hour (Inder)", MACHINE_NO_SOUND | MACHINE_WRONG_COLORS | MACHINE_IMPERFECT_GRAPHICS | MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1981, redclash, 0, redclash, redclash, ladybug_state, redclash, ROT270, "Tehkan", "Red Clash (set 1)", MACHINE_NO_SOUND | MACHINE_WRONG_COLORS | MACHINE_IMPERFECT_GRAPHICS | MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1981, redclasha, redclash, redclash, redclash, ladybug_state, redclash, ROT270, "Tehkan", "Red Clash (set 2)", MACHINE_NO_SOUND | MACHINE_WRONG_COLORS | MACHINE_IMPERFECT_GRAPHICS | MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1981, redclashk, redclash, redclash, redclash, ladybug_state, redclash, ROT270, "Tehkan (Kaneko license)", "Red Clash (Kaneko)", MACHINE_NO_SOUND | MACHINE_WRONG_COLORS | MACHINE_IMPERFECT_GRAPHICS | MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1980, zerohour, 0, zerohour, zerohour, redclash_state, redclash, ROT270, "Universal", "Zero Hour (set 1)", MACHINE_NO_SOUND | MACHINE_WRONG_COLORS | MACHINE_IMPERFECT_GRAPHICS | MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1980, zerohoura, zerohour, zerohour, zerohour, redclash_state, redclash, ROT270, "Universal", "Zero Hour (set 2)", MACHINE_NO_SOUND | MACHINE_WRONG_COLORS | MACHINE_IMPERFECT_GRAPHICS | MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1980, zerohouri, zerohour, zerohour, zerohour, redclash_state, redclash, ROT270, "bootleg (Inder SA)", "Zero Hour (Inder)", MACHINE_NO_SOUND | MACHINE_WRONG_COLORS | MACHINE_IMPERFECT_GRAPHICS | MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1981, redclash, 0, redclash, redclash, redclash_state, redclash, ROT270, "Tehkan", "Red Clash (set 1)", MACHINE_NO_SOUND | MACHINE_WRONG_COLORS | MACHINE_IMPERFECT_GRAPHICS | MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1981, redclasha, redclash, redclash, redclash, redclash_state, redclash, ROT270, "Tehkan", "Red Clash (set 2)", MACHINE_NO_SOUND | MACHINE_WRONG_COLORS | MACHINE_IMPERFECT_GRAPHICS | MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1981, redclashk, redclash, redclash, redclash, redclash_state, redclash, ROT270, "Tehkan (Kaneko license)", "Red Clash (Kaneko)", MACHINE_NO_SOUND | MACHINE_WRONG_COLORS | MACHINE_IMPERFECT_GRAPHICS | MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1982, sraider, 0, sraider, sraider, driver_device, 0, ROT270, "Universal", "Space Raider", MACHINE_SUPPORTS_SAVE )
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
#include "emu.h"
|
||||
#include "includes/spectrum.h"
|
||||
#include "includes/spec128.h"
|
||||
#include "imagedev/snapquik.h"
|
||||
#include "imagedev/cassette.h"
|
||||
#include "sound/ay8910.h"
|
||||
@ -10,6 +11,8 @@
|
||||
#include "formats/tzx_cas.h"
|
||||
#include "machine/beta.h"
|
||||
#include "machine/ram.h"
|
||||
#include "machine/spec_snqk.h"
|
||||
|
||||
|
||||
class scorpion_state : public spectrum_state
|
||||
{
|
||||
|
@ -153,6 +153,7 @@ resulting mess can be seen in the F4 viewer display.
|
||||
#include "emu.h"
|
||||
#include "cpu/z80/z80.h"
|
||||
#include "includes/spectrum.h"
|
||||
#include "includes/spec128.h"
|
||||
#include "imagedev/snapquik.h"
|
||||
#include "imagedev/cassette.h"
|
||||
#include "sound/ay8910.h"
|
||||
|
@ -148,6 +148,8 @@ http://www.z88forever.org.uk/zxplus3e/
|
||||
|
||||
#include "emu.h"
|
||||
#include "includes/spectrum.h"
|
||||
#include "includes/spec128.h"
|
||||
#include "includes/specpls3.h"
|
||||
#include "imagedev/snapquik.h"
|
||||
#include "imagedev/cassette.h"
|
||||
#include "sound/ay8910.h"
|
||||
|
@ -321,6 +321,7 @@ Stephh's notes (based on the game M68000 code and some tests) :
|
||||
#include "includes/taitoipt.h"
|
||||
#include "audio/taitosnd.h"
|
||||
#include "includes/taito_x.h"
|
||||
#include "machine/cchip.h"
|
||||
#include "sound/2610intf.h"
|
||||
#include "sound/2151intf.h"
|
||||
|
||||
|
@ -149,6 +149,8 @@ http://www.z88forever.org.uk/zxplus3e/
|
||||
#include "emu.h"
|
||||
#include "cpu/z80/z80.h"
|
||||
#include "includes/spectrum.h"
|
||||
#include "includes/spec128.h"
|
||||
#include "includes/timex.h"
|
||||
#include "imagedev/snapquik.h"
|
||||
#include "imagedev/cassette.h"
|
||||
#include "sound/speaker.h"
|
||||
@ -158,6 +160,7 @@ http://www.z88forever.org.uk/zxplus3e/
|
||||
#include "machine/beta.h"
|
||||
#include "machine/ram.h"
|
||||
#include "softlist.h"
|
||||
#include "machine/spec_snqk.h"
|
||||
|
||||
/****************************************************************************************************/
|
||||
/* TS2048 specific functions */
|
||||
|
14
src/mame/includes/apple2e.h
Normal file
14
src/mame/includes/apple2e.h
Normal file
@ -0,0 +1,14 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:R. Belmont
|
||||
/***************************************************************************
|
||||
|
||||
includes/apple2e.h
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef APPLE2E_H_
|
||||
#define APPLE2E_H_
|
||||
|
||||
INPUT_PORTS_EXTERN( apple2ep );
|
||||
|
||||
#endif /* APPLE2E_H_ */
|
@ -14,7 +14,7 @@
|
||||
#define __COCO3__
|
||||
|
||||
|
||||
#include "includes/coco.h"
|
||||
#include "includes/coco12.h"
|
||||
#include "video/gime.h"
|
||||
|
||||
|
||||
|
@ -106,5 +106,3 @@ private:
|
||||
optional_device<mc6845_device> m_crtc;
|
||||
required_device<beep_device> m_beep;
|
||||
};
|
||||
|
||||
INPUT_PORTS_EXTERN( kay_kbd );
|
||||
|
@ -3,9 +3,7 @@
|
||||
/*************************************************************************
|
||||
|
||||
Universal 8106-A2 + 8106-B PCB set
|
||||
|
||||
and Zero Hour / Red Clash
|
||||
|
||||
|
||||
*************************************************************************/
|
||||
|
||||
class ladybug_state : public driver_device
|
||||
@ -34,10 +32,8 @@ public:
|
||||
/* video-related */
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_grid_tilemap; // ladybug
|
||||
tilemap_t *m_fg_tilemap; // redclash
|
||||
UINT8 m_grid_color;
|
||||
int m_star_speed;
|
||||
int m_gfxbank; // redclash only
|
||||
UINT8 m_stars_enable;
|
||||
UINT8 m_stars_speed;
|
||||
UINT32 m_stars_state;
|
||||
@ -48,8 +44,6 @@ public:
|
||||
UINT8 m_sound_low;
|
||||
UINT8 m_sound_high;
|
||||
UINT8 m_weird_value[8];
|
||||
UINT8 m_sraider_0x30;
|
||||
UINT8 m_sraider_0x38;
|
||||
|
||||
/* devices */
|
||||
required_device<cpu_device> m_maincpu;
|
||||
@ -60,59 +54,22 @@ public:
|
||||
optional_ioport m_p2_control;
|
||||
optional_shared_ptr<UINT8> m_decrypted_opcodes;
|
||||
|
||||
DECLARE_READ8_MEMBER(sraider_sound_low_r);
|
||||
DECLARE_READ8_MEMBER(sraider_sound_high_r);
|
||||
DECLARE_WRITE8_MEMBER(sraider_sound_low_w);
|
||||
DECLARE_WRITE8_MEMBER(sraider_sound_high_w);
|
||||
DECLARE_READ8_MEMBER(sraider_8005_r);
|
||||
DECLARE_WRITE8_MEMBER(sraider_misc_w);
|
||||
DECLARE_WRITE8_MEMBER(ladybug_videoram_w);
|
||||
DECLARE_WRITE8_MEMBER(ladybug_colorram_w);
|
||||
DECLARE_WRITE8_MEMBER(ladybug_flipscreen_w);
|
||||
DECLARE_WRITE8_MEMBER(sraider_io_w);
|
||||
DECLARE_CUSTOM_INPUT_MEMBER(ladybug_p1_control_r);
|
||||
DECLARE_CUSTOM_INPUT_MEMBER(ladybug_p2_control_r);
|
||||
DECLARE_INPUT_CHANGED_MEMBER(coin1_inserted);
|
||||
DECLARE_INPUT_CHANGED_MEMBER(coin2_inserted);
|
||||
DECLARE_INPUT_CHANGED_MEMBER(left_coin_inserted);
|
||||
DECLARE_INPUT_CHANGED_MEMBER(right_coin_inserted);
|
||||
DECLARE_DRIVER_INIT(dorodon);
|
||||
DECLARE_DRIVER_INIT(redclash);
|
||||
TILE_GET_INFO_MEMBER(get_bg_tile_info);
|
||||
TILE_GET_INFO_MEMBER(get_grid_tile_info);
|
||||
TILE_GET_INFO_MEMBER(get_fg_tile_info);
|
||||
DECLARE_MACHINE_START(ladybug);
|
||||
DECLARE_VIDEO_START(ladybug);
|
||||
DECLARE_PALETTE_INIT(ladybug);
|
||||
DECLARE_MACHINE_START(sraider);
|
||||
DECLARE_MACHINE_RESET(sraider);
|
||||
DECLARE_VIDEO_START(sraider);
|
||||
DECLARE_PALETTE_INIT(sraider);
|
||||
DECLARE_MACHINE_START(redclash);
|
||||
DECLARE_MACHINE_RESET(redclash);
|
||||
DECLARE_VIDEO_START(redclash);
|
||||
DECLARE_PALETTE_INIT(redclash);
|
||||
UINT32 screen_update_ladybug(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
UINT32 screen_update_sraider(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
UINT32 screen_update_redclash(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
void screen_eof_sraider(screen_device &screen, bool state);
|
||||
void screen_eof_redclash(screen_device &screen, bool state);
|
||||
void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
|
||||
DECLARE_WRITE8_MEMBER( redclash_videoram_w );
|
||||
DECLARE_WRITE8_MEMBER( redclash_gfxbank_w );
|
||||
DECLARE_WRITE8_MEMBER( redclash_flipscreen_w );
|
||||
void palette_init_common( palette_device &palette, const UINT8 *color_prom,
|
||||
int r_bit0, int r_bit1, int g_bit0, int g_bit1, int b_bit0, int b_bit1 );
|
||||
|
||||
DECLARE_WRITE8_MEMBER( redclash_star0_w );
|
||||
DECLARE_WRITE8_MEMBER( redclash_star1_w );
|
||||
DECLARE_WRITE8_MEMBER( redclash_star2_w );
|
||||
DECLARE_WRITE8_MEMBER( redclash_star_reset_w );
|
||||
DECLARE_WRITE8_MEMBER( irqack_w );
|
||||
|
||||
/* sraider uses the zerohour star generator board */
|
||||
void redclash_set_stars_enable(UINT8 on);
|
||||
void redclash_update_stars_state();
|
||||
void redclash_set_stars_speed(UINT8 speed);
|
||||
void redclash_draw_stars(bitmap_ind16 &bitmap, const rectangle &cliprect, UINT8 palette_offset, UINT8 sraider, UINT8 firstx, UINT8 lastx);
|
||||
void redclash_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
|
||||
void redclash_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect );
|
||||
};
|
||||
|
@ -137,41 +137,6 @@ public:
|
||||
DECLARE_WRITE8_MEMBER(megadriv_tas_callback);
|
||||
};
|
||||
|
||||
|
||||
class md_boot_state : public md_base_state
|
||||
{
|
||||
public:
|
||||
md_boot_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||
: md_base_state(mconfig, type, tag) { m_protcount = 0;}
|
||||
|
||||
// bootleg specific
|
||||
int m_aladmdb_mcu_port;
|
||||
|
||||
int m_protcount;
|
||||
|
||||
DECLARE_DRIVER_INIT(aladmdb);
|
||||
DECLARE_DRIVER_INIT(mk3mdb);
|
||||
DECLARE_DRIVER_INIT(ssf2mdb);
|
||||
DECLARE_DRIVER_INIT(srmdb);
|
||||
DECLARE_DRIVER_INIT(topshoot);
|
||||
DECLARE_DRIVER_INIT(puckpkmn);
|
||||
DECLARE_DRIVER_INIT(hshavoc);
|
||||
DECLARE_WRITE16_MEMBER(bl_710000_w);
|
||||
DECLARE_READ16_MEMBER(bl_710000_r);
|
||||
DECLARE_WRITE16_MEMBER(aladmdb_w);
|
||||
DECLARE_READ16_MEMBER(aladmdb_r);
|
||||
DECLARE_READ16_MEMBER(mk3mdb_dsw_r);
|
||||
DECLARE_READ16_MEMBER(ssf2mdb_dsw_r);
|
||||
DECLARE_READ16_MEMBER(srmdb_dsw_r);
|
||||
DECLARE_READ16_MEMBER(topshoot_200051_r);
|
||||
DECLARE_READ16_MEMBER(puckpkmna_70001c_r);
|
||||
DECLARE_READ16_MEMBER(puckpkmna_4b2476_r);
|
||||
|
||||
DECLARE_MACHINE_START(md_bootleg) { MACHINE_START_CALL_MEMBER(megadriv); m_vdp->stop_timers(); }
|
||||
DECLARE_MACHINE_START(md_6button);
|
||||
};
|
||||
|
||||
|
||||
class md_cons_state : public md_base_state
|
||||
{
|
||||
public:
|
||||
|
37
src/mame/includes/megadrvb.h
Normal file
37
src/mame/includes/megadrvb.h
Normal file
@ -0,0 +1,37 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:David Haywood
|
||||
|
||||
class md_boot_state : public md_base_state
|
||||
{
|
||||
public:
|
||||
md_boot_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||
: md_base_state(mconfig, type, tag) { m_protcount = 0;}
|
||||
|
||||
// bootleg specific
|
||||
int m_aladmdb_mcu_port;
|
||||
|
||||
int m_protcount;
|
||||
|
||||
DECLARE_DRIVER_INIT(aladmdb);
|
||||
DECLARE_DRIVER_INIT(mk3mdb);
|
||||
DECLARE_DRIVER_INIT(ssf2mdb);
|
||||
DECLARE_DRIVER_INIT(srmdb);
|
||||
DECLARE_DRIVER_INIT(topshoot);
|
||||
DECLARE_DRIVER_INIT(puckpkmn);
|
||||
DECLARE_DRIVER_INIT(hshavoc);
|
||||
DECLARE_WRITE16_MEMBER(bl_710000_w);
|
||||
DECLARE_READ16_MEMBER(bl_710000_r);
|
||||
DECLARE_WRITE16_MEMBER(aladmdb_w);
|
||||
DECLARE_READ16_MEMBER(aladmdb_r);
|
||||
DECLARE_READ16_MEMBER(mk3mdb_dsw_r);
|
||||
DECLARE_READ16_MEMBER(ssf2mdb_dsw_r);
|
||||
DECLARE_READ16_MEMBER(srmdb_dsw_r);
|
||||
DECLARE_READ16_MEMBER(topshoot_200051_r);
|
||||
DECLARE_READ16_MEMBER(puckpkmna_70001c_r);
|
||||
DECLARE_READ16_MEMBER(puckpkmna_4b2476_r);
|
||||
|
||||
DECLARE_MACHINE_START(md_bootleg) { MACHINE_START_CALL_MEMBER(megadriv); m_vdp->stop_timers(); }
|
||||
DECLARE_MACHINE_START(md_6button);
|
||||
};
|
||||
|
||||
|
@ -85,24 +85,3 @@ private:
|
||||
void update_gun_irq();
|
||||
};
|
||||
|
||||
|
||||
class midzeus2_state : public midzeus_state
|
||||
{
|
||||
public:
|
||||
midzeus2_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||
: midzeus_state(mconfig, type, tag) { }
|
||||
|
||||
DECLARE_VIDEO_START(midzeus2);
|
||||
UINT32 screen_update_midzeus2(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
|
||||
DECLARE_READ32_MEMBER( zeus2_r );
|
||||
DECLARE_WRITE32_MEMBER( zeus2_w );
|
||||
private:
|
||||
TIMER_CALLBACK_MEMBER(int_timer_callback);
|
||||
void exit_handler2();
|
||||
void zeus2_register32_w(offs_t offset, UINT32 data, int logit);
|
||||
void zeus2_register_update(offs_t offset, UINT32 oldval, int logit);
|
||||
int zeus2_fifo_process(const UINT32 *data, int numwords);
|
||||
void zeus2_pointer_write(UINT8 which, UINT32 value);
|
||||
void zeus2_draw_model(UINT32 baseaddr, UINT16 count, int logit);
|
||||
void log_fifo_command(const UINT32 *data, int numwords, const char *suffix);
|
||||
};
|
||||
|
28
src/mame/includes/midzeus2.h
Normal file
28
src/mame/includes/midzeus2.h
Normal file
@ -0,0 +1,28 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Aaron Giles
|
||||
/*************************************************************************
|
||||
|
||||
Driver for Midway Zeus games
|
||||
|
||||
**************************************************************************/
|
||||
|
||||
class midzeus2_state : public midzeus_state
|
||||
{
|
||||
public:
|
||||
midzeus2_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||
: midzeus_state(mconfig, type, tag) { }
|
||||
|
||||
DECLARE_VIDEO_START(midzeus2);
|
||||
UINT32 screen_update_midzeus2(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
|
||||
DECLARE_READ32_MEMBER( zeus2_r );
|
||||
DECLARE_WRITE32_MEMBER( zeus2_w );
|
||||
private:
|
||||
TIMER_CALLBACK_MEMBER(int_timer_callback);
|
||||
void exit_handler2();
|
||||
void zeus2_register32_w(offs_t offset, UINT32 data, int logit);
|
||||
void zeus2_register_update(offs_t offset, UINT32 oldval, int logit);
|
||||
int zeus2_fifo_process(const UINT32 *data, int numwords);
|
||||
void zeus2_pointer_write(UINT8 which, UINT32 value);
|
||||
void zeus2_draw_model(UINT32 baseaddr, UINT16 count, int logit);
|
||||
void log_fifo_command(const UINT32 *data, int numwords, const char *suffix);
|
||||
};
|
64
src/mame/includes/redclash.h
Normal file
64
src/mame/includes/redclash.h
Normal file
@ -0,0 +1,64 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Nicola Salmoria
|
||||
/*************************************************************************
|
||||
|
||||
Zero Hour / Red Clash
|
||||
|
||||
*************************************************************************/
|
||||
|
||||
#include "includes/ladybug.h"
|
||||
|
||||
class redclash_state : public ladybug_state
|
||||
{
|
||||
public:
|
||||
redclash_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||
: ladybug_state(mconfig, type, tag) { }
|
||||
|
||||
tilemap_t *m_fg_tilemap; // redclash
|
||||
int m_gfxbank; // redclash only
|
||||
|
||||
/* misc */
|
||||
UINT8 m_sraider_0x30;
|
||||
UINT8 m_sraider_0x38;
|
||||
|
||||
DECLARE_READ8_MEMBER(sraider_sound_low_r);
|
||||
DECLARE_READ8_MEMBER(sraider_sound_high_r);
|
||||
DECLARE_WRITE8_MEMBER(sraider_sound_low_w);
|
||||
DECLARE_WRITE8_MEMBER(sraider_sound_high_w);
|
||||
DECLARE_READ8_MEMBER(sraider_8005_r);
|
||||
DECLARE_WRITE8_MEMBER(sraider_misc_w);
|
||||
DECLARE_WRITE8_MEMBER(sraider_io_w);
|
||||
DECLARE_INPUT_CHANGED_MEMBER(left_coin_inserted);
|
||||
DECLARE_INPUT_CHANGED_MEMBER(right_coin_inserted);
|
||||
DECLARE_DRIVER_INIT(redclash);
|
||||
DECLARE_MACHINE_START(sraider);
|
||||
DECLARE_MACHINE_RESET(sraider);
|
||||
DECLARE_VIDEO_START(sraider);
|
||||
DECLARE_PALETTE_INIT(sraider);
|
||||
DECLARE_MACHINE_START(redclash);
|
||||
DECLARE_MACHINE_RESET(redclash);
|
||||
DECLARE_VIDEO_START(redclash);
|
||||
DECLARE_PALETTE_INIT(redclash);
|
||||
UINT32 screen_update_sraider(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
UINT32 screen_update_redclash(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
void screen_eof_sraider(screen_device &screen, bool state);
|
||||
void screen_eof_redclash(screen_device &screen, bool state);
|
||||
DECLARE_WRITE8_MEMBER( redclash_videoram_w );
|
||||
DECLARE_WRITE8_MEMBER( redclash_gfxbank_w );
|
||||
DECLARE_WRITE8_MEMBER( redclash_flipscreen_w );
|
||||
TILE_GET_INFO_MEMBER(get_fg_tile_info);
|
||||
|
||||
DECLARE_WRITE8_MEMBER( redclash_star0_w );
|
||||
DECLARE_WRITE8_MEMBER( redclash_star1_w );
|
||||
DECLARE_WRITE8_MEMBER( redclash_star2_w );
|
||||
DECLARE_WRITE8_MEMBER( redclash_star_reset_w );
|
||||
DECLARE_WRITE8_MEMBER( irqack_w );
|
||||
|
||||
/* sraider uses the zerohour star generator board */
|
||||
void redclash_set_stars_enable(UINT8 on);
|
||||
void redclash_update_stars_state();
|
||||
void redclash_set_stars_speed(UINT8 speed);
|
||||
void redclash_draw_stars(bitmap_ind16 &bitmap, const rectangle &cliprect, UINT8 palette_offset, UINT8 sraider, UINT8 firstx, UINT8 lastx);
|
||||
void redclash_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
|
||||
void redclash_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect );
|
||||
};
|
19
src/mame/includes/spec128.h
Normal file
19
src/mame/includes/spec128.h
Normal file
@ -0,0 +1,19 @@
|
||||
// license:GPL-2.0+
|
||||
// copyright-holders:Kevin Thacker
|
||||
/*****************************************************************************
|
||||
*
|
||||
* includes/spec128.h
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __SPEC128H__
|
||||
#define __SPEC128H__
|
||||
|
||||
/* 128K machines take an extra 4 cycles per scan line - add this to retrace */
|
||||
#define SPEC128_UNSEEN_LINES 15
|
||||
#define SPEC128_RETRACE_CYCLES 52
|
||||
#define SPEC128_CYCLES_PER_LINE 228
|
||||
|
||||
MACHINE_CONFIG_EXTERN( spectrum_128 );
|
||||
|
||||
#endif /* __SPEC128H__ */
|
14
src/mame/includes/specpls3.h
Normal file
14
src/mame/includes/specpls3.h
Normal file
@ -0,0 +1,14 @@
|
||||
// license:GPL-2.0+
|
||||
// copyright-holders:Kevin Thacker
|
||||
/*****************************************************************************
|
||||
*
|
||||
* includes/specpls3.h
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __SPECPLS3_H__
|
||||
#define __SPECPLS3_H__
|
||||
|
||||
INPUT_PORTS_EXTERN( spec_plus );
|
||||
|
||||
#endif /* __SPECPLS3_H__ */
|
@ -16,6 +16,7 @@
|
||||
#include "imagedev/cassette.h"
|
||||
#include "bus/generic/slot.h"
|
||||
#include "bus/generic/carts.h"
|
||||
#include "machine/spec_snqk.h"
|
||||
|
||||
/* Spectrum crystals */
|
||||
|
||||
@ -44,23 +45,6 @@
|
||||
#define SPEC_RETRACE_CYCLES 48 /* Cycles taken for horizonal retrace */
|
||||
#define SPEC_CYCLES_PER_LINE 224 /* Number of cycles to display a single line */
|
||||
|
||||
/* 128K machines take an extra 4 cycles per scan line - add this to retrace */
|
||||
#define SPEC128_UNSEEN_LINES 15
|
||||
#define SPEC128_RETRACE_CYCLES 52
|
||||
#define SPEC128_CYCLES_PER_LINE 228
|
||||
|
||||
/* Border sizes for TS2068. These are guesses based on the number of cycles
|
||||
available per frame. */
|
||||
#define TS2068_TOP_BORDER 32
|
||||
#define TS2068_BOTTOM_BORDER 32
|
||||
#define TS2068_SCREEN_HEIGHT (TS2068_TOP_BORDER + SPEC_DISPLAY_YSIZE + TS2068_BOTTOM_BORDER)
|
||||
|
||||
/* Double the border sizes to maintain ratio of screen to border */
|
||||
#define TS2068_LEFT_BORDER 96 /* Number of left hand border pixels */
|
||||
#define TS2068_DISPLAY_XSIZE 512 /* Horizontal screen resolution */
|
||||
#define TS2068_RIGHT_BORDER 96 /* Number of right hand border pixels */
|
||||
#define TS2068_SCREEN_WIDTH (TS2068_LEFT_BORDER + TS2068_DISPLAY_XSIZE + TS2068_RIGHT_BORDER)
|
||||
|
||||
struct EVENT_LIST_ITEM
|
||||
{
|
||||
/* driver defined ID for this write */
|
||||
@ -72,15 +56,6 @@ struct EVENT_LIST_ITEM
|
||||
};
|
||||
|
||||
|
||||
enum
|
||||
{
|
||||
TIMEX_CART_NONE,
|
||||
TIMEX_CART_DOCK,
|
||||
TIMEX_CART_EXROM,
|
||||
TIMEX_CART_HOME
|
||||
};
|
||||
|
||||
|
||||
class spectrum_state : public driver_device
|
||||
{
|
||||
public:
|
||||
@ -255,8 +230,4 @@ INPUT_PORTS_EXTERN( spec_plus );
|
||||
|
||||
MACHINE_CONFIG_EXTERN( spectrum );
|
||||
|
||||
/*----------- defined in drivers/spec128.c -----------*/
|
||||
|
||||
MACHINE_CONFIG_EXTERN( spectrum_128 );
|
||||
|
||||
#endif /* __SPECTRUM_H__ */
|
||||
|
34
src/mame/includes/timex.h
Normal file
34
src/mame/includes/timex.h
Normal file
@ -0,0 +1,34 @@
|
||||
// license:GPL-2.0+
|
||||
// copyright-holders:Kevin Thacker
|
||||
/*****************************************************************************
|
||||
*
|
||||
* includes/timex.h
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __TIMEX_H__
|
||||
#define __TIMEX_H__
|
||||
|
||||
/* Border sizes for TS2068. These are guesses based on the number of cycles
|
||||
available per frame. */
|
||||
#define TS2068_TOP_BORDER 32
|
||||
#define TS2068_BOTTOM_BORDER 32
|
||||
#define TS2068_SCREEN_HEIGHT (TS2068_TOP_BORDER + SPEC_DISPLAY_YSIZE + TS2068_BOTTOM_BORDER)
|
||||
|
||||
/* Double the border sizes to maintain ratio of screen to border */
|
||||
#define TS2068_LEFT_BORDER 96 /* Number of left hand border pixels */
|
||||
#define TS2068_DISPLAY_XSIZE 512 /* Horizontal screen resolution */
|
||||
#define TS2068_RIGHT_BORDER 96 /* Number of right hand border pixels */
|
||||
#define TS2068_SCREEN_WIDTH (TS2068_LEFT_BORDER + TS2068_DISPLAY_XSIZE + TS2068_RIGHT_BORDER)
|
||||
|
||||
enum
|
||||
{
|
||||
TIMEX_CART_NONE,
|
||||
TIMEX_CART_DOCK,
|
||||
TIMEX_CART_EXROM,
|
||||
TIMEX_CART_HOME
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif /* __TIMEX_H__ */
|
70
src/mame/layout/ninjaw.lay
Normal file
70
src/mame/layout/ninjaw.lay
Normal file
@ -0,0 +1,70 @@
|
||||
<?xml version="1.0"?>
|
||||
<mamelayout version="2">
|
||||
<view name="Screen 0 Standard (4:3)">
|
||||
<screen index="0">
|
||||
<bounds left="0" top="0" right="4" bottom="3" />
|
||||
</screen>
|
||||
</view>
|
||||
|
||||
<view name="Screen 1 Standard (4:3)">
|
||||
<screen index="1">
|
||||
<bounds left="0" top="0" right="4" bottom="3" />
|
||||
</screen>
|
||||
</view>
|
||||
|
||||
<view name="Screen 2 Standard (4:3)">
|
||||
<screen index="2">
|
||||
<bounds left="0" top="0" right="4" bottom="3" />
|
||||
</screen>
|
||||
</view>
|
||||
|
||||
<view name="Screen 0 Pixel Aspect (~scr0nativexaspect~:~scr0nativeyaspect~)">
|
||||
<screen index="0">
|
||||
<bounds left="0" top="0" right="~scr0width~" bottom="~scr0height~" />
|
||||
</screen>
|
||||
</view>
|
||||
|
||||
<view name="Screen 1 Pixel Aspect (~scr1nativexaspect~:~scr1nativeyaspect~)">
|
||||
<screen index="1">
|
||||
<bounds left="0" top="0" right="~scr1width~" bottom="~scr1height~" />
|
||||
</screen>
|
||||
</view>
|
||||
|
||||
<view name="Screen 2 Pixel Aspect (~scr2nativexaspect~:~scr2nativeyaspect~)">
|
||||
<screen index="2">
|
||||
<bounds left="0" top="0" right="~scr2width~" bottom="~scr2height~" />
|
||||
</screen>
|
||||
</view>
|
||||
|
||||
<view name="Triple Side-by-Side">
|
||||
<screen index="0">
|
||||
<bounds x="0" y="0" width="4" height="3" />
|
||||
</screen>
|
||||
<screen index="1">
|
||||
<bounds x="4" y="0" width="4" height="3" />
|
||||
</screen>
|
||||
<screen index="2">
|
||||
<bounds x="8" y="0" width="4" height="3" />
|
||||
</screen>
|
||||
</view>
|
||||
|
||||
<view name="Left Half">
|
||||
<bounds x="0" y="0" width="6" height="3" />
|
||||
<screen index="0">
|
||||
<bounds x="0" y="0" width="4" height="3" />
|
||||
</screen>
|
||||
<screen index="1">
|
||||
<bounds x="4" y="0" width="4" height="3" />
|
||||
</screen>
|
||||
</view>
|
||||
|
||||
<view name="Right Half">
|
||||
<bounds x="6" y="0" width="6" height="3" />
|
||||
<screen index="1">
|
||||
<bounds x="4" y="0" width="4" height="3" />
|
||||
</screen>
|
||||
<screen index="2">
|
||||
<bounds x="8" y="0" width="4" height="3" />
|
||||
</screen>
|
||||
</view>
|
||||
</mamelayout>
|
2
src/mame/machine/acitya.h
Normal file
2
src/mame/machine/acitya.h
Normal file
@ -0,0 +1,2 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:David Widel
|
2
src/mame/machine/bonzeadv.h
Normal file
2
src/mame/machine/bonzeadv.h
Normal file
@ -0,0 +1,2 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Ernesto Corvi, Nicola Salmoria
|
3
src/mame/machine/cchip.h
Normal file
3
src/mame/machine/cchip.h
Normal file
@ -0,0 +1,3 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Bryan McPhail, Nicola Salmoria
|
||||
// thanks-to:Richard Bush
|
4
src/mame/machine/hng64_net.h
Normal file
4
src/mame/machine/hng64_net.h
Normal file
@ -0,0 +1,4 @@
|
||||
// license:LGPL-2.1+
|
||||
// copyright-holders:David Haywood, Angelo Salese, ElSemi, Andrew Gardner
|
||||
|
||||
MACHINE_CONFIG_EXTERN(hng64_network);
|
2
src/mame/machine/jumpshot.h
Normal file
2
src/mame/machine/jumpshot.h
Normal file
@ -0,0 +1,2 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Nicola Salmoria
|
4
src/mame/machine/kay_kbd.h
Normal file
4
src/mame/machine/kay_kbd.h
Normal file
@ -0,0 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Robbbert
|
||||
|
||||
INPUT_PORTS_EXTERN( kay_kbd );
|
3
src/mame/machine/macadb.h
Normal file
3
src/mame/machine/macadb.h
Normal file
@ -0,0 +1,3 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:R. Belmont
|
||||
|
@ -755,38 +755,6 @@ static ADDRESS_MAP_START( megadriv_z80_io_map, AS_IO, 8, md_base_state )
|
||||
AM_RANGE(0x0000, 0xff) AM_NOP
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
/************************************ Megadrive Bootlegs *************************************/
|
||||
|
||||
// smaller ROM region because some bootlegs check for RAM there (used by topshoot and hshavoc)
|
||||
static ADDRESS_MAP_START( md_bootleg_map, AS_PROGRAM, 16, md_boot_state )
|
||||
AM_RANGE(0x000000, 0x0fffff) AM_ROM /* Cartridge Program Rom */
|
||||
AM_RANGE(0x200000, 0x2023ff) AM_RAM // tested
|
||||
|
||||
AM_RANGE(0xa00000, 0xa01fff) AM_READWRITE(megadriv_68k_read_z80_ram, megadriv_68k_write_z80_ram)
|
||||
AM_RANGE(0xa02000, 0xa03fff) AM_WRITE(megadriv_68k_write_z80_ram)
|
||||
AM_RANGE(0xa04000, 0xa04003) AM_READWRITE8(megadriv_68k_YM2612_read, megadriv_68k_YM2612_write, 0xffff)
|
||||
AM_RANGE(0xa06000, 0xa06001) AM_WRITE(megadriv_68k_z80_bank_write)
|
||||
|
||||
AM_RANGE(0xa10000, 0xa1001f) AM_READWRITE(megadriv_68k_io_read, megadriv_68k_io_write)
|
||||
AM_RANGE(0xa11100, 0xa11101) AM_READWRITE(megadriv_68k_check_z80_bus, megadriv_68k_req_z80_bus)
|
||||
AM_RANGE(0xa11200, 0xa11201) AM_WRITE(megadriv_68k_req_z80_reset)
|
||||
|
||||
AM_RANGE(0xc00000, 0xc0001f) AM_DEVREADWRITE("gen_vdp", sega315_5313_device, vdp_r, vdp_w)
|
||||
AM_RANGE(0xd00000, 0xd0001f) AM_DEVREADWRITE("gen_vdp", sega315_5313_device, vdp_r, vdp_w)
|
||||
|
||||
AM_RANGE(0xe00000, 0xe0ffff) AM_RAM AM_MIRROR(0x1f0000) AM_SHARE("megadrive_ram")
|
||||
ADDRESS_MAP_END
|
||||
|
||||
MACHINE_CONFIG_START( md_bootleg, md_boot_state )
|
||||
MCFG_FRAGMENT_ADD( md_ntsc )
|
||||
|
||||
MCFG_CPU_MODIFY("maincpu")
|
||||
MCFG_CPU_PROGRAM_MAP(md_bootleg_map)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
|
||||
UINT32 md_base_state::screen_update_megadriv(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
/* Copy our screen buffer here */
|
||||
|
4
src/mame/machine/nl_breakout.h
Normal file
4
src/mame/machine/nl_breakout.h
Normal file
@ -0,0 +1,4 @@
|
||||
// license:GPL-2.0+
|
||||
// copyright-holders:DICE Team,Couriersud
|
||||
|
||||
NETLIST_EXTERNAL(breakout)
|
4
src/mame/machine/nl_pong.h
Normal file
4
src/mame/machine/nl_pong.h
Normal file
@ -0,0 +1,4 @@
|
||||
// license:GPL-2.0+
|
||||
// copyright-holders: Couriersud
|
||||
|
||||
NETLIST_EXTERNAL(pong_fast)
|
4
src/mame/machine/nl_pongd.h
Normal file
4
src/mame/machine/nl_pongd.h
Normal file
@ -0,0 +1,4 @@
|
||||
// license:GPL-2.0+
|
||||
// copyright-holders:DICE Team,couriersud
|
||||
|
||||
NETLIST_EXTERNAL(pongdoubles)
|
2
src/mame/machine/pacplus.h
Normal file
2
src/mame/machine/pacplus.h
Normal file
@ -0,0 +1,2 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Nicola Salmoria
|
@ -31,6 +31,9 @@
|
||||
#include "ui/uimain.h"
|
||||
#include "cpu/z80/z80.h"
|
||||
#include "includes/spectrum.h"
|
||||
#include "includes/spec128.h"
|
||||
#include "includes/timex.h"
|
||||
#include "includes/specpls3.h"
|
||||
#include "sound/ay8910.h"
|
||||
#include "machine/spec_snqk.h"
|
||||
|
||||
|
2
src/mame/machine/theglobp.h
Normal file
2
src/mame/machine/theglobp.h
Normal file
@ -0,0 +1,2 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Nicola Salmoria
|
@ -16704,7 +16704,6 @@ ladybgb2 // bootleg
|
||||
ladybug // 8110 (c) 1981
|
||||
ladybugb // bootleg
|
||||
snapjack // ???? (c)
|
||||
sraider // ???? (c) 1982 Universal
|
||||
|
||||
@source:ladyfrog.cpp
|
||||
ladyfrog // (c) 1990 Mondial Games
|
||||
@ -19417,7 +19416,6 @@ rampage2 // (c) 1986
|
||||
sarge // (c) 1985
|
||||
spyhunt // (c) 1983
|
||||
spyhuntp // (c) 1983
|
||||
spyhuntpr //
|
||||
stargrds // (c) 1987
|
||||
turbotag // (c) 1985
|
||||
|
||||
@ -31168,6 +31166,7 @@ redclashk // (c) Kaneko (bootleg?)
|
||||
zerohour // 8011 (c) Universal
|
||||
zerohoura // 8011 (c) Universal
|
||||
zerohouri //
|
||||
sraider // ???? (c) 1982 Universal
|
||||
|
||||
@source:relief.cpp
|
||||
relief // 136093 (c) 1992
|
||||
@ -33544,6 +33543,9 @@ sprint8a // ?????? 1977/05 [6800]
|
||||
spy // GX857 (c) 1989 (World)
|
||||
spyu // GX857 (c) 1989 (US)
|
||||
|
||||
@source:spyhuntertec.cpp
|
||||
spyhuntpr //
|
||||
|
||||
@source:squale.cpp
|
||||
squale //
|
||||
|
||||
|
@ -1295,3 +1295,6 @@ void hng64_state::video_start()
|
||||
m_vertsrom = (UINT16*)memregion("verts")->base();
|
||||
m_vertsrom_size = memregion("verts")->bytes();
|
||||
}
|
||||
|
||||
#include "video/hng64_3d.inc"
|
||||
#include "video/hng64_sprite.inc"
|
||||
|
@ -1,9 +1,6 @@
|
||||
// license:LGPL-2.1+
|
||||
// copyright-holders:David Haywood, Angelo Salese, ElSemi, Andrew Gardner, Andrew Zaferakis
|
||||
|
||||
#include "includes/hng64.h"
|
||||
|
||||
|
||||
/////////////////////////////////
|
||||
/// Hyper NeoGeo 64 - 3D bits ///
|
||||
/////////////////////////////////
|
@ -3,8 +3,6 @@
|
||||
|
||||
/* Hyper NeoGeo 64 Sprite bits */
|
||||
|
||||
#include "includes/hng64.h"
|
||||
|
||||
/*
|
||||
* Sprite Format
|
||||
* ------------------
|
@ -31,7 +31,7 @@
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
static void palette_init_common( palette_device &palette, const UINT8 *color_prom,
|
||||
void ladybug_state::palette_init_common( palette_device &palette, const UINT8 *color_prom,
|
||||
int r_bit0, int r_bit1, int g_bit0, int g_bit1, int b_bit0, int b_bit1 )
|
||||
{
|
||||
static const int resistances[2] = { 470, 220 };
|
||||
@ -98,44 +98,6 @@ PALETTE_INIT_MEMBER(ladybug_state,ladybug)
|
||||
palette_init_common(palette, color_prom, 0, 5, 2, 6, 4, 7);
|
||||
}
|
||||
|
||||
PALETTE_INIT_MEMBER(ladybug_state,sraider)
|
||||
{
|
||||
const UINT8 *color_prom = memregion("proms")->base();
|
||||
int i;
|
||||
|
||||
/* the resistor net may be probably different than Lady Bug */
|
||||
palette_init_common(palette, color_prom, 3, 0, 5, 4, 7, 6);
|
||||
|
||||
/* star colors */
|
||||
for (i = 0x20; i < 0x40; i++)
|
||||
{
|
||||
int bit0, bit1;
|
||||
int r, g, b;
|
||||
|
||||
/* red component */
|
||||
bit0 = ((i - 0x20) >> 3) & 0x01;
|
||||
bit1 = ((i - 0x20) >> 4) & 0x01;
|
||||
b = 0x47 * bit0 + 0x97 * bit1;
|
||||
|
||||
/* green component */
|
||||
bit0 = ((i - 0x20) >> 1) & 0x01;
|
||||
bit1 = ((i - 0x20) >> 2) & 0x01;
|
||||
g = 0x47 * bit0 + 0x97 * bit1;
|
||||
|
||||
/* blue component */
|
||||
bit0 = ((i - 0x20) >> 0) & 0x01;
|
||||
r = 0x47 * bit0;
|
||||
|
||||
palette.set_indirect_color(i, rgb_t(r, g, b));
|
||||
}
|
||||
|
||||
for (i = 0x60; i < 0x80; i++)
|
||||
palette.set_pen_indirect(i, (i - 0x60) + 0x20);
|
||||
|
||||
/* stationary part of grid */
|
||||
palette.set_pen_indirect(0x81, 0x40);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(ladybug_state::ladybug_videoram_w)
|
||||
{
|
||||
m_videoram[offset] = data;
|
||||
@ -157,34 +119,6 @@ WRITE8_MEMBER(ladybug_state::ladybug_flipscreen_w)
|
||||
}
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(ladybug_state::sraider_io_w)
|
||||
{
|
||||
// bit7 = flip
|
||||
// bit6 = grid red
|
||||
// bit5 = grid green
|
||||
// bit4 = grid blue
|
||||
// bit3 = enable stars
|
||||
// bit210 = stars speed/dir
|
||||
|
||||
if (flip_screen() != (data & 0x80))
|
||||
{
|
||||
flip_screen_set(data & 0x80);
|
||||
machine().tilemap().mark_all_dirty();
|
||||
}
|
||||
|
||||
m_grid_color = data & 0x70;
|
||||
|
||||
redclash_set_stars_enable((data & 0x08) >> 3);
|
||||
|
||||
/*
|
||||
* There must be a subtle clocking difference between
|
||||
* Space Raider and the other games using this star generator,
|
||||
* hence the -1 here
|
||||
*/
|
||||
|
||||
redclash_set_stars_speed((data & 0x07) - 1);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(ladybug_state::get_bg_tile_info)
|
||||
{
|
||||
int code = m_videoram[tile_index] + 32 * (m_colorram[tile_index] & 0x08);
|
||||
@ -212,17 +146,6 @@ VIDEO_START_MEMBER(ladybug_state,ladybug)
|
||||
m_bg_tilemap->set_transparent_pen(0);
|
||||
}
|
||||
|
||||
VIDEO_START_MEMBER(ladybug_state,sraider)
|
||||
{
|
||||
m_grid_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(ladybug_state::get_grid_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_grid_tilemap->set_scroll_rows(32);
|
||||
m_grid_tilemap->set_transparent_pen(0);
|
||||
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(ladybug_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap->set_scroll_rows(32);
|
||||
m_bg_tilemap->set_transparent_pen(0);
|
||||
}
|
||||
|
||||
void ladybug_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
|
||||
{
|
||||
UINT8 *spriteram = m_spriteram;
|
||||
@ -296,66 +219,3 @@ UINT32 ladybug_state::screen_update_ladybug(screen_device &screen, bitmap_ind16
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ladybug_state::screen_eof_sraider(screen_device &screen, bool state)/* update starfield position */
|
||||
{
|
||||
// falling edge
|
||||
if (!state)
|
||||
redclash_update_stars_state();
|
||||
}
|
||||
|
||||
UINT32 ladybug_state::screen_update_sraider(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
// this part is boilerplate from ladybug, not sure if hardware does this,
|
||||
// since it's not used
|
||||
|
||||
int offs;
|
||||
int i;
|
||||
|
||||
for (offs = 0; offs < 32; offs++)
|
||||
{
|
||||
int sx = offs % 4;
|
||||
int sy = offs / 4;
|
||||
|
||||
if (flip_screen())
|
||||
m_bg_tilemap->set_scrollx(offs, -m_videoram[32 * sx + sy]);
|
||||
else
|
||||
m_bg_tilemap->set_scrollx(offs, m_videoram[32 * sx + sy]);
|
||||
}
|
||||
|
||||
// clear the bg bitmap
|
||||
bitmap.fill(0, cliprect);
|
||||
|
||||
// draw the stars
|
||||
if (flip_screen())
|
||||
redclash_draw_stars(bitmap, cliprect, 0x60, 1, 0x27, 0xff);
|
||||
else
|
||||
redclash_draw_stars(bitmap, cliprect, 0x60, 1, 0x00, 0xd8);
|
||||
|
||||
// draw the gridlines
|
||||
m_palette->set_indirect_color(0x40, rgb_t(m_grid_color & 0x40 ? 0xff : 0,
|
||||
m_grid_color & 0x20 ? 0xff : 0,
|
||||
m_grid_color & 0x10 ? 0xff : 0));
|
||||
m_grid_tilemap->draw(screen, bitmap, cliprect, 0, flip_screen());
|
||||
|
||||
for (i = 0; i < 0x100; i++)
|
||||
{
|
||||
if (m_grid_data[i] != 0)
|
||||
{
|
||||
UINT8 x = i;
|
||||
int height = cliprect.max_y - cliprect.min_y + 1;
|
||||
|
||||
if (flip_screen())
|
||||
x = ~x;
|
||||
|
||||
bitmap.plot_box(x, cliprect.min_y, 1, height, 0x81);
|
||||
}
|
||||
}
|
||||
|
||||
// now the chars
|
||||
m_bg_tilemap->draw(screen, bitmap, cliprect, 0, flip_screen());
|
||||
|
||||
// now the sprites
|
||||
draw_sprites(bitmap, cliprect);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include "emu.h"
|
||||
#include "cpu/tms32031/tms32031.h"
|
||||
#include "includes/midzeus.h"
|
||||
#include "includes/midzeus2.h"
|
||||
#include "video/poly.h"
|
||||
#include "video/rgbutil.h"
|
||||
|
||||
|
@ -9,7 +9,8 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
#include "includes/ladybug.h"
|
||||
#include "includes/redclash.h"
|
||||
#include "video/resnet.h"
|
||||
|
||||
/***************************************************************************
|
||||
|
||||
@ -20,7 +21,7 @@
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
PALETTE_INIT_MEMBER(ladybug_state,redclash)
|
||||
PALETTE_INIT_MEMBER(redclash_state,redclash)
|
||||
{
|
||||
const UINT8 *color_prom = memregion("proms")->base();
|
||||
int i;
|
||||
@ -99,13 +100,52 @@ PALETTE_INIT_MEMBER(ladybug_state,redclash)
|
||||
palette.set_pen_indirect(i, (i - 0x60) + 0x20);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER( ladybug_state::redclash_videoram_w )
|
||||
PALETTE_INIT_MEMBER(redclash_state,sraider)
|
||||
{
|
||||
const UINT8 *color_prom = memregion("proms")->base();
|
||||
int i;
|
||||
|
||||
/* the resistor net may be probably different than Lady Bug */
|
||||
palette_init_common(palette, color_prom, 3, 0, 5, 4, 7, 6);
|
||||
|
||||
/* star colors */
|
||||
for (i = 0x20; i < 0x40; i++)
|
||||
{
|
||||
int bit0, bit1;
|
||||
int r, g, b;
|
||||
|
||||
/* red component */
|
||||
bit0 = ((i - 0x20) >> 3) & 0x01;
|
||||
bit1 = ((i - 0x20) >> 4) & 0x01;
|
||||
b = 0x47 * bit0 + 0x97 * bit1;
|
||||
|
||||
/* green component */
|
||||
bit0 = ((i - 0x20) >> 1) & 0x01;
|
||||
bit1 = ((i - 0x20) >> 2) & 0x01;
|
||||
g = 0x47 * bit0 + 0x97 * bit1;
|
||||
|
||||
/* blue component */
|
||||
bit0 = ((i - 0x20) >> 0) & 0x01;
|
||||
r = 0x47 * bit0;
|
||||
|
||||
palette.set_indirect_color(i, rgb_t(r, g, b));
|
||||
}
|
||||
|
||||
for (i = 0x60; i < 0x80; i++)
|
||||
palette.set_pen_indirect(i, (i - 0x60) + 0x20);
|
||||
|
||||
/* stationary part of grid */
|
||||
palette.set_pen_indirect(0x81, 0x40);
|
||||
}
|
||||
|
||||
|
||||
WRITE8_MEMBER( redclash_state::redclash_videoram_w )
|
||||
{
|
||||
m_videoram[offset] = data;
|
||||
m_fg_tilemap->mark_tile_dirty(offset);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER( ladybug_state::redclash_gfxbank_w )
|
||||
WRITE8_MEMBER( redclash_state::redclash_gfxbank_w )
|
||||
{
|
||||
if (m_gfxbank != (data & 0x01))
|
||||
{
|
||||
@ -114,7 +154,7 @@ WRITE8_MEMBER( ladybug_state::redclash_gfxbank_w )
|
||||
}
|
||||
}
|
||||
|
||||
WRITE8_MEMBER( ladybug_state::redclash_flipscreen_w )
|
||||
WRITE8_MEMBER( redclash_state::redclash_flipscreen_w )
|
||||
{
|
||||
flip_screen_set(data & 0x01);
|
||||
}
|
||||
@ -130,30 +170,30 @@ star_speed:
|
||||
6 = backwards medium
|
||||
7 = backwards fast
|
||||
*/
|
||||
WRITE8_MEMBER( ladybug_state::redclash_star0_w )
|
||||
WRITE8_MEMBER( redclash_state::redclash_star0_w )
|
||||
{
|
||||
m_star_speed = (m_star_speed & ~1) | ((data & 1) << 0);
|
||||
redclash_set_stars_speed(m_star_speed);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER( ladybug_state::redclash_star1_w )
|
||||
WRITE8_MEMBER( redclash_state::redclash_star1_w )
|
||||
{
|
||||
m_star_speed = (m_star_speed & ~2) | ((data & 1) << 1);
|
||||
redclash_set_stars_speed(m_star_speed);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER( ladybug_state::redclash_star2_w )
|
||||
WRITE8_MEMBER( redclash_state::redclash_star2_w )
|
||||
{
|
||||
m_star_speed = (m_star_speed & ~4) | ((data & 1) << 2);
|
||||
redclash_set_stars_speed( m_star_speed);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER( ladybug_state::redclash_star_reset_w )
|
||||
WRITE8_MEMBER( redclash_state::redclash_star_reset_w )
|
||||
{
|
||||
redclash_set_stars_enable(1);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(ladybug_state::get_fg_tile_info)
|
||||
TILE_GET_INFO_MEMBER(redclash_state::get_fg_tile_info)
|
||||
{
|
||||
int code = m_videoram[tile_index];
|
||||
int color = (m_videoram[tile_index] & 0x70) >> 4; // ??
|
||||
@ -161,13 +201,13 @@ TILE_GET_INFO_MEMBER(ladybug_state::get_fg_tile_info)
|
||||
SET_TILE_INFO_MEMBER(0, code, color, 0);
|
||||
}
|
||||
|
||||
VIDEO_START_MEMBER(ladybug_state,redclash)
|
||||
VIDEO_START_MEMBER(redclash_state,redclash)
|
||||
{
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(ladybug_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(redclash_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_fg_tilemap->set_transparent_pen(0);
|
||||
}
|
||||
|
||||
void ladybug_state::redclash_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
|
||||
void redclash_state::redclash_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
|
||||
{
|
||||
UINT8 *spriteram = m_spriteram;
|
||||
int i, offs;
|
||||
@ -250,7 +290,7 @@ void ladybug_state::redclash_draw_sprites( bitmap_ind16 &bitmap, const rectangle
|
||||
}
|
||||
}
|
||||
|
||||
void ladybug_state::redclash_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect )
|
||||
void redclash_state::redclash_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect )
|
||||
{
|
||||
int offs;
|
||||
|
||||
@ -284,7 +324,7 @@ void ladybug_state::redclash_draw_bullets( bitmap_ind16 &bitmap, const rectangle
|
||||
*/
|
||||
|
||||
/* This line can reset the LFSR to zero and disables the star generator */
|
||||
void ladybug_state::redclash_set_stars_enable(UINT8 on)
|
||||
void redclash_state::redclash_set_stars_enable(UINT8 on)
|
||||
{
|
||||
if ((m_stars_enable == 0) && (on == 1))
|
||||
{
|
||||
@ -297,7 +337,7 @@ void ladybug_state::redclash_set_stars_enable(UINT8 on)
|
||||
/* This sets up which starfield to draw and the offset, */
|
||||
/* To be called from screen_eof_*() */
|
||||
|
||||
void ladybug_state::redclash_update_stars_state()
|
||||
void redclash_state::redclash_update_stars_state()
|
||||
{
|
||||
if (m_stars_enable == 0)
|
||||
return;
|
||||
@ -328,7 +368,7 @@ void ladybug_state::redclash_update_stars_state()
|
||||
* 7 right/up fast (+5/2 pix per frame)
|
||||
*/
|
||||
|
||||
void ladybug_state::redclash_set_stars_speed(UINT8 speed )
|
||||
void redclash_state::redclash_set_stars_speed(UINT8 speed )
|
||||
{
|
||||
m_stars_speed = speed;
|
||||
}
|
||||
@ -338,7 +378,7 @@ void ladybug_state::redclash_set_stars_speed(UINT8 speed )
|
||||
/* Space Raider doesn't use the Va bit, and it is also set up to */
|
||||
/* window the stars to a certain x range */
|
||||
|
||||
void ladybug_state::redclash_draw_stars(bitmap_ind16 &bitmap, const rectangle &cliprect, UINT8 palette_offset, UINT8 sraider, UINT8 firstx, UINT8 lastx )
|
||||
void redclash_state::redclash_draw_stars(bitmap_ind16 &bitmap, const rectangle &cliprect, UINT8 palette_offset, UINT8 sraider, UINT8 firstx, UINT8 lastx )
|
||||
{
|
||||
int i;
|
||||
UINT8 tempbit, feedback, star_color, xloc, yloc;
|
||||
@ -395,14 +435,14 @@ void ladybug_state::redclash_draw_stars(bitmap_ind16 &bitmap, const rectangle &c
|
||||
}
|
||||
}
|
||||
|
||||
void ladybug_state::screen_eof_redclash(screen_device &screen, bool state)
|
||||
void redclash_state::screen_eof_redclash(screen_device &screen, bool state)
|
||||
{
|
||||
// falling edge
|
||||
if (!state)
|
||||
redclash_update_stars_state();
|
||||
}
|
||||
|
||||
UINT32 ladybug_state::screen_update_redclash(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
UINT32 redclash_state::screen_update_redclash(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
bitmap.fill(m_palette->black_pen(), cliprect);
|
||||
redclash_draw_stars(bitmap, cliprect, 0x60, 0, 0x00, 0xff);
|
||||
@ -411,3 +451,106 @@ UINT32 ladybug_state::screen_update_redclash(screen_device &screen, bitmap_ind16
|
||||
m_fg_tilemap->draw(screen, bitmap, cliprect, 0, 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(redclash_state::sraider_io_w)
|
||||
{
|
||||
// bit7 = flip
|
||||
// bit6 = grid red
|
||||
// bit5 = grid green
|
||||
// bit4 = grid blue
|
||||
// bit3 = enable stars
|
||||
// bit210 = stars speed/dir
|
||||
|
||||
if (flip_screen() != (data & 0x80))
|
||||
{
|
||||
flip_screen_set(data & 0x80);
|
||||
machine().tilemap().mark_all_dirty();
|
||||
}
|
||||
|
||||
m_grid_color = data & 0x70;
|
||||
|
||||
redclash_set_stars_enable((data & 0x08) >> 3);
|
||||
|
||||
/*
|
||||
* There must be a subtle clocking difference between
|
||||
* Space Raider and the other games using this star generator,
|
||||
* hence the -1 here
|
||||
*/
|
||||
|
||||
redclash_set_stars_speed((data & 0x07) - 1);
|
||||
}
|
||||
|
||||
VIDEO_START_MEMBER(redclash_state,sraider)
|
||||
{
|
||||
m_grid_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(redclash_state::get_grid_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_grid_tilemap->set_scroll_rows(32);
|
||||
m_grid_tilemap->set_transparent_pen(0);
|
||||
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(redclash_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap->set_scroll_rows(32);
|
||||
m_bg_tilemap->set_transparent_pen(0);
|
||||
}
|
||||
|
||||
void redclash_state::screen_eof_sraider(screen_device &screen, bool state)/* update starfield position */
|
||||
{
|
||||
// falling edge
|
||||
if (!state)
|
||||
redclash_update_stars_state();
|
||||
}
|
||||
|
||||
UINT32 redclash_state::screen_update_sraider(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
// this part is boilerplate from ladybug, not sure if hardware does this,
|
||||
// since it's not used
|
||||
|
||||
int offs;
|
||||
int i;
|
||||
|
||||
for (offs = 0; offs < 32; offs++)
|
||||
{
|
||||
int sx = offs % 4;
|
||||
int sy = offs / 4;
|
||||
|
||||
if (flip_screen())
|
||||
m_bg_tilemap->set_scrollx(offs, -m_videoram[32 * sx + sy]);
|
||||
else
|
||||
m_bg_tilemap->set_scrollx(offs, m_videoram[32 * sx + sy]);
|
||||
}
|
||||
|
||||
// clear the bg bitmap
|
||||
bitmap.fill(0, cliprect);
|
||||
|
||||
// draw the stars
|
||||
if (flip_screen())
|
||||
redclash_draw_stars(bitmap, cliprect, 0x60, 1, 0x27, 0xff);
|
||||
else
|
||||
redclash_draw_stars(bitmap, cliprect, 0x60, 1, 0x00, 0xd8);
|
||||
|
||||
// draw the gridlines
|
||||
m_palette->set_indirect_color(0x40, rgb_t(m_grid_color & 0x40 ? 0xff : 0,
|
||||
m_grid_color & 0x20 ? 0xff : 0,
|
||||
m_grid_color & 0x10 ? 0xff : 0));
|
||||
m_grid_tilemap->draw(screen, bitmap, cliprect, 0, flip_screen());
|
||||
|
||||
for (i = 0; i < 0x100; i++)
|
||||
{
|
||||
if (m_grid_data[i] != 0)
|
||||
{
|
||||
UINT8 x = i;
|
||||
int height = cliprect.max_y - cliprect.min_y + 1;
|
||||
|
||||
if (flip_screen())
|
||||
x = ~x;
|
||||
|
||||
bitmap.plot_box(x, cliprect.min_y, 1, height, 0x81);
|
||||
}
|
||||
}
|
||||
|
||||
// now the chars
|
||||
m_bg_tilemap->draw(screen, bitmap, cliprect, 0, flip_screen());
|
||||
|
||||
// now the sprites
|
||||
draw_sprites(bitmap, cliprect);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
#include "emu.h"
|
||||
#include "includes/spectrum.h"
|
||||
#include "includes/timex.h"
|
||||
#include "machine/ram.h"
|
||||
|
||||
inline void spectrum_state::spectrum_plot_pixel(bitmap_ind16 &bitmap, int x, int y, UINT32 color)
|
||||
|
Loading…
Reference in New Issue
Block a user