Previous 15994 Revisions Next

r15197 Wednesday 16th May, 2012 at 12:08:25 UTC by Robbbert
PIPBUG - connected to serial terminal, marked as WORKING [Robbbert]
[src/mess/drivers]pipbug.c

src/mess/drivers/pipbug.c
r15196r15197
33        PIPBUG
44
55        08/04/2010 Skeleton driver.
6        16/05/2012 Connected to serial terminal.. working
67
8        All input must be in uppercase.
9
10        Commands:
11        A — See and alter memory
12        B — Set breakpoint (2 permitted)
13        C — Clear breakpoint
14        D — Dump memory to paper tape
15        G — Go to address, run
16        L — Load memory from paper tape
17        S — See and alter registers
18
719        PIPBUG isn't a computer; it is a the name of the bios used
820        in a number of small 2650-based computers from 1976 to 1978.
921        Examples include Baby 2650, Eurocard 2650, etc., plus Signetics
10        own PC1001 and PC1500 systems. PIPBUG was written by Signetics.
22        own PC1001, PC1500, and KT9500 systems. PIPBUG was written by Signetics.
1123
1224        The sole means of communication is via a serial terminal.
1325        PIPBUG uses the SENSE and FLAG pins as serial lines, thus
r15196r15197
1628        The Baby 2650 (featured in Electronics Australia magazine in
1729        March 1977) has 256 bytes of RAM.
1830
19        TODO
20        - Connect to a terminal when MESS has the capability of a
21             generic serial terminal.
22        - After that, remove all the current video code (only there
23             currently to prevent a crash).
2431
2532****************************************************************************/
2633
2734#include "emu.h"
2835#include "cpu/s2650/s2650.h"
36#include "machine/terminal.h"
2937
3038
3139class pipbug_state : public driver_device
3240{
3341public:
3442   pipbug_state(const machine_config &mconfig, device_type type, const char *tag)
35      : driver_device(mconfig, type, tag) { }
43      : driver_device(mconfig, type, tag),
44   m_terminal(*this, TERMINAL_TAG) { }
3645
3746   DECLARE_WRITE8_MEMBER(pipbug_ctrl_w);
47   DECLARE_READ8_MEMBER(pipbug_serial_r);
48   DECLARE_WRITE8_MEMBER(pipbug_serial_w);
49   required_device<serial_terminal_device> m_terminal;
3850};
3951
4052WRITE8_MEMBER( pipbug_state::pipbug_ctrl_w )
r15196r15197
4254// 0x80 is written here - not connected in the baby 2650
4355}
4456
57READ8_MEMBER( pipbug_state::pipbug_serial_r )
58{
59   return m_terminal->tx_r();
60}
61
62WRITE8_MEMBER( pipbug_state::pipbug_serial_w )
63{
64   m_terminal->rx_w(data);
65}
66
4567static ADDRESS_MAP_START(pipbug_mem, AS_PROGRAM, 8, pipbug_state)
4668   ADDRESS_MAP_UNMAP_HIGH
4769   AM_RANGE( 0x0000, 0x03ff) AM_ROM
r15196r15197
5173static ADDRESS_MAP_START(pipbug_io, AS_IO, 8, pipbug_state)
5274   ADDRESS_MAP_UNMAP_HIGH
5375   AM_RANGE(S2650_CTRL_PORT, S2650_CTRL_PORT) AM_WRITE(pipbug_ctrl_w)
54   //AM_RANGE(S2650_SENSE_PORT, S2650_FO_PORT) AM_READWRITE(pipbug_serial_in,pipbug_serial_out)
76   AM_RANGE(S2650_SENSE_PORT, S2650_FO_PORT) AM_READWRITE(pipbug_serial_r,pipbug_serial_w)
5577ADDRESS_MAP_END
5678
5779/* Input ports */
5880static INPUT_PORTS_START( pipbug )
5981INPUT_PORTS_END
6082
61
62static MACHINE_RESET(pipbug)
83static const serial_terminal_interface terminal_intf =
6384{
64}
85   DEVCB_NULL
86};
6587
66static VIDEO_START( pipbug )
67{
68}
69
70static SCREEN_UPDATE_IND16( pipbug )
71{
72   return 0;
73}
74
7588static MACHINE_CONFIG_START( pipbug, pipbug_state )
7689   /* basic machine hardware */
7790   MCFG_CPU_ADD("maincpu",S2650, XTAL_1MHz)
7891   MCFG_CPU_PROGRAM_MAP(pipbug_mem)
7992   MCFG_CPU_IO_MAP(pipbug_io)
8093
81   MCFG_MACHINE_RESET(pipbug)
82
8394   /* video hardware */
84   MCFG_SCREEN_ADD("screen", RASTER)
85   MCFG_SCREEN_REFRESH_RATE(50)
86   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
87   MCFG_SCREEN_SIZE(640, 480)
88   MCFG_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1)
89   MCFG_SCREEN_UPDATE_STATIC(pipbug)
90
91   MCFG_PALETTE_LENGTH(2)
92   MCFG_PALETTE_INIT(black_and_white)
93
94   MCFG_VIDEO_START(pipbug)
95   MCFG_SERIAL_TERMINAL_ADD(TERMINAL_TAG, terminal_intf, 110)
9596MACHINE_CONFIG_END
9697
9798/* ROM definition */
r15196r15197
103104/* Driver */
104105
105106/*    YEAR  NAME    PARENT  COMPAT   MACHINE    INPUT    INIT    COMPANY   FULLNAME       FLAGS */
106COMP( 1979, pipbug,  0,       0,     pipbug,    pipbug,    0,  "Signetics", "PIPBUG", GAME_NOT_WORKING | GAME_NO_SOUND_HW )
107COMP( 1979, pipbug,  0,       0,     pipbug,    pipbug,    0,  "Signetics", "PIPBUG", GAME_NO_SOUND_HW )
107108

Previous 15994 Revisions Next


© 1998-2018 The MESS Team