- more accurate emulation of port 0x61 bit #4. This bit toggles with every
refresh request (15 usec). This fixes SF bug #644042.
This commit is contained in:
parent
8f88ab3b1b
commit
366188e67a
@ -1,5 +1,5 @@
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// $Id: pit_wrap.cc,v 1.44 2003-01-05 01:37:21 cbothamy Exp $
|
||||
// $Id: pit_wrap.cc,v 1.45 2003-01-09 20:43:32 vruppert Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2002 MandrakeSoft S.A.
|
||||
@ -339,7 +339,7 @@ bx_pit_c::read( Bit32u address, unsigned int io_len )
|
||||
|
||||
case 0x61:
|
||||
/* AT, port 61h */
|
||||
BX_PIT_THIS s.refresh_clock_div2 = !BX_PIT_THIS s.refresh_clock_div2;
|
||||
BX_PIT_THIS s.refresh_clock_div2 = ((bx_pc_system.time_usec() / 15) & 1);
|
||||
return( (BX_PIT_THIS s.timer.read_OUT(2)<<5) |
|
||||
(BX_PIT_THIS s.refresh_clock_div2<<4) |
|
||||
(BX_PIT_THIS s.speaker_data_on<<1) |
|
||||
|
Loading…
x
Reference in New Issue
Block a user