summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-09-21 17:14:56 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-09-21 17:14:56 -0400
commit79886fd31d9edcf64cb347858a29f4335042b581 (patch)
tree6b0607a138027e25bc3eccfcae70134058568ffd
parent5deb24851aea74859cf10533ad88800f2c1ce2ca (diff)
hazl1420: DIP switch definitions (nw)
-rw-r--r--src/mame/drivers/hazl1420.cpp53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/mame/drivers/hazl1420.cpp b/src/mame/drivers/hazl1420.cpp
index d8758b616c1..bd3d999db28 100644
--- a/src/mame/drivers/hazl1420.cpp
+++ b/src/mame/drivers/hazl1420.cpp
@@ -58,6 +58,59 @@ u32 hazl1420_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, c
}
static INPUT_PORTS_START(hazl1420)
+ // DIP switches are on access panel above keyboard
+ // "SW1" and "SW2" are not actual names
+
+ PORT_START("SW1")
+ PORT_DIPNAME(0x01, 0x00, DEF_STR(Unused)) PORT_DIPLOCATION("SW1:1")
+ PORT_DIPSETTING(0x01, DEF_STR(Off))
+ PORT_DIPSETTING(0x00, DEF_STR(On))
+ PORT_DIPNAME(0x02, 0x00, DEF_STR(Unused)) PORT_DIPLOCATION("SW1:2")
+ PORT_DIPSETTING(0x02, DEF_STR(Off))
+ PORT_DIPSETTING(0x00, DEF_STR(On))
+ PORT_DIPNAME(0x1c, 0x18, "Baud Rate") PORT_DIPLOCATION("SW1:3,4,5")
+ PORT_DIPSETTING(0x00, "110")
+ PORT_DIPSETTING(0x04, "300")
+ PORT_DIPSETTING(0x08, "600")
+ PORT_DIPSETTING(0x0c, "1200")
+ PORT_DIPSETTING(0x10, "1800")
+ PORT_DIPSETTING(0x14, "2400")
+ PORT_DIPSETTING(0x18, "4800")
+ PORT_DIPSETTING(0x1c, "9600")
+ PORT_DIPNAME(0x20, 0x00, "Lead-In") PORT_DIPLOCATION("SW1:6")
+ PORT_DIPSETTING(0x00, "ESC")
+ PORT_DIPSETTING(0x20, "~")
+ PORT_DIPNAME(0xc0, 0xc0, "Parity") PORT_DIPLOCATION("SW1:7,8")
+ PORT_DIPSETTING(0x00, "Odd")
+ PORT_DIPSETTING(0x40, "Even")
+ PORT_DIPSETTING(0x80, "1")
+ PORT_DIPSETTING(0xc0, "0")
+
+ PORT_START("SW2")
+ PORT_DIPNAME(0x01, 0x00, DEF_STR(Unused)) PORT_DIPLOCATION("SW2:1")
+ PORT_DIPSETTING(0x01, DEF_STR(Off))
+ PORT_DIPSETTING(0x00, DEF_STR(On))
+ PORT_DIPNAME(0x02, 0x00, "Cursor") PORT_DIPLOCATION("SW2:2")
+ PORT_DIPSETTING(0x00, "Wraparound")
+ PORT_DIPSETTING(0x02, "No Wrap")
+ PORT_DIPNAME(0x04, 0x00, DEF_STR(Unused)) PORT_DIPLOCATION("SW2:3")
+ PORT_DIPSETTING(0x04, DEF_STR(Off))
+ PORT_DIPSETTING(0x00, DEF_STR(On))
+ PORT_DIPNAME(0x08, 0x08, "Font") PORT_DIPLOCATION("SW2:4")
+ PORT_DIPSETTING(0x08, "Upper/Lower Case")
+ PORT_DIPSETTING(0x00, "Upper Case Only")
+ PORT_DIPNAME(0x10, 0x10, "Communication Mode") PORT_DIPLOCATION("SW2:5")
+ PORT_DIPSETTING(0x00, "Half Duplex")
+ PORT_DIPSETTING(0x10, "Full Duplex")
+ PORT_DIPNAME(0x20, 0x20, "Automatic LF/CR") PORT_DIPLOCATION("SW2:6")
+ PORT_DIPSETTING(0x20, "Auto LF")
+ PORT_DIPSETTING(0x00, "Carriage Return")
+ PORT_DIPNAME(0x40, 0x40, "On Line") PORT_DIPLOCATION("SW2:7")
+ PORT_DIPSETTING(0x40, DEF_STR(Off))
+ PORT_DIPSETTING(0x00, DEF_STR(On))
+ PORT_DIPNAME(0x80, 0x00, DEF_STR(Unused)) PORT_DIPLOCATION("SW2:8")
+ PORT_DIPSETTING(0x80, DEF_STR(Off))
+ PORT_DIPSETTING(0x00, DEF_STR(On))
INPUT_PORTS_END
void hazl1420_state::hazl1420(machine_config &config)