delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/04/17/14:51:22

Date: Fri, 17 Apr 92 13:22:25 CDT
From: csaba AT vuse DOT vanderbilt DOT edu (Csaba A. Biegl)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: clock() function
Status: O

The address of the BIOS clock tick count variable is incorrect in the
clock() library routine. The source file is: .../libsrc/c/sys/clock.s.
The following patch fixes the problem:


---------------- begin patch ------------------------
*** clock.old   Fri Apr 17 12:23:16 1992
--- clock.s     Wed Apr 15 15:50:24 1992
***************
*** 20,24 ****
        .globl _clock
  _clock:
!       movl    0xe000046e,%eax
        cmp     $0,clock_init
        jne     clock_initted
--- 20,24 ----
        .globl _clock
  _clock:
!       movl    0xe000046c,%eax
        cmp     $0,clock_init
        jne     clock_initted
--------------- end patch --------------------------

Csaba Biegl

csaba AT vuse DOT vanderbilt DOT edu


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019