OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [sys/] [go32/] [gettime.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1010 ivang
#include "dos.h"
2
 
3
void gettime( struct time *tp)
4
{
5
  union REGS regs;
6
  regs.h.ah = 0x2c;
7
  intdos( &regs, &regs);
8
  tp->ti_hour = regs.h.ch;
9
  tp->ti_min = regs.h.cl;
10
  tp->ti_sec = regs.h.dh;
11
  tp->ti_hund = regs.h.dl;
12
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.