Previous 15994 Revisions Next

r5487 Friday 21st August, 2009 at 11:37:47 UTC by Curt Coder
[MC1000] Fixed cassette output polarity, and graphics modes.
[src/mess/drivers]mc1000.c

src/mess/drivers/mc1000.c
r5486r5487
277277static const UINT8 *mc1000_get_video_ram(running_machine *machine, int scanline)
278278{
279279   mc1000_state *state = machine->driver_data;
280   
281   UINT16 addr = 0;
280282
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;
282300}
283301
284302static VIDEO_START( mc1000 )
r5486r5487
304322
305323   state->keylatch = data;
306324
307   cassette_output(state->cassette, BIT(data, 7) ? +1.0 : -1.0);
325   cassette_output(state->cassette, BIT(data, 7) ? -1.0 : +1.0);
308326}
309327
310328static READ8_DEVICE_HANDLER( keydata_r )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team