Added centronics-ish interface support for the fccpu1 board as expected by the system ROM, tested and works

This commit is contained in:
Joakim Larsson Edstrom 2015-08-01 13:13:01 +02:00 committed by Joakim Larsson Edström
parent efa3a679a3
commit cab1a40467
4 changed files with 707 additions and 447 deletions

View File

@ -99,6 +99,7 @@ void centronics_printer_device::device_reset()
output_busy(m_busy); output_busy(m_busy);
output_fault(1); output_fault(1);
output_ack(1); output_ack(1);
output_select(1);
} }
/*------------------------------------------------- /*-------------------------------------------------

View File

@ -1,173 +1,257 @@
// license:BSD-3-Clause // license:BSD-3-Clause
// copyright-holders:Joakim Larsson Edstr??m // copyright-holders:Joakim Larsson Edstr??m
/********************************************************************** /**********************************************************************
*
Motorola MC68230 PI/T Parallell Interface and Timer * Motorola MC68230 PI/T Parallell Interface and Timer
*
Revisions * Revisions
2015-07-15 JLE initial * 2015-07-15 JLE initial
*
Todo * Todo
- Add clock and timers * - Add clock and timers
- Add all missing registers * - Add all missing registers
- Add configuration * - Add configuration
**********************************************************************/ **********************************************************************/
/*
Force CPU-1 init sequence
0801EA 0E0000 W 0000 PGCR data_w: 0000 -> 0000 & 00ff
0801EA 0E0002 W 0000 PSRR data_w: 0000 -> 0001 & 00ff
0801EA 0E0004 W FFFF PADDR data_w: 00ff -> 0002 & 00ff
0801EA 0E0006 W 0000 PBDDR data_w: 0000 -> 0003 & 00ff
0801F0 0E000C W 6060 PACR data_w: 0060 -> 0006 & 00ff
0801F6 0E000E W A0A0 PBCR data_w: 00a0 -> 0007 & 00ff
0801FC 0E0000 W 3030 PGCR data_w: 0030 -> 0000 & 00ff
080202 0E000E W A8A8 PBCR data_w: 00a8 -> 0007 & 00ff
080210 0E000E W A0A0 PBCR data_w: 00a0 -> 0007 & 00ff
Force CPU-1 after one keypress in terminal
081DC0 0E000C W 6868 PACR
081DC8 0E000C W 6060 PACR
*/
#include "emu.h"
#include "68230pit.h" #include "68230pit.h"
/*************************************************************************** #define LOG(x) /* x */
IMPLEMENTATION
***************************************************************************/ //**************************************************************************
// DEVICE TYPE DEFINITIONS
//**************************************************************************
// device type definition
const device_type PIT68230 = &device_creator<pit68230_device>; const device_type PIT68230 = &device_creator<pit68230_device>;
//------------------------------------------------- //-------------------------------------------------
// pit68230_device - constructor // pit68230_device - constructors
//------------------------------------------------- //-------------------------------------------------
pit68230_device::pit68230_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source)
: device_t (mconfig, type, name, tag, owner, clock, shortname, source),
device_execute_interface (mconfig, *this)
, m_icount (0)
, m_write_pa (*this)
, m_write_h2 (*this)
{
}
pit68230_device::pit68230_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) pit68230_device::pit68230_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, PIT68230, "Motorola 68230 PI/T", tag, owner, clock, "pit68230", __FILE__) : device_t (mconfig, PIT68230, "PIT68230", tag, owner, clock, "pit68230", __FILE__),
device_execute_interface (mconfig, *this)
, m_icount (0)
, m_write_pa (*this)
, m_write_h2 (*this)
{ {
} }
void pit68230_device::device_start() //-------------------------------------------------
// device_start - device-specific startup
//-------------------------------------------------
void pit68230_device::device_start ()
{ {
printf("PIT68230 device started\n"); LOG (logerror ("PIT68230 device started\n"));
m_icountptr = &m_icount;
// resolve callbacks
m_write_pa.resolve_safe ();
m_write_h2.resolve_safe ();
} }
void pit68230_device::device_reset() //-------------------------------------------------
// device_reset - device-specific reset
//-------------------------------------------------
void pit68230_device::device_reset ()
{ {
printf("PIT68230 device reseted\n"); LOG (logerror ("PIT68230 device reseted\n"));
m_pgcr = 0; m_pgcr = 0;
m_psrr = 0; m_psrr = 0;
m_paddr = 0; m_paddr = 0;
m_pbddr = 0; m_pbddr = 0;
m_pcddr = 0; m_pcddr = 0;
m_pacr = 0; m_pacr = 0; m_write_h2 (m_pacr);
m_pbcr = 0; m_pbcr = 0;
m_padr = 0; m_padr = 0; m_write_pa ((offs_t)0, m_padr); // TODO: check PADDR
m_pbdr = 0; m_pbdr = 0;
m_psr = 0; m_psr = 0;
} }
WRITE8_MEMBER( pit68230_device::data_w ) //-------------------------------------------------
// device_timer - handler timer events
//-------------------------------------------------
void pit68230_device::device_timer (emu_timer &timer, device_timer_id id, INT32 param, void *ptr)
{ {
printf("data_w: %04x -> ", data);
switch (offset)
{
case PIT_68230_PGCR:
printf("PGCR");
m_pgcr = data;
break;
case PIT_68230_PSRR:
printf("PSRR");
m_psrr = data;
break;
case PIT_68230_PADDR:
printf("PADDR");
m_paddr = data;
break;
case PIT_68230_PBDDR:
printf("PBDDR");
m_pbddr = data;
break;
case PIT_68230_PACR:
printf("PACR");
m_pacr = data;
break;
case PIT_68230_PBCR:
printf("PBCR");
m_pbcr = data;
break;
case PIT_68230_PADR:
printf("PADR");
m_padr = data;
break;
case PIT_68230_PSR:
printf("PSR");
m_padr = data;
break;
default:
printf("unhandled register %02x", offset);
}
printf("\n");
} }
READ8_MEMBER( pit68230_device::data_r ) void pit68230_device::h1_set (UINT8 state)
{ {
UINT8 data = 0; LOG (logerror ("h1_set %d @ m_psr %2x => ", state, m_psr));
if (state) m_psr |= 1; else m_psr &= ~1;
printf("data_r: "); LOG (logerror ("%02x %lld\n", m_psr, machine ().firstcpu->total_cycles ()));
switch (offset) }
{
case PIT_68230_PGCR: void pit68230_device::portb_setbit (UINT8 bit, UINT8 state)
printf("PGCR"); {
data = m_pgcr; LOG (logerror ("portb_setbit %d/%d @ m_pbdr %2x => ", bit, state, m_pbdr));
break; if (state) m_pbdr |= (1 << bit); else m_pbdr &= ~(1 << bit);
case PIT_68230_PSRR: LOG (logerror ("%02x %lld\n", m_pbdr, machine ().firstcpu->total_cycles ()));
printf("PSRR"); }
data = m_psrr;
break; //-------------------------------------------------
case PIT_68230_PADDR: // execute_run -
printf("PADDR"); //-------------------------------------------------
data = m_paddr; void pit68230_device::execute_run ()
break; {
case PIT_68230_PBDDR: do {
printf("PBDDR"); synchronize ();
data = m_pbddr;
break; m_icount--;
case PIT_68230_PACR: } while (m_icount > 0);
printf("PACR"); }
data = m_pacr;
break; LOG (static INT32 ow_cnt = 0);
case PIT_68230_PBCR: LOG (static INT32 ow_data = 0);
printf("PBCR"); LOG (static INT32 ow_ofs = 0);
data = m_pbcr;
break; WRITE8_MEMBER (pit68230_device::write){
case PIT_68230_PADR: switch (offset) {
printf("PADR"); case PIT_68230_PGCR:
data = m_padr; m_pgcr = data;
break; break;
case PIT_68230_PBDR:
/* 4.6.2. PORT B DATA REGISTER (PBDR). The port B data register is a holding register for moving data case PIT_68230_PSRR:
to and from port B pins. The port B data direction register determines whether each pin is an input (zero) m_psrr = data;
or an output (one). This register is readable and writable at all times. Depending on the chosen mode/submode, break;
reading or writing may affect the double-buffered handshake mechanism. The port B data register is not affected
by the assertion of the RESET pin. PB0-PB7 sits on pins 17-24 on a 48 pin DIP package */ case PIT_68230_PADDR:
printf("PBDR"); m_paddr = data;
data = m_pbdr; break;
// data = (m_pbdr & 0xfc) | 1; // CPU-1 centronics interface expects to see 2 lowest bits equal 1 for printer
break; case PIT_68230_PBDDR:
case PIT_68230_PSR: m_pbddr = data;
printf("PSR"); break;
data = m_psr;
// data = m_psr | 1; // CPU-1 centronics interface expects status to be non zero case PIT_68230_PACR:
break; m_pacr = data;
default: // callbacks
printf("unhandled register %02x", offset); /*PACR in Mode 0
data = 0; * 5 43 H2 Control in Submode 00 && 01
} * ------------------------------------
printf("\n"); * 0 XX Input pin - edge-sensitive status input, H2S is set on an asserted edge.
* 1 00 Output pin - negated, H2S is always clear.
return data; * 1 01 Output pin - asserted, H2S is always clear.
* 1 10 Output pin - interlocked input handshake protocol, H2S is always clear.
* 1 11 Output pin - pulsed input handshake protocol, H2S is always clear.
*
* 5 43 H2 Control in Submode 1x
* ------------------------------------
* 0 XX Input pin - edge-sensitive status input, H2S is set on an asserted edge.
* 1 X0 Output pin - negated, H2S is always cleared.
* 1 X1 Output pin - asserted, H2S is always cleared.
*/
m_write_h2 (m_pacr & 0x08 ? 1 : 0); // TODO: Check mode and submodes
break;
case PIT_68230_PBCR:
m_pbcr = data;
break;
case PIT_68230_PADR:
m_padr = data;
// callbacks
m_write_pa ((offs_t)0, m_padr); // TODO: check PADDR
break;
case PIT_68230_PSR:
m_psr = data;
break;
default:
LOG (logerror ("unhandled register %02x", offset));
}
LOG (if (offset != ow_ofs || data != ow_data || ow_cnt >= 1000) {
logerror ("\npit68230_device::write: previous identical operation performed %02x times\n", ow_cnt);
ow_cnt = 0;
ow_data = data;
ow_ofs = offset;
logerror ("pit68230_device::write: offset=%02x data=%02x %lld\n", ow_ofs, ow_data, machine ().firstcpu->total_cycles ());
}
else
ow_cnt++; )
}
LOG (static INT32 or_cnt = 0);
LOG (static INT32 or_data = 0);
LOG (static INT32 or_ofs = 0);
READ8_MEMBER (pit68230_device::read){
UINT8 data = 0;
switch (offset) {
case PIT_68230_PGCR:
data = m_pgcr;
break;
case PIT_68230_PSRR:
data = m_psrr;
break;
case PIT_68230_PADDR:
data = m_paddr;
break;
case PIT_68230_PBDDR:
data = m_pbddr;
break;
case PIT_68230_PACR:
data = m_pacr;
break;
case PIT_68230_PBCR:
data = m_pbcr;
break;
case PIT_68230_PADR:
data = m_padr;
break;
case PIT_68230_PBDR:
/* 4.6.2. PORT B DATA REGISTER (PBDR). The port B data register is a holding
* register for moving data to and from port B pins. The port B data direction
* register determines whether each pin is an input (zero) or an output (one).
* This register is readable and writable at all times. Depending on the chosen
* mode/submode, reading or writing may affect the double-buffered handshake
* mechanism. The port B data register is not affected by the assertion of the
* RESET pin. PB0-PB7 sits on pins 17-24 on a 48 pin DIP package */
data = m_pbdr;
break;
case PIT_68230_PSR:
/* 4.8. PORT STATUS REGISTER (PSR) The port status register contains information about
* handshake pin activity. Bits 7-4 show the instantaneous level of the respective handshake
* pin, and are independent of the handshake pin sense bits in the port general control
* register. Bits 3-0 are the respective status bits referred to throughout this document.
* Their interpretation depends on the programmed mode/submode of the PI/T. For bits
* 3-0 a one is the active or asserted state. */
data = m_psr;
break;
default:
LOG (logerror ("unhandled register %02x", offset));
data = 0;
}
LOG (if (offset != or_ofs || data != or_data || or_cnt >= 1000) {
logerror ("\npit68230_device::read: previous identical operation performed %02x times\n", or_cnt);
or_cnt = 0;
or_data = data;
or_ofs = offset;
logerror ("pit68230_device::read: offset=%02x data=%02x %lld\n", or_ofs, or_data, machine ().firstcpu->total_cycles ());
}
else
or_cnt++; )
return data;
} }

View File

@ -1,10 +1,37 @@
// license:BSD-3-Clause // license:BSD-3-Clause
// copyright-holders:Joakim Larsson Edstr??m // copyright-holders:Joakim Larsson Edstr??m
/********************************************************************** /**********************************************************************
*
Motorola MC68230 PI/T Parallell Interface and Timer * Motorola MC68230 PI/T Parallell Interface and Timer
*
* _____ _____
* D5 1 |* \_/ | 48 D4
* D6 2 | | 47 D3
* D7 3 | | 46 D2
* PA0 4 | | 45 D1
* PA1 5 | | 44 D0
* PA2 6 | | 43 R/W*
* PA3 7 | | 42 DTACK*
* PA4 8 | | 41 CS*
* PA5 9 | | 40 CLK
* PA6 10 | | 39 RESET*
* PA7 11 | | 38 VSS
* Vcc 12 | TS68230 | 37 PC7/TIACK*
* H1 13 | SC87845 | 36 PC6/PIACK*
* H2 14 | | 35 PC5/PIRQ*
* H3 15 | | 34 PC4/DMAREQ*
* H4 16 | | 33 PC3/TOUT
* PB0 17 | | 32 PC2/TIN
* PB1 18 | | 31 PC1
* PB2 19 | | 30 PC0
* PB3 20 | | 29 RS1
* PB4 21 | | 28 RS2
* PB5 22 | | 27 RS3
* PB6 23 | | 26 RS4
* PB7 24 |_____________| 25 RS5
*
**********************************************************************/ **********************************************************************/
#pragma once #pragma once
#ifndef __68230PIT_H__ #ifndef __68230PIT_H__
@ -12,9 +39,22 @@
#include "emu.h" #include "emu.h"
//**************************************************************************
// INTERFACE CONFIGURATION MACROS
//**************************************************************************
#define MCFG_PIT68230_PA_OUTPUT_CALLBACK(_write) \
devcb = &pit68230_device::set_pa_wr_callback (*device, DEVCB_ ## _write);
#define MCFG_PIT68230_PB_OUTPUT_CALLBACK(_write) \
devcb = &pit68230_device::set_pb_wr_callback (*device, DEVCB_ ## _write);
#define MCFG_PIT68230_H2_CALLBACK(_write) \
devcb = &pit68230_device::set_h2_wr_callback (*device, DEVCB_ ## _write);
/*----------------------------------------------------------------------- /*-----------------------------------------------------------------------
Registers RS1-RS5 R/W Description * Registers RS1-RS5 R/W Description
-------------------------------------------------------------------------*/ * -------------------------------------------------------------------------*/
#define PIT_68230_PGCR 0x00 /* RW Port General Control register */ #define PIT_68230_PGCR 0x00 /* RW Port General Control register */
#define PIT_68230_PSRR 0x01 /* RW Port Service Request register */ #define PIT_68230_PSRR 0x01 /* RW Port Service Request register */
#define PIT_68230_PADDR 0x02 /* RW Port A Data Direction register */ #define PIT_68230_PADDR 0x02 /* RW Port A Data Direction register */
@ -42,34 +82,50 @@
//************************************************************************** //**************************************************************************
// TYPE DEFINITIONS // TYPE DEFINITIONS
//************************************************************************** //**************************************************************************
class pit68230_device : public device_t class pit68230_device : public device_t, public device_execute_interface
{ {
public: public:
// construction/destruction // construction/destruction
pit68230_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); pit68230_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source);
DECLARE_WRITE8_MEMBER( data_w ); pit68230_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
DECLARE_READ8_MEMBER( data_r ); template<class _Object> static devcb_base &set_pa_wr_callback (device_t &device, _Object object)
{
return downcast<pit68230_device &>(device).m_write_pa.set_callback (object);
}
template<class _Object> static devcb_base &set_h2_wr_callback (device_t &device, _Object object)
{
return downcast<pit68230_device &>(device).m_write_h2.set_callback (object);
}
DECLARE_WRITE8_MEMBER (write);
DECLARE_READ8_MEMBER (read);
void h1_set (UINT8 state);
void portb_setbit (UINT8 bit, UINT8 state);
protected: protected:
// device-level overrides // device-level overrides
virtual void device_start(); virtual void device_start ();
virtual void device_reset(); virtual void device_reset ();
virtual void device_timer (emu_timer &timer, device_timer_id id, int param, void *ptr);
virtual void execute_run ();
int m_icount;
devcb_write8 m_write_pa;
devcb_write_line m_write_h2;
private: // peripheral ports
UINT8 m_pgcr; // Port General Control register UINT8 m_pgcr; // Port General Control register
UINT8 m_psrr; // Port Service Request register UINT8 m_psrr; // Port Service Request register
UINT8 m_paddr; // Port A Data Direction register UINT8 m_paddr; // Port A Data Direction register
UINT8 m_pbddr; // Port B Data Direction register UINT8 m_pbddr; // Port B Data Direction register
UINT8 m_pcddr; // Port C Data Direction register UINT8 m_pcddr; // Port C Data Direction register
UINT8 m_pacr; // Port A Control register UINT8 m_pacr; // Port A Control register
UINT8 m_pbcr; // Port B Control register UINT8 m_pbcr; // Port B Control register
UINT8 m_padr; // Port A Data register UINT8 m_padr; // Port A Data register
UINT8 m_pbdr; // Port B Data register UINT8 m_pbdr; // Port B Data register
UINT8 m_psr; // Port Status Register UINT8 m_psr; // Port Status Register
}; };
// device type definition // device type definition
extern const device_type PIT68230; extern const device_type PIT68230;
#endif /* __68230PIT_H__ */
#endif // __68230PIT__

View File

@ -1,91 +1,96 @@
// license:BSD-3-Clause // license:BSD-3-Clause
// copyright-holders:Joakim Larsson Edstr??m // copyright-holders:Joakim Larsson Edstr??m
/*************************************************************************** /***************************************************************************
*
Force SYS68K CPU-1/CPU-6 VME SBC drivers, initially based on the 68ksbc.c * Force SYS68K CPU-1/CPU-6 VME SBC drivers, initially based on the 68ksbc.c
*
13/06/2015 * 13/06/2015
*
The info found on the links below is for a later revisions of the board I have * The info found on the links below is for a later revisions of the board I have
but I hope it is somewhat compatible so I can get it up and running at least. * but it is somewhat compatible so I got the system ROM up and running in terminal.
My CPU-1 board has proms from 1983 and no rev markings so probably the original. * My CPU-1 board has proms from 1983 and the PCB has no rev markings so probably
* the original or a very early design. The board real estate differs from the later
http://bitsavers.trailing-edge.com/pdf/forceComputers/1988_Force_VMEbus_Products.pdf * CPU-1:s I found pictures of but has the same main chips and functions.
http://www.artisantg.com/info/P_wUovN.pdf *
* http://bitsavers.trailing-edge.com/pdf/forceComputers/1988_Force_VMEbus_Products.pdf
Some info from those documents: * http://www.artisantg.com/info/P_wUovN.pdf
*
Address Map * Some info from those documents:
---------------------------------------------------------- *
Address Range Description * Address Map
---------------------------------------------------------- * ----------------------------------------------------------
000 000 - 000 007 Initialisation vectors from system EPROM * Address Range Description
000 008 - 01F FFF Dynamic RAM on CPU-1 B * ----------------------------------------------------------
000 008 - 07F FFF Dynamic RAM on CPU-1 D * 000 000 - 000 007 Initialisation vectors from system EPROM
080 008 - 09F FFF SYSTEM EPROM Area * 000 008 - 01F FFF Dynamic RAM on CPU-1 B
OAO 000 - OBF FFF USER EPROMArea * 000 008 - 07F FFF Dynamic RAM on CPU-1 D
0C0 041 - 0C0 043 ACIA (P3) Host * 080 008 - 09F FFF SYSTEM EPROM Area
0C0 080 - 0C0 082 ACIA (P4) Terminal * OAO 000 - OBF FFF USER EPROMArea
0C0 101 - 0C0 103 ACIA (P5) Remote device (eg serial printer) * 0C0 041 - 0C0 043 ACIA (P3) Host
0C0 401 - 0C0 42F RTC * 0C0 080 - 0C0 082 ACIA (P4) Terminal
OEO 001 - 0E0 035 PI/T (eg centronics printer) * 0C0 101 - 0C0 103 ACIA (P5) Remote device (eg serial printer)
OEO 200 - 0E0 2FF FPU * 0C0 401 - 0C0 42F RTC
OEO 300 - 0E0 300 Reset Off * OEO 001 - 0E0 035 PI/T (eg centronics printer)
OEO 380 - 0E0 380 Reset On * OEO 200 - 0E0 2FF FPU
100 000 - FEF FFF VMEbus addresses (A24) * OEO 300 - 0E0 300 Reset Off
FFO 000 - FFF FFF VMEbus Short I/O (A16) * OEO 380 - 0E0 380 Reset On
---------------------------------------------------------- * 100 000 - FEF FFF VMEbus addresses (A24)
* FFO 000 - FFF FFF VMEbus Short I/O (A16)
Interrupt sources * ----------------------------------------------------------
---------------------------------------------------------- *
Description Device Lvl IRQ VME board * Interrupt sources
/Board Vector Address * ----------------------------------------------------------
---------------------------------------------------------- * Description Device Lvl IRQ VME board
On board Sources * /Board Vector Address
ABORT Switch 7 31 * ----------------------------------------------------------
Real Time Clock (RTC) 58167A 6 30 * On board Sources
Parallel/Timer (PI/T) 68230 5 29 * ABORT Switch 7 31
Terminal ACIA 6850 4 28 * Real Time Clock (RTC) 58167A 6 30
Remote ACIA 6850 3 27 * Parallel/Timer (PI/T) 68230 5 29
Host ACIA 6850 2 26 * Terminal ACIA 6850 4 28
ACFAIL, SYSFAIL VME 5 29 * Remote ACIA 6850 3 27
Off board Sources (other VME boards) * Host ACIA 6850 2 26
6 Port Serial I/O board SIO 4 64-75 0xb00000 * ACFAIL, SYSFAIL VME 5 29
8 Port Serial I/O board ISIO 4 76-83 0x960000 * Off board Sources (other VME boards)
Disk Controller WFC 3 119 0xb01000 * 6 Port Serial I/O board SIO 4 64-75 0xb00000
SCSI Controller ISCSI 4 119 0xa00000 * 8 Port Serial I/O board ISIO 4 76-83 0x960000
Slot 1 Controller Board ASCU 7 31 0xb02000 * Disk Controller WFC 3 119 0xb01000
---------------------------------------------------------- * SCSI Controller ISCSI 4 119 0xa00000
* Slot 1 Controller Board ASCU 7 31 0xb02000
10. The VMEbus * ----------------------------------------------------------
--------------- *
The implemented VMEbus Interface includes 24 address, 16 data, * 10. The VMEbus
6 address modifier and the asynchronous control signals. * ---------------
A single level bus arbiter is provided to build multi master * The implemented VMEbus Interface includes 24 address, 16 data,
systems. In addition to the bus arbiter, a separate slave bus * 6 address modifier and the asynchronous control signals.
arbitration allows selection of the arbitration level (0-3). * A single level bus arbiter is provided to build multi master
* systems. In addition to the bus arbiter, a separate slave bus
The address modifier range .,Short 110 Access?? can be selected * arbitration allows selection of the arbitration level (0-3).
via a jumper for variable system generation. The 7 interrupt *
request levels of the VMEbus are fully supported from the * The address modifier range .,Short 110 Access« can be selected
SYS68K1CPU-1 B/D. For multi-processing, each IRQ signal can be * via a jumper for variable system generation. The 7 interrupt
enabled/disabled via a jumper field. * request levels of the VMEbus are fully supported from the
* SYS68K1CPU-1 B/D. For multi-processing, each IRQ signal can be
Additionally, the SYS68K1CPU-1 B/D supports the ACFAIL, SYSRESET, * enabled/disabled via a jumper field.
SYSFAIL and SYSCLK signal (16 MHz). *
* Additionally, the SYS68K1CPU-1 B/D supports the ACFAIL, SYSRESET,
* SYSFAIL and SYSCLK signal (16 MHz).
TODO: *
- Finish 2 x ACIA6850, host and remote interface left, terminal works * TODO:
- Finish 1 x 68230 Motorola, Parallel Interface / Timer * - Finish 3 x ACIA6850, host and remote interface left, terminal works
- Connect Port B to a Centronics printer interface * - Finish 1 x 68230 Motorola, Parallel Interface / Timer as required by ROM
- Add 1 x Abort Switch * - Configure PIT to the Centronics device printer interface as
- Add configurable serial connector between ACIA:s and * supported by ROM (DONE)
- Real terminal emulator, ie rs232 "socket" * - Add 1 x Abort Switch
- Debug console * - Add 1 x Reset Switch
- Add VME bus driver * - Add 1 x Halt LED
* - Add a jumper field device as supported by PCB
****************************************************************************/ * - Add configurable serial connector between ACIA:s and
* - Real terminal emulator, ie rs232 "socket"
* - Debug console
* - Add VME bus driver
*
****************************************************************************/
#include "emu.h" #include "emu.h"
#include "bus/rs232/rs232.h" #include "bus/rs232/rs232.h"
@ -94,268 +99,382 @@ SYSFAIL and SYSCLK signal (16 MHz).
#include "machine/68230pit.h" #include "machine/68230pit.h"
#include "machine/6850acia.h" #include "machine/6850acia.h"
#include "machine/clock.h" #include "machine/clock.h"
#include "bus/centronics/ctronics.h"
#define LOG(x) /* x */
#define BAUDGEN_CLOCK XTAL_1_8432MHz #define BAUDGEN_CLOCK XTAL_1_8432MHz
/* /*
The baudrate on the Force68k CPU-1 to CPU-6 is generated by a * The baudrate on the Force68k CPU-1 to CPU-6 is generated by a
Motorola 14411 bitrate generator, the CPU-6 documents matches the circuits * Motorola 14411 bitrate generator, the CPU-6 documents matches the circuits
that I could find on the CPU-1 board. Here how I calculated the clock for * that I could find on the CPU-1 board. Here how I calculated the clock for
the factory settings. No need to add selectors until terminal.c supports * the factory settings. No need to add selectors until terminal.c supports
configurable baudrates. Fortunality CPU-1 was shipped with 9600N8! * configurable baudrates. Fortunality CPU-1 was shipped with 9600N8!
*
From the documents: * From the documents:
*
3 RS232C interfaces, strap selectable baud rate from 110-9600 or 600-19200 baud * 3 RS232C interfaces, strap selectable baud rate from 110-9600 or 600-19200 baud
*
Default Jumper Settings of B7: * Default Jumper Settings of B7:
-------------------------------- * --------------------------------
GND 10 - 11 RSA input on 14411 * GND 10 - 11 RSA input on 14411
F1 on 14411 1 - 20 Baud selector of the terminal port * F1 on 14411 1 - 20 Baud selector of the terminal port
F1 on 14411 3 - 18 Baud selector of the host port * F1 on 14411 3 - 18 Baud selector of the host port
F1 on 14411 5 - 16 Baud selector of the remote port * F1 on 14411 5 - 16 Baud selector of the remote port
*
The RSB input on the 14411 is kept high always so RSA=0, RSB=1 and a 1.8432MHz crystal * The RSB input on the 14411 is kept high always so RSA=0, RSB=1 and a 1.8432MHz crystal
generates 153600 on the F1 output pin which by default strapping is connected to all * generates 153600 on the F1 output pin which by default strapping is connected to all
three 6850 acias on the board. These can be strapped separatelly to speedup downloads. * three 6850 acias on the board. These can be strapped separatelly to speedup downloads.
*
The selectable outputs from 14411, F1-F16: * The selectable outputs from 14411, F1-F16:
X16 RSA=0,RSB=1: 153600, 115200, 76800, 57600, 38400, 28800, 19200, 9600, 4800, 3200, 2153.3, 1758.8, 1200, 921600, 1843000 * X16 RSA=0,RSB=1: 153600, 115200, 76800, 57600, 38400, 28800, 19200, 9600, 4800, 3200, 2153.3, 1758.8, 1200, 921600, 1843000
X64 RSA=1,RSB=1: 614400, 460800, 307200, 230400, 153600, 115200, 76800, 57600, 38400, 28800, 19200, 9600, 4800, 921600, 1843000 * X64 RSA=1,RSB=1: 614400, 460800, 307200, 230400, 153600, 115200, 76800, 57600, 38400, 28800, 19200, 9600, 4800, 921600, 1843000
*
However, the datasheet says baudrate is strapable for 110-9600 but the output is 153600 * However, the datasheet says baudrate is strapable for 110-9600 but the output is 153600
so the system rom MUST setup the acia to divide by 16 to generate the correct baudrate. * so the system rom MUST setup the acia to divide by 16 to generate the correct baudrate.
*
*/ */
#define ACIA_CLOCK (BAUDGEN_CLOCK / 12) #define ACIA_CLOCK (BAUDGEN_CLOCK / 12)
class force68k_state : public driver_device class force68k_state : public driver_device
{ {
public: public:
force68k_state(const machine_config &mconfig, device_type type, const char *tag) : force68k_state(const machine_config &mconfig, device_type type, const char *tag) :
driver_device(mconfig, type, tag), driver_device (mconfig, type, tag),
// m_rtc(*this, "rtc") m_maincpu (*this, "maincpu"),
m_maincpu(*this, "maincpu"), m_rtc (*this, "rtc"),
m_rtc(*this, "rtc"), m_pit (*this, "pit"),
m_pit(*this, "pit"), m_aciahost (*this, "aciahost"),
m_aciahost(*this, "aciahost"), m_aciaterm (*this, "aciaterm"),
m_aciaterm(*this, "aciaterm"), m_aciaremt (*this, "aciaremt"),
m_aciaremt(*this, "aciaremt") m_centronics (*this, "centronics")
{ , m_centronics_ack (0)
} , m_centronics_busy (0)
, m_centronics_perror (0)
, m_centronics_select (0)
{
}
DECLARE_READ16_MEMBER(bootvect_r); DECLARE_READ16_MEMBER (bootvect_r);
virtual void machine_start(); virtual void machine_start ();
DECLARE_WRITE_LINE_MEMBER(write_aciahost_clock); // clocks
DECLARE_WRITE_LINE_MEMBER(write_aciaterm_clock); DECLARE_WRITE_LINE_MEMBER (write_aciahost_clock);
DECLARE_WRITE_LINE_MEMBER(write_aciaremt_clock); DECLARE_WRITE_LINE_MEMBER (write_aciaterm_clock);
DECLARE_WRITE_LINE_MEMBER (write_aciaremt_clock);
// centronics printer interface
DECLARE_WRITE_LINE_MEMBER (centronics_ack_w);
DECLARE_WRITE_LINE_MEMBER (centronics_busy_w);
DECLARE_WRITE_LINE_MEMBER (centronics_perror_w);
DECLARE_WRITE_LINE_MEMBER (centronics_select_w);
protected:
private: private:
required_device<cpu_device> m_maincpu; required_device<cpu_device> m_maincpu;
required_device<mm58167_device> m_rtc; required_device<mm58167_device> m_rtc;
required_device<pit68230_device> m_pit; required_device<pit68230_device> m_pit;
required_device<acia6850_device> m_aciahost; required_device<acia6850_device> m_aciahost;
required_device<acia6850_device> m_aciaterm; required_device<acia6850_device> m_aciaterm;
required_device<acia6850_device> m_aciaremt; required_device<acia6850_device> m_aciaremt;
optional_device<centronics_device> m_centronics;
// Pointer to System ROMs needed by bootvect_r INT32 m_centronics_ack;
UINT16 *m_sysrom; INT32 m_centronics_busy;
INT32 m_centronics_perror;
INT32 m_centronics_select;
// Pointer to System ROMs needed by bootvect_r
UINT16 *m_sysrom;
}; };
static ADDRESS_MAP_START(force68k_mem, AS_PROGRAM, 16, force68k_state) static ADDRESS_MAP_START (force68k_mem, AS_PROGRAM, 16, force68k_state)
ADDRESS_MAP_UNMAP_HIGH ADDRESS_MAP_UNMAP_HIGH
AM_RANGE(0x000000, 0x000007) AM_ROM AM_READ(bootvect_r) /* Vectors mapped from System EPROM */ AM_RANGE (0x000000, 0x000007) AM_ROM AM_READ (bootvect_r) /* Vectors mapped from System EPROM */
AM_RANGE(0x000008, 0x01ffff) AM_RAM /* DRAM */ AM_RANGE (0x000008, 0x01ffff) AM_RAM /* DRAM */
AM_RANGE(0x080000, 0x09ffff) AM_ROM /* System EPROM Area */ AM_RANGE (0x080000, 0x09ffff) AM_ROM /* System EPROM Area */
// AM_RANGE(0x0a0000, 0x0bffff) AM_ROM /* User EPROM Area */ // AM_RANGE(0x0a0000, 0x0bffff) AM_ROM /* User EPROM Area */
AM_RANGE(0x0c0040, 0x0c0041) AM_DEVREADWRITE8("aciahost", acia6850_device, status_r, control_w, 0x00ff) AM_RANGE (0x0c0040, 0x0c0041) AM_DEVREADWRITE8 ("aciahost", acia6850_device, status_r, control_w, 0x00ff)
AM_RANGE(0x0c0042, 0x0c0043) AM_DEVREADWRITE8("aciahost", acia6850_device, data_r, data_w, 0x00ff) AM_RANGE (0x0c0042, 0x0c0043) AM_DEVREADWRITE8 ("aciahost", acia6850_device, data_r, data_w, 0x00ff)
AM_RANGE(0x0c0080, 0x0c0081) AM_DEVREADWRITE8("aciaterm", acia6850_device, status_r, control_w, 0xff00) AM_RANGE (0x0c0080, 0x0c0081) AM_DEVREADWRITE8 ("aciaterm", acia6850_device, status_r, control_w, 0xff00)
AM_RANGE(0x0c0082, 0x0c0083) AM_DEVREADWRITE8("aciaterm", acia6850_device, data_r, data_w, 0xff00) AM_RANGE (0x0c0082, 0x0c0083) AM_DEVREADWRITE8 ("aciaterm", acia6850_device, data_r, data_w, 0xff00)
AM_RANGE(0x0c0100, 0x0c0101) AM_DEVREADWRITE8("aciaremt", acia6850_device, status_r, control_w, 0x00ff) AM_RANGE (0x0c0100, 0x0c0101) AM_DEVREADWRITE8 ("aciaremt", acia6850_device, status_r, control_w, 0x00ff)
AM_RANGE(0x0c0102, 0x0c0103) AM_DEVREADWRITE8("aciaremt", acia6850_device, data_r, data_w, 0x00ff) AM_RANGE (0x0c0102, 0x0c0103) AM_DEVREADWRITE8 ("aciaremt", acia6850_device, data_r, data_w, 0x00ff)
AM_RANGE(0x0c0400, 0x0c042f) AM_DEVREADWRITE8("rtc", mm58167_device, read, write, 0x00ff) AM_RANGE (0x0c0400, 0x0c042f) AM_DEVREADWRITE8 ("rtc", mm58167_device, read, write, 0x00ff)
AM_RANGE(0x0e0000, 0x0e0035) AM_DEVREADWRITE8("pit", pit68230_device, data_r, data_w, 0x00ff) AM_RANGE (0x0e0000, 0x0e0035) AM_DEVREADWRITE8 ("pit", pit68230_device, read, write, 0x00ff)
// AM_RANGE(0x0e0200, 0x0e0380) AM_READWRITE(fpu_r, fpu_w) /* optional FPCP 68881 FPU interface */ // AM_RANGE(0x0e0200, 0x0e0380) AM_READWRITE(fpu_r, fpu_w) /* optional FPCP 68881 FPU interface */
// AM_RANGE(0x100000, 0xfeffff) /* VMEbus Rev B addresses (24 bits) */ // AM_RANGE(0x100000, 0xfeffff) /* VMEbus Rev B addresses (24 bits) */
// AM_RANGE(0xff0000, 0xffffff) /* VMEbus Rev B addresses (16 bits) */ // AM_RANGE(0xff0000, 0xffffff) /* VMEbus Rev B addresses (16 bits) */
ADDRESS_MAP_END ADDRESS_MAP_END
/* Input ports */ /* Input ports */
static INPUT_PORTS_START( force68k ) static INPUT_PORTS_START (force68k)
INPUT_PORTS_END INPUT_PORTS_END
void force68k_state::machine_start() /*
* Centronics support
*
* The system ROMs has support for a parallel printer interface but the signals are just routed to row A
* of the VME P2 connector so no on board Centronics connector is available but assumed to be added on a
* separate I/O board. After some detective work I found that the ROM works as follows:
*
* The 'PA' (Printer Attach) command issues a <cr> on Port A and sends a strobe on H2 it then loops over
* the select signal, bit 0 on Port B, and the ack signal on HS1, both to be non zero. The support is really
* flawed as the strobe signal goes high instead of low ( this might assume an inverting driver on the
* P2 board ) and the busy signal is not checked at all. Or I might have assumed it all wrong, but it now
* works with the generic centronics printer driver. Need the printer board documentation to improve further.
*
* When the 'PA' command is successful everything printed to screen is mirrored on the printer. Use the
* 'NOPA' command to stop mirroring. I had no printer ROMs so could not test it with a "real" printer.
*
* Force CPU-1 init sequence for MC68230 PIT
* -----------------------------------------
* 0801E6 0E0000 W 00 -> PGCR Mode 0 (uni8), H34 dis, H12 dis, H1234 HZ
* 0801E6 0E0002 W 00 -> PSRR PC4, PC5, H1S>H2S>H3S>H4S
* 0801E6 0E0004 W FF -> PADDR Port A all Outputs
* 0801E6 0E0006 W 00 -> PBDDR Port B all Inputs
* 0801EA 0E000C W 60 -> PACR Port A Mode 01, pin def, dbfr H1 data rec, H2 status/int, H2 output neg, H2S clrd
* 0801F0 0E000E W A0 -> PBCR Port B mode 1x, H4 output neg, H4S clrd, H3 int dis, H3 edg input, H3S set by assrt edg
* 0801F6 0E0000 W 30 -> PGCR H34 enable, H12enable
* 0801FC 0E000E W A8 -> PBCR +H4 asserted
* 08020A 0E000E W A0 -> PBCR +H4 negated
*
* Upon PA (Printer Attach) command enabling the Centronics printer mode
* ---------------------------------------------------------------------
* 081DB4 0E0011 W D0 -> PADR Data to Port A
* 081DB8 0E000D W 68 -> PACR H2 output asserted Centronics Strobe
* 081DC0 0E000D W 60 -> PACR H2 output negated
* 081DD0 0E0013 R 00 <- PBDR Port B polled for 01 (data) & 03 (mask)
*
*/
/* Centronics ACK handler
* The centronics ack signal is expected by the ROM to arrive at H1 input line
*/
WRITE_LINE_MEMBER (force68k_state::centronics_ack_w)
{ {
m_sysrom = (UINT16*)(memregion("maincpu")->base() + 0x080000); LOG (logerror ("centronics_ack_w(%d) %lld\n", state, m_maincpu->total_cycles ()));
m_centronics_ack = state;
m_pit->h1_set (state);
} }
READ16_MEMBER(force68k_state::bootvect_r) /* Centronics BUSY handler
{ * The centronics busy signal is not used by the ROM driver afaik
return m_sysrom[offset]; */
WRITE_LINE_MEMBER (force68k_state::centronics_busy_w){
LOG (logerror ("centronics_busy_w(%d) %lld\n", state, m_maincpu->total_cycles ()));
m_centronics_busy = state;
} }
WRITE_LINE_MEMBER(force68k_state::write_aciahost_clock) /* Centronics PERROR handler
{ * The centronics perror signal is not used by the ROM driver afaik
m_aciahost->write_txc(state); */
m_aciahost->write_rxc(state); WRITE_LINE_MEMBER (force68k_state::centronics_perror_w){
LOG (logerror ("centronics_perror_w(%d) %lld\n", state, m_maincpu->total_cycles ()));
m_centronics_perror = state;
} }
WRITE_LINE_MEMBER(force68k_state::write_aciaterm_clock) /* Centronics SELECT handler
{ * The centronics select signal is expected by the ROM on Port B bit 0
m_aciaterm->write_txc(state); */
m_aciaterm->write_rxc(state); WRITE_LINE_MEMBER (force68k_state::centronics_select_w){
LOG (logerror ("centronics_select_w(%d) %lld\n", state, m_maincpu->total_cycles ()));
m_centronics_select = state;
m_pit->portb_setbit (0, state);
} }
WRITE_LINE_MEMBER(force68k_state::write_aciaremt_clock) /* Start it up */
void force68k_state::machine_start ()
{ {
m_aciaremt->write_txc(state); LOG (logerror ("machine_start\n"));
m_aciaremt->write_rxc(state);
save_item (NAME (m_centronics_busy));
save_item (NAME (m_centronics_ack));
save_item (NAME (m_centronics_select));
save_item (NAME (m_centronics_perror));
/* Setup pointer to bootvector in ROM for bootvector handler bootvect_r */
m_sysrom = (UINT16*)(memregion ("maincpu")->base () + 0x080000);
} }
static MACHINE_CONFIG_START( fccpu1, force68k_state ) /* Boot vector handler, the PCB hardwires the first 8 bytes from 0x80000 to 0x0 */
/* basic machine hardware */ READ16_MEMBER (force68k_state::bootvect_r){
MCFG_CPU_ADD("maincpu", M68000, XTAL_16MHz / 2) return m_sysrom [offset];
MCFG_CPU_PROGRAM_MAP(force68k_mem) }
/* P3/Host Port config */ /*
MCFG_DEVICE_ADD("aciahost", ACIA6850, 0) * Serial port clock sources can all be driven by different outputs of the 14411
MCFG_DEVICE_ADD("aciahost_clock", CLOCK, ACIA_CLOCK) */
MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(force68k_state, write_aciahost_clock)) WRITE_LINE_MEMBER (force68k_state::write_aciahost_clock){
m_aciahost->write_txc (state);
m_aciahost->write_rxc (state);
}
/* P4/Terminal Port config */ WRITE_LINE_MEMBER (force68k_state::write_aciaterm_clock){
MCFG_DEVICE_ADD("aciaterm", ACIA6850, 0) m_aciaterm->write_txc (state);
m_aciaterm->write_rxc (state);
}
MCFG_ACIA6850_TXD_HANDLER(DEVWRITELINE("rs232trm", rs232_port_device, write_txd)) WRITE_LINE_MEMBER (force68k_state::write_aciaremt_clock){
MCFG_ACIA6850_RTS_HANDLER(DEVWRITELINE("rs232trm", rs232_port_device, write_rts)) m_aciaremt->write_txc (state);
m_aciaremt->write_rxc (state);
}
MCFG_RS232_PORT_ADD("rs232trm", default_rs232_devices, "terminal") /*
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("aciaterm", acia6850_device, write_rxd)) * Machine configuration
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("aciaterm", acia6850_device, write_cts)) */
static MACHINE_CONFIG_START (fccpu1, force68k_state)
/* basic machine hardware */
MCFG_CPU_ADD ("maincpu", M68000, XTAL_16MHz / 2)
MCFG_CPU_PROGRAM_MAP (force68k_mem)
MCFG_DEVICE_ADD("aciaterm_clock", CLOCK, ACIA_CLOCK) /* P3/Host Port config */
MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(force68k_state, write_aciaterm_clock)) MCFG_DEVICE_ADD ("aciahost", ACIA6850, 0)
MCFG_DEVICE_ADD ("aciahost_clock", CLOCK, ACIA_CLOCK)
MCFG_CLOCK_SIGNAL_HANDLER (WRITELINE (force68k_state, write_aciahost_clock))
/* P5/Remote Port config */ /* P4/Terminal Port config */
MCFG_DEVICE_ADD("aciaremt", ACIA6850, 0) MCFG_DEVICE_ADD ("aciaterm", ACIA6850, 0)
#define PRINTER 0 MCFG_ACIA6850_TXD_HANDLER (DEVWRITELINE ("rs232trm", rs232_port_device, write_txd))
#if PRINTER MCFG_ACIA6850_RTS_HANDLER (DEVWRITELINE ("rs232trm", rs232_port_device, write_rts))
MCFG_ACIA6850_TXD_HANDLER(DEVWRITELINE("rs232rmt", rs232_port_device, write_txd))
MCFG_ACIA6850_RTS_HANDLER(DEVWRITELINE("rs232rmt", rs232_port_device, write_rts))
MCFG_RS232_PORT_ADD("rs232rmt", default_rs232_devices, "printer") MCFG_RS232_PORT_ADD ("rs232trm", default_rs232_devices, "terminal")
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("aciaremt", acia6850_device, write_rxd)) MCFG_RS232_RXD_HANDLER (DEVWRITELINE ("aciaterm", acia6850_device, write_rxd))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("aciaremt", acia6850_device, write_cts)) MCFG_RS232_CTS_HANDLER (DEVWRITELINE ("aciaterm", acia6850_device, write_cts))
#endif
MCFG_DEVICE_ADD("aciaremt_clock", CLOCK, ACIA_CLOCK) MCFG_DEVICE_ADD ("aciaterm_clock", CLOCK, ACIA_CLOCK)
MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(force68k_state, write_aciaterm_clock)) MCFG_CLOCK_SIGNAL_HANDLER (WRITELINE (force68k_state, write_aciaterm_clock))
/* RTC Real Time Clock device */ /* P5/Remote Port config */
MCFG_DEVICE_ADD("rtc", MM58167, XTAL_32_768kHz) MCFG_DEVICE_ADD ("aciaremt", ACIA6850, 0)
/* PIT Parallel Interface and Timer device, assuming strapped for on board clock */ MCFG_DEVICE_ADD ("aciaremt_clock", CLOCK, ACIA_CLOCK)
MCFG_DEVICE_ADD("pit", PIT68230, XTAL_16MHz / 2) MCFG_CLOCK_SIGNAL_HANDLER (WRITELINE (force68k_state, write_aciaterm_clock))
/* RTC Real Time Clock device */
MCFG_DEVICE_ADD ("rtc", MM58167, XTAL_32_768kHz)
/* PIT Parallel Interface and Timer device, assuming strapped for on board clock */
MCFG_DEVICE_ADD ("pit", PIT68230, XTAL_16MHz / 2)
MCFG_PIT68230_PA_OUTPUT_CALLBACK (DEVWRITE8 ("cent_data_out", output_latch_device, write))
MCFG_PIT68230_H2_CALLBACK (DEVWRITELINE ("centronics", centronics_device, write_strobe))
// centronics
MCFG_CENTRONICS_ADD ("centronics", centronics_devices, "printer")
MCFG_CENTRONICS_ACK_HANDLER (WRITELINE (force68k_state, centronics_ack_w))
MCFG_CENTRONICS_BUSY_HANDLER (WRITELINE (force68k_state, centronics_busy_w))
MCFG_CENTRONICS_PERROR_HANDLER (WRITELINE (force68k_state, centronics_perror_w))
MCFG_CENTRONICS_SELECT_HANDLER (WRITELINE (force68k_state, centronics_select_w))
MCFG_CENTRONICS_OUTPUT_LATCH_ADD ("cent_data_out", "centronics")
MACHINE_CONFIG_END MACHINE_CONFIG_END
#if 0 #if 0 /*
* CPU-6 family is device and adressmap compatible with CPU-1 but with additions
static MACHINE_CONFIG_START( fccpu6, force68k_state ) * such as an optional 68881 FPU
MCFG_CPU_ADD("maincpu", M68000, XTAL_8MHz) /* Jumper B10 Mode B */ */
MCFG_CPU_PROGRAM_MAP(force68k_mem) static MACHINE_CONFIG_START (fccpu6, force68k_state)
MCFG_CPU_ADD ("maincpu", M68000, XTAL_8MHz) /* Jumper B10 Mode B */
MCFG_CPU_PROGRAM_MAP (force68k_mem)
MACHINE_CONFIG_END MACHINE_CONFIG_END
static MACHINE_CONFIG_START( fccpu6a, force68k_state ) static MACHINE_CONFIG_START (fccpu6a, force68k_state)
MCFG_CPU_ADD("maincpu", M68000, XTAL_12_5MHz) /* Jumper B10 Mode A */ MCFG_CPU_ADD ("maincpu", M68000, XTAL_12_5MHz) /* Jumper B10 Mode A */
MCFG_CPU_PROGRAM_MAP(force68k_mem) MCFG_CPU_PROGRAM_MAP (force68k_mem)
MACHINE_CONFIG_END MACHINE_CONFIG_END
static MACHINE_CONFIG_START( fccpu6v, force68k_state ) static MACHINE_CONFIG_START (fccpu6v, force68k_state)
MCFG_CPU_ADD("maincpu", M68010, XTAL_8MHz) /* Jumper B10 Mode B */ MCFG_CPU_ADD ("maincpu", M68010, XTAL_8MHz) /* Jumper B10 Mode B */
MCFG_CPU_PROGRAM_MAP(force68k_mem) MCFG_CPU_PROGRAM_MAP (force68k_mem)
MACHINE_CONFIG_END MACHINE_CONFIG_END
static MACHINE_CONFIG_START( fccpu6va, force68k_state ) static MACHINE_CONFIG_START (fccpu6va, force68k_state)
MCFG_CPU_ADD("maincpu", M68010, XTAL_12_5MHz) /* Jumper B10 Mode A */ MCFG_CPU_ADD ("maincpu", M68010, XTAL_12_5MHz) /* Jumper B10 Mode A */
MCFG_CPU_PROGRAM_MAP(force68k_mem) MCFG_CPU_PROGRAM_MAP (force68k_mem)
MACHINE_CONFIG_END MACHINE_CONFIG_END
static MACHINE_CONFIG_START( fccpu6vb, force68k_state ) static MACHINE_CONFIG_START (fccpu6vb, force68k_state)
MCFG_CPU_ADD("maincpu", M68010, XTAL_12_5MHz) /* Jumper B10 Mode A */ MCFG_CPU_ADD ("maincpu", M68010, XTAL_12_5MHz) /* Jumper B10 Mode A */
MCFG_CPU_PROGRAM_MAP(force68k_mem) MCFG_CPU_PROGRAM_MAP (force68k_mem)
MACHINE_CONFIG_END MACHINE_CONFIG_END
#endif #endif
/* ROM definitions */ /* ROM definitions */
ROM_START( fccpu1 ) ROM_START (fccpu1)
ROM_REGION(0x1000000, "maincpu", 0) ROM_REGION (0x1000000, "maincpu", 0)
ROM_LOAD16_BYTE( "fccpu1V1.0L.j8.bin", 0x080001, 0x2000, CRC(3ac6f08f) SHA1(502f6547b508d8732bd68bbbb2402d8c30fefc3b) ) ROM_LOAD16_BYTE ("fccpu1V1.0L.j8.bin", 0x080001, 0x2000, CRC (3ac6f08f) SHA1 (502f6547b508d8732bd68bbbb2402d8c30fefc3b))
ROM_LOAD16_BYTE( "fccpu1V1.0L.j9.bin", 0x080000, 0x2000, CRC(035315fb) SHA1(90dc44d9c25d28428233e6846da6edce2d69e440) ) ROM_LOAD16_BYTE ("fccpu1V1.0L.j9.bin", 0x080000, 0x2000, CRC (035315fb) SHA1 (90dc44d9c25d28428233e6846da6edce2d69e440))
/* COMMAND SUMMARY DESCRIPTION (From CPU-1B datasheet, ROMs were dumped
from a CPU-1 board so some features might be missing or different) /*
--------------------------------------------------------------------------- * System ROM terminal commands
BF <address1> <address2> <data> <CR> Block Fill memory - from addr1 through addr2 with data *
BM <address1> <address2> <address 3> <CR> Block Move - move from addr1 through addr2to addr3 * COMMAND SUMMARY DESCRIPTION (From CPU-1B datasheet, ROMs were dumped
BR [<address> [; <count>] ... ] <CR> Set/display Breakpoint * from a CPU-1 board so some features might be missing or different)
BS <address1> <address2> <data> <CR> Block Search - search addr1 through addr2 for data * ---------------------------------------------------------------------------
BT <address1> <address2> <CR> Block Test of memory * BF <address1> <address2> <data> <CR> Block Fill memory - from addr1 through addr2 with data
DC <expression> <CR> Data Conversion * BM <address1> <address2> <address 3> <CR> Block Move - move from addr1 through addr2to addr3
DF <CR> Display Formatted registers * BR [<address> [; <count>] ... ] <CR> Set/display Breakpoint
DU [n] <address1> <address2>[<string>] <CR> Dump memory to object file * BS <address1> <address2> <data> <CR> Block Search - search addr1 through addr2 for data
GO [<address] <CR> Execute program * BT <address1> <address2> <CR> Block Test of memory
GD [<address] <CR> Go Direct * DC <expression> <CR> Data Conversion
GT <address> <CR> Exec prog: temporary breakpoint * DF <CR> Display Formatted registers
HE<CR> Help; display monitor commands * DU [n] <address1> <address2>[<string>] <CR> Dump memory to object file
LO [n] [;<options] <CR> Load Object file * GO [<address] <CR> Execute program
MD <address> [<count?? <CR> Memory Display * GD [<address] <CR> Go Direct
MM <address> [<data?? [;<options?? <CR> Memory Modify * GT <address> <CR> Exec prog: temporary breakpoint
MS <address> <data1 > <data2> < ... <CR> Memory Set - starting at addr with data 1. data 2 ... * HE<CR> Help; display monitor commands
NOBR [<address> ... ] <CR> Remove Breakpoint * LO [n] [;<options] <CR> Load Object file
NOPA <CR> Printer Detach (Centronics on PIT/P2) * MD <address> [<count» <CR> Memory Display
OF <CR> Offset * MM <address> [<data» [;<options» <CR> Memory Modify
PA <CR> Printer Attach (Centronics on PIT/P2) * MS <address> <data1 > <data2> < ... <CR> Memory Set - starting at addr with data 1. data 2 ...
PF[n] <CR> Set/display Port Format * NOBR [<address> ... ] <CR> Remove Breakpoint
RM <CR> Register Modify * NOPA <CR> Printer Detach (Centronics on PIT/P2)
TM [<exit character?? <CR> Transparent Mode * OF <CR> Offset
TR [<count] <CR> Trace * PA <CR> Printer Attach (Centronics on PIT/P2)
TT <address> <CR> Trace: temporary breakpoint * PF[n] <CR> Set/display Port Format
VE [n] [<string] <CR> Verify memory/object file * RM <CR> Register Modify
---------------------------------------------------------------------------- * TM [<exit character» <CR> Transparent Mode
.AO - .A7 [<expression] <CR> Display/set address register * TR [<count] <CR> Trace
.00 - .07 [<expression] <CR> Display/set data register * TT <address> <CR> Trace: temporary breakpoint
.RO - .R6 [<expression] <CR> Display/set offset register * VE [n] [<string] <CR> Verify memory/object file
.PC [<expression] <CR> Display/set program counter * ----------------------------------------------------------------------------
.SR [<expression] <CR> Display/set status register * .AO - .A7 [<expression] <CR> Display/set address register
.SS [<expression] <CR> Display/set supervisor stack * .00 - .07 [<expression] <CR> Display/set data register
.US [<expression] <CR> Display/set user stack * .RO - .R6 [<expression] <CR> Display/set offset register
---------------------------------------------------------------------------- * .PC [<expression] <CR> Display/set program counter
MD <address> [<count>]; D1 <CR> Disassemble memory location * .SR [<expression] <CR> Display/set status register
MM <address>; DI <CR> Disassemble/Assemble memory location * .SS [<expression] <CR> Display/set supervisor stack
---------------------------------------------------------------------------- * .US [<expression] <CR> Display/set user stack
*/ * ----------------------------------------------------------------------------
* MD <address> [<count>]; D1 <CR> Disassemble memory location
* MM <address>; DI <CR> Disassemble/Assemble memory location
* ----------------------------------------------------------------------------
*/
ROM_END ROM_END
/*
* CPU-6 ROMs were generally based om VMEPROM which contained the PDOS RTOS from Eyring Research.
* I don't have these but if anyone can dump them and send to me I can verify that they work as expected.
*/
#if 0 #if 0
ROM_START( fccpu6 ) ROM_START (fccpu6)
ROM_REGION(0x1000000, "maincpu", 0) ROM_REGION (0x1000000, "maincpu", 0)
ROM_END ROM_END
ROM_START( fccpu6a ) ROM_START (fccpu6a)
ROM_REGION(0x1000000, "maincpu", 0) ROM_REGION (0x1000000, "maincpu", 0)
ROM_END ROM_END
ROM_START( fccpu6v ) ROM_START (fccpu6v)
ROM_REGION(0x1000000, "maincpu", 0) ROM_REGION (0x1000000, "maincpu", 0)
ROM_END ROM_END
ROM_START( fccpu6va ) ROM_START (fccpu6va)
ROM_REGION(0x1000000, "maincpu", 0) ROM_REGION (0x1000000, "maincpu", 0)
ROM_END ROM_END
ROM_START( fccpu6vb ) ROM_START (fccpu6vb)
ROM_REGION(0x1000000, "maincpu", 0) ROM_REGION (0x1000000, "maincpu", 0)
ROM_END ROM_END
#endif #endif