Previous 15994 Revisions Next

r2661 Sunday 18th May, 2008 at 20:57:38 UTC by Wilbert Pol
[IBM51x0] Fixed time-of-day counter. Fixed hard disk mounting.
[src/mess/machine]pc.c pc_hdc.c

src/mess/machine/pc_hdc.c
r2660r2661
499499   switch (cmd)
500500   {
501501      case CMD_TESTREADY:
502         /*
503          * Commenting out these 2 lines below make the hard disk controller work
504          * under the ibm5160 drivers. But this does make one hard disk show up
505          * twice in the ibm5150 driver. This is something that will need to be
506          * fixed with time.
507          */
508//         set_error_info = 0;
509//         test_ready(n);
502         set_error_info = 0;
503         test_ready(n);
510504            break;
511505      case CMD_SENSE:
512506         /* Perform error code translation. This may need to be expanded in the future. */
src/mess/machine/pc.c
r2660r2661
550550   int portc_switch_high;
551551   int speaker;
552552   int keyboard_disabled;
553   UINT8   keyb_clock;
553554   UINT8   portb;
554555} pc_ppi={ 0 };
555556
556557
557558static READ8_HANDLER (pc_ppi_porta_r)
558559{
559   int data;
560   int data = 0xFF;
560561
561562   /* KB port A */
562563   if (pc_ppi.keyboard_disabled)
r2660r2661
574575   }
575576   else
576577   {
577      data = pc_keyb_read();
578      if ( pc_ppi.keyb_clock )
579      {
580         data = pc_keyb_read();
581      }
578582   }
579583    PIO_LOG(1,"PIO_A_r",("$%02x\n", data));
580584    return data;
r2660r2661
652656   pc_ppi.portb = data;
653657   pc_ppi.portc_switch_high = data & 0x08;
654658   pc_ppi.keyboard_disabled = data & 0x80;
659   pc_ppi.keyb_clock = data & 0x40;
655660   pit8253_gate_w( device_list_find_by_tag( machine->config->devicelist, PIT8253, "pit8253" ), 2, data & 1);
656661   pc_sh_speaker(machine, data & 0x03);
657   pc_keyb_set_clock(data & 0x40);
662   pc_keyb_set_clock( pc_ppi.keyb_clock );
658663
659664   cassette_change_state( image_from_devtype_and_index( IO_CASSETTE, 0 ), ( data & 0x08 ) ? CASSETTE_MOTOR_DISABLED : CASSETTE_MOTOR_ENABLED, CASSETTE_MASK_MOTOR);
660665

Previous 15994 Revisions Next


© 1998-2018 The MESS Team