- UID
- 21241
- 阅读权限
- 15
- 推广
-
- 幽默
-
- 注册时间
- 2008-12-12
- 最后登录
- 1970-1-1
|
注册家电维修技术论坛,与同行畅聊维修技术,享更多技术论坛功能。
您需要 登录 才可以下载或查看,没有帐号?快速注册
x
51机倒计时汇编语言设计
L0200: NOP ;00
L0201: CJNE R7,#00H,L0220 ;BF 00 1C
L0204: CJNE R6,#00H,L0220 ;BE 00 19
L0207: CJNE R5,#00H,L0220 ;BD 00 16
L020A: CJNE R4,#00H,L0220 ;BC 00 13
L020D: CJNE R3,#00H,L0220 ;BB 00 10
L0210: CJNE R2,#00H,L0220 ;BA 00 0D
ORG 0216H;---此处没有标识符,可能是无用表,编译不通过可以删除--
L0216: SJMP L0280 ;80 68
L0218: NOP ;00
L0219: DEC R2 ;1A
L021A: CJNE R2,#00H,L0200 ;BA 00 E3
L021D: CJNE R3,#00H,L0230 ;BB 00 10
L0220: CJNE R4,#00H,L0240 ;BC 00 1D
L0223: CJNE R5,#00H,L0250 ;BD 00 2A
L0226: CJNE R6,#00H,L0260 ;BE 00 37
L0229: CJNE R7,#00H,L0270 ;BF 00 44
L022C: NOP ;00
L022D: LJMP L0280 ;02 02 80
L0230: NOP ;00
L0231: DEC R3 ;1B
L0232: MOV R2,#09H ;7A 09
L0234: NOP ;00
L0235: SJMP L0200 ;80 C9
ORG 0240H;---------------------------------------------------
L0240: NOP ;00
L0241: DEC R4 ;1C
L0242: MOV R2,#09H ;7A 09
L0244: MOV R3,#05H ;7B 05
L0246: NOP ;00
L0247: SJMP L0200 ;80 B7
ORG 0250H;---------------------------------------------------
L0250: NOP ;00
L0251: DEC R5 ;1D
L0252: MOV R2,#09H ;7A 09
L0254: MOV R3,#05H ;7B 05
L0256: MOV R4,#09H ;7C 09
L0258: NOP ;00
L0259: SJMP L0200 ;80 A5
ORG 0260H;---------------------------------------------------
L0260: NOP ;00
L0261: DEC R6 ;1E
L0262: MOV R2,#09H ;7A 09
L0264: MOV R3,#05H ;7B 05
L0266: MOV R4,#09H ;7C 09
L0268: MOV R5,#05H ;7D 05
L026A: NOP ;00
L026B: SJMP L0200 ;80 93
ORG 0270H;---------------------------------------------------
L0270: NOP ;00
L0271: DEC R7 ;1F
L0272: MOV R2,#09H ;7A 09
L0274: MOV R3,#05H ;7B 05
L0276: MOV R4,#09H ;7C 09
L0278: MOV R5,#05H ;7D 05
L027A: MOV R6,#09H ;7E 09
L027C: NOP ;00
L027D: SJMP L0200 ;80 81
|
|