用两种方式输出一个字符

上一节虽然我们的引导扇区被BIOS正确识别并引导了,但是在虚拟机中我们看不到任何现象,想想还是很不开心的。那么这一节我们就在屏幕上显示一个字符吧!显示什么字符呢?嗯,就显示‘B’吧(barras的第一个字母)。
方法一:通过BIOS中断
    在《启动篇》中我们已经直到了BIOS有POST(加电自检)的功能,那么这一节我们要学习它的新功能:通过BIOS中断给内核提供服务。在介绍BIOS中断之前,我们先看一下它的官方说明

Operating systems and other software communicates with the BIOS software, in order to control the installed hardware, via software interrupts.A software interrupt is simply an interrupt that is triggered by a software command; therefore,  software interrupt call does not need to know the address of the ISR, only its interrupt number.
操作系统和其他的一些软件为了控制已经安装的硬件,需要通过BIOS软中断和BIOS软件进行交流。软中断通过命令触发。因此,软中断调用不需要直到中断服务程序的地址,仅仅只需要知道中断号即可。

BIOS interrupt calls can be thought of as a mechanism for passing messages between BIOS and the operating system or other BIOS client software. The messages request data o
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值