BIOS中断例程记录

1. 软盘的读写 int 13h

ah == 0h 复位软驱

dl = 驱动器号(0表示A盘)

ah == 2h 读取数据

al = 要读的扇区数

cl = 起始扇区数

ch = 柱面(磁道)号

dh = 磁头号

dl = 驱动器号(0表示A盘)

es:bx = 数据缓冲区

2. 字符的显示 int 10h

ah = =13h 显示字符串

AL = 写模式 (see bit settings below)
= 0 string is chars only, attribute in BL, cursor not moved
= 1 string is chard only, attribute in BL, cursor moved
= 2 string contains chars and attributes, cursor not moved
= 3 string contains chars and attributes, cursor moved
BH = 页号(一般是0)
BL = attribute if mode 0 or 1 (AL bit 1=0)
CX = 字符串长度
DH = 行坐标
DL = 列坐标
ES:BP = 要显示的字符串

ah == 0Eh 在teletype模式下显示字符

al = ASCII字符

bh = 页号

bl = 前景像素颜色

 

 

 

 

 

 

 

 

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值