⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 init.c

📁 freedos32的源代码
💻 C
字号:
/* FD32 CMOS Driver * by Luca Abeni *  * This is free software; see GPL.txt *//* FIX ME: Commented parts are probably inherited from an old implementation... */#include <ll/i386/cons.h>#include <dr-env.h>int time_read();int date_read();void cmos_init(void){  message("Going to install CMOS driver...\n");  if(add_call("fd32_get_time", (DWORD)time_read, SUBSTITUTE) == -1) {    fd32_error("Cannot find fd32_get_time in system call table...\n");  }  if(add_call("fd32_get_date", (DWORD)date_read, SUBSTITUTE) == -1) {    fd32_error("Cannot find fd32_get_date in system call table...\n");  }  message("Done\n");}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -