今天是第7天,突破第13章.附上实验13.1代码
assume cs:code
code segment
start:mov ax,cs
mov ds,ax
mov ax,0
mov si,offset show_str
mov es,ax
mov di,200h
mov cx,offset show_end-offset show_str
cld
rep movsb
mov word ptr es:[7ch*4],200h
mov word ptr es:[7ch*4+2],0
mov ax,4c00h
int 21h
show_str:push dx
push si
push cx
push bx
push ax
mov bl,cl
show_next:mov ch,0
mov cl,[si]
jcxz ok
mov ah,2
mov bh,0
int 10h
mov ah,9
mov al,[si]
mov cx,1
int 10h
inc si
inc dl
jmp short show_next
ok:pop ax
pop bx
pop cx
pop si
pop dx
iret
show_end:nop
code ends
end start |