src/mess/drivers/homelab.c
| r15479 | r15480 | |
| 13 | 13 | sync pulse. |
| 14 | 14 | |
| 15 | 15 | ToDO: |
| 16 | | - Devices, speaker? |
| 17 | 16 | - homelab2 - No cursor; Can't press same key twice in a row |
| 17 | - homelab3 etc - sound, cassout. Need a dump of the TM188 prom. |
| 18 | 18 | - Brailab4 - had to patch, to stop stack getting wiped out. |
| 19 | | currently reads keys and outputs noise. |
| 19 | currently reads keys and outputs noise. Needs |
| 20 | unknown speech device and maybe other devices. |
| 21 | Need a schematic. |
| 22 | - Z80PIO - expansion only, doesn't do anything in the |
| 23 | machine. /CE connects to A6, A/B = A0, C/D = A1. |
| 24 | The bios never talks to it. Not fitted to homelab2. |
| 25 | Official port numbers are 3C-3F. |
| 20 | 26 | |
| 21 | | |
| 22 | 27 | ****************************************************************************/ |
| 23 | 28 | |
| 24 | 29 | #include "emu.h" |
| 25 | 30 | #include "cpu/z80/z80.h" |
| 26 | 31 | #include "sound/speaker.h" |
| 32 | #include "sound/wave.h" |
| 33 | #include "imagedev/cassette.h" |
| 27 | 34 | |
| 28 | 35 | |
| 29 | 36 | //#define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| r15479 | r15480 | |
| 37 | 44 | : driver_device(mconfig, type, tag), |
| 38 | 45 | m_maincpu(*this, "maincpu"), |
| 39 | 46 | m_speaker(*this, SPEAKER_TAG), |
| 47 | m_cass(*this, CASSETTE_TAG), |
| 40 | 48 | m_p_videoram(*this, "videoram"){ } |
| 41 | 49 | |
| 42 | | DECLARE_READ8_MEMBER( key_r ); |
| 43 | | DECLARE_WRITE8_MEMBER( key_w ); |
| 44 | | DECLARE_READ8_MEMBER( io_r ); |
| 45 | | DECLARE_WRITE8_MEMBER( io_w ); |
| 50 | DECLARE_READ8_MEMBER(key_r); |
| 51 | DECLARE_READ8_MEMBER(exxx_r); |
| 52 | DECLARE_READ8_MEMBER(io_r); |
| 53 | DECLARE_WRITE8_MEMBER(io_w); |
| 54 | DECLARE_CUSTOM_INPUT_MEMBER(cass_r); |
| 46 | 55 | const UINT8 *m_p_chargen; |
| 47 | 56 | //virtual void machine_reset(); |
| 48 | 57 | //virtual void machine_start(); |
| 49 | 58 | virtual void video_start(); |
| 50 | 59 | required_device<cpu_device> m_maincpu; |
| 51 | 60 | optional_device<device_t> m_speaker; |
| 61 | optional_device<cassette_image_device> m_cass; |
| 52 | 62 | optional_shared_ptr<const UINT8> m_p_videoram; |
| 53 | 63 | private: |
| 54 | 64 | }; |
| 55 | 65 | |
| 56 | 66 | |
| 57 | | WRITE8_MEMBER( homelab_state::key_w ) |
| 58 | | { |
| 59 | | // outputs the ascii value of the key pressed to offset 0x400 |
| 60 | | } |
| 61 | | |
| 62 | 67 | READ8_MEMBER( homelab_state::key_r ) // offset 27F-2FE |
| 63 | 68 | { |
| 64 | 69 | UINT8 i,data = 0xff; |
| r15479 | r15480 | |
| 82 | 87 | } |
| 83 | 88 | |
| 84 | 89 | |
| 85 | | // this could be some sort of speech device, rather than a speaker |
| 86 | 90 | WRITE8_MEMBER( homelab_state::io_w ) |
| 87 | 91 | { |
| 88 | | speaker_level_w(m_speaker, BIT(offset, 7) ); |
| 92 | bool state = BIT(offset, 7); |
| 93 | speaker_level_w(m_speaker, state ); |
| 94 | m_cass->output(state ? -1.0 : +1.0); |
| 89 | 95 | } |
| 90 | 96 | |
| 97 | CUSTOM_INPUT_MEMBER( homelab_state::cass_r ) |
| 98 | { |
| 99 | return (m_cass->input() > 0.03); |
| 100 | } |
| 91 | 101 | |
| 92 | 102 | |
| 103 | READ8_MEMBER( homelab_state::exxx_r ) |
| 104 | { |
| 105 | // keys E800-E813 but E810-E813 are not connected |
| 106 | // cassin E883 |
| 107 | // sound routine reads E880 but discards the result |
| 108 | |
| 109 | char kbdrow[8]; |
| 110 | UINT8 data = 0xff; |
| 111 | if (offset < 0x10) |
| 112 | { |
| 113 | sprintf(kbdrow,"X%X", offset); |
| 114 | data = ioport(kbdrow)->read(); |
| 115 | } |
| 116 | return data; |
| 117 | } |
| 118 | |
| 119 | |
| 93 | 120 | /* Address maps */ |
| 94 | 121 | static ADDRESS_MAP_START(homelab2_mem, AS_PROGRAM, 8, homelab_state) |
| 95 | 122 | AM_RANGE( 0x0000, 0x07ff ) AM_ROM // ROM 1 |
| r15479 | r15480 | |
| 99 | 126 | AM_RANGE( 0x2000, 0x27ff ) AM_ROM // ROM 5 |
| 100 | 127 | AM_RANGE( 0x2800, 0x2fff ) AM_ROM // ROM 6 |
| 101 | 128 | AM_RANGE( 0x3000, 0x37ff ) AM_ROM // Empty |
| 102 | | AM_RANGE( 0x3800, 0x3fff ) AM_READWRITE(key_r,key_w) |
| 129 | AM_RANGE( 0x3800, 0x3fff ) AM_READ(key_r) AM_WRITENOP |
| 103 | 130 | AM_RANGE( 0x4000, 0x7fff ) AM_RAM |
| 104 | 131 | AM_RANGE( 0xc000, 0xc3ff ) AM_RAM AM_SHARE("videoram") AM_MIRROR(0x3c00) // Video RAM 1K |
| 105 | 132 | ADDRESS_MAP_END |
| r15479 | r15480 | |
| 107 | 134 | static ADDRESS_MAP_START(homelab3_mem, AS_PROGRAM, 8, homelab_state) |
| 108 | 135 | AM_RANGE( 0x0000, 0x3fff ) AM_ROM |
| 109 | 136 | AM_RANGE( 0x4000, 0x7fff ) AM_RAM |
| 110 | | AM_RANGE( 0xe800, 0xe800 ) AM_READ_PORT("X00") |
| 111 | | AM_RANGE( 0xe801, 0xe801 ) AM_READ_PORT("X01") |
| 112 | | AM_RANGE( 0xe802, 0xe802 ) AM_READ_PORT("X02") |
| 113 | | AM_RANGE( 0xe803, 0xe803 ) AM_READ_PORT("X03") |
| 114 | | AM_RANGE( 0xe804, 0xe804 ) AM_READ_PORT("X04") |
| 115 | | AM_RANGE( 0xe805, 0xe805 ) AM_READ_PORT("X05") |
| 116 | | AM_RANGE( 0xe806, 0xe806 ) AM_READ_PORT("X06") |
| 117 | | AM_RANGE( 0xe807, 0xe807 ) AM_READ_PORT("X07") |
| 118 | | AM_RANGE( 0xe808, 0xe808 ) AM_READ_PORT("X08") |
| 119 | | AM_RANGE( 0xe809, 0xe809 ) AM_READ_PORT("X09") |
| 120 | | AM_RANGE( 0xe80a, 0xe80a ) AM_READ_PORT("X0A") |
| 121 | | AM_RANGE( 0xe80b, 0xe80b ) AM_READ_PORT("X0B") |
| 122 | | AM_RANGE( 0xe80c, 0xe80c ) AM_READ_PORT("X0C") |
| 123 | | AM_RANGE( 0xe80d, 0xe80d ) AM_READ_PORT("X0D") |
| 124 | | AM_RANGE( 0xe80e, 0xe80e ) AM_READ_PORT("X0E") |
| 125 | | AM_RANGE( 0xe80f, 0xe80f ) AM_READ_PORT("X0F") |
| 126 | | AM_RANGE( 0xe810, 0xe810 ) AM_READ_PORT("X10") |
| 127 | | AM_RANGE( 0xe811, 0xe811 ) AM_READ_PORT("X11") |
| 128 | | AM_RANGE( 0xe812, 0xe812 ) AM_READ_PORT("X12") |
| 129 | | AM_RANGE( 0xe813, 0xe813 ) AM_READ_PORT("X13") |
| 130 | | AM_RANGE( 0xe880, 0xe880 ) AM_READNOP // reads this then throws result away |
| 131 | | AM_RANGE( 0xf000, 0xf7ff ) AM_RAM AM_SHARE("videoram") AM_MIRROR(0x0800) // Video RAM 2K |
| 137 | AM_RANGE( 0xe000, 0xe01f ) AM_MIRROR(0x0fe0) AM_READ(exxx_r) |
| 138 | AM_RANGE( 0xf000, 0xf7ff ) AM_RAM AM_SHARE("videoram") AM_MIRROR(0x800) // Video RAM 2K |
| 132 | 139 | ADDRESS_MAP_END |
| 133 | 140 | |
| 134 | 141 | static ADDRESS_MAP_START(homelab3_io, AS_IO, 8, homelab_state) |
| r15479 | r15480 | |
| 139 | 146 | static ADDRESS_MAP_START(brailab4_mem, AS_PROGRAM, 8, homelab_state) |
| 140 | 147 | AM_RANGE( 0x0000, 0x3fff ) AM_ROM |
| 141 | 148 | AM_RANGE( 0x4000, 0xdfff ) AM_RAM |
| 142 | | AM_RANGE( 0xe800, 0xe800 ) AM_READ_PORT("X00") |
| 143 | | AM_RANGE( 0xe801, 0xe801 ) AM_READ_PORT("X01") |
| 144 | | AM_RANGE( 0xe802, 0xe802 ) AM_READ_PORT("X02") |
| 145 | | AM_RANGE( 0xe803, 0xe803 ) AM_READ_PORT("X03") |
| 146 | | AM_RANGE( 0xe804, 0xe804 ) AM_READ_PORT("X04") |
| 147 | | AM_RANGE( 0xe805, 0xe805 ) AM_READ_PORT("X05") |
| 148 | | AM_RANGE( 0xe806, 0xe806 ) AM_READ_PORT("X06") |
| 149 | | AM_RANGE( 0xe807, 0xe807 ) AM_READ_PORT("X07") |
| 150 | | AM_RANGE( 0xe808, 0xe808 ) AM_READ_PORT("X08") |
| 151 | | AM_RANGE( 0xe809, 0xe809 ) AM_READ_PORT("X09") |
| 152 | | AM_RANGE( 0xe80a, 0xe80a ) AM_READ_PORT("X0A") |
| 153 | | AM_RANGE( 0xe80b, 0xe80b ) AM_READ_PORT("X0B") |
| 154 | | AM_RANGE( 0xe80c, 0xe80c ) AM_READ_PORT("X0C") |
| 155 | | AM_RANGE( 0xe80d, 0xe80d ) AM_READ_PORT("X0D") |
| 156 | | AM_RANGE( 0xe80e, 0xe80e ) AM_READ_PORT("X0E") |
| 157 | | AM_RANGE( 0xe80f, 0xe80f ) AM_READ_PORT("X0F") |
| 158 | | AM_RANGE( 0xe810, 0xe810 ) AM_READ_PORT("X10") |
| 159 | | AM_RANGE( 0xe811, 0xe811 ) AM_READ_PORT("X11") |
| 160 | | AM_RANGE( 0xe812, 0xe812 ) AM_READ_PORT("X12") |
| 161 | | AM_RANGE( 0xe813, 0xe813 ) AM_READ_PORT("X13") |
| 149 | AM_RANGE( 0xe000, 0xe01f ) AM_MIRROR(0x0fe0) AM_READ(exxx_r) |
| 162 | 150 | AM_RANGE( 0xf000, 0xffff ) AM_RAM AM_SHARE("videoram") |
| 163 | 151 | ADDRESS_MAP_END |
| 164 | 152 | |
| r15479 | r15480 | |
| 242 | 230 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_RALT) PORT_CODE(KEYCODE_LALT) PORT_CHAR('_') |
| 243 | 231 | INPUT_PORTS_END |
| 244 | 232 | |
| 245 | | static INPUT_PORTS_START( homelab3 ) |
| 246 | | PORT_START("X00") |
| 233 | static INPUT_PORTS_START( homelab3 ) // F4 to F8 are foreign characters |
| 234 | PORT_START("X0") |
| 247 | 235 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Down") PORT_CODE(KEYCODE_DOWN) |
| 248 | 236 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Up") PORT_CODE(KEYCODE_UP) |
| 249 | 237 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Right") PORT_CODE(KEYCODE_RIGHT) |
| 250 | 238 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Left") PORT_CODE(KEYCODE_LEFT) |
| 251 | 239 | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 252 | 240 | |
| 253 | | PORT_START("X01") |
| 241 | PORT_START("X1") |
| 254 | 242 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Space") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') |
| 255 | 243 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Enter") PORT_CODE(KEYCODE_ENTER) PORT_CHAR(13) |
| 256 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) // A |
| 257 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) // D |
| 244 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_UNUSED) // A |
| 245 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_UNUSED) // D |
| 258 | 246 | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 259 | 247 | |
| 260 | | PORT_START("X02") |
| 261 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_CUSTOM) PORT_VBLANK("screen") |
| 248 | PORT_START("X2") |
| 249 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_CUSTOM) PORT_VBLANK("screen") |
| 262 | 250 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Left Shift") PORT_CODE(KEYCODE_LSHIFT) |
| 263 | 251 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Right Shift") PORT_CODE(KEYCODE_RSHIFT) |
| 264 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift Lock") PORT_CODE(KEYCODE_CAPSLOCK) |
| 252 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("ALT") PORT_CODE(KEYCODE_CAPSLOCK) |
| 265 | 253 | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 266 | 254 | |
| 267 | | PORT_START("X03") |
| 268 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) // nothing |
| 269 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Graphic") PORT_CODE(KEYCODE_RCONTROL) |
| 270 | | PORT_BIT(0xfc, IP_ACTIVE_LOW, IPT_UNUSED) |
| 255 | PORT_START("X3") |
| 256 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, homelab_state, cass_r, " ") |
| 257 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F2") PORT_CODE(KEYCODE_F2) |
| 258 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F1") PORT_CODE(KEYCODE_F1) |
| 259 | PORT_BIT(0xf8, IP_ACTIVE_LOW, IPT_UNUSED) |
| 271 | 260 | |
| 272 | | PORT_START("X04") |
| 261 | PORT_START("X4") |
| 273 | 262 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_0) PORT_CHAR('0') |
| 274 | 263 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!') |
| 275 | 264 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('"') |
| 276 | 265 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_3) PORT_CHAR('3') PORT_CHAR('#') |
| 277 | 266 | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 278 | 267 | |
| 279 | | PORT_START("X05") |
| 268 | PORT_START("X5") |
| 280 | 269 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_4) PORT_CHAR('4') PORT_CHAR('$') |
| 281 | 270 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_5) PORT_CHAR('5') PORT_CHAR('%') |
| 282 | 271 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('&') |
| 283 | 272 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('\'') |
| 284 | 273 | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 285 | 274 | |
| 286 | | PORT_START("X06") |
| 275 | PORT_START("X6") |
| 287 | 276 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('(') |
| 288 | 277 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_9) PORT_CHAR('9') PORT_CHAR(')') |
| 289 | 278 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_EQUALS) PORT_CHAR(':') PORT_CHAR('*') |
| 290 | 279 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_COLON) PORT_CHAR(';') PORT_CHAR('+') |
| 291 | 280 | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 292 | 281 | |
| 293 | | PORT_START("X07") |
| 282 | PORT_START("X7") |
| 294 | 283 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_COMMA) PORT_CHAR(',') PORT_CHAR('<') |
| 295 | 284 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_MINUS) PORT_CHAR('=') PORT_CHAR('-') |
| 296 | 285 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR('>') |
| 297 | 286 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_SLASH) PORT_CHAR('?') PORT_CHAR('/') |
| 298 | 287 | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 299 | 288 | |
| 300 | | PORT_START("X08") |
| 289 | PORT_START("X8") |
| 301 | 290 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_TILDE) PORT_CHAR('@') |
| 302 | 291 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_A) PORT_CHAR('A') |
| 303 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_F1) |
| 292 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_F4) |
| 304 | 293 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_B) PORT_CHAR('B') |
| 305 | 294 | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 306 | 295 | |
| 307 | | PORT_START("X09") |
| 296 | PORT_START("X9") |
| 308 | 297 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_C) PORT_CHAR('C') |
| 309 | 298 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_D) PORT_CHAR('D') |
| 310 | 299 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_E) PORT_CHAR('E') |
| 311 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_F2) |
| 300 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_F5) |
| 312 | 301 | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 313 | 302 | |
| 314 | | PORT_START("X0A") |
| 303 | PORT_START("XA") |
| 315 | 304 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_F) PORT_CHAR('F') |
| 316 | 305 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_G) PORT_CHAR('G') |
| 317 | 306 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_H) PORT_CHAR('H') |
| 318 | 307 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_I) PORT_CHAR('I') |
| 319 | 308 | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 320 | 309 | |
| 321 | | PORT_START("X0B") |
| 310 | PORT_START("XB") |
| 322 | 311 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_J) PORT_CHAR('J') |
| 323 | 312 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_K) PORT_CHAR('K') |
| 324 | 313 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_L) PORT_CHAR('L') |
| 325 | 314 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_M) PORT_CHAR('M') |
| 326 | 315 | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 327 | 316 | |
| 328 | | PORT_START("X0C") |
| 317 | PORT_START("XC") |
| 329 | 318 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_N) PORT_CHAR('N') |
| 330 | 319 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_O) PORT_CHAR('O') |
| 331 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_F3) |
| 332 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_F4) |
| 320 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_F6) |
| 321 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_F7) |
| 333 | 322 | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 334 | 323 | |
| 335 | | PORT_START("X0D") |
| 324 | PORT_START("XD") |
| 336 | 325 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_P) PORT_CHAR('P') |
| 337 | 326 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_Q) PORT_CHAR('Q') |
| 338 | 327 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_R) PORT_CHAR('R') |
| 339 | 328 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_S) PORT_CHAR('S') |
| 340 | 329 | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 341 | 330 | |
| 342 | | PORT_START("X0E") |
| 331 | PORT_START("XE") |
| 343 | 332 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_T) PORT_CHAR('T') |
| 344 | 333 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_U) PORT_CHAR('U') |
| 345 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_F5) |
| 334 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_F8) |
| 346 | 335 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_V) PORT_CHAR('V') |
| 347 | 336 | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 348 | 337 | |
| 349 | | PORT_START("X0F") |
| 338 | PORT_START("XF") |
| 350 | 339 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_W) PORT_CHAR('W') |
| 351 | 340 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_X) PORT_CHAR('X') |
| 352 | 341 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_Y) PORT_CHAR('Y') |
| 353 | 342 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_Z) PORT_CHAR('Z') |
| 354 | 343 | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 355 | | |
| 356 | | PORT_START("X10") |
| 357 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) // a` |
| 358 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) // a |
| 359 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) // b |
| 360 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) // c |
| 361 | | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 362 | | |
| 363 | | PORT_START("X11") |
| 364 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) // d |
| 365 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) // e |
| 366 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) // f |
| 367 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) // g |
| 368 | | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 369 | | |
| 370 | | PORT_START("X12") |
| 371 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) // h |
| 372 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) // i |
| 373 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) // j |
| 374 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) // k |
| 375 | | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 376 | | |
| 377 | | PORT_START("X13") |
| 378 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) // l |
| 379 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) // m |
| 380 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) // n |
| 381 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) // o |
| 382 | | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 383 | 344 | INPUT_PORTS_END |
| 384 | 345 | |
| 385 | 346 | |
| r15479 | r15480 | |
| 509 | 470 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 510 | 471 | MCFG_SOUND_ADD(SPEAKER_TAG, SPEAKER_SOUND, 0) |
| 511 | 472 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 473 | MCFG_SOUND_WAVE_ADD(WAVE_TAG, CASSETTE_TAG) |
| 474 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 475 | |
| 476 | MCFG_CASSETTE_ADD( CASSETTE_TAG, default_cassette_interface ) |
| 512 | 477 | MACHINE_CONFIG_END |
| 513 | 478 | |
| 514 | 479 | static MACHINE_CONFIG_DERIVED( brailab4, homelab3 ) |
| r15479 | r15480 | |
| 526 | 491 | ROM_LOAD( "hl2_2.rom", 0x0800, 0x0800, CRC(696AF3C1) SHA1(b53bc6ae2b75975618fc90e7181fa5d21409fce1)) |
| 527 | 492 | ROM_LOAD( "hl2_3.rom", 0x1000, 0x0800, CRC(69E57E8C) SHA1(e98510abb715dbf513e1b29fb6b09ab54e9483b7)) |
| 528 | 493 | ROM_LOAD( "hl2_4.rom", 0x1800, 0x0800, CRC(97CBBE74) SHA1(34f0bad41302b059322018abc3d1c2336ecfbea8)) |
| 494 | ROM_LOAD( "hl2_m.rom", 0x2000, 0x0800, CRC(10040235) SHA1(e121dfb97cc8ea99193a9396a9f7af08585e0ff0) ) |
| 529 | 495 | |
| 530 | 496 | ROM_REGION(0x0800, "chargen",0) |
| 531 | 497 | ROM_LOAD ("hl2.chr", 0x0000, 0x0800, CRC(2E669D40) SHA1(639dd82ed29985dc69830aca3b904b6acc8fe54a)) |
| 498 | // found on net, looks like bad dump |
| 499 | //ROM_LOAD_OPTIONAL( "hl2_ch.rom", 0x0800, 0x1000, CRC(6a5c915a) SHA1(7e4e966358556c6aabae992f4c2b292b6aab59bd) ) |
| 532 | 500 | ROM_END |
| 533 | 501 | |
| 534 | 502 | ROM_START( homelab3 ) |
| r15479 | r15480 | |
| 567 | 535 | // these roms were found on the net, to be investigated |
| 568 | 536 | ROM_REGION( 0xa020, "user1", 0 ) |
| 569 | 537 | // unknown |
| 570 | | ROM_LOAD( "brl5.rom", 0x0000, 0x1000, CRC(8a76be04) SHA1(4b683b9be23b47117901fe874072eb7aa481e4ff) ) |
| 538 | ROM_LOAD_OPTIONAL( "brl5.rom", 0x0000, 0x1000, CRC(8a76be04) SHA1(4b683b9be23b47117901fe874072eb7aa481e4ff) ) |
| 571 | 539 | // 256k Homelab 1000 Bios 1.2, 1988 |
| 572 | | ROM_LOAD( "brailabplus.bin", 0x1000, 0x4000, CRC(521d6952) SHA1(f7405520d86fc7abd2dec51d1d016658472f6fe8) ) |
| 540 | ROM_LOAD_OPTIONAL( "brailabplus.bin", 0x1000, 0x4000, CRC(521d6952) SHA1(f7405520d86fc7abd2dec51d1d016658472f6fe8) ) |
| 573 | 541 | // probably brl1 to 5 merged |
| 574 | | ROM_LOAD( "brl.rom", 0x5000, 0x5000, CRC(54af5d30) SHA1(d1e7b7f5866acba0503d47f610456f396526240b) ) |
| 542 | ROM_LOAD_OPTIONAL( "brl.rom", 0x5000, 0x5000, CRC(54af5d30) SHA1(d1e7b7f5866acba0503d47f610456f396526240b) ) |
| 575 | 543 | // a small prom |
| 576 | | ROM_LOAD( "brlcpm.rom", 0xa000, 0x0020, CRC(b936d568) SHA1(150330eccbc4b664eba4103f051d6e932038e9e8) ) |
| 544 | ROM_LOAD_OPTIONAL( "brlcpm.rom", 0xa000, 0x0020, CRC(b936d568) SHA1(150330eccbc4b664eba4103f051d6e932038e9e8) ) |
| 577 | 545 | ROM_END |
| 578 | 546 | |
| 579 | 547 | /* Driver */ |