src/mess/drivers/mc1000.c
| r5486 | r5487 | |
| 277 | 277 | static const UINT8 *mc1000_get_video_ram(running_machine *machine, int scanline) |
| 278 | 278 | { |
| 279 | 279 | mc1000_state *state = machine->driver_data; |
| 280 | |
| 281 | UINT16 addr = 0; |
| 280 | 282 | |
| 281 | | return state->mc6847_video_ram + (scanline / 12) * 0x20; |
| 283 | if (BIT(state->mc6847_attr, 7)) |
| 284 | { |
| 285 | switch ((state->mc6847_attr >> 2) & 0x07) |
| 286 | { |
| 287 | case 0: case 1: addr = (scanline / 3) * 0x10; break; |
| 288 | case 2: addr = (scanline / 3) * 0x20; break; |
| 289 | case 3: case 5: addr = (scanline / 2) * 0x10; break; |
| 290 | case 4: addr = (scanline / 2) * 0x20; break; |
| 291 | case 6: case 7: addr = scanline * 0x20; break; |
| 292 | } |
| 293 | } |
| 294 | else |
| 295 | { |
| 296 | addr = (scanline / 12) * 0x20; |
| 297 | } |
| 298 | |
| 299 | return state->mc6847_video_ram + addr; |
| 282 | 300 | } |
| 283 | 301 | |
| 284 | 302 | static VIDEO_START( mc1000 ) |
| r5486 | r5487 | |
| 304 | 322 | |
| 305 | 323 | state->keylatch = data; |
| 306 | 324 | |
| 307 | | cassette_output(state->cassette, BIT(data, 7) ? +1.0 : -1.0); |
| 325 | cassette_output(state->cassette, BIT(data, 7) ? -1.0 : +1.0); |
| 308 | 326 | } |
| 309 | 327 | |
| 310 | 328 | static READ8_DEVICE_HANDLER( keydata_r ) |