0号中断处理程序改写乱码了!一头包
除法误时输出的字符串乱码了,把s1那部分拿出来可以在显示字符串,但是放到这个程序中就不行了!好奇怪哦!ssume cs:code,ds:date
date segment
db 'AAAAAAAAaaaaaaaaaaaa'
date ends
code segment
start:mov ax,cs
mov ds,ax
mov si,offset s1
mov ax,0
mov es,ax
mov di,200h
mov cx,offset s1end-offset s1
cld
rep movsb
mov ax,0
mov es,ax
mov word ptr es:,200h
mov word ptr es:,0
mov ax,4c00h
int 21h
s1: mov ax,date
mov ds,ax
mov ax,0b800h
mov es,ax
mov di,160*12+36*2
mov si,0
mov cx,20
s2:mov al,ds:
mov ah,02h
mov es:,ax
inc si
add di,2
loop s2
mov ax,4c00h
int 21h
s1end:nop
code ends
end start
aaaaaaaaaaaaaaaaaaaaaaaaaaa是干嘛的?
页:
[1]