求指教啊 刚学的
程序代码:
data segment data1 dw 1234h data2 dw 8678h array1 db 'data1>data2$' array2 db 'data1<data2$' array3 db 'data1=data2$' data ends code segment assume cs:code,ds:data start: mov ax,data mov ds,ax mov ax,1234h mov dx,8678h test dx,8000h jz jump1 lea bx,array1 mov dx,bx mov ah,09h int 21h jmp last jump1: cmp ax,dx jz jump2 ja jump3 jb jump4 jump2: lea bx,array3 mov dx,bx mov ah,09h int 21h jmp last jump3: lea bx,array1 mov dx,bx mov ah,09h int 21h jmp last jump4: lea bx,array2 mov dx,bx mov ah,09h int 21h jmp last last: mov ah,4ch int 21h code ends end start