home *** CD-ROM | disk | FTP | other *** search
- ; Copyright (c) 1985 Martin Nohr and Tom Serface
- ; All Rights Reserved
- ;
- ;Revision Date Description
- ;-------- --------- --------------------------------------------
-
- cseg
- ;Ticks Get Current Clock Tick Count
- ;
- ; Call as: time = Ticks()
- ;long Ticks();
- ;long time;
-
- public Ticks_
- Ticks_:
- push bp
- mov ax,0000h
- int 1ah
- mov ax,dx
- mov dx,cx
- pop bp
- ret
- ;SetClock Set the Clock by entering a Tick Count
- ; Tick counts are 18.2 per second
- ;
- ; Call as: SetClock(time)
- ;void SetClock();
- ;long time;
-
- public SetClock_
- SetClock_:
- push bp
- mov bp,sp
- mov cx,[bp+4]
- mov dx,[bp+6]
- mov ax,0100
- int 1ah
- xor ax,ax
- pop bp
- ret
-