init.c
来自「freedos32的源代码」· C语言 代码 · 共 28 行
C
28 行
/* 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 + =
减小字号Ctrl + -
显示快捷键?