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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [sys/] [go32/] [gettime.c] - Rev 1774

Go to most recent revision | Compare with Previous | Blame | View Log

#include "dos.h"
 
void gettime( struct time *tp)
{
  union REGS regs;
  regs.h.ah = 0x2c;
  intdos( &regs, &regs);
  tp->ti_hour = regs.h.ch;
  tp->ti_min = regs.h.cl;
  tp->ti_sec = regs.h.dh;
  tp->ti_hund = regs.h.dl;
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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