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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [newlib/] [newlib/] [libc/] [sys/] [go32/] [getdate.c] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
#include "dos.h"
2
 
3
void getdate( struct date *dateblk)
4
{
5
  union REGS regs;
6
  regs.h.ah = 0x2a;
7
  intdos( &regs, &regs);
8
  dateblk-> da_year = regs.x.cx;
9
  dateblk-> da_mon = regs.h.dh;
10
  dateblk-> da_day = regs.h.dl;
11
}

powered by: WebSVN 2.1.0

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