上代码:
code segment
assume cs:code ;定义段
start:
mov ah,1 ;1号功能调用
int 21h
mov dl,al ;al给dl
mov ah,2 ;2号功能调用
int 21h
mov ah,4ch
int 21h
code ends
end start
注意:1号功能没有入口参数,出口是al
2号功能单字符输出 入口是dl 从屏幕上显示
上代码:
code segment
assume cs:code ;定义段
start:
mov ah,1 ;1号功能调用
int 21h
mov dl,al ;al给dl
mov ah,2 ;2号功能调用
int 21h
mov ah,4ch
int 21h
code ends
end start
注意:1号功能没有入口参数,出口是al
2号功能单字符输出 入口是dl 从屏幕上显示