📄 init.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 + -