实验6 实践课程中的程序
(2) 编程,将datasg段中的单词的前4个字母改成大写字母。assume cs:codesg,ss:stacksg,ds:datasg
datasg segment
db '1. display '
db '2. brows '
db '3. replace '
db '4. modify '
datasg ends
stacksg segment
dw 0,0,0,0,0,0,0,0
stacksg ends
codesg segment
start:
mov ax,datasg
mov ds,ax
mov ax,stacksg
mov ss,ax
mov sp,16
mov cx,4
mov bx,0
s0:
push cx
mov cx,4
mov si,0
s1:
mov al,
and al,11011111b
mov ,al
inc si
loop s1
pop cx
add bx,16
loop s0
mov ax,4c00h
int 21h
codesg ends
end start
:big {:5_92:} 感谢分享,辛苦了
页:
[1]