《汇编语言》(第三版)王爽第十二章实验12个人方法记录

assume cs:code
code segment
	start:
		mov ax,cs
		mov ds,ax
		mov si,offset d0
		mov ax,0
		mov es,ax
		mov di,200H
		mov cx,offset d0end-offset d0
		rep movsb
		mov ax,0
		mov es,ax
		mov word ptr es:[0],200H
		mov word ptr es:[2],0

		mov ax,4C00H
		int 21H
			d0:
			jmp short d0start
			db "divide error!"
			d0start:
				mov ax,cs
				mov ds,ax
				mov si,202H
				mov ax,0B800H
				mov es,ax
				mov di,12*160+33*2
				mov cx,13
				display:
				mov al,[si]
				mov es:[di],al
				inc si
				add di,2
				loop display
				mov ax,4C00H
				int 21H
			d0end:nop
		code ends
end start
《汇编语言》(第三版)王爽第十二章实验12个人方法记录_第1张图片

你可能感兴趣的:(汇编语言,王爽)