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

Subversion Repositories or1k

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

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

#include "dos.h"
 
void getdate( struct date *dateblk)
{
  union REGS regs;
  regs.h.ah = 0x2a;
  intdos( &regs, &regs);
  dateblk-> da_year = regs.x.cx;
  dateblk-> da_mon = regs.h.dh;
  dateblk-> da_day = 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.