eol75999 发表于 2021-3-10 11:16:00

汇编实验13(1)

;(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:,200h
mov word ptr es:,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:,0
je sssss
mov ah,
mov byte ptr es:,ah
mov byte ptr es:,al

add di,2
inc si
jmp s1
sssss:
iret
s2:
nop
code ends
end start
页: [1]
查看完整版本: 汇编实验13(1)