;1定点数规格化
FXDN:
LD 2CH,#40A0H
LOOP:
JBS 2BH,7,LOOP1
SHLL 24H,#1
ADDC 28H,28H
ADDC 2AH,2AH
DECB 2CH
DJNZ 2DH,LOOP
CLR 2CH;0
LOOP1:
RET
2定点数规格化实例
FLTRLN:
MOV A,R3
ORL A,R4
JNZ RLN1
MOV R2,#0C1H
RET
RLN1:
MOV A,R3
JB ACC.7,RLN2
CLR C
LCALL RL1
SJMP RLN
RLN2:
CLR OV
RET