hp9845: cosmetic fixes to 9895-related source files

This commit is contained in:
fulivi 2017-01-05 12:07:25 +01:00
parent 5a82972fe5
commit d83f35b382
2 changed files with 17 additions and 5 deletions

View File

@ -6,6 +6,9 @@
HP9895 floppy disk drive HP9895 floppy disk drive
Reference manual:
HP 09895-90030, feb 81, 9895A Flexible Disc Memory Service Manual
*********************************************************************/ *********************************************************************/
#include "hp9895.h" #include "hp9895.h"
@ -28,6 +31,7 @@ hp9895_device::hp9895_device(const machine_config &mconfig, const char *tag, dev
#if 0 #if 0
ioport_constructor hp9895_device::device_input_ports() const ioport_constructor hp9895_device::device_input_ports() const
{ {
// TODO: inputs=HPIB address, "S" & "W" switches, "loop" pin
} }
#endif #endif
void hp9895_device::device_start() void hp9895_device::device_start()
@ -170,8 +174,8 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START(z80_io_map , AS_IO , 8 , hp9895_device) static ADDRESS_MAP_START(z80_io_map , AS_IO , 8 , hp9895_device)
ADDRESS_MAP_UNMAP_HIGH ADDRESS_MAP_UNMAP_HIGH
ADDRESS_MAP_GLOBAL_MASK(0xff) ADDRESS_MAP_GLOBAL_MASK(0xff)
// TODO: TEMP!
AM_RANGE(0x10 , 0x17) AM_DEVWRITE("phi" , phi_device , reg8_w) AM_READ(phi_reg_r) AM_RANGE(0x10 , 0x17) AM_DEVWRITE("phi" , phi_device , reg8_w) AM_READ(phi_reg_r)
// TODO: 60-67 range
ADDRESS_MAP_END ADDRESS_MAP_END
static MACHINE_CONFIG_FRAGMENT(hp9895) static MACHINE_CONFIG_FRAGMENT(hp9895)

View File

@ -19,6 +19,12 @@
* C1,C2,C3,C4,C5 * C1,C2,C3,C4,C5
* HP non-standard IDENTIFY sequence * HP non-standard IDENTIFY sequence
Fun fact: PHI has no clock input, its FSMs are driven only by
changes in input signals and by a few internal monostables
Main reference for this ASIC:
HP 12009-90001, sep 82, HP12009A HP-IB Interface Reference Manual
*********************************************************************/ *********************************************************************/
#include "emu.h" #include "emu.h"
@ -514,10 +520,12 @@ uint8_t phi_device::get_dio(void)
void phi_device::set_dio(uint8_t data) void phi_device::set_dio(uint8_t data)
{ {
LOG(("DIO=%02x\n" , data)); if (data != m_dio) {
m_dio = data; LOG(("DIO=%02x\n" , data));
if (!m_loopback) { m_dio = data;
m_dio_write_func(~data); if (!m_loopback) {
m_dio_write_func(~data);
}
} }
} }