複製鏈接
請複製以下鏈接發送給好友

BIOS.h

鎖定
BIOS.h是C語言裏的一些頭文件,包含了很多通用的函數和端口的定義,是為了讓你在編寫程序的時候方便調用的,在編譯的時候會參與編譯。
軟件名稱
BIOS.h
軟件語言
C語言

目錄

BIOS.h含義

頭文件bios.h存放有接口函數,在tc2下應該沒問題,如果是在VC下,可能不成功,因為bios.h是在DOS模式下才能調用的,而VC是基於圖形、窗口的。庫函數:
BIOS.H:這幾個函數是經常用到的
int _Cdecl int86(int __intno, union REGS *__inregs, union REGS *__outregs);
int _Cdecl int86x(int __intno, union REGS *__inregs, union REGS *__outregs, struct SREGS *__segregs);
union REGS {
struct WORDREGS x;
struct BYTEREGS h;

BIOS.h源代碼

/*    bios.h

    Access to bios services.

    Copyright (c) Borland International 1987,1988
    All Rights Reserved.
*/
#if __STDC__
#define _Cdecl
#else
#define _Cdecl    cdecl
#endif

int    _Cdecl bioscom(int cmd, char abyte, int port);
int    _Cdecl biosdisk(int cmd, int drive, int head, int track, int sector,
            int nsects, void *buffer);
int    _Cdecl biosequip(void);
int    _Cdecl bioskey(int cmd);
int    _Cdecl biosmemory(void);
int    _Cdecl biosprint(int cmd, int abyte, int port);
long    _Cdecl biostime(int cmd, long newtime);

//希望對想深入瞭解bios.h的編程愛好者提供更多的資料