本文包含原理图、PCB、源代码、封装库、中英文PDF等资源
您需要 登录 才可以下载或查看,没有账号?注册会员
×
STACK SEGMENT STACK
DW 64 DUP(?)
STACK ENDS
DATA SEGMENT
TABLE DB 3FH,06H,5BH,4AH,66H,6DH,7DH,07H,7FH,6FH
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START : MOV AX,DATA
MOV DS,AX
MOV DX,0063H
MOV AL,80H
OUT DX,AL
MOV DX,0062H
M0: MOV AL,01111011B
OUT DX,AL
MOV CX,60
CALL DEYIS
MOV AL,10111011B
OUT DX,AL
MOV CX,60
M1: CALL DEYIS
LOOP M1
MOV CX,0004H
M2: MOV AL,11011011B
OUT DX,AL
CALL DEYIS
MOV AL,11111011B
OUT DX,AL
CALL DEYIS
LOOP M2
MOV AL,011111101B
OUT DX,AL
MOV CX,30
M3: CALL DEYIS
LOOP M3
MOV CX,0004H
M4: MOV AL,01111110B
OUT DX,AL
CALL DEYIS
MOV AL,01111111B
OUT DX,AL
CALL DEYIS
LOOP M4
JMP M0
DEYIS PROC NEAR
PUSH DX
MOV DX,0200H
CON: CALL DISP
DEC DX
JNZ CON
POP DX
RET
DEYIS1 PROC NEAR
PUSH AX
PUSH CX
PUSH DX
MOV BL,10
DIV BL
MOV SI,3000H
MOV [SI],AX
MOV DL,OFFH
MOV AL,DL
AGAIN: OUT 60H,AL
MOV AL,[SI]
MOV BX,OFFFSET TABLE
AND AX,00FFH
ADD BX,AX
MOV AL,[BX]
OUT 61H,AL
CALL DALLY
INC SI
MOV AL,DL
TEST AL,04H
JZ ENDIS
DOR AL,1
MOV DL,AL
JMP AGAIN
ENDIS: POP DX
POP CX
POP AX
RET
DISP ENDP
DALLY: PUSH CX
MOV CX,0010H
T1: MOV AX,0010H
T2: DEC AX
JNZ T2
LOOP T1
POP CX
RET
CODE ENDS
END START |