News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Timer not being displayed

Started by zak100, January 04, 2010, 10:13:26 AM

Previous topic - Next topic

zak100

Hi,
Thanks. Steve I would check your code. Dave I want to use your alg. for conversion but I want to give one more try to the conversion alg. which I am using. Instead of subtracting 10D I should subtract 10h. I think this may solve the prob.

Zulfi.

zak100

Hi,
Timer is working now. I appreciate cooperation of all those who provided guidance to me in this prob. I have to now find the time elapsed since the OS started.

Zulfi.

FORTRANS

Hi,

   Just for future reference: the code I posted to use Int 1AH
failed on one machine.  So a correction.

   Change the following logic for all similar int 1AH routine.


; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
; Time of Day

RTime:
        MOV     AH,2    ; Get CMOS Time
        INT     1AH     ; Real Time Clock Interrupt
        JC      RTime


   To incorporate a clear carry instruction.


; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
; Time of Day

RTime:
        CLC             ; At least one BIOS does not clear this, = infinite loop.
        MOV     AH,2    ; Get CMOS Time
        INT     1AH     ; Real Time Clock Interrupt
        JC      RTime


Regards,

Steve N.