src/mess/drivers/pipbug.c
| r15196 | r15197 | |
| 3 | 3 | PIPBUG |
| 4 | 4 | |
| 5 | 5 | 08/04/2010 Skeleton driver. |
| 6 | 16/05/2012 Connected to serial terminal.. working |
| 6 | 7 | |
| 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 | |
| 7 | 19 | PIPBUG isn't a computer; it is a the name of the bios used |
| 8 | 20 | in a number of small 2650-based computers from 1976 to 1978. |
| 9 | 21 | 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. |
| 11 | 23 | |
| 12 | 24 | The sole means of communication is via a serial terminal. |
| 13 | 25 | PIPBUG uses the SENSE and FLAG pins as serial lines, thus |
| r15196 | r15197 | |
| 16 | 28 | The Baby 2650 (featured in Electronics Australia magazine in |
| 17 | 29 | March 1977) has 256 bytes of RAM. |
| 18 | 30 | |
| 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). |
| 24 | 31 | |
| 25 | 32 | ****************************************************************************/ |
| 26 | 33 | |
| 27 | 34 | #include "emu.h" |
| 28 | 35 | #include "cpu/s2650/s2650.h" |
| 36 | #include "machine/terminal.h" |
| 29 | 37 | |
| 30 | 38 | |
| 31 | 39 | class pipbug_state : public driver_device |
| 32 | 40 | { |
| 33 | 41 | public: |
| 34 | 42 | 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) { } |
| 36 | 45 | |
| 37 | 46 | 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; |
| 38 | 50 | }; |
| 39 | 51 | |
| 40 | 52 | WRITE8_MEMBER( pipbug_state::pipbug_ctrl_w ) |
| r15196 | r15197 | |
| 42 | 54 | // 0x80 is written here - not connected in the baby 2650 |
| 43 | 55 | } |
| 44 | 56 | |
| 57 | READ8_MEMBER( pipbug_state::pipbug_serial_r ) |
| 58 | { |
| 59 | return m_terminal->tx_r(); |
| 60 | } |
| 61 | |
| 62 | WRITE8_MEMBER( pipbug_state::pipbug_serial_w ) |
| 63 | { |
| 64 | m_terminal->rx_w(data); |
| 65 | } |
| 66 | |
| 45 | 67 | static ADDRESS_MAP_START(pipbug_mem, AS_PROGRAM, 8, pipbug_state) |
| 46 | 68 | ADDRESS_MAP_UNMAP_HIGH |
| 47 | 69 | AM_RANGE( 0x0000, 0x03ff) AM_ROM |
| r15196 | r15197 | |
| 51 | 73 | static ADDRESS_MAP_START(pipbug_io, AS_IO, 8, pipbug_state) |
| 52 | 74 | ADDRESS_MAP_UNMAP_HIGH |
| 53 | 75 | 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) |
| 55 | 77 | ADDRESS_MAP_END |
| 56 | 78 | |
| 57 | 79 | /* Input ports */ |
| 58 | 80 | static INPUT_PORTS_START( pipbug ) |
| 59 | 81 | INPUT_PORTS_END |
| 60 | 82 | |
| 61 | | |
| 62 | | static MACHINE_RESET(pipbug) |
| 83 | static const serial_terminal_interface terminal_intf = |
| 63 | 84 | { |
| 64 | | } |
| 85 | DEVCB_NULL |
| 86 | }; |
| 65 | 87 | |
| 66 | | static VIDEO_START( pipbug ) |
| 67 | | { |
| 68 | | } |
| 69 | | |
| 70 | | static SCREEN_UPDATE_IND16( pipbug ) |
| 71 | | { |
| 72 | | return 0; |
| 73 | | } |
| 74 | | |
| 75 | 88 | static MACHINE_CONFIG_START( pipbug, pipbug_state ) |
| 76 | 89 | /* basic machine hardware */ |
| 77 | 90 | MCFG_CPU_ADD("maincpu",S2650, XTAL_1MHz) |
| 78 | 91 | MCFG_CPU_PROGRAM_MAP(pipbug_mem) |
| 79 | 92 | MCFG_CPU_IO_MAP(pipbug_io) |
| 80 | 93 | |
| 81 | | MCFG_MACHINE_RESET(pipbug) |
| 82 | | |
| 83 | 94 | /* 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) |
| 95 | 96 | MACHINE_CONFIG_END |
| 96 | 97 | |
| 97 | 98 | /* ROM definition */ |
| r15196 | r15197 | |
| 103 | 104 | /* Driver */ |
| 104 | 105 | |
| 105 | 106 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 106 | | COMP( 1979, pipbug, 0, 0, pipbug, pipbug, 0, "Signetics", "PIPBUG", GAME_NOT_WORKING | GAME_NO_SOUND_HW ) |
| 107 | COMP( 1979, pipbug, 0, 0, pipbug, pipbug, 0, "Signetics", "PIPBUG", GAME_NO_SOUND_HW ) |
| 107 | 108 | |