Skip to content

heathzenith/h8.cpp: Implement H8 Bus #13560

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions scripts/src/bus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5816,6 +5816,38 @@ if (BUSES["H89BUS"]~=null) then
}
end

---------------------------------------------------
--
--@src/devices/bus/heathzenith/h8/h8bus.h,BUSES["H8BUS"] = true
---------------------------------------------------

if (BUSES["H8BUS"]~=null) then
files {
MAME_DIR .. "src/devices/bus/heathzenith/h8/cards.cpp",
MAME_DIR .. "src/devices/bus/heathzenith/h8/cards.h",
MAME_DIR .. "src/devices/bus/heathzenith/h8/cpu8080.cpp",
MAME_DIR .. "src/devices/bus/heathzenith/h8/cpu8080.h",
MAME_DIR .. "src/devices/bus/heathzenith/h8/front_panel.cpp",
MAME_DIR .. "src/devices/bus/heathzenith/h8/front_panel.h",
MAME_DIR .. "src/devices/bus/heathzenith/h8/h8bus.cpp",
MAME_DIR .. "src/devices/bus/heathzenith/h8/h8bus.h",
MAME_DIR .. "src/devices/bus/heathzenith/h8/h_8_1.cpp",
MAME_DIR .. "src/devices/bus/heathzenith/h8/h_8_1.h",
MAME_DIR .. "src/devices/bus/heathzenith/h8/h_8_5.cpp",
MAME_DIR .. "src/devices/bus/heathzenith/h8/h_8_5.h",
MAME_DIR .. "src/devices/bus/heathzenith/h8/wh_8_64.cpp",
MAME_DIR .. "src/devices/bus/heathzenith/h8/wh_8_64.h",
}

dependency {
{ MAME_DIR .. "src/devices/bus/heathzenith/h8/front_panel.cpp", GEN_DIR .. "emu/layout/h8_fp.lh" },
}

custombuildtask {
layoutbuildtask("emu/layout", "h8_fp"),
}
end

---------------------------------------------------
--
--@src/devices/bus/heathzenith/intr_cntrl/intr_cntrl.h,BUSES["HEATH_INTR_SOCKET"] = true
Expand Down
43 changes: 43 additions & 0 deletions src/devices/bus/heathzenith/h8/cards.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// license:BSD-3-Clause
// copyright-holders:Mark Garlanger
/***************************************************************************

Cards for the H8 Benton Harbor Bus

***************************************************************************/

#include "emu.h"
#include "cards.h"

#include "cpu8080.h"
#include "front_panel.h"
#include "h8bus.h"
#include "h_8_1.h"
#include "h_8_5.h"
#include "wh_8_64.h"

// P1 is reserved for the Front Panel
void h8_p1_cards(device_slot_interface &device)
{
device.option_add("fp", H8BUS_FRONT_PANEL);
}

// P2 is reserved for the CPU board.
void h8_p2_cards(device_slot_interface &device)
{
device.option_add("cpu8080", H8BUS_CPU_8080);
}

// P10 is reserved for the HA-8-8 Extended Configuration Option card, which is
// required to run CP/M with the 8080 CPU board.
// TODO - add the HA-8-8
void h8_p10_cards(device_slot_interface &device)
{
}

void h8_cards(device_slot_interface &device)
{
device.option_add("h_8_1", H8BUS_H_8_1);
device.option_add("h_8_5", H8BUS_H_8_5);
device.option_add("wh_8_64", H8BUS_WH_8_64);
}
19 changes: 19 additions & 0 deletions src/devices/bus/heathzenith/h8/cards.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// license:BSD-3-Clause
// copyright-holders:Mark Garlanger
/***************************************************************************

Cards for the Heath H8 Benton Harbor Bus

***************************************************************************/

#ifndef MAME_BUS_HEATHZENITH_H8_CARDS_H
#define MAME_BUS_HEATHZENITH_H8_CARDS_H

#pragma once

void h8_p1_cards(device_slot_interface &device) ATTR_COLD;
void h8_p2_cards(device_slot_interface &device) ATTR_COLD;
void h8_p10_cards(device_slot_interface &device) ATTR_COLD;
void h8_cards(device_slot_interface &device) ATTR_COLD;

#endif // MAME_BUS_HEATHZENITH_H8_CARDS_H
Loading
Loading