您现在的位置是:首页 >动态 > 2024-01-21 05:06:19 来源:
照片mov格式怎么打开(zpmov)
大家好,我是小夏,我来为大家解答以上问题。照片mov格式怎么打开,zpmov很多人还不知道,现在让我们一起来看看吧!
以下是剩余代码
SWADD: MOV A,37H
CJNE A,#2,SWADDX
JNB 2FH.3,MK3
JNB P1.2,SD_1
SETB 2FH.3
RET
MK3: JNB P1.2,SD_EXT1
SETB 2FH.3
SD_EXT1:RET
SD_1: ACALL DELAY
JB P1.2,SD_EXT2
CLR 2FH.3
MOV A,30H
CJNE A,#1,SD_2
INC 50H
MOV A,50H
CJNE A,#10,SD_EXT2
MOV 50H,#0
SD_EXT2:
RET
SD_2: MOV A,30H
CJNE A,#2,SD_3
INC 51H
MOV A,51H
CJNE A,#6,SD_EXT3
MOV 51H,#0
SD_EXT3:
RET
SD_3: MOV A,30H
CJNE A,#3,SD_4
INC 52H
MOV A,52H
CJNE A,#10,SD_EXT4
MOV 52H,#0
SD_EXT4:
RET
SD_4: MOV A,30H
CJNE A,#4,SD_EXT5
INC 53H
MOV A,53H
CJNE A,#3,SD_EXT5
MOV 53H,#0
SD_EXT5:RET
SWADDX: RET
ALARM: MOV A,20H
CJNE A,50H,AEX
MOV A,21H
CJNE A,51H,AEX
MOV A,22H
CJNE A,52H,AEX
MOV A,23H
CJNE A,53H,AEX
CLR P1.7
RET
AEX: SETB P1.7
RET
CODESE: MOV DPTR,#TABLE ;7段码格式
MOV R1,#20H ;将R1指向地址20H
MOV R0,#40H ;将R0指向地址40H
MOV R2,#4 ;将立即数4传递给R2,用于循环
ZP: MOV A,@R1 ;间接寻址,R1指向20H,所以将地址20H的内容传递给A
MOVC A,@A+DPTR ;7段码格式
MOV @R0,A ;间接寻址,R0指向地址40H,所以将A中的内容传递到地址40H中
INC R0
INC R1
DJNZ R2,ZP
MOV R1,#50H
MOV R0,#60H
MOV R3,#4
ZP1: MOV A,@R1
MOVC A,@A+DPTR
MOV @R0,A
INC R0
INC R1
DJNZ R3,ZP1
RET
SHOW: MOV A,37H
CJNE A,#1,SHOW_2
MOV A,30H
CJNE A,#1,L1
JNB 2FH.7,L2
L1: MOV A,#80H
ADD A,40H
MOV P2,A
CLR P0.3
ACALL DELAY
SETB P0.3
L2: MOV A,30H
CJNE A,#2,L3
JNB 2FH.7,L4
L3: MOV P2,41H
CLR P0.2
ACALL DELAY
SETB P0.2
L4: MOV A,30H
CJNE A,#3,L5
JNB 2FH.7,L6
L5: MOV P2,42H
CLR P0.1
ACALL DELAY
SETB P0.1
L6: MOV A,30H
CJNE A,#4,L7
JNB 2FH.7,L8
L7: MOV P2,43H
CLR P0.0
ACALL DELAY
SETB P0.0
L8: RET
SHOW_2: MOV A,37H
CJNE A,#2,SHOW
MOV A,30H
CJNE A,#1,S1
JNB 2FH.7,S2
S1: MOV P2,60H
CLR P0.3
ACALL DELAY
SETB P0.3
S2: MOV A,30H
CJNE A,#2,S3
JNB 2FH.7,S4
S3: MOV P2,61H
CLR P0.2
ACALL DELAY
SETB P0.2
S4: MOV A,30H
CJNE A,#3,S5
JNB 2FH.7,S6
S5: MOV P2,62H
CLR P0.1
ACALL DELAY
SETB P0.1
S6: MOV A,30H
CJNE A,#4,S7
JNB 2FH.7,S8
S7: MOV P2,63H
CLR P0.0
ACALL DELAY
SETB P0.0
S8: RET
ZD: PUSH ACC
PUSH PSW
SETB RS1
SETB RS0
INC R7
CJNE R7,#0C8H,ZD1
MOV R7,#00H
INC R6
CJNE R6,#0AH,ZD1
MOV R6,#00H
INC 08H
CPL 2FH.7
ZD1: CLR RS1
CLR RS0
POP PSW
POP ACC
RETI
DELAY: MOV 2CH,#200
DJNZ 2CH,$
RET
TABLE: DB 3FH,06H,5BH,4FH,66H,6DH,7DH,07H,7FH,6FH
END
本文到此讲解完毕了,希望对大家有帮助。