问题10.2
多个字符串变为大写的汇编实现方法:assume cs:abc
data segment
db 'helsd',0,'fhshhf',0,'gaghfggfl',0
data ends
stack segment
dw 2 dup(0)
stack ends
abc segment
start:
mov ax,data
mov ds,ax
mov ax,stack
mov ss,ax
mov sp,4
mov bp,0
mov cx,3
s1: push cx
call s
inc bp
pop cx
loop s1
mov ax,4c00h
int 21h
s:mov cx,0
mov cl,ds:
jcxz r
and byte ptr ds:,11011111b
inc bp
loop s
r: ret
abc ends
end start
页:
[1]