马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
;(1)
assume cs:code
code segment
start:
push ax
mov ax,cs
mov ds,ax
pop ax
mov si,offset s0
mov ax,0
mov es,ax
mov di,200h
mov cx,offset s2-offset s0
cld
rep movsb
mov word ptr es:[7ch*4],200h
mov word ptr es:[7ch*4+2],0
mov ax,4c00h
int 21h
s0:
mov ax,0b800h
mov es,ax
mov ax,160
mul dh
mov di,ax
mov ax,2
mul dl
add di,ax
mov al,cl
mov si,0
s1:
cmp byte ptr ds:[si],0
je sssss
mov ah,[si]
mov byte ptr es:[di],ah
mov byte ptr es:[di+1],al
add di,2
inc si
jmp s1
sssss:
iret
s2:
nop
code ends
end start
|