综合一下学过的指令就行了,比较简单。文章来源:https://www.toymoban.com/news/detail-794719.html
assume cs:code
data segment
db "Beginner's All-purpose Symbolic Instruction Code.",0
data ends
code segment
begin:
mov ax,data
mov ds,ax
mov si,0
call letterc
mov ax,4c00h
int 21h
letterc:
mov cl,[si]
mov ch,0
jcxz finish
cmp cx,97
jb next
cmp cx,122
ja next
and byte ptr [si],11011111b
next:
inc si
jmp short letterc
finish: ret
code ends
end begin
文章来源地址https://www.toymoban.com/news/detail-794719.html
到了这里,关于【汇编】实验11 编写子程序的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!