1
0
Fork 0

Fixed mixup with LSB and MSB when reading timer latch.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@949
This commit is contained in:
Sjoerd van der Berg 2003-04-20 10:44:15 +00:00
parent 83dee93e18
commit bb30f7f309

View file

@ -149,12 +149,12 @@ static Bit8u read_latch(Bit32u port) {
else
pit[counter].read_state = 0;
break;
case 1: /* read MSB */
ret = (pit[counter].read_latch >> 8) & 0xff;
case 1: /* read LSB */
ret = (pit[counter].read_latch & 0xff);
pit[counter].read_latch = -1;
break;
case 2: /* read LSB */
ret = (pit[counter].read_latch & 0xff);
case 2: /* read MSB */
ret = (pit[counter].read_latch >> 8) & 0xff;
pit[counter].read_latch = -1;
break;
default: