Fix calculation of milliseconds from the bios ticks value.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@839
This commit is contained in:
parent
c6bedc3bdf
commit
0988c1e4dc
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ static Bitu DOS_21Handler(void) {
|
|||
reg_ch=(Bit8u)(seconds/3600);
|
||||
reg_cl=(Bit8u)((seconds % 3600)/60);
|
||||
reg_dh=(Bit8u)(seconds % 60);
|
||||
reg_dl=(Bit8u)((ticks % 20)*5); /* 0-19 ->0-95 */
|
||||
reg_dl=(Bit8u)(((ticks * 10) % 182)*100)/182;
|
||||
}
|
||||
break;
|
||||
case 0x2d: /* Set System Time */
|
||||
|
|
Loading…
Add table
Reference in a new issue