BIOS and C++

Hi, adepts!
I have question!
How a interact with the BIOS ?
Whether it is possible to work with the BIOS's Assembly without inserts?
Thanks!
There's a "bios.h", that may be of some use to you:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* bios.h

 Access to bios services.

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

#ifndef __PAS__
#define _CType _Cdecl
#else
#define _CType pascal
#endif

#ifdef __cplusplus
extern "C" {
#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);
#ifdef __cplusplus
}
#endif  
That's Borland-only.

Typically you'll need to perform a software interrupt -- which will require some assembly.
You might be able to find a nice library that wraps the interrupt and register I/O for you -- something like Borland's does -- or write your own functions to do it.

Good luck!
Topic archived. No new replies allowed.