编程,将datasg段中每个dan单词的前四个字母改为大写字母。(每个字符串长度为16字节)
assume cs:codesg,ss:stacksg,ds:datasg
stacksg segment
dw 0,0,0,0,0,0,0,0
stacksg ends
datasg segment
db '1. display '
db '2. brows '
db '3. replace '
db '4. modify '
datasg ends
codesg segment
start :
codesg ends
end start
个人代码:
assume cs:codesg,ss:stacksg,ds:datasg
stacksg segment
dw 0,0,0,0,0,0,0,0
stacksg ends
datasg segment
db '1. display '
db '2. brows '
db '3. replace '
db '4. modify '
datasg ends
codesg segment
start :
mov ax,datasg
mov ds,ax
mov ax,stacksg
mov ss,ax
mov sp,16