
编写汇编语言程序 100
编写汇编语言程序编写汇编语言程序,用DOS系统功能调用21H的08H功能接收键盘字符(AL=字符),若是F,显示“Thisisthefirstwordstring.”;若...
编写汇编语言程序编写汇编语言程序,用DOS系统功能调用21H的08H功能接收键盘字符(AL=字符),若是F,显示“This is the first word string.”;若是S,显“This is the second word string. ”,否则退出
展开
展开全部
code segment
assume cs:code
org 100h
start:jmp begin
str1 db 'This is the first word string.',13,10,'$'
str2 db 'This is the second word string.',13,10,'$'
begin:
push cs
pop ds
push cs
pop es
@0:
mov ah,8
int 21h
cmp al,'F'
je @1
cmp al,'f'
je @1
cmp al,'S'
je @2
cmp al,'s'
je @2
jmp @exit
@1:
lea dx,str1
mov ah,9
int 21h
jmp @0
@2:
lea dx,str2
mov ah,9
int 21h
jmp @0
@exit:
mov ah,4ch
int 21h
code ends
end start
追答
请不要试图和知道君对话!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询