BIOS 中断
BIOS 中断调用( BIOS interrupt calls),为一些软件提供使用BIOS 上的一些功能.一些操作系统在系统引导时也使用BIOS以检测并初始化硬件资源.
需要使用的中断
主要使用INT 10h 中断,是一个视频服务中断.
The BIOS receives requests to perform functions through software interrupts. Software interrupts, generated by the operating system or by a user application, are generated with INT nnh instructions, where nnh is a number that is assigned to a specific type of service, such as 16h for keyboard input, 10h for video output, or 13h for disk I/O.
BIOS通过软件中断接收执行功能的请求。软件使用INT nnh生成由操作系统或用户应用程序生成的中断指令,其中nnh是分配给特定类型服务的数字,例如16h键盘输入,10h用于视频输出,或13h用于磁盘I / O.
INT 10h 中断工作原理
EMBEDDED BIOS actually begins handling an INT 10h request in its CONIO module, which determines whether the video should be redirected over a serial link.
If CONIO determines that the INT 10h service should not be redirected to a serial device, then it passes control to one of the modules that handle video controllers, such as module VIDEO, which manipulates the 6845 CRT controller registers directly to manage the display. Actual writing of data to the video screen and reading characters from the screen is accomplished by memory reads and writes to video regeneration memory.
EMBEDDED BIOS实际上开始在其CONIO模块中处理INT 10h请求时,将确定视频是否应通过串行链接重定向。如果CONIO确定INT 10h服务不应重定向到串行设备,那么它会将控制,传递到处理视频控制器的模块之一&#x