CODE SEGMENT
ASSUME CS:CODE
ORG 100H
START: PUSH CS
POP DS
PUSH CS
POP ES
MOV AL,DATA1
MOV CL,4
ROR AL,CL
PUSH AX
AND AL,0FH
MOV BL,AL
MOV BH,0
MOV AL,TAB1[BX]
MOV DATA2,AL
POP AX
MOV CL,4
ROR AL,CL
AND AL,0FH
MOV BL,AL
MOV BH,0
MOV AL,TAB1[BX]
MOV BYTE PTR DATA2+1,AL
MOV DL,DATA2
MOV AH,2
INT 21H
MOV DL,DATA2+1
INT 21H
MOV AH,4CH
INT 21H
TAB1 DB '0123456789ABCDEF'
DATA1 DB 100
DATA2 DB ?,?
CODE ENDS
END START
程序如下:
完全满足题目要求。