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

📄 yc_mainfile.lss

📁 AVRX实时操作无线遥控LED变化控制完整源码
💻 LSS
📖 第 1 页 / 共 4 页
字号:
	else
	    {
		if(bCurPlayIdx == 0x55)
 492:	80 91 60 00 	lds	r24, 0x0060
 496:	85 35       	cpi	r24, 0x55	; 85
 498:	19 f4       	brne	.+6      	; 0x4a0
		    Play_Gradual(PLAY_GRADSPEED);
 49a:	81 e0       	ldi	r24, 0x01	; 1
 49c:	44 de       	rcall	.-888    	; 0x126
 49e:	08 95       	ret
		else
			PlayStaticAsh(wCurRedAshVal, wCurGreAshVal, wCurBluAshVal);
 4a0:	40 91 88 01 	lds	r20, 0x0188
 4a4:	50 91 89 01 	lds	r21, 0x0189
 4a8:	60 91 93 01 	lds	r22, 0x0193
 4ac:	70 91 94 01 	lds	r23, 0x0194
 4b0:	80 91 8a 01 	lds	r24, 0x018A
 4b4:	90 91 8b 01 	lds	r25, 0x018B
 4b8:	17 de       	rcall	.-978    	; 0xe8
 4ba:	08 95       	ret
 4bc:	08 95       	ret

000004be <InitWorkState>:
		}
}

/*=====================================================================
【功  能】:	初始化工作状态
【名  称】:	InitWorkState()
【日  期】:	2006年8月30日
=====================================================================*/
void InitWorkState(void)
{
    DDRD |= (_BV(PD5) | _BV(PD6) | _BV(PD7));
 4be:	81 b3       	in	r24, 0x11	; 17
 4c0:	80 6e       	ori	r24, 0xE0	; 224
 4c2:	81 bb       	out	0x11, r24	; 17
	DDRC &= ~(_BV(PC0) | _BV(PC1) | _BV(PC2) | _BV(PC3));
 4c4:	84 b3       	in	r24, 0x14	; 20
 4c6:	80 7f       	andi	r24, 0xF0	; 240
 4c8:	84 bb       	out	0x14, r24	; 20
	DDRD &= ~(_BV(PD2));
 4ca:	8a 98       	cbi	0x11, 2	; 17
	PORTD |= _BV(PD2);
 4cc:	92 9a       	sbi	0x12, 2	; 18
	
    WorkFlag.bKeyUpt = 1;
 4ce:	81 e0       	ldi	r24, 0x01	; 1
 4d0:	80 93 8f 01 	sts	0x018F, r24
	WorkFlag.bColseWork = 0;
 4d4:	10 92 8e 01 	sts	0x018E, r1
    LoadWorkState();
 4d8:	9a df       	rcall	.-204    	; 0x40e
 4da:	08 95       	ret

000004dc <eeprom_read_byte>:
 4dc:	e1 99       	sbic	0x1c, 1	; 28
 4de:	fe cf       	rjmp	.-4      	; 0x4dc
 4e0:	9f bb       	out	0x1f, r25	; 31
 4e2:	8e bb       	out	0x1e, r24	; 30
 4e4:	e0 9a       	sbi	0x1c, 0	; 28
 4e6:	99 27       	eor	r25, r25
 4e8:	8d b3       	in	r24, 0x1d	; 29
 4ea:	08 95       	ret

000004ec <eeprom_read_word>:
 4ec:	e1 99       	sbic	0x1c, 1	; 28
 4ee:	fe cf       	rjmp	.-4      	; 0x4ec
 4f0:	9f bb       	out	0x1f, r25	; 31
 4f2:	8e bb       	out	0x1e, r24	; 30
 4f4:	e0 9a       	sbi	0x1c, 0	; 28
 4f6:	01 96       	adiw	r24, 0x01	; 1
 4f8:	0d b2       	in	r0, 0x1d	; 29
 4fa:	9f bb       	out	0x1f, r25	; 31
 4fc:	8e bb       	out	0x1e, r24	; 30
 4fe:	e0 9a       	sbi	0x1c, 0	; 28
 500:	80 2d       	mov	r24, r0
 502:	9d b3       	in	r25, 0x1d	; 29
 504:	08 95       	ret

00000506 <eeprom_write_byte>:
 506:	e1 99       	sbic	0x1c, 1	; 28
 508:	fe cf       	rjmp	.-4      	; 0x506
 50a:	9f bb       	out	0x1f, r25	; 31
 50c:	8e bb       	out	0x1e, r24	; 30
 50e:	6d bb       	out	0x1d, r22	; 29
 510:	0f b6       	in	r0, 0x3f	; 63
 512:	f8 94       	cli
 514:	e2 9a       	sbi	0x1c, 2	; 28
 516:	e1 9a       	sbi	0x1c, 1	; 28
 518:	0f be       	out	0x3f, r0	; 63
 51a:	08 95       	ret

0000051c <eeprom_write_word>:
 51c:	ff ef       	ldi	r31, 0xFF	; 255
 51e:	0f b6       	in	r0, 0x3f	; 63

00000520 <eeprom_write_word_start>:
 520:	e1 99       	sbic	0x1c, 1	; 28
 522:	fe cf       	rjmp	.-4      	; 0x520
 524:	9f bb       	out	0x1f, r25	; 31
 526:	8e bb       	out	0x1e, r24	; 30
 528:	6d bb       	out	0x1d, r22	; 29
 52a:	f8 94       	cli
 52c:	e2 9a       	sbi	0x1c, 2	; 28
 52e:	e1 9a       	sbi	0x1c, 1	; 28
 530:	0f be       	out	0x3f, r0	; 63
 532:	f0 ff       	sbrs	r31, 0
 534:	08 95       	ret
 536:	8f 5f       	subi	r24, 0xFF	; 255
 538:	9f 4f       	sbci	r25, 0xFF	; 255
 53a:	67 2f       	mov	r22, r23
 53c:	ff 27       	eor	r31, r31
 53e:	f0 cf       	rjmp	.-32     	; 0x520

00000540 <IntProlog>:
 540:	df 93       	push	r29
 542:	cf 93       	push	r28
 544:	bf 93       	push	r27
 546:	af 93       	push	r26
 548:	9f 93       	push	r25
 54a:	d1 e0       	ldi	r29, 0x01	; 1
 54c:	cc e9       	ldi	r28, 0x9C	; 156
 54e:	9f b7       	in	r25, 0x3f	; 63
 550:	ae 81       	ldd	r26, Y+6	; 0x06
 552:	af 5f       	subi	r26, 0xFF	; 255
 554:	ae 83       	std	Y+6, r26	; 0x06
 556:	60 f0       	brcs	.+24     	; 0x570
 558:	aa 81       	ldd	r26, Y+2	; 0x02
 55a:	bb 81       	ldd	r27, Y+3	; 0x03
 55c:	ba 2b       	or	r27, r26
 55e:	41 f4       	brne	.+16     	; 0x570
 560:	cd b7       	in	r28, 0x3d	; 61
 562:	de b7       	in	r29, 0x3e	; 62
 564:	fe 81       	ldd	r31, Y+6	; 0x06
 566:	ef 81       	ldd	r30, Y+7	; 0x07
 568:	29 96       	adiw	r28, 0x09	; 9
 56a:	cd bf       	out	0x3d, r28	; 61
 56c:	de bf       	out	0x3e, r29	; 62
 56e:	09 94       	ijmp

00000570 <SaveContext>:
 570:	8f 93       	push	r24
 572:	7f 93       	push	r23
 574:	6f 93       	push	r22
 576:	5f 93       	push	r21
 578:	4f 93       	push	r20
 57a:	3f 93       	push	r19
 57c:	2f 93       	push	r18
 57e:	1f 93       	push	r17
 580:	0f 93       	push	r16
 582:	ff 92       	push	r15
 584:	ef 92       	push	r14
 586:	df 92       	push	r13
 588:	cf 92       	push	r12
 58a:	bf 92       	push	r11
 58c:	af 92       	push	r10
 58e:	9f 92       	push	r9
 590:	8f 92       	push	r8
 592:	7f 92       	push	r7
 594:	6f 92       	push	r6
 596:	5f 92       	push	r5
 598:	4f 92       	push	r4
 59a:	3f 92       	push	r3
 59c:	2f 92       	push	r2
 59e:	1f 92       	push	r1
 5a0:	0f 92       	push	r0
 5a2:	9f 93       	push	r25
 5a4:	cd b7       	in	r28, 0x3d	; 61
 5a6:	de b7       	in	r29, 0x3e	; 62
 5a8:	9b 8d       	ldd	r25, Y+27	; 0x1b
 5aa:	39 a1       	ldd	r19, Y+33	; 0x21
 5ac:	48 a1       	ldd	r20, Y+32	; 0x20
 5ae:	e8 a3       	std	Y+32, r30	; 0x20
 5b0:	f9 a3       	std	Y+33, r31	; 0x21
 5b2:	a0 e0       	ldi	r26, 0x00	; 0
 5b4:	0a 2e       	mov	r0, r26
 5b6:	c0 f0       	brcs	.+48     	; 0x5e8
 5b8:	f1 e0       	ldi	r31, 0x01	; 1
 5ba:	ec e9       	ldi	r30, 0x9C	; 156
 5bc:	d3 81       	ldd	r29, Z+3	; 0x03
 5be:	c2 81       	ldd	r28, Z+2	; 0x02
 5c0:	be b7       	in	r27, 0x3e	; 62
 5c2:	ad b7       	in	r26, 0x3d	; 61
 5c4:	bd 83       	std	Y+5, r27	; 0x05
 5c6:	ac 83       	std	Y+4, r26	; 0x04
 5c8:	2a 81       	ldd	r18, Y+2	; 0x02
 5ca:	27 ff       	sbrs	r18, 7
 5cc:	07 c0       	rjmp	.+14     	; 0x5dc
 5ce:	19 80       	ldd	r1, Y+1	; 0x01
 5d0:	11 82       	std	Z+1, r1	; 0x01
 5d2:	18 80       	ld	r1, Y
 5d4:	10 82       	st	Z, r1
 5d6:	02 2e       	mov	r0, r18
 5d8:	2f 77       	andi	r18, 0x7F	; 127
 5da:	2a 83       	std	Y+2, r18	; 0x02

000005dc <SkipDequeue>:
 5dc:	24 81       	ldd	r18, Z+4	; 0x04
 5de:	2d bf       	out	0x3d, r18	; 61
 5e0:	25 81       	ldd	r18, Z+5	; 0x05
 5e2:	2e bf       	out	0x3e, r18	; 62
 5e4:	ca 2f       	mov	r28, r26
 5e6:	db 2f       	mov	r29, r27

000005e8 <AlreadyInKernel>:
 5e8:	11 24       	eor	r1, r1
 5ea:	e3 2f       	mov	r30, r19
 5ec:	f4 2f       	mov	r31, r20
 5ee:	09 94       	ijmp

000005f0 <Epilog>:
 5f0:	ef 91       	pop	r30
 5f2:	ef 91       	pop	r30

000005f4 <_Epilog>:
 5f4:	ec e9       	ldi	r30, 0x9C	; 156
 5f6:	f1 e0       	ldi	r31, 0x01	; 1
 5f8:	f8 94       	cli
 5fa:	06 81       	ldd	r16, Z+6	; 0x06
 5fc:	0a 95       	dec	r16
 5fe:	06 83       	std	Z+6, r16	; 0x06
 600:	6c f4       	brge	.+26     	; 0x61c
 602:	d1 81       	ldd	r29, Z+1	; 0x01
 604:	c0 81       	ld	r28, Z
 606:	d3 83       	std	Z+3, r29	; 0x03
 608:	c2 83       	std	Z+2, r28	; 0x02
 60a:	20 96       	adiw	r28, 0x00	; 0
 60c:	51 f1       	breq	.+84     	; 0x662
 60e:	bd 81       	ldd	r27, Y+5	; 0x05
 610:	ac 81       	ldd	r26, Y+4	; 0x04
 612:	ad bf       	out	0x3d, r26	; 61
 614:	be bf       	out	0x3e, r27	; 62
 616:	0a 80       	ldd	r0, Y+2	; 0x02
 618:	07 fc       	sbrc	r0, 7
 61a:	78 d1       	rcall	.+752    	; 0x90c

0000061c <SkipTaskSwap>:
 61c:	0f 90       	pop	r0
 61e:	0f be       	out	0x3f, r0	; 63
 620:	0f 90       	pop	r0
 622:	1f 90       	pop	r1
 624:	2f 90       	pop	r2
 626:	3f 90       	pop	r3
 628:	4f 90       	pop	r4
 62a:	5f 90       	pop	r5
 62c:	6f 90       	pop	r6
 62e:	7f 90       	pop	r7
 630:	8f 90       	pop	r8
 632:	9f 90       	pop	r9
 634:	af 90       	pop	r10
 636:	bf 90       	pop	r11
 638:	cf 90       	pop	r12
 63a:	df 90       	pop	r13
 63c:	ef 90       	pop	r14
 63e:	ff 90       	pop	r15
 640:	0f 91       	pop	r16
 642:	1f 91       	pop	r17
 644:	2f 91       	pop	r18
 646:	3f 91       	pop	r19
 648:	4f 91       	pop	r20
 64a:	5f 91       	pop	r21
 64c:	6f 91       	pop	r22
 64e:	7f 91       	pop	r23
 650:	8f 91       	pop	r24
 652:	9f 91       	pop	r25
 654:	af 91       	pop	r26
 656:	bf 91       	pop	r27
 658:	cf 91       	pop	r28
 65a:	df 91       	pop	r29
 65c:	ef 91       	pop	r30
 65e:	ff 91       	pop	r31
 660:	18 95       	reti

00000662 <_IdleTask>:
 662:	78 94       	sei
 664:	88 95       	sleep

00000666 <snooze>:
 666:	fd cf       	rjmp	.-6      	; 0x662

00000668 <AvrXSetKernelStack>:
 668:	ff 91       	pop	r31
 66a:	ef 91       	pop	r30
 66c:	80 50       	subi	r24, 0x00	; 0
 66e:	90 40       	sbci	r25, 0x00	; 0
 670:	11 f4       	brne	.+4      	; 0x676
 672:	8d b7       	in	r24, 0x3d	; 61
 674:	9e b7       	in	r25, 0x3e	; 62

00000676 <sks1>:
 676:	80 93 a0 01 	sts	0x01A0, r24
 67a:	90 93 a1 01 	sts	0x01A1, r25
 67e:	09 94       	ijmp

00000680 <AvrXRunTask>:
 680:	01 d0       	rcall	.+2      	; 0x684
 682:	23 c0       	rjmp	.+70     	; 0x6ca

00000684 <AvrXInitTask>:
 684:	e8 2f       	mov	r30, r24
 686:	f9 2f       	mov	r31, r25
 688:	1d d0       	rcall	.+58     	; 0x6c4
 68a:	a0 2d       	mov	r26, r0
 68c:	1b d0       	rcall	.+54     	; 0x6c4
 68e:	b0 2d       	mov	r27, r0
 690:	19 d0       	rcall	.+50     	; 0x6c4
 692:	0c 92       	st	X, r0
 694:	17 d0       	rcall	.+46     	; 0x6c4
 696:	0e 92       	st	-X, r0
 698:	40 e0       	ldi	r20, 0x00	; 0
 69a:	40 e0       	ldi	r20, 0x00	; 0
 69c:	51 e2       	ldi	r21, 0x21	; 33

0000069e <PushRegisters>:
 69e:	4e 93       	st	-X, r20
 6a0:	5a 95       	dec	r21
 6a2:	e9 f7       	brne	.-6      	; 0x69e
 6a4:	11 97       	sbiw	r26, 0x01	; 1
 6a6:	0e d0       	rcall	.+28     	; 0x6c4
 6a8:	80 2d       	mov	r24, r0
 6aa:	0c d0       	rcall	.+24     	; 0x6c4
 6ac:	90 2d       	mov	r25, r0
 6ae:	0a d0       	rcall	.+20     	; 0x6c4
 6b0:	e8 2f       	mov	r30, r24
 6b2:	f9 2f       	mov	r31, r25
 6b4:	a4 83       	std	Z+4, r26	; 0x04
 6b6:	b5 83       	std	Z+5, r27	; 0x05
 6b8:	03 82       	std	Z+3, r0	; 0x03
 6ba:	a0 e6       	ldi	r26, 0x60	; 96
 6bc:	a2 83       	std	Z+2, r26	; 0x02
 6be:	41 83       	std	Z+1, r20	; 0x01
 6c0:	40 83       	st	Z, r20
 6c2:	08 95       	ret

000006c4 <lpm_inc>:
 6c4:	c8 95       	lpm
 6c6:	31 96       	adiw	r30, 0x01	; 1
 6c8:	08 95       	ret

000006ca <AvrXResume>:
 6ca:	f8 94       	cli
 6cc:	39 df       	rcall	.-398    	; 0x540
 6ce:	78 94       	sei
 6d0:	e8 2f       	mov	r30, r24
 6d2:	f9 2f       	mov	r31, r25
 6d4:	22 81       	ldd	r18, Z+2	; 0x02
 6d6:	2f 7d       	andi	r18, 0xDF	; 223
 6d8:	22 83       	std	Z+2, r18	; 0x02
 6da:	26 ff       	sbrs	r18, 6
 6dc:	03 c0       	rjmp	.+6      	; 0x6e4
 6de:	2f 7b       	andi	r18, 0xBF	; 191
 6e0:	22 83       	std	Z+2, r18	; 0x02
 6e2:	01 d0       	rcall	.+2      	; 0x6e6

000006e4 <ar00>:
 6e4:	87 cf       	rjmp	.-242    	; 0x5f4

000006e6 <_QueuePid>:
 6e6:	e8 2f       	mov	r30, r24
 6e8:	f9 2f       	mov	r31, r25
 6ea:	3f ef       	ldi	r19, 0xFF	; 255
 6ec:	22 81       	ldd	r18, Z+2	; 0x02
 6ee:	20 73       	andi	r18, 0x30	; 48
 6f0:	d1 f4       	brne	.+52     	; 0x726
 6f2:	cf 93       	push	r28
 6f4:	2d 2f       	mov	r18, r29
 6f6:	43 81       	ldd	r20, Z+3	; 0x03
 6f8:	cc e9       	ldi	r28, 0x9C	; 156
 6fa:	d1 e0       	ldi	r29, 0x01	; 1
 6fc:	f8 94       	cli

⌨️ 快捷键说明

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