代码如下:
STACK SEGMENT STACK
DB 50 DUP(0)
STACK ENDS
DATA SEGMENT
X EQU 1000
DATA ENDS
CODE SEGMENT
MAIN PROC FAR
ASSUME CS:CODE,DS:DATA,SS:STACK
START: MOV AX,X
CALL MUL10
MOV AX,4C00H
INT 21H
MUL10 PROC
PUSHF
PUSH BX
ADD AX,AX
MOV BX,AX
ADD AX,AX
ADD AX,AX
ADD AX,BX
POP BX
POPF
RET
MUL10 ENDP
CODE ENDS
END START