展开全部
(1)
CODE SEGMENT
ASSUME CS:CODE
START: MOV AX,56
MOV BL,7
DIV BL
MOV BX,AX
MOV AH,4CH
INT 21H
CODE ENDS
END START
(2)
NUM SEGMENT
X DB 17
M DW 100H DUP(?)
MSG DB 'LUCKY'
NUM ENDS
(3)
CODE SEGMENT
ASSUME CS:CODE
START:
MOV AX,1
MOV CX,5
@1:
MUL CX
LOOP @1
MOV SI,AX
CALL DSPAX
MOV AH,4CH
INT 21H
;===================================
DSPAX PROC NEAR
PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSHF
XOR CX,CX
MOV BX,10
@DSPAX1:
XOR DX,DX
DIV BX
INC CX
OR DX,30H
PUSH DX
CMP AX,0
JNE @DSPAX1
MOV AH,2
@DISPAX2:
POP DX
INT 21H
LOOP @DISPAX2
MOV DL,32
INT 21H
POPF
POP DX
POP CX
POP BX
POP AX
RET
DSPAX ENDP
;================================
CODE ENDS
END START
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询