程序编译,链接通过,运行时出错,请教
程序 想实现 大小写 字母 的转换。输入为 大写则转换 为小写, 输入 小写则转换为大写
编译 链接 通过 ,但输入 一个大写 或小写 回车 后, 出现应用程序错误。我实在不知道错在哪了,请高手指教
.386.model flatExitProcess proto near32 stdcall, dwexitcode:dword ;include io.h ;cr equ 0dh;lf equ 0ah;.stack 4096;.data;prompt1 byte "This program will change the letters",cr,lf,lf ; value byte 16 dup (?) ;answer byte cr, lf,"The letter has changed:" ;clt byte 16 dup(?) ; byte cr,lf, 0 ;.code_start: start: output prompt1 ; input value ,16 ; mov al, value; int 21h cmp al, 'A' jb next cmp al, 'Z' ja next add al, 20h mov clt,al ; output answer ;next: mov dl, al sub dl,20h ; mov clt,dl ; output answer ; invoke ExitProcess,0 ; public _start ;end