汇编 无法修改显存中的内容
程序功能把小写转化成大写assumecs:codesgdatasgsegmentdb"Beginner'sAll-purposeSymbolicInstructionCo...
程序功能 把小写转化成大写
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 cx,49d
mov ax,0b800h
mov es,ax
mov si,0
mov di,0
showar:mov ax,ds:[si]
mov es:[di],al
inc si
add di,2
loop showar
mov ax,4c00h
int 21h
letterc:push ax
push bx
push cx
push dx
s:mov cl,byte ptr ds:[si]
jcxz s2
cmp cl,61h
jb s1
cmp cl,7ah
ja s1
sub cl,20h
s1:mov byte ptr ds:[si],cl
inc si
jmp short s
s2:pop dx
pop cx
pop bx
pop ax
ret
codesg ends
end begin
转化在内存中可以,但是就是不能在显存中显示 B800H:0的内存就是不会改变,请教高手程序哪里出错了 展开
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 cx,49d
mov ax,0b800h
mov es,ax
mov si,0
mov di,0
showar:mov ax,ds:[si]
mov es:[di],al
inc si
add di,2
loop showar
mov ax,4c00h
int 21h
letterc:push ax
push bx
push cx
push dx
s:mov cl,byte ptr ds:[si]
jcxz s2
cmp cl,61h
jb s1
cmp cl,7ah
ja s1
sub cl,20h
s1:mov byte ptr ds:[si],cl
inc si
jmp short s
s2:pop dx
pop cx
pop bx
pop ax
ret
codesg ends
end begin
转化在内存中可以,但是就是不能在显存中显示 B800H:0的内存就是不会改变,请教高手程序哪里出错了 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询