Fix Super19 version of Heath H19.

This commit is contained in:
Mark Garlanger 2017-02-26 14:23:04 -06:00
parent 4b9648e7cd
commit 4a709f7ecc
2 changed files with 40 additions and 19 deletions

View File

@ -18,9 +18,12 @@
- Finish connecting up the 8250
- enable 8520 interrupts
- speed up emulation
super19 version has the videoram at D800. This is not emulated.
However, a keyclick can be heard, to assure you it does in fact work.
- update SW401 baud rate options for Watz ROM
- update SW401 & SW402 definitions for Super-19 ROM
- SuperSet support
- connect 8250 modem control lines to bank-switching for
character generation
- properly handle 32k ROM with only 16K of data.
****************************************************************************/
/***************************************************************************
@ -107,7 +110,6 @@ public:
MC6845_UPDATE_ROW(crtc_update_row);
private:
//uint8_t m_term_data;
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
virtual void machine_reset() override;
required_device<palette_device> m_palette;
@ -152,23 +154,23 @@ void h19_state::device_timer(emu_timer &timer, device_timer_id id, int param, vo
static ADDRESS_MAP_START(h19_mem, AS_PROGRAM, 8, h19_state)
ADDRESS_MAP_UNMAP_HIGH
AM_RANGE(0x0000, 0x1fff) AM_ROM
AM_RANGE(0x4000, 0x4100) AM_RAM
AM_RANGE(0xf800, 0xffff) AM_RAM AM_SHARE("videoram")
AM_RANGE(0x0000, 0x1fff) AM_MIRROR(0x2000) AM_ROM
AM_RANGE(0x4000, 0x4100) AM_MIRROR(0x3e00) AM_RAM
AM_RANGE(0xc000, 0xc7ff) AM_MIRROR(0x3800) AM_RAM AM_SHARE("videoram")
ADDRESS_MAP_END
static ADDRESS_MAP_START( h19_io, AS_IO, 8, h19_state)
ADDRESS_MAP_UNMAP_HIGH
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE(0x00, 0x1F) AM_READ_PORT("SW401")
AM_RANGE(0x20, 0x3F) AM_READ_PORT("SW402")
AM_RANGE(0x00, 0x00) AM_MIRROR(0x1f) AM_READ_PORT("SW401")
AM_RANGE(0x20, 0x20) AM_MIRROR(0x1f) AM_READ_PORT("SW402")
AM_RANGE(0x40, 0x47) AM_MIRROR(0x18) AM_DEVREADWRITE("ins8250", ins8250_device, ins8250_r, ins8250_w )
AM_RANGE(0x60, 0x60) AM_DEVWRITE("crtc", mc6845_device, address_w)
AM_RANGE(0x61, 0x61) AM_DEVREADWRITE("crtc", mc6845_device, register_r, register_w)
AM_RANGE(0x80, 0x9F) AM_READ(kbd_key_r)
AM_RANGE(0xA0, 0xBF) AM_READ(kbd_flags_r)
AM_RANGE(0xC0, 0xDF) AM_WRITE(h19_keyclick_w)
AM_RANGE(0xE0, 0xFF) AM_WRITE(h19_bell_w)
AM_RANGE(0x60, 0x60) AM_MIRROR(0x1E) AM_DEVWRITE("crtc", mc6845_device, address_w)
AM_RANGE(0x61, 0x61) AM_MIRROR(0x1E) AM_DEVREADWRITE("crtc", mc6845_device, register_r, register_w)
AM_RANGE(0x80, 0x80) AM_MIRROR(0x1f) AM_READ(kbd_key_r)
AM_RANGE(0xA0, 0xA0) AM_MIRROR(0x1f) AM_READ(kbd_flags_r)
AM_RANGE(0xC0, 0xC0) AM_MIRROR(0x1f) AM_WRITE(h19_keyclick_w)
AM_RANGE(0xE0, 0xE0) AM_MIRROR(0x1f) AM_WRITE(h19_bell_w)
ADDRESS_MAP_END
/* Input ports */
@ -605,9 +607,27 @@ ROM_START( watz19 )
ROM_LOAD( "keybd.bin", 0x0000, 0x0800, CRC(58dc8217) SHA1(1b23705290bdf9fc6342065c6a528c04bff67b13))
ROM_END
ROM_START( ssh19 ) // Superset for H19
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF )
// Superset ROM - TODO although the ROM is 32K, only 16K is accessible
ROM_LOAD( "27256_101-402_superset_code.bin", 0x0000, 0x8000, CRC(a6896076) SHA1(a4e2d25028dc75a665c3f5a830a4e8cdecbd481c))
ROM_REGION( 0x0800, "chargen", 0 )
// Superset font - 32k
// TODO: connect the output lines from the 8250(OUT1,OUT2,DTR,RTS) to control bank switching of this ROM and
// select the proper character set
ROM_LOAD( "27256_101-431_superset_font.bin", 0x0000, 0x0800, CRC(4c0688f6) SHA1(be6059913420ad66f5c839d619fdcb164ffae85a))
ROM_REGION( 0x1000, "keyboard", 0 )
// Original dump
ROM_LOAD( "2716_101-422_superset_kbd.bin", 0x0000, 0x0800, CRC(549d15b3) SHA1(981962e5e05bbdc5a66b0e86870853ce5596e877))
ROM_END
/* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */
COMP( 1979, h19, 0, 0, h19, h19, driver_device, 0, "Heath Inc", "Heathkit H-19", 0 )
/* TODO - verify the years for these third-party replacement ROMs. */
COMP( 1982, super19, h19, 0, h19, h19, driver_device, 0, "Heath Inc", "Heathkit H-19 w/ Super-19 ROM", MACHINE_NOT_WORKING )
COMP( 1982, super19, h19, 0, h19, h19, driver_device, 0, "Heath Inc", "Heathkit H-19 w/ Super-19 ROM", 0 )
COMP( 1982, watz19, h19, 0, h19, h19, driver_device, 0, "Heath Inc", "Heathkit H-19 w/ Watzman ROM", 0 )
COMP( 1982, ssh19, h19, 0, h19, h19, driver_device, 0, "Heath Inc", "Heathkit H-19 w/ SuperSet ROM", MACHINE_NOT_WORKING )

View File

@ -14153,9 +14153,10 @@ gyrussce // GX347 (c) 1983 + Centuri license
venus // bootleg
@source:h19.cpp
h19 //
super19 //
watz19 //
h19 // Heath H19 (Zenith Z-19)
super19 // Super19 replacement ROMS for H19
watz19 // Watzman replacement ROMS for H19
ssh19 // Superset replacement Roms for H19
@source:h8.cpp
h8 //