⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.lss

📁 空调控制程序
💻 LSS
📖 第 1 页 / 共 5 页
字号:
     26a:	41 f4       	brne	.+16     	; 0x27c <IfDisHeat+0x1c>
     26c:	80 91 04 02 	lds	r24, 0x0204
     270:	81 ff       	sbrs	r24, 1
     272:	04 c0       	rjmp	.+8      	; 0x27c <IfDisHeat+0x1c>
     274:	98 7f       	andi	r25, 0xF8	; 248
     276:	94 60       	ori	r25, 0x04	; 4
     278:	90 93 f2 01 	sts	0x01F2, r25
     27c:	08 95       	ret

0000027e <IfPowerUp>:
     27e:	20 91 f2 01 	lds	r18, 0x01F2
     282:	27 fd       	sbrc	r18, 7
     284:	2c c0       	rjmp	.+88     	; 0x2de <IfPowerUp+0x60>
     286:	40 91 0e 02 	lds	r20, 0x020E
     28a:	44 23       	and	r20, r20
     28c:	41 f1       	breq	.+80     	; 0x2de <IfPowerUp+0x60>
     28e:	30 91 f7 01 	lds	r19, 0x01F7
     292:	34 ff       	sbrs	r19, 4
     294:	20 c0       	rjmp	.+64     	; 0x2d6 <IfPowerUp+0x58>
     296:	80 91 0a 02 	lds	r24, 0x020A
     29a:	90 91 0d 02 	lds	r25, 0x020D
     29e:	98 0f       	add	r25, r24
     2a0:	98 17       	cp	r25, r24
     2a2:	10 f0       	brcs	.+4      	; 0x2a8 <IfPowerUp+0x2a>
     2a4:	49 17       	cp	r20, r25
     2a6:	48 f4       	brcc	.+18     	; 0x2ba <IfPowerUp+0x3c>
     2a8:	26 ff       	sbrs	r18, 6
     2aa:	05 c0       	rjmp	.+10     	; 0x2b6 <IfPowerUp+0x38>
     2ac:	80 91 f1 01 	lds	r24, 0x01F1
     2b0:	80 68       	ori	r24, 0x80	; 128
     2b2:	80 93 f1 01 	sts	0x01F1, r24
     2b6:	2f 77       	andi	r18, 0x7F	; 127
     2b8:	0a c0       	rjmp	.+20     	; 0x2ce <IfPowerUp+0x50>
     2ba:	80 91 f1 01 	lds	r24, 0x01F1
     2be:	8f 77       	andi	r24, 0x7F	; 127
     2c0:	80 93 f1 01 	sts	0x01F1, r24
     2c4:	25 fd       	sbrc	r18, 5
     2c6:	05 c0       	rjmp	.+10     	; 0x2d2 <IfPowerUp+0x54>
     2c8:	26 ff       	sbrs	r18, 6
     2ca:	03 c0       	rjmp	.+6      	; 0x2d2 <IfPowerUp+0x54>
     2cc:	20 68       	ori	r18, 0x80	; 128
     2ce:	20 93 f2 01 	sts	0x01F2, r18
     2d2:	37 7e       	andi	r19, 0xE7	; 231
     2d4:	01 c0       	rjmp	.+2      	; 0x2d8 <IfPowerUp+0x5a>
     2d6:	34 60       	ori	r19, 0x04	; 4
     2d8:	30 93 f7 01 	sts	0x01F7, r19
     2dc:	08 95       	ret
     2de:	80 91 f7 01 	lds	r24, 0x01F7
     2e2:	83 7e       	andi	r24, 0xE3	; 227
     2e4:	80 93 f7 01 	sts	0x01F7, r24
     2e8:	08 95       	ret

000002ea <SetMode>:
     2ea:	58 2f       	mov	r21, r24
     2ec:	40 91 0b 02 	lds	r20, 0x020B
     2f0:	45 ff       	sbrs	r20, 5
     2f2:	03 c0       	rjmp	.+6      	; 0x2fa <SetMode+0x10>
     2f4:	20 e0       	ldi	r18, 0x00	; 0
     2f6:	30 e0       	ldi	r19, 0x00	; 0
     2f8:	06 c0       	rjmp	.+12     	; 0x306 <SetMode+0x1c>
     2fa:	80 91 f2 01 	lds	r24, 0x01F2
     2fe:	28 2f       	mov	r18, r24
     300:	30 e0       	ldi	r19, 0x00	; 0
     302:	27 70       	andi	r18, 0x07	; 7
     304:	30 70       	andi	r19, 0x00	; 0
     306:	85 2f       	mov	r24, r21
     308:	90 e0       	ldi	r25, 0x00	; 0
     30a:	82 17       	cp	r24, r18
     30c:	93 07       	cpc	r25, r19
     30e:	59 f0       	breq	.+22     	; 0x326 <SetMode+0x3c>
     310:	80 91 f2 01 	lds	r24, 0x01F2
     314:	88 7f       	andi	r24, 0xF8	; 248
     316:	85 2b       	or	r24, r21
     318:	80 93 f2 01 	sts	0x01F2, r24
     31c:	4f 75       	andi	r20, 0x5F	; 95
     31e:	40 93 0b 02 	sts	0x020B, r20
     322:	0e 94 30 01 	call	0x260	; 0x260 <IfDisHeat>
     326:	08 95       	ret

00000328 <main>:
     328:	f8 94       	cli
     32a:	19 be       	out	0x39, r1	; 57
     32c:	8f ef       	ldi	r24, 0xFF	; 255
     32e:	88 bf       	out	0x38, r24	; 56
     330:	0e 94 39 09 	call	0x1272	; 0x1272 <PORTS_Init>
     334:	0e 94 2e 09 	call	0x125c	; 0x125c <PORTS_Ref>
     338:	80 91 08 02 	lds	r24, 0x0208
     33c:	90 91 09 02 	lds	r25, 0x0209
     340:	8d 57       	subi	r24, 0x7D	; 125
     342:	9a 45       	sbci	r25, 0x5A	; 90
     344:	99 f0       	breq	.+38     	; 0x36c <main+0x44>
     346:	8d e7       	ldi	r24, 0x7D	; 125
     348:	9a e5       	ldi	r25, 0x5A	; 90
     34a:	90 93 09 02 	sts	0x0209, r25
     34e:	80 93 08 02 	sts	0x0208, r24
     352:	0e 94 a0 13 	call	0x2740	; 0x2740 <Swing_Init>
     356:	0e 94 b1 0a 	call	0x1562	; 0x1562 <V_Init>
     35a:	8e e0       	ldi	r24, 0x0E	; 14
     35c:	80 93 1f 02 	sts	0x021F, r24
     360:	0e 94 24 09 	call	0x1248	; 0x1248 <Led_Init>
     364:	0e 94 13 02 	call	0x426	; 0x426 <ADC_Init>
     368:	0e 94 9f 05 	call	0xb3e	; 0xb3e <GetFromEEPROM>
     36c:	0e 94 95 14 	call	0x292a	; 0x292a <Init_Timer>
     370:	0e 94 3e 0b 	call	0x167c	; 0x167c <Init_TIMA>
     374:	0e 94 eb 0e 	call	0x1dd6	; 0x1dd6 <Init_TIMB>
     378:	88 e1       	ldi	r24, 0x18	; 24
     37a:	90 e0       	ldi	r25, 0x00	; 0
     37c:	2d e0       	ldi	r18, 0x0D	; 13
     37e:	0f b6       	in	r0, 0x3f	; 63
     380:	f8 94       	cli
     382:	a8 95       	wdr
     384:	81 bd       	out	0x21, r24	; 33
     386:	0f be       	out	0x3f, r0	; 63
     388:	21 bd       	out	0x21, r18	; 33
     38a:	78 94       	sei
     38c:	0e 94 2e 09 	call	0x125c	; 0x125c <PORTS_Ref>
     390:	0e 94 87 13 	call	0x270e	; 0x270e <Swing_Sub>
     394:	0e 94 e7 09 	call	0x13ce	; 0x13ce <ValveCont_Sub>
     398:	0e 94 a3 14 	call	0x2946	; 0x2946 <Timer_Sub>
     39c:	0e 94 69 0d 	call	0x1ad2	; 0x1ad2 <LcCom_Sub>
     3a0:	80 91 f2 01 	lds	r24, 0x01F2
     3a4:	87 70       	andi	r24, 0x07	; 7
     3a6:	83 30       	cpi	r24, 0x03	; 3
     3a8:	29 f4       	brne	.+10     	; 0x3b4 <main+0x8c>
     3aa:	80 91 05 02 	lds	r24, 0x0205
     3ae:	8f 7e       	andi	r24, 0xEF	; 239
     3b0:	80 93 05 02 	sts	0x0205, r24
     3b4:	0e 94 30 01 	call	0x260	; 0x260 <IfDisHeat>
     3b8:	0e 94 e0 11 	call	0x23c0	; 0x23c0 <ScCom_Sub>
     3bc:	a8 95       	wdr
     3be:	0e 94 a1 13 	call	0x2742	; 0x2742 <SleepSub>
     3c2:	0e 94 64 14 	call	0x28c8	; 0x28c8 <TimerOnOff>
     3c6:	80 91 f2 01 	lds	r24, 0x01F2
     3ca:	81 3c       	cpi	r24, 0xC1	; 193
     3cc:	31 f4       	brne	.+12     	; 0x3da <main+0xb2>
     3ce:	81 e0       	ldi	r24, 0x01	; 1
     3d0:	0e 94 8d 00 	call	0x11a	; 0x11a <CHKMode>
     3d4:	0e 94 f5 00 	call	0x1ea	; 0x1ea <Heat_Power>
     3d8:	19 c0       	rjmp	.+50     	; 0x40c <main+0xe4>
     3da:	82 3c       	cpi	r24, 0xC2	; 194
     3dc:	21 f4       	brne	.+8      	; 0x3e6 <main+0xbe>
     3de:	62 e0       	ldi	r22, 0x02	; 2
     3e0:	80 91 f6 01 	lds	r24, 0x01F6
     3e4:	04 c0       	rjmp	.+8      	; 0x3ee <main+0xc6>
     3e6:	83 3c       	cpi	r24, 0xC3	; 195
     3e8:	29 f4       	brne	.+10     	; 0x3f4 <main+0xcc>
     3ea:	63 e0       	ldi	r22, 0x03	; 3
     3ec:	80 e9       	ldi	r24, 0x90	; 144
     3ee:	0e 94 c7 00 	call	0x18e	; 0x18e <Cool_Power>
     3f2:	0c c0       	rjmp	.+24     	; 0x40c <main+0xe4>
     3f4:	10 92 0c 02 	sts	0x020C, r1
     3f8:	80 91 0b 02 	lds	r24, 0x020B
     3fc:	8f 7b       	andi	r24, 0xBF	; 191
     3fe:	80 93 0b 02 	sts	0x020B, r24
     402:	80 91 05 02 	lds	r24, 0x0205
     406:	8e 7f       	andi	r24, 0xFE	; 254
     408:	80 93 05 02 	sts	0x0205, r24
     40c:	0e 94 65 04 	call	0x8ca	; 0x8ca <WorkStu_Sub>
     410:	0e 94 40 04 	call	0x880	; 0x880 <FanCont_Sub>
     414:	0e 94 ca 02 	call	0x594	; 0x594 <Eheat_Sub>
     418:	0e 94 b2 02 	call	0x564	; 0x564 <Buz_Sub>
     41c:	0e 94 15 05 	call	0xa2a	; 0xa2a <SaveToEEPROM>
     420:	0e 94 3f 01 	call	0x27e	; 0x27e <IfPowerUp>
     424:	b3 cf       	rjmp	.-154    	; 0x38c <main+0x64>

00000426 <ADC_Init>:
     426:	86 e9       	ldi	r24, 0x96	; 150
     428:	80 93 1b 02 	sts	0x021B, r24
     42c:	80 e8       	ldi	r24, 0x80	; 128
     42e:	80 93 1c 02 	sts	0x021C, r24
     432:	80 93 1d 02 	sts	0x021D, r24
     436:	80 93 1e 02 	sts	0x021E, r24
     43a:	08 95       	ret

0000043c <ADC_Get>:
     43c:	86 e8       	ldi	r24, 0x86	; 134
     43e:	86 b9       	out	0x06, r24	; 6
     440:	85 b1       	in	r24, 0x05	; 5
     442:	40 91 15 02 	lds	r20, 0x0215
     446:	84 2f       	mov	r24, r20
     448:	80 66       	ori	r24, 0x60	; 96
     44a:	87 b9       	out	0x07, r24	; 7
     44c:	85 b1       	in	r24, 0x05	; 5
     44e:	36 9a       	sbi	0x06, 6	; 6
     450:	36 9b       	sbis	0x06, 6	; 6
     452:	fe cf       	rjmp	.-4      	; 0x450 <ADC_Get+0x14>
     454:	80 91 13 02 	lds	r24, 0x0213
     458:	25 b1       	in	r18, 0x05	; 5
     45a:	e8 2f       	mov	r30, r24
     45c:	f0 e0       	ldi	r31, 0x00	; 0
     45e:	ea 5e       	subi	r30, 0xEA	; 234
     460:	fd 4f       	sbci	r31, 0xFD	; 253
     462:	20 83       	st	Z, r18
     464:	38 2f       	mov	r19, r24
     466:	3f 5f       	subi	r19, 0xFF	; 255
     468:	30 93 13 02 	sts	0x0213, r19
     46c:	31 30       	cpi	r19, 0x01	; 1
     46e:	09 f4       	brne	.+2      	; 0x472 <__stack+0x13>
     470:	78 c0       	rjmp	.+240    	; 0x562 <__stack+0x103>
     472:	e3 2f       	mov	r30, r19
     474:	f0 e0       	ldi	r31, 0x00	; 0
     476:	ec 5e       	subi	r30, 0xEC	; 236
     478:	fd 4f       	sbci	r31, 0xFD	; 253
     47a:	e0 81       	ld	r30, Z
     47c:	e2 17       	cp	r30, r18
     47e:	20 f0       	brcs	.+8      	; 0x488 <__stack+0x29>
     480:	e2 1b       	sub	r30, r18
     482:	e5 31       	cpi	r30, 0x15	; 21
     484:	40 f0       	brcs	.+16     	; 0x496 <__stack+0x37>
     486:	04 c0       	rjmp	.+8      	; 0x490 <__stack+0x31>
     488:	82 2f       	mov	r24, r18
     48a:	8e 1b       	sub	r24, r30
     48c:	85 31       	cpi	r24, 0x15	; 21
     48e:	18 f0       	brcs	.+6      	; 0x496 <__stack+0x37>
     490:	10 92 13 02 	sts	0x0213, r1
     494:	08 95       	ret
     496:	83 2f       	mov	r24, r19
     498:	81 50       	subi	r24, 0x01	; 1
     49a:	07 c0       	rjmp	.+14     	; 0x4aa <__stack+0x4b>
     49c:	90 83       	st	Z, r25
     49e:	81 50       	subi	r24, 0x01	; 1
     4a0:	e8 2f       	mov	r30, r24
     4a2:	f0 e0       	ldi	r31, 0x00	; 0
     4a4:	ea 5e       	subi	r30, 0xEA	; 234
     4a6:	fd 4f       	sbci	r31, 0xFD	; 253
     4a8:	20 83       	st	Z, r18
     4aa:	88 23       	and	r24, r24
     4ac:	41 f0       	breq	.+16     	; 0x4be <__stack+0x5f>
     4ae:	e8 2f       	mov	r30, r24
     4b0:	f0 e0       	ldi	r31, 0x00	; 0
     4b2:	ea 5e       	subi	r30, 0xEA	; 234
     4b4:	fd 4f       	sbci	r31, 0xFD	; 253
     4b6:	92 91       	ld	r25, -Z
     4b8:	31 96       	adiw	r30, 0x01	; 1
     4ba:	29 17       	cp	r18, r25
     4bc:	78 f3       	brcs	.-34     	; 0x49c <__stack+0x3d>
     4be:	35 30       	cpi	r19, 0x05	; 5
     4c0:	08 f4       	brcc	.+2      	; 0x4c4 <__stack+0x65>
     4c2:	4f c0       	rjmp	.+158    	; 0x562 <__stack+0x103>
     4c4:	20 91 18 02 	lds	r18, 0x0218
     4c8:	82 2f       	mov	r24, r18
     4ca:	84 50       	subi	r24, 0x04	; 4
     4cc:	85 3e       	cpi	r24, 0xE5	; 229
     4ce:	e0 f0       	brcs	.+56     	; 0x508 <__stack+0xa9>
     4d0:	80 91 14 02 	lds	r24, 0x0214
     4d4:	a4 2f       	mov	r26, r20
     4d6:	b0 e0       	ldi	r27, 0x00	; 0
     4d8:	88 23       	and	r24, r24
     4da:	91 f4       	brne	.+36     	; 0x500 <__stack+0xa1>
     4dc:	fd 01       	movw	r30, r26
     4de:	e1 5f       	subi	r30, 0xF1	; 241
     4e0:	fd 4f       	sbci	r31, 0xFD	; 253
     4e2:	80 81       	ld	r24, Z
     4e4:	8f 5f       	subi	r24, 0xFF	; 255
     4e6:	80 83       	st	Z, r24
     4e8:	81 50       	subi	r24, 0x01	; 1
     4ea:	8a 30       	cpi	r24, 0x0A	; 10
     4ec:	80 f1       	brcs	.+96     	; 0x54e <__stack+0xef>
     4ee:	af 5c       	subi	r26, 0xCF	; 207
     4f0:	be 4f       	sbci	r27, 0xFE	; 254
     4f2:	80 91 f1 01 	lds	r24, 0x01F1
     4f6:	9c 91       	ld	r25, X
     4f8:	89 2b       	or	r24, r25
     4fa:	80 93 f1 01 	sts	0x01F1, r24
     4fe:	27 c0       	rjmp	.+78     	; 0x54e <__stack+0xef>
     500:	a1 5f       	subi	r26, 0xF1	; 241
     502:	bd 4f       	sbci	r27, 0xFD	; 253
     504:	1c 92       	st	X, r1
     506:	23 c0       	rjmp	.+70     	; 0x54e <__stack+0xef>
     508:	a4 2f       	mov	r26, r20
     50a:	b0 e0       	ldi	r27, 0x00	; 0
     50c:	fd 01       	movw	r30, r26
     50e:	e1 5f       	subi	r30, 0xF1	; 241
     510:	fd 4f       	sbci	r31, 0xFD	; 253
     512:	10 82       	st	Z, r1
     514:	fd 01       	movw	r30, r26
     516:	ef 5c       	subi	r30, 0xCF	; 207
     518:	fe 4f       	sbci	r31, 0xFE	; 254
     51a:	90 81       	ld	r25, Z
     51c:	90 95       	com	r25
     51e:	80 91 f1 01 	lds	r24, 0x01F1
     522:	89 23       	and	r24, r25
     524:	80 93 f1 01 	sts	0x01F1, r24
     528:	21 31       	cpi	r18, 0x11	; 17
     52a:	18 f4       	brcc	.+6      	; 0x532 <__stack+0xd3>
     52c:	e0 e0       	ldi	r30, 0x00	; 0
     52e:	f0 e0       	ldi	r31, 0x00	; 0
     530:	08 c0       	rjmp	.+16     	; 0x542 <__stack+0xe3>
     532:	20 3e       	cpi	r18, 0xE0	; 224
     534:	18 f0       	brcs	.+6      	; 0x53c <__stack+0xdd>
     536:	e0 ed       	ldi	r30, 0xD0	; 208
     538:	f0 e0       	ldi	r31, 0x00	; 0
     53a:	03 c0       	rjmp	.+6      	; 0x542 <__stack+0xe3>
     53c:	e2 2f       	mov	r30, r18
     53e:	f0 e0       	ldi	r31, 0x00	; 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -