这两段汇编代码是什么意思,主要作用是什么? 10
DATEE1PROCNEARPUSHCXPUSHDXMOVAX,CXMOVBX,10LEASI,DATEDIS+3MOVCX,4PUSHDXTAB:XORDX,DXDIV...
DATEE1 PROC NEAR
PUSH CX
PUSH DX
MOV AX,CX
MOV BX,10
LEA SI,DATEDIS+3
MOV CX,4
PUSH DX
TAB:
XOR DX,DX
DIV BX
ADD DL,30H
MOV [SI],DL
DEC SI
LOOP TAB
POP DX
MOV AX,DX
MOV AL,DL
XOR AH,AH
DIV BL
ADD AX,3030H
LEA SI,DATEDIS+8
MOV [SI],AX
MOV AL,DH
XOR AH,AH
DIV BL
ADD AX,3030H
LEA SI,DATEDIS+5
MOV [SI],AX
POP DX
POP CX
RET
DATEE1 ENDP
DATEE2 PROC NEAR
PUSH CX
PUSH DX
SHOW DATEDIS
LEA SI,DATEDIS+9
MOV CX,10
TAC:
XOR BX,BX
MOV BL,'0'
CMP BYTE PTR[SI],'-'
JZ NEXT
MOV [SI],BL
NEXT: DEC SI
LOOP TAC
;SHOW DATEDIS
POP DX
POP CX
RET
DATEE2 ENDP 展开
PUSH CX
PUSH DX
MOV AX,CX
MOV BX,10
LEA SI,DATEDIS+3
MOV CX,4
PUSH DX
TAB:
XOR DX,DX
DIV BX
ADD DL,30H
MOV [SI],DL
DEC SI
LOOP TAB
POP DX
MOV AX,DX
MOV AL,DL
XOR AH,AH
DIV BL
ADD AX,3030H
LEA SI,DATEDIS+8
MOV [SI],AX
MOV AL,DH
XOR AH,AH
DIV BL
ADD AX,3030H
LEA SI,DATEDIS+5
MOV [SI],AX
POP DX
POP CX
RET
DATEE1 ENDP
DATEE2 PROC NEAR
PUSH CX
PUSH DX
SHOW DATEDIS
LEA SI,DATEDIS+9
MOV CX,10
TAC:
XOR BX,BX
MOV BL,'0'
CMP BYTE PTR[SI],'-'
JZ NEXT
MOV [SI],BL
NEXT: DEC SI
LOOP TAC
;SHOW DATEDIS
POP DX
POP CX
RET
DATEE2 ENDP 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询