CODE SEGMENT
ASSUME CS:CODE
MAIN: MOV AH,1
INT 21H
MOV BL,AL
INT 21H
MOV CL,AL
INT 21H
MOV CH,AL
MOV AH,2
MOV DL,13
INT 21H
MOV DL,10
INT 21H
MOV AL,CH
LAB3:CMP BL,CL
JL LAB1
MOV CH,BL
MOV BL,CL
MOV CL,CH
LAB1:CMP AL,BL
JL LAB2
MOV CH,AL
MOV AL,BL
MOV BL,CH
JMP LAB3
LAB2:MOV AH,2
MOV DL,AL
INT 21H
MOV AH,2
MOV DL,BL
INT 21H
MOV AH,2
MOV DL,CL
INT 21H
MOV AH,4CH
INT 21H
CODE ENDS
END MAIN
汇编 实现三个数字大小的比较
- THE END -
Category: 汇编
0 条评论。