编程求一组正整数{0x1223,0x1234,0x1434,0x2345,0x3412,0x1712}中的最大数并存在变量MAX中
DATAS SEGMENT
X DW 1254H,1234H,1434H,2345H,3412H,1712H
MAX DW ?
DATAS ENDS STACKS SEGMENT;此处输入堆栈段代码
STACKS ENDSCODES SEGMENTASSUME CS:CODES,DS:DATAS,SS:STACKS
START:MOV AX,DATASMOV DS,AX;代码从这里开始MOV AX,X[0]MOV SI,OFFSET XMOV CX,5KKK:INC SIINC SICMP AX,[SI]JG JJJMOV AX,[SI]JJJ:LOOP KKK;我写的代码在这上面结束MOV AH,4CHINT 21H
CODES ENDSEND START