如题,要求打印出结果,求大神帮忙看看哪里错了,谢谢~
STACK SEGMENT PARA STACK
DW 100H DUP(?);
STACK ENDS
DATA SEGMENT PARA
VALUE DW ?;
DATA ENDS
CODE SEGMENT PARA
ASUME CS:CODE,DS:DATA,SS:STACK;
MAIN PROC FAR
MOV AX,STACK;
MOV SS,AX;
MOV AX,DATA;
MOV DS,AX;
MOV DX,0001H;
MOV CX,16;
LP0:
SAL DX,1;
MOV VALUE,DX;
PUSH CX;
CALL XIE;
POP CX;
LOOP LP0;
MOV AX,4C00H;
INT 21H;
MAIN ENDP
XIE PROC NEAR
MOV CX,5;
MOV AX,VALUE;
MOV BX,10;
LP1: XOR DX,DX;
DIV BX;
OR DL,30H;
PUSH DX;
LOOP LP1;
MOV CX,5;
LP2:POP DX;
MOV AH,2;
INT 21H;
LOOP LP2;
XIE ENDP
CODE END
END MAIN
STACK SEGMENT PARA STACK
DW 100H DUP(?);
STACK ENDS
DATA SEGMENT PARA
VALUE DW ?;
DATA ENDS
CODE SEGMENT PARA
ASUME CS:CODE,DS:DATA,SS:STACK;
MAIN PROC FAR
MOV AX,STACK;
MOV SS,AX;
MOV AX,DATA;
MOV DS,AX;
MOV DX,0001H;
MOV CX,16;
LP0:
SAL DX,1;
MOV VALUE,DX;
PUSH CX;
CALL XIE;
POP CX;
LOOP LP0;
MOV AX,4C00H;
INT 21H;
MAIN ENDP
XIE PROC NEAR
MOV CX,5;
MOV AX,VALUE;
MOV BX,10;
LP1: XOR DX,DX;
DIV BX;
OR DL,30H;
PUSH DX;
LOOP LP1;
MOV CX,5;
LP2:POP DX;
MOV AH,2;
INT 21H;
LOOP LP2;
XIE ENDP
CODE END
END MAIN