BIOS.h

BIOS.h是C語言裡的一些頭檔案,包含了很多通用的函式和連線埠的定義,是為了讓你在編寫程式的時候方便調用的,在編譯的時候會參與編譯。

含義,原始碼,

含義

頭檔案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    Access to bios services.    Copyright (c) Borland International 1987,1988    All Rights Reserved.*/#if __STDC__#define _Cdecl#else#define _Cdecl    cdecl#endifint    _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的編程愛好者提供更多的資料

相關詞條

熱門詞條

聯絡我們