CMP?AL,37HР JAE?EXР AND?AL,0FHР MOV X,ALР SUB?AL,3Р SHL?AL,1Р MOV?BX,OFFSET?TABLEР ADD?BX,AXР JMP?[BX]РX3:?MOV?AL,XР INC ALР MUL?XР JMP?L9РX4:?MOV?AL,XР DEC?ALР DEC?ALР MUL?XР JMP?L9РX5:?MOV?AL,XР MUL XР JMP?L9РX6:?MOV?AL,XР MUL XР ROR?AX,1Р JMP?L9РEX:?JMP?L10РL9:?XOR AH,AHР MOV X,ALР AND X,0FHР CMP X,09HР JLE AB1Р ADD X,07HРAB1:ADD X,30HР MOV BL,XР MOV BUF,BLР AND AL,0F0HР MOV CL,4Р ROR AL,CLР CMP AL,09HР JLE AB2Р ADD AL,07HРAB2:ADD AL,30HР MOV BUF+1,ALР MOV AH,2Р MOV DL,BUF+1Р INT 21HР MOV DL,BUFР INT 21HРL10:MOV?AH,4CHР INT 21HРCODE?ENDSР END?STARTР执行程序EXAM1-6·EXE,屏幕上显示结果:Р3CР48Р515Р612РEXAM1-7РDATA?SEGMENTР X?DB?0Р Y?DB?0Р CU?DB?0Р BUF?DB?2?DUP(0)РDATA?ENDSРSTACK1?SEGMENT?PARA?STACKР DW?20H?DUP(0)РSTACK1?ENDS?РCODE SEGMENTР ASSUME?CS:CODE,DS:DATA,SS:STACK1РSTART:?MOV?AX,DATAР MOV?DS,AX