int 10h的13h用于在屏幕上显示一个字符串,入口参数有6个:
1、ES:BP = 串地址
2、CX = 串长度
3、DH, DL = 起始行列
4、BH = 页号
5、BL = 属性
6、AL = 0,光标返回起始位置;AL = 1,光标跟随移动;AL = 2,光标返回起始位置;AL = 3,光标跟随串移动
再就是把要显示的字符串输入到内存某位置,如,'abcdefghijklmn'。
举例说明:
; Program Name: Disp_Char.asm
Disp_Char SEGMENT
ASSUME CS:Disp_Char,DS:Disp_Char
ORG 100H
Start: jmp Begin
CharStr DB 'Display a character string.'
Str_Len equ $-CharStr
Begin: push ds
pop es
lea bp,CharStr ; 字符串首地址
mov cx,Str_Len
mov dx,500h
mov bx,10
mov ax,1303h
int 10h
Exit_Proc: mov ax,4c00h ;结束程序
int 21h
Disp_Char ENDS
END Start
温馨提示:答案为网友推荐,仅供参考