trunk/src/emu/machine/at_keybc.c
| r249058 | r249059 | |
| 24 | 24 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_READ( p1_r) |
| 25 | 25 | AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_READWRITE(p2_r, p2_w) |
| 26 | 26 | ADDRESS_MAP_END |
| 27 | |
| 28 | static INPUT_PORTS_START( at_keybc ) |
| 29 | PORT_START("DSW") |
| 30 | PORT_BIT( 0xbf, 0xbf, IPT_UNUSED ) |
| 31 | PORT_DIPNAME( 0x40, 0x40, "Display switch") |
| 32 | PORT_DIPSETTING( 0x40, "Monochrome adapter" ) |
| 33 | PORT_DIPSETTING( 0x00, "Color/Graphics adapter" ) |
| 34 | INPUT_PORTS_END |
| 35 | |
| 27 | 36 | // machine fragment |
| 28 | 37 | static MACHINE_CONFIG_FRAGMENT( at_keybc ) |
| 29 | 38 | MCFG_CPU_ADD("at_keybc", I8042, DERIVED_CLOCK(1,1)) |
| r249058 | r249059 | |
| 72 | 81 | } |
| 73 | 82 | |
| 74 | 83 | //------------------------------------------------- |
| 84 | // input_ports - device-specific input ports |
| 85 | //------------------------------------------------- |
| 86 | |
| 87 | ioport_constructor at_keyboard_controller_device::device_input_ports() const |
| 88 | { |
| 89 | return INPUT_PORTS_NAME( at_keybc ); |
| 90 | } |
| 91 | |
| 92 | //------------------------------------------------- |
| 75 | 93 | // machine_config_additions - return a pointer to |
| 76 | 94 | // the device's machine fragment |
| 77 | 95 | //------------------------------------------------- |
| r249058 | r249059 | |
| 139 | 157 | */ |
| 140 | 158 | READ8_MEMBER( at_keyboard_controller_device::p1_r ) |
| 141 | 159 | { |
| 142 | | return 0xbf; |
| 160 | return ioport("DSW")->read(); |
| 143 | 161 | } |
| 144 | 162 | |
| 145 | 163 | READ8_MEMBER( at_keyboard_controller_device::p2_r ) |
trunk/src/mess/drivers/at.c
| r249058 | r249059 | |
| 264 | 264 | |
| 265 | 265 | |
| 266 | 266 | static INPUT_PORTS_START( atcga ) |
| 267 | | PORT_START("DSW0") |
| 268 | | PORT_DIPNAME( 0xc0, 0x40, "Number of floppy drives") |
| 269 | | PORT_DIPSETTING( 0x00, "1" ) |
| 270 | | PORT_DIPSETTING( 0x40, "2" ) |
| 271 | | PORT_DIPSETTING( 0x80, "3" ) |
| 272 | | PORT_DIPSETTING( 0xc0, "4" ) |
| 273 | | PORT_DIPNAME( 0x30, 0x00, "Graphics adapter") |
| 274 | | PORT_DIPSETTING( 0x00, "EGA/VGA" ) |
| 275 | | PORT_DIPSETTING( 0x10, "Color 40x25" ) |
| 276 | | PORT_DIPSETTING( 0x20, "Color 80x25" ) |
| 277 | | PORT_DIPSETTING( 0x30, "Monochrome" ) |
| 278 | | PORT_DIPNAME( 0x0c, 0x0c, "RAM banks") |
| 279 | | PORT_DIPSETTING( 0x00, "1 - 16 64 256K" ) |
| 280 | | PORT_DIPSETTING( 0x04, "2 - 32 128 512K" ) |
| 281 | | PORT_DIPSETTING( 0x08, "3 - 48 192 576K" ) |
| 282 | | PORT_DIPSETTING( 0x0c, "4 - 64 256 640K" ) |
| 283 | | PORT_DIPNAME( 0x02, 0x00, "80387 installed") |
| 284 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 285 | | PORT_DIPSETTING( 0x02, DEF_STR( Yes ) ) |
| 286 | | PORT_DIPNAME( 0x01, 0x01, "Floppy installed") |
| 287 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 288 | | PORT_DIPSETTING( 0x01, DEF_STR( Yes ) ) |
| 289 | 267 | INPUT_PORTS_END |
| 290 | 268 | |
| 291 | 269 | static INPUT_PORTS_START( atvga ) |
| r249058 | r249059 | |
| 302 | 280 | PORT_DIPNAME( 0x01, 0x01, "VGA 4") |
| 303 | 281 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 304 | 282 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 305 | | |
| 306 | | PORT_START("DSW0") |
| 307 | | PORT_DIPNAME( 0xc0, 0x40, "Number of floppy drives") |
| 308 | | PORT_DIPSETTING( 0x00, "1" ) |
| 309 | | PORT_DIPSETTING( 0x40, "2" ) |
| 310 | | PORT_DIPSETTING( 0x80, "3" ) |
| 311 | | PORT_DIPSETTING( 0xc0, "4" ) |
| 312 | | PORT_DIPNAME( 0x30, 0x00, "Graphics adapter") |
| 313 | | PORT_DIPSETTING( 0x00, "EGA/VGA" ) |
| 314 | | PORT_DIPSETTING( 0x10, "Color 40x25" ) |
| 315 | | PORT_DIPSETTING( 0x20, "Color 80x25" ) |
| 316 | | PORT_DIPSETTING( 0x30, "Monochrome" ) |
| 317 | | PORT_DIPNAME( 0x0c, 0x0c, "RAM banks") |
| 318 | | PORT_DIPSETTING( 0x00, "1 - 16 64 256K" ) |
| 319 | | PORT_DIPSETTING( 0x04, "2 - 32 128 512K" ) |
| 320 | | PORT_DIPSETTING( 0x08, "3 - 48 192 576K" ) |
| 321 | | PORT_DIPSETTING( 0x0c, "4 - 64 256 640K" ) |
| 322 | | PORT_DIPNAME( 0x02, 0x00, "80387 installed") |
| 323 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 324 | | PORT_DIPSETTING( 0x02, DEF_STR( Yes ) ) |
| 325 | | PORT_DIPNAME( 0x01, 0x01, "Floppy installed") |
| 326 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 327 | | PORT_DIPSETTING( 0x01, DEF_STR( Yes ) ) |
| 328 | 283 | INPUT_PORTS_END |
| 329 | 284 | |
| 330 | 285 | WRITE_LINE_MEMBER( at_state::at_mc146818_irq ) |
trunk/src/mess/drivers/besta.c
| r249058 | r249059 | |
| 10 | 10 | |
| 11 | 11 | #include "emu.h" |
| 12 | 12 | #include "cpu/m68000/m68000.h" |
| 13 | | #include "machine/68230pit.h" |
| 14 | 13 | #include "machine/terminal.h" |
| 15 | 14 | |
| 16 | 15 | #define VERBOSE_DBG 1 /* general debug messages */ |
| r249058 | r249059 | |
| 33 | 32 | besta_state(const machine_config &mconfig, device_type type, const char *tag) |
| 34 | 33 | : driver_device(mconfig, type, tag), |
| 35 | 34 | m_maincpu(*this, "maincpu"), |
| 36 | | m_pit1 (*this, "pit1"), |
| 37 | | m_pit2 (*this, "pit2"), |
| 38 | 35 | m_terminal(*this, TERMINAL_TAG), |
| 39 | 36 | m_p_ram(*this, "p_ram") |
| 40 | 37 | { |
| r249058 | r249059 | |
| 47 | 44 | UINT8 m_mpcc_regs[32]; |
| 48 | 45 | |
| 49 | 46 | required_device<cpu_device> m_maincpu; |
| 50 | | required_device<pit68230_device> m_pit1; |
| 51 | | required_device<pit68230_device> m_pit2; |
| 52 | 47 | virtual void machine_reset(); |
| 53 | 48 | |
| 54 | 49 | required_device<generic_terminal_device> m_terminal; |
| r249058 | r249059 | |
| 101 | 96 | |
| 102 | 97 | static ADDRESS_MAP_START(besta_mem, AS_PROGRAM, 32, besta_state) |
| 103 | 98 | AM_RANGE(0x00000000, 0x001fffff) AM_RAM AM_SHARE("p_ram") // local bus DRAM, 4MB |
| 104 | | // AM_RANGE(0x08010000, 0x08011fff) AM_RAM // unknown -- accessed by cp31dssp |
| 105 | | // AM_RANGE(0xfca03500, 0xfca0350f) AM_READWRITE8(iscsi_reg_r, iscsi_reg_w, 0xffffffff) |
| 106 | | AM_RANGE(0xff000000, 0xff00ffff) AM_ROM AM_REGION("user1", 0) // actual mapping is up to 0xff03ffff |
| 99 | // AM_RANGE(0x08010000, 0x08011fff) AM_RAM // unknown -- accessed by cp31dssp |
| 100 | AM_RANGE(0xff000000, 0xff00ffff) AM_ROM AM_REGION("user1",0) // actual mapping is up to 0xff03ffff |
| 107 | 101 | AM_RANGE(0xff040000, 0xff07ffff) AM_RAM // onboard SRAM |
| 108 | | // AM_RANGE(0xff800000, 0xff80001f) AM_DEVREADWRITE8("mpcc", mpcc68561_t, reg_r, reg_w, 0xffffffff) |
| 109 | | AM_RANGE(0xff800000, 0xff80001f) AM_READWRITE8(mpcc_reg_r, mpcc_reg_w, 0xffffffff) // console |
| 110 | | AM_RANGE(0xff800200, 0xff800237) AM_DEVREADWRITE8 ("pit2", pit68230_device, read, write, 0xffffffff) |
| 111 | | // AM_RANGE(0xff800400, 0xff800xxx) // ??? -- shows up in cp31dssp log |
| 112 | | // AM_RANGE(0xff800800, 0xff800xxx) // 68153 BIM |
| 113 | | // AM_RANGE(0xff800a00, 0xff800xxx) // 62421 RTC |
| 114 | | AM_RANGE(0xff800c00, 0xff800c37) AM_DEVREADWRITE8 ("pit1", pit68230_device, read, write, 0xffffffff) |
| 115 | | // AM_RANGE(0xff800e00, 0xff800xxx) // PIT3? |
| 102 | // 68561 MPCC (console) |
| 103 | // AM_RANGE(0xff800000, 0xff80001f) AM_DEVREADWRITE8("mpcc", mpcc68561_t, reg_r, reg_w, 0xffffffff) |
| 104 | AM_RANGE(0xff800000, 0xff80001f) AM_READWRITE8(mpcc_reg_r, mpcc_reg_w, 0xffffffff) |
| 105 | // AM_RANGE(0xff800200, 0xff800xxx) // 68230 PIT2 |
| 106 | // AM_RANGE(0xff800400, 0xff800xxx) // ??? -- shows up in cp31dssp log |
| 107 | // AM_RANGE(0xff800800, 0xff800xxx) // BIM |
| 108 | // AM_RANGE(0xff800a00, 0xff800xxx) // 62421 RTC |
| 109 | // AM_RANGE(0xff800c00, 0xff800xxx) // 68230 PIT |
| 116 | 110 | ADDRESS_MAP_END |
| 117 | 111 | |
| 118 | 112 | /* Input ports */ |
| r249058 | r249059 | |
| 137 | 131 | MCFG_CPU_ADD("maincpu", M68030, 2*16670000) |
| 138 | 132 | MCFG_CPU_PROGRAM_MAP(besta_mem) |
| 139 | 133 | |
| 140 | | MCFG_DEVICE_ADD ("pit1", PIT68230, 16670000 / 2) // XXX verify clock |
| 141 | | |
| 142 | | MCFG_DEVICE_ADD ("pit2", PIT68230, 16670000 / 2) // XXX verify clock |
| 143 | | |
| 144 | 134 | MCFG_DEVICE_ADD(TERMINAL_TAG, GENERIC_TERMINAL, 0) |
| 145 | 135 | MCFG_GENERIC_TERMINAL_KEYBOARD_CB(WRITE8(besta_state, kbd_put)) |
| 146 | 136 | MACHINE_CONFIG_END |
| r249058 | r249059 | |
| 161 | 151 | /* Driver */ |
| 162 | 152 | |
| 163 | 153 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 164 | | COMP( 1988, besta88, 0, 0, besta, besta, driver_device, 0, "Sapsan", "Besta-88", MACHINE_NOT_WORKING | MACHINE_NO_SOUND_HW) |
| 154 | COMP( 1988, besta88, 0, 0, besta, besta, driver_device, 0, "Sapsan", "Besta-88", MACHINE_NOT_WORKING | MACHINE_NO_SOUND) |