INNUM PROC FAR
; IN:
; AL(b1_b0)=0 Input Byte (输入单字节数)
; AL(b1_b0)=1 Input Word (输入双字节数)
; AL(b1_b0)=2 Input Long (输入四字节数)
; AL(b3_b2)=0 Permit Bin (只允许二进制)
; AL(b3_b2)=1 Pvrmit Dec (只允许10进制)
; AL(b3_b2)=2 Permit Hex (只允许16进制)
; AL(b3_b2)=3 Permit All (以上都允许)
; OUT:
; Long in DX:AX, Word in AX, Byte in al(ah=0)
; _____________________________
OUTNUM PROC FAR
; IN:
; Long In DX:AX, Word In AX
; BL(b1_b0)=1 Word (字)
; 2 Long (双字)
; BL(b3_b2)=0 Bin (显示为二进制)
; 1 Dec (显示为10进制)
; 2 Hex (显示为16进制)
; BL(b4)=1 Has Sign (有符号)
; 0 Has Not Sign (无符号)
; BL(b5)=1 Has BDHID (显示进制标志字符)
; 0 Has Not BDHID (不显示进制标志字符)
; BH = Digit Amount Limit (总位数限制)
; _____________________________
STRNUM10 PROC NEAR
; IN:
; DS:DX=NUMBER STRING (NULL END)
; OUT:
; CF = 0 AX=VALUE
; CF = 1 ERROR
; _____________________________
STRNUM16 PROC FAR
; IN:
; DS:DX=NUMBER STRING (NULL END)
; OUT:
; CF = 0 AX=VALUE
; CF = 1 ERROR
|