assume cs:codesg
datasg segment
db "Beginner's All-purpose Symbolic Instruction Code",0
datasg ends
codesg segment
begin: mov ax,datasg
mov ds,ax
mov si,0
call letterc
mov ax,4c00H
int 21H
letterc:mov cl,[si] ;第一个字节赋值给cl
mov ch,0
jcxz s ;如果cx=0 跳转到S处
cmp cl,61H
jd s0 ;如果cl的值小于61H 则跳转到s0处
cmp cl,80h
ja s0 ;如果cl的值大于80H 则跳转到s0处
and cl,11011111b;转换小写字母为大写
mov [si],cl ;转换后的大写字母赋值到ds:[si]处
s0: inc si
jmp short letterc
s: ret
codesg ends
end begin
提示错误如下 我觉得这个程序没问题呀 请高人指点下
E:\masm>masm 110;
Microsoft (R) Macro Assembler Version 5.00
Copyright (C) Microsoft Corp 1981-1985, 1987. All rights reserved.
110.ASM(18): error A2105: Expected: instruction or directive
50824 + 450472 Bytes symbol space free
0 Warning Errors
1 Severe Errors |