楼上的建段指令不对,应该是mov ax,data
mov ds,ax
循环的那个next改为next1,否则前后不一致,你再试试
DATA SEGMENT
X DW 0E178H
Y DW 34A6H
Z DW 0C34H
MAX DW ?
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START:MOV AX,DATA
MOV AX,X
MOV BX,Y
MOV CX,Z
CMP AX,BX
JGE NEXT
MOV AX,BX
NEXT1:CMP AX,CX
JGE NEXT2
MOV AX,CX
NEXT2:MOV MAX,AX
MOV AH,ACH
INT 21H
CODE ENDS
END START