This commit is contained in:
Brad Hughes 2016-03-05 15:03:02 -05:00
commit 892233c4d4
6 changed files with 681 additions and 489 deletions

View File

@ -9,7 +9,7 @@ msgstr ""
"Project-Id-Version: MAME\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-03-05 22:55+1100\n"
"PO-Revision-Date: 2016-02-29 10:10+0800\n"
"PO-Revision-Date: 2016-03-06 01:10+0800\n"
"Last-Translator: YuiFAN\n"
"Language-Team: MAME Language Team\n"
"Language: zh\n"
@ -556,7 +556,7 @@ msgstr "文件夹设定"
#: src/emu/ui/dirmenu.cpp:183
#, c-format
msgid "Current %1$s Folders"
msgstr ""
msgstr "当下 %1$s 文件夹"
#: src/emu/ui/dirmenu.cpp:195
msgid "Change Folder"
@ -573,12 +573,12 @@ msgstr "移除文件夹"
#: src/emu/ui/dirmenu.cpp:499
#, c-format
msgid "Change %1$s Folder - Search: %2$s_"
msgstr ""
msgstr "变更 %1$s 文件夹 - 搜寻: %2$s_"
#: src/emu/ui/dirmenu.cpp:500
#, c-format
msgid "Add %1$s Folder - Search: %2$s_"
msgstr ""
msgstr "新增 %1$s 文件夹 - 搜寻: %2$s_"
#: src/emu/ui/dirmenu.cpp:537
msgid "Press TAB to set"
@ -587,7 +587,7 @@ msgstr "按下 TAB 键设定"
#: src/emu/ui/dirmenu.cpp:643
#, c-format
msgid "Remove %1$s Folder"
msgstr ""
msgstr "移除 %1$s 文件夹"
#: src/emu/ui/dsplmenu.cpp:38
msgid "Video Mode"
@ -895,7 +895,7 @@ msgstr "自动"
#: src/emu/ui/menu.cpp:2073
msgid "Images"
msgstr "映像档"
msgstr "图像"
#: src/emu/ui/menu.cpp:2074
msgid "Infos"
@ -2070,26 +2070,5 @@ msgstr " 色彩"
msgid " PENS"
msgstr " PENS"
#~ msgid "Current "
#~ msgstr "现有 "
#~ msgid " Folders"
#~ msgstr " 文件夹"
#~ msgid "Change)"
#~ msgstr " 变更)"
#~ msgid "Add"
#~ msgstr "新增"
#~ msgid " Folder - Search: "
#~ msgstr " 文件夹 - 搜寻: "
#~ msgid "Remove "
#~ msgstr "移除 "
#~ msgid " Folder"
#~ msgstr " 文件夹"
#~ msgid "Search: "
#~ msgstr "搜寻: "

View File

@ -9,7 +9,7 @@ msgstr ""
"Project-Id-Version: MAME\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-03-05 22:55+1100\n"
"PO-Revision-Date: 2016-02-29 09:45+0800\n"
"PO-Revision-Date: 2016-03-06 01:00+0800\n"
"Last-Translator: YuiFAN\n"
"Language-Team: MAME Language Team\n"
"Language: zh_TW\n"
@ -556,7 +556,7 @@ msgstr "資料夾設定"
#: src/emu/ui/dirmenu.cpp:183
#, c-format
msgid "Current %1$s Folders"
msgstr ""
msgstr "目前 %1$s 資料夾"
#: src/emu/ui/dirmenu.cpp:195
msgid "Change Folder"
@ -573,12 +573,12 @@ msgstr "移除資料夾"
#: src/emu/ui/dirmenu.cpp:499
#, c-format
msgid "Change %1$s Folder - Search: %2$s_"
msgstr ""
msgstr "變更 %1$s 資料夾 - 搜尋: %2$s_"
#: src/emu/ui/dirmenu.cpp:500
#, c-format
msgid "Add %1$s Folder - Search: %2$s_"
msgstr ""
msgstr "新增 %1$s 資料夾 - 搜尋: %2$s_"
#: src/emu/ui/dirmenu.cpp:537
msgid "Press TAB to set"
@ -587,7 +587,7 @@ msgstr "按下 TAB 鍵設定"
#: src/emu/ui/dirmenu.cpp:643
#, c-format
msgid "Remove %1$s Folder"
msgstr ""
msgstr "移除 %1$s 資料夾"
#: src/emu/ui/dsplmenu.cpp:38
msgid "Video Mode"
@ -895,7 +895,7 @@ msgstr "自動"
#: src/emu/ui/menu.cpp:2073
msgid "Images"
msgstr "映像檔"
msgstr "圖片"
#: src/emu/ui/menu.cpp:2074
msgid "Infos"
@ -1486,8 +1486,8 @@ msgid ""
msgstr ""
"找不到機台,請檢查 %1$s.ini 的 ROM 目錄設定\n"
"\n"
"如果這是首次使用 %2$s請參閱 docs 目錄中的 config.txt 以取得設定 %2$s 的相"
"資訊。"
"如果這是首次使用 %2$s請參閱 docs 目錄中的 config.txt 以取得設定 %2$s 的相"
"資訊。"
#: src/emu/ui/simpleselgame.cpp:287
#, c-format
@ -2069,24 +2069,3 @@ msgstr " 色彩"
#: src/emu/ui/viewgfx.cpp:391
msgid " PENS"
msgstr " PENS"
#~ msgid "Current "
#~ msgstr "現有 "
#~ msgid " Folders"
#~ msgstr " 資料夾"
#~ msgid "Change)"
#~ msgstr "變更)"
#~ msgid "Add"
#~ msgstr "新增"
#~ msgid " Folder - Search: "
#~ msgstr " 資料夾 - 搜尋: "
#~ msgid "Remove "
#~ msgstr "移除 "
#~ msgid " Folder"
#~ msgstr " 資料夾"

View File

@ -166,15 +166,15 @@ msgstr "Sélectionner les filtres personnalisés :"
#: src/emu/ui/custmenu.cpp:459
msgid "^!Publisher"
msgstr ""
msgstr "^!Editeur"
#: src/emu/ui/custmenu.cpp:477
msgid "^!Software List"
msgstr ""
msgstr "^!Liste de Logiciel"
#: src/emu/ui/custmenu.cpp:486
msgid "^!Device type"
msgstr ""
msgstr "^!Type de Périphérique"
#: src/emu/ui/custmenu.cpp:495
msgid "^!Region"
@ -218,7 +218,7 @@ msgstr "Configurer l'Interface Personnalisé"
#: src/emu/ui/custui.cpp:268
msgid "default"
msgstr ""
msgstr "défaut"
#: src/emu/ui/custui.cpp:371
msgid "UI Font"
@ -576,25 +576,25 @@ msgstr "Enlever le Dossier"
#: src/emu/ui/dirmenu.cpp:499
#, c-format
msgid "Change %1$s Folder - Search: %2$s_"
msgstr ""
msgstr "Changer %1$s Dossier - Recherche : %2$s_"
#: src/emu/ui/dirmenu.cpp:500
#, c-format
msgid "Add %1$s Folder - Search: %2$s_"
msgstr ""
msgstr "Ajouter %1$s Dossier - Recherche : %2$s_"
#: src/emu/ui/dirmenu.cpp:537
msgid "Press TAB to set"
msgstr "Presser TAB pour choisir"
msgstr "Presser TAB pour Choisir"
#: src/emu/ui/dirmenu.cpp:643
#, c-format
msgid "Remove %1$s Folder"
msgstr ""
msgstr "Supprimer le Dossier %1$s"
#: src/emu/ui/dsplmenu.cpp:38
msgid "Video Mode"
msgstr ""
msgstr "Mode Vidéo"
#: src/emu/ui/dsplmenu.cpp:40
msgid "Hardware Stretch"
@ -622,7 +622,7 @@ msgstr "PréScaling du Bitmap"
#: src/emu/ui/dsplmenu.cpp:47
msgid "Multi-Threaded Rendering"
msgstr "Renu Multi Tâches"
msgstr "Rendu Multi Tâches"
#: src/emu/ui/dsplmenu.cpp:48
msgid "Window Mode"
@ -675,7 +675,7 @@ msgstr "Nouveau Nom de l'Image :"
#: src/emu/ui/filesel.cpp:277
msgid "Image Format:"
msgstr ""
msgstr "Format de l'Image :"
#: src/emu/ui/filesel.cpp:283
msgid "Create"
@ -695,15 +695,15 @@ msgstr "[créer]"
#: src/emu/ui/filesel.cpp:510 src/emu/ui/swlist.cpp:76
msgid "[software list]"
msgstr ""
msgstr "[Liste de Logiciel]"
#: src/emu/ui/filesel.cpp:802
msgid "Select image format"
msgstr ""
msgstr "Sélection du Format de l'Image"
#: src/emu/ui/filesel.cpp:862
msgid "Select access mode"
msgstr ""
msgstr "Sélection du Mode d4accès"
#: src/emu/ui/filesel.cpp:863
msgid "Read-only"
@ -759,7 +759,7 @@ msgstr "Interface Utilisateur"
#: src/emu/ui/inputmap.cpp:59
msgid "Other Controls"
msgstr ""
msgstr "Autres Contrôles"
#: src/emu/ui/inputmap.cpp:625 src/emu/ui/miscmenu.cpp:90
#: src/emu/ui/slotopt.cpp:172
@ -872,7 +872,7 @@ msgstr ""
#: src/emu/ui/menu.cpp:63
msgid "Add or remove favorites"
msgstr ""
msgstr "Ajouter ou Suppromer des Favoris"
#: src/emu/ui/menu.cpp:64
msgid "Export displayed list to file"
@ -884,7 +884,7 @@ msgstr "Afficher la visualisation des DATs"
#: src/emu/ui/menu.cpp:252
msgid "Return to Machine"
msgstr ""
msgstr "Revenir à la Machine"
#: src/emu/ui/menu.cpp:256 src/emu/ui/menu.cpp:258
msgid "Exit"
@ -1051,7 +1051,7 @@ msgstr " ^!Catégorie"
#: src/emu/ui/optsmenu.cpp:254
msgid "^!Setup custom filter"
msgstr ""
msgstr "^!Paramètrer le Filtre Personnalisé"
#: src/emu/ui/optsmenu.cpp:262
msgid "Customize UI"
@ -1085,12 +1085,12 @@ msgstr "**Erreur de sauvegarde du fichier ui.ini**"
#: src/emu/ui/optsmenu.cpp:347
#, c-format
msgid "**Error to load %s.ini**"
msgstr ""
msgstr "**Erreur de Chargement %s.ini**"
#: src/emu/ui/optsmenu.cpp:372
#, c-format
msgid "**Error to save %s.ini**"
msgstr ""
msgstr "**Erreur de Sauvegarde %s.ini**"
#: src/emu/ui/optsmenu.cpp:376
msgid ""
@ -1109,7 +1109,7 @@ msgstr " à sélectionner"
#: src/emu/ui/selgame.cpp:38
msgid "General Info"
msgstr ""
msgstr "Info Général"
#: src/emu/ui/selgame.cpp:388 src/emu/ui/selsoft.cpp:280
#, c-format
@ -1127,6 +1127,8 @@ msgid ""
"%s\n"
" removed from favorites list."
msgstr ""
"%s\n"
" supprimé depuis la Liste des Favoris."
#: src/emu/ui/selgame.cpp:464
msgid ""
@ -1145,7 +1147,7 @@ msgstr "Configurer les Options"
#: src/emu/ui/selgame.cpp:602
msgid "Configure Machine"
msgstr ""
msgstr "Configurer la Machine"
#: src/emu/ui/selgame.cpp:758
#, c-format
@ -1165,7 +1167,7 @@ msgstr "%1$s (%2$s) - "
#: src/emu/ui/selgame.cpp:790
#, c-format
msgid "%1$s Search: %2$s_"
msgstr ""
msgstr "%1$s Recherche : %2$s_"
#: src/emu/ui/selgame.cpp:838
#, c-format
@ -1221,7 +1223,7 @@ msgstr "Son : Imparfait"
#: src/emu/ui/selgame.cpp:870 src/emu/ui/selsoft.cpp:773
msgid "Sound: OK"
msgstr ""
msgstr "Son : OK"
#: src/emu/ui/selgame.cpp:887
#, c-format
@ -1231,11 +1233,11 @@ msgstr "Système : %1$-.100s"
#: src/emu/ui/selgame.cpp:894 src/emu/ui/selsoft.cpp:798
#, c-format
msgid "Software is clone of: %1$-.100s"
msgstr ""
msgstr "Le Logiciel est un Clone de : %1$-.100s"
#: src/emu/ui/selgame.cpp:896 src/emu/ui/selsoft.cpp:800
msgid "Software is parent"
msgstr ""
msgstr "Le Logiciel est Parent"
#: src/emu/ui/selgame.cpp:901 src/emu/ui/selsoft.cpp:805
msgid "Supported: No"
@ -1267,7 +1269,7 @@ msgstr "Set de ROM : %1$-.100s\n"
#: src/emu/ui/selgame.cpp:1520
#, c-format
msgid "Year: %1$s\n"
msgstr ""
msgstr "Année: %1$s\n"
#: src/emu/ui/selgame.cpp:1521
#, c-format
@ -1317,12 +1319,12 @@ msgstr "Son : Imparfait\n"
#: src/emu/ui/selgame.cpp:1550
msgid "Sound: OK\n"
msgstr ""
msgstr "Son : OK\n"
#: src/emu/ui/selgame.cpp:1552
#, c-format
msgid "Driver is Skeleton: %1$s\n"
msgstr "Le Driver Fantôme : %1$s\n"
msgstr "Driver Fantôme : %1$s\n"
#: src/emu/ui/selgame.cpp:1553
#, c-format
@ -1348,7 +1350,7 @@ msgstr "Support Cocktail : %1$s\n"
#, c-format
msgid "Driver is Bios: %1$s\n"
msgstr ""
"Le Driver Bios : %1$s\n"
"Driver Bios : %1$s\n"
" "
#: src/emu/ui/selgame.cpp:1558
@ -1440,32 +1442,32 @@ msgstr "Driver: \"%1$s\" liste logiciel "
#: src/emu/ui/selsoft.cpp:687
#, c-format
msgid "Region: %1$s -"
msgstr ""
msgstr "Région : %1$s -"
#: src/emu/ui/selsoft.cpp:689
#, c-format
msgid "Publisher: %1$s -"
msgstr ""
msgstr "Editeur : %1$s -"
#: src/emu/ui/selsoft.cpp:691
#, c-format
msgid "Year: %1$s -"
msgstr ""
msgstr "Année : %1$s -"
#: src/emu/ui/selsoft.cpp:693
#, c-format
msgid "Software List: %1$s -"
msgstr ""
msgstr "Listes de Logiciel : %1$s -"
#: src/emu/ui/selsoft.cpp:695
#, c-format
msgid "Device type: %1$s -"
msgstr ""
msgstr "Type de Périphérique : %1$s -"
#: src/emu/ui/selsoft.cpp:697
#, c-format
msgid "%s Search: %s_"
msgstr ""
msgstr "%s Recherche : %s_"
#: src/emu/ui/selsoft.cpp:741 src/emu/ui/selsoft.cpp:791
#: src/emu/ui/simpleselgame.cpp:322
@ -1545,7 +1547,7 @@ msgstr "Utilisez les fichiers sons (Samples) Externes"
#: src/emu/ui/swlist.cpp:70
msgid "[file manager]"
msgstr ""
msgstr "[Gestionnaire de Fichier]"
#: src/emu/ui/swlist.cpp:235
msgid "Switch Item Ordering"
@ -1566,11 +1568,11 @@ msgstr "description"
#: src/emu/ui/swlist.cpp:436
msgid "[compatible lists]"
msgstr ""
msgstr "[Listes Compatible]"
#: src/emu/ui/tapectrl.cpp:84
msgid "stopped"
msgstr ""
msgstr "arrêté"
#: src/emu/ui/tapectrl.cpp:86
msgid "playing"
@ -1767,7 +1769,7 @@ msgstr ""
#: src/emu/ui/ui.cpp:1228 src/emu/ui/ui.cpp:1267
msgid "MHz"
msgstr ""
msgstr "MHz"
#: src/emu/ui/ui.cpp:1228 src/emu/ui/ui.cpp:1267
msgid "kHz"
@ -1949,20 +1951,20 @@ msgstr "Scintillement - Vector"
#: src/emu/ui/ui.cpp:2083
msgid "Beam Width Minimum"
msgstr "Largeur Minimum du rayon"
msgstr "Largeur Minimum du Rayon"
#: src/emu/ui/ui.cpp:2085
msgid "Beam Width Maximum"
msgstr "Largeur Maximum du rayon"
msgstr "Largeur Maximum du Rayon"
#: src/emu/ui/ui.cpp:2087
msgid "Beam Intensity Weight"
msgstr "Intensité du poid du rayon"
msgstr "Intensité du Poids du Rayon"
#: src/emu/ui/ui.cpp:2099
#, c-format
msgid "Crosshair Scale %1$s"
msgstr ""
msgstr "Echelle du Viseur %1$s"
#: src/emu/ui/ui.cpp:2099 src/emu/ui/ui.cpp:2102
msgid "X"
@ -1975,7 +1977,7 @@ msgstr "Y"
#: src/emu/ui/ui.cpp:2102
#, c-format
msgid "Crosshair Offset %1$s"
msgstr ""
msgstr "Etalonnage du Viseur %1$s"
#: src/emu/ui/ui.cpp:2121
#, c-format
@ -2014,7 +2016,7 @@ msgstr "%1$1.2f"
#: src/emu/ui/ui.cpp:2526
#, c-format
msgid "Screen '%1$s'"
msgstr ""
msgstr "Ecran '%1$s'"
#: src/emu/ui/ui.cpp:2528
msgid "Screen"
@ -2023,22 +2025,22 @@ msgstr "Ecran"
#: src/emu/ui/ui.cpp:2544
#, c-format
msgid "Crosshair Scale X %1$1.3f"
msgstr ""
msgstr "Echelle du Viseur X %1$1.3f"
#: src/emu/ui/ui.cpp:2544
#, c-format
msgid "Crosshair Scale Y %1$1.3f"
msgstr ""
msgstr "Echelle du Viseur Y %1$1.3f"
#: src/emu/ui/ui.cpp:2563
#, c-format
msgid "Crosshair Offset X %1$1.3f"
msgstr ""
msgstr "Etalonnage du Viseur X %1$1.3f"
#: src/emu/ui/ui.cpp:2563
#, c-format
msgid "Crosshair Offset Y %1$1.3f"
msgstr ""
msgstr "Etalonnage du Viseur Y %1$1.3f"
#: src/emu/ui/videoopt.cpp:55
#, c-format

File diff suppressed because it is too large Load Diff

View File

@ -21,6 +21,7 @@
#include "einvaderc.lh" // test-layout(but still playable)
#include "funjacks.lh"
#include "funrlgl.lh"
#include "h2hbaskb.lh"
#include "lightfgt.lh" // clickable
//#include "hh_cop400_test.lh" // common test-layout - use external artwork
@ -67,6 +68,7 @@ public:
TIMER_DEVICE_CALLBACK_MEMBER(display_decay_tick);
void display_update();
void set_display_size(int maxx, int maxy);
void set_display_segmask(UINT32 digits, UINT32 mask);
void display_matrix(int maxx, int maxy, UINT32 setx, UINT32 sety, bool update = true);
protected:
@ -195,6 +197,17 @@ void hh_cop400_state::set_display_size(int maxx, int maxy)
m_display_maxy = maxy;
}
void hh_cop400_state::set_display_segmask(UINT32 digits, UINT32 mask)
{
// set a segment mask per selected digit, but leave unselected ones alone
for (int i = 0; i < 0x20; i++)
{
if (digits & 1)
m_display_segmask[i] = mask;
digits >>= 1;
}
}
void hh_cop400_state::display_matrix(int maxx, int maxy, UINT32 setx, UINT32 sety, bool update)
{
set_display_size(maxx, maxy);
@ -266,8 +279,8 @@ WRITE8_MEMBER(ctstein_state::write_g)
WRITE8_MEMBER(ctstein_state::write_l)
{
// L0-L3: button lamps (strobed)
display_matrix(4, 1, data, 1);
display_matrix(4, 1, data, 0);
display_matrix(4, 1, data & 0xf, 1);
display_matrix(4, 1, data & 0xf, 0);
}
READ8_MEMBER(ctstein_state::read_l)
@ -300,9 +313,9 @@ static INPUT_PORTS_START( ctstein )
PORT_START("IN.2") // G2 port L
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Red Button")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Yellow Button")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Yellow Button")
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Green Button")
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Blue Button")
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Blue Button")
INPUT_PORTS_END
static MACHINE_CONFIG_START( ctstein, ctstein_state )
@ -333,7 +346,7 @@ MACHINE_CONFIG_END
Coleco Head to Head Basketball
* COP420 MCU label COP420L-NEZ/N
* 2-digit 7seg display, 41 other leds, 1-bit sound
***************************************************************************/
class h2hbaskb_state : public hh_cop400_state
@ -342,16 +355,90 @@ public:
h2hbaskb_state(const machine_config &mconfig, device_type type, const char *tag)
: hh_cop400_state(mconfig, type, tag)
{ }
void prepare_display();
DECLARE_WRITE8_MEMBER(write_d);
DECLARE_WRITE8_MEMBER(write_g);
DECLARE_WRITE8_MEMBER(write_l);
DECLARE_READ8_MEMBER(read_in);
DECLARE_WRITE_LINE_MEMBER(write_so);
};
// handlers
//..
void h2hbaskb_state::prepare_display()
{
// D2,D3 double as multiplexer
UINT16 mask = ((m_d >> 2 & 1) * 0xf) | ((m_d << 1 & 0x10) * 0xf);
UINT16 sel = (m_g | m_d << 4 | m_g << 8 | m_d << 12) & mask;
// D2+G0,G1 are 7segs
set_display_segmask(3, 0x7f);
display_matrix(7, 16, m_l, sel);
}
WRITE8_MEMBER(h2hbaskb_state::write_d)
{
// D: led select
m_d = data & 0xf;
prepare_display();
}
WRITE8_MEMBER(h2hbaskb_state::write_g)
{
// G: led select, input mux
m_inp_mux = data;
m_g = data & 0xf;
prepare_display();
}
WRITE8_MEMBER(h2hbaskb_state::write_l)
{
// L0-L6: digit segments A-G
// L0-L4: led data
m_l = data;
prepare_display();
}
READ8_MEMBER(h2hbaskb_state::read_in)
{
// IN: multiplexed inputs
return read_inputs(4);
}
WRITE_LINE_MEMBER(h2hbaskb_state::write_so)
{
// SO: speaker out
m_speaker->level_w(state);
}
// config
static INPUT_PORTS_START( h2hbaskb )
PORT_START("IN.0") // G0 port IN
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_CODE(KEYCODE_1)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_CODE(KEYCODE_2)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_CODE(KEYCODE_3)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_CODE(KEYCODE_4)
PORT_START("IN.1") // G1 port IN
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_CODE(KEYCODE_5)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_CODE(KEYCODE_6)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_CODE(KEYCODE_7)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_CODE(KEYCODE_8)
PORT_START("IN.2") // G2 port IN
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON9 ) PORT_CODE(KEYCODE_Q)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON10 ) PORT_CODE(KEYCODE_W)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON11 ) PORT_CODE(KEYCODE_E)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON12 ) PORT_CODE(KEYCODE_R)
PORT_START("IN.3") // G3 port IN
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON13 ) PORT_CODE(KEYCODE_T)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON14 ) PORT_CODE(KEYCODE_Y)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON15 ) PORT_CODE(KEYCODE_U)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON16 ) PORT_CODE(KEYCODE_I)
INPUT_PORTS_END
static MACHINE_CONFIG_START( h2hbaskb, h2hbaskb_state )
@ -359,9 +446,14 @@ static MACHINE_CONFIG_START( h2hbaskb, h2hbaskb_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", COP420, 1000000) // approximation - RC osc. R=43K to +9V, C=101pf to GND
MCFG_COP400_CONFIG(COP400_CKI_DIVISOR_16, COP400_CKO_OSCILLATOR_OUTPUT, false) // guessed
MCFG_COP400_WRITE_D_CB(WRITE8(h2hbaskb_state, write_d))
MCFG_COP400_WRITE_G_CB(WRITE8(h2hbaskb_state, write_g))
MCFG_COP400_WRITE_L_CB(WRITE8(h2hbaskb_state, write_l))
MCFG_COP400_READ_IN_CB(READ8(h2hbaskb_state, read_in))
MCFG_COP400_WRITE_SO_CB(WRITELINE(h2hbaskb_state, write_so))
MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_cop400_state, display_decay_tick, attotime::from_msec(1))
// MCFG_DEFAULT_LAYOUT(layout_h2hbaskb)
MCFG_DEFAULT_LAYOUT(layout_h2hbaskb)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")

View File

@ -0,0 +1,127 @@
<?xml version="1.0"?>
<mamelayout version="2">
<!-- define elements -->
<element name="static_black"><rect><color red="0.0" green="0.0" blue="0.0" /></rect></element>
<element name="digit" defstate="0">
<led7seg><color red="1.0" green="0.20" blue="0.22" /></led7seg>
</element>
<element name="led" defstate="0">
<disk state="0"><color red="0.2" green="0.04" blue="0.05" /></disk>
<disk state="1"><color red="1.0" green="0.20" blue="0.22" /></disk>
</element>
<!-- build screen -->
<view name="Internal Layout">
<bounds left="0" right="12" top="0" bottom="30" />
<bezel element="static_black">
<bounds left="0" right="12" top="0" bottom="30" />
</bezel>
<bezel name="digit1" element="digit"><bounds x="0" y="0" width="4" height="6" /></bezel>
<bezel name="digit0" element="digit"><bounds x="4" y="0" width="4" height="6" /></bezel>
<!--
<bezel name="0.0" element="led"><bounds x="0" y="10" width="1" height="1" /></bezel>
<bezel name="0.1" element="led"><bounds x="1" y="10" width="1" height="1" /></bezel>
<bezel name="0.2" element="led"><bounds x="2" y="10" width="1" height="1" /></bezel>
<bezel name="0.3" element="led"><bounds x="3" y="10" width="1" height="1" /></bezel>
<bezel name="0.4" element="led"><bounds x="4" y="10" width="1" height="1" /></bezel>
<bezel name="1.0" element="led"><bounds x="0" y="11" width="1" height="1" /></bezel>
<bezel name="1.1" element="led"><bounds x="1" y="11" width="1" height="1" /></bezel>
<bezel name="1.2" element="led"><bounds x="2" y="11" width="1" height="1" /></bezel>
<bezel name="1.3" element="led"><bounds x="3" y="11" width="1" height="1" /></bezel>
<bezel name="1.4" element="led"><bounds x="4" y="11" width="1" height="1" /></bezel>
-->
<bezel name="2.0" element="led"><bounds x="0" y="12" width="1" height="1" /></bezel>
<bezel name="2.1" element="led"><bounds x="1" y="12" width="1" height="1" /></bezel>
<bezel name="2.2" element="led"><bounds x="2" y="12" width="1" height="1" /></bezel>
<bezel name="2.3" element="led"><bounds x="3" y="12" width="1" height="1" /></bezel>
<bezel name="2.4" element="led"><bounds x="4" y="12" width="1" height="1" /></bezel>
<bezel name="3.0" element="led"><bounds x="0" y="13" width="1" height="1" /></bezel>
<bezel name="3.1" element="led"><bounds x="1" y="13" width="1" height="1" /></bezel>
<bezel name="3.2" element="led"><bounds x="2" y="13" width="1" height="1" /></bezel>
<bezel name="3.3" element="led"><bounds x="3" y="13" width="1" height="1" /></bezel>
<bezel name="3.4" element="led"><bounds x="4" y="13" width="1" height="1" /></bezel>
<bezel name="4.0" element="led"><bounds x="0" y="14" width="1" height="1" /></bezel>
<bezel name="4.1" element="led"><bounds x="1" y="14" width="1" height="1" /></bezel>
<bezel name="4.2" element="led"><bounds x="2" y="14" width="1" height="1" /></bezel>
<bezel name="4.3" element="led"><bounds x="3" y="14" width="1" height="1" /></bezel>
<bezel name="4.4" element="led"><bounds x="4" y="14" width="1" height="1" /></bezel>
<bezel name="5.0" element="led"><bounds x="0" y="15" width="1" height="1" /></bezel>
<bezel name="5.1" element="led"><bounds x="1" y="15" width="1" height="1" /></bezel>
<bezel name="5.2" element="led"><bounds x="2" y="15" width="1" height="1" /></bezel>
<bezel name="5.3" element="led"><bounds x="3" y="15" width="1" height="1" /></bezel>
<bezel name="5.4" element="led"><bounds x="4" y="15" width="1" height="1" /></bezel>
<!--
<bezel name="6.0" element="led"><bounds x="0" y="16" width="1" height="1" /></bezel>
<bezel name="6.1" element="led"><bounds x="1" y="16" width="1" height="1" /></bezel>
<bezel name="6.2" element="led"><bounds x="2" y="16" width="1" height="1" /></bezel>
<bezel name="6.3" element="led"><bounds x="3" y="16" width="1" height="1" /></bezel>
<bezel name="6.4" element="led"><bounds x="4" y="16" width="1" height="1" /></bezel>
<bezel name="7.0" element="led"><bounds x="0" y="17" width="1" height="1" /></bezel>
<bezel name="7.1" element="led"><bounds x="1" y="17" width="1" height="1" /></bezel>
<bezel name="7.2" element="led"><bounds x="2" y="17" width="1" height="1" /></bezel>
<bezel name="7.3" element="led"><bounds x="3" y="17" width="1" height="1" /></bezel>
<bezel name="7.4" element="led"><bounds x="4" y="17" width="1" height="1" /></bezel>
-->
<bezel name="8.0" element="led"><bounds x="0" y="18" width="1" height="1" /></bezel>
<bezel name="8.1" element="led"><bounds x="1" y="18" width="1" height="1" /></bezel>
<bezel name="8.2" element="led"><bounds x="2" y="18" width="1" height="1" /></bezel>
<bezel name="8.3" element="led"><bounds x="3" y="18" width="1" height="1" /></bezel>
<bezel name="8.4" element="led"><bounds x="4" y="18" width="1" height="1" /></bezel>
<bezel name="9.0" element="led"><bounds x="0" y="19" width="1" height="1" /></bezel>
<bezel name="9.1" element="led"><bounds x="1" y="19" width="1" height="1" /></bezel>
<bezel name="9.2" element="led"><bounds x="2" y="19" width="1" height="1" /></bezel>
<bezel name="9.3" element="led"><bounds x="3" y="19" width="1" height="1" /></bezel>
<bezel name="9.4" element="led"><bounds x="4" y="19" width="1" height="1" /></bezel>
<bezel name="10.0" element="led"><bounds x="0" y="20" width="1" height="1" /></bezel>
<bezel name="10.1" element="led"><bounds x="1" y="20" width="1" height="1" /></bezel>
<bezel name="10.2" element="led"><bounds x="2" y="20" width="1" height="1" /></bezel>
<bezel name="10.3" element="led"><bounds x="3" y="20" width="1" height="1" /></bezel>
<bezel name="10.4" element="led"><bounds x="4" y="20" width="1" height="1" /></bezel>
<bezel name="11.0" element="led"><bounds x="0" y="21" width="1" height="1" /></bezel>
<bezel name="11.1" element="led"><bounds x="1" y="21" width="1" height="1" /></bezel>
<bezel name="11.2" element="led"><bounds x="2" y="21" width="1" height="1" /></bezel>
<bezel name="11.3" element="led"><bounds x="3" y="21" width="1" height="1" /></bezel>
<bezel name="11.4" element="led"><bounds x="4" y="21" width="1" height="1" /></bezel>
<bezel name="12.0" element="led"><bounds x="0" y="22" width="1" height="1" /></bezel>
<bezel name="12.1" element="led"><bounds x="1" y="22" width="1" height="1" /></bezel>
<bezel name="12.2" element="led"><bounds x="2" y="22" width="1" height="1" /></bezel>
<bezel name="12.3" element="led"><bounds x="3" y="22" width="1" height="1" /></bezel>
<bezel name="12.4" element="led"><bounds x="4" y="22" width="1" height="1" /></bezel>
<bezel name="13.0" element="led"><bounds x="0" y="23" width="1" height="1" /></bezel>
<bezel name="13.1" element="led"><bounds x="1" y="23" width="1" height="1" /></bezel>
<bezel name="13.2" element="led"><bounds x="2" y="23" width="1" height="1" /></bezel>
<bezel name="13.3" element="led"><bounds x="3" y="23" width="1" height="1" /></bezel>
<bezel name="13.4" element="led"><bounds x="4" y="23" width="1" height="1" /></bezel>
<!--
<bezel name="14.0" element="led"><bounds x="0" y="24" width="1" height="1" /></bezel>
<bezel name="14.1" element="led"><bounds x="1" y="24" width="1" height="1" /></bezel>
<bezel name="14.2" element="led"><bounds x="2" y="24" width="1" height="1" /></bezel>
<bezel name="14.3" element="led"><bounds x="3" y="24" width="1" height="1" /></bezel>
<bezel name="14.4" element="led"><bounds x="4" y="24" width="1" height="1" /></bezel>
<bezel name="15.0" element="led"><bounds x="0" y="25" width="1" height="1" /></bezel>
<bezel name="15.1" element="led"><bounds x="1" y="25" width="1" height="1" /></bezel>
<bezel name="15.2" element="led"><bounds x="2" y="25" width="1" height="1" /></bezel>
<bezel name="15.3" element="led"><bounds x="3" y="25" width="1" height="1" /></bezel>
<bezel name="15.4" element="led"><bounds x="4" y="25" width="1" height="1" /></bezel>
-->
</view>
</mamelayout>