马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
;----前三个字母转换为大写----
assume cs:code,ds:data,ss:stack
stack segment
db 10h dup(?)
stack ends
data segment
db '1.file '
db '2.edit '
db '3.search '
db '4.view '
db '5.options '
db '6.help '
data ends
code segment
start:
mov ax,data
mov ds,ax
mov ax,stack
mov ss,ax
mov sp,10h
mov si,0h
mov cx,6h
cap:
push cx
mov cx,03h
mov bx,2h
s:
mov al,[bx+si]
and al,0dfh
mov [bx+si],al
inc bx
loop s
pop cx
add si,10h
loop cap
mov ax,4c00h
int 21h
code ends
end start
用到了栈保存cx |