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

📄 main.lss

📁 基于AVR的超声波测距程序
💻 LSS
📖 第 1 页 / 共 5 页
字号:
     30e:	0f be       	out	0x3f, r0	; 63
     310:	cd bf       	out	0x3d, r28	; 61
     312:	0e 94 60 01 	call	0x2c0	; 0x2c0 <Init_DS1820>
     316:	8c ec       	ldi	r24, 0xCC	; 204
     318:	0e 94 3f 01 	call	0x27e	; 0x27e <write_DS1820>
     31c:	84 e4       	ldi	r24, 0x44	; 68
     31e:	0e 94 3f 01 	call	0x27e	; 0x27e <write_DS1820>
     322:	88 ee       	ldi	r24, 0xE8	; 232
     324:	93 e0       	ldi	r25, 0x03	; 3
     326:	0e 94 8a 04 	call	0x914	; 0x914 <delay_nms>
     32a:	0e 94 60 01 	call	0x2c0	; 0x2c0 <Init_DS1820>
     32e:	8c ec       	ldi	r24, 0xCC	; 204
     330:	0e 94 3f 01 	call	0x27e	; 0x27e <write_DS1820>
     334:	8e eb       	ldi	r24, 0xBE	; 190
     336:	0e 94 3f 01 	call	0x27e	; 0x27e <write_DS1820>
     33a:	8e 01       	movw	r16, r28
     33c:	0f 5f       	subi	r16, 0xFF	; 255
     33e:	1f 4f       	sbci	r17, 0xFF	; 255
     340:	68 01       	movw	r12, r16
     342:	3a e0       	ldi	r19, 0x0A	; 10
     344:	e3 2e       	mov	r14, r19
     346:	f1 2c       	mov	r15, r1
     348:	ec 0e       	add	r14, r28
     34a:	fd 1e       	adc	r15, r29
     34c:	0e 94 1f 01 	call	0x23e	; 0x23e <read_DS1820>
     350:	f8 01       	movw	r30, r16
     352:	81 93       	st	Z+, r24
     354:	8f 01       	movw	r16, r30
     356:	ee 15       	cp	r30, r14
     358:	ff 05       	cpc	r31, r15
     35a:	c1 f7       	brne	.-16     	; 0x34c <GetTemperature+0x5a>
     35c:	e9 81       	ldd	r30, Y+1	; 0x01
     35e:	f0 e0       	ldi	r31, 0x00	; 0
     360:	eb 57       	subi	r30, 0x7B	; 123
     362:	ff 4f       	sbci	r31, 0xFF	; 255
     364:	e0 81       	ld	r30, Z
     366:	de 01       	movw	r26, r28
     368:	12 96       	adiw	r26, 0x02	; 2
     36a:	96 01       	movw	r18, r12
     36c:	28 5f       	subi	r18, 0xF8	; 248
     36e:	3f 4f       	sbci	r19, 0xFF	; 255
     370:	8d 91       	ld	r24, X+
     372:	e8 27       	eor	r30, r24
     374:	f0 e0       	ldi	r31, 0x00	; 0
     376:	eb 57       	subi	r30, 0x7B	; 123
     378:	ff 4f       	sbci	r31, 0xFF	; 255
     37a:	e0 81       	ld	r30, Z
     37c:	a2 17       	cp	r26, r18
     37e:	b3 07       	cpc	r27, r19
     380:	b9 f7       	brne	.-18     	; 0x370 <GetTemperature+0x7e>
     382:	89 85       	ldd	r24, Y+9	; 0x09
     384:	e8 17       	cp	r30, r24
     386:	29 f0       	breq	.+10     	; 0x392 <GetTemperature+0xa0>
     388:	60 e0       	ldi	r22, 0x00	; 0
     38a:	70 e0       	ldi	r23, 0x00	; 0
     38c:	88 ec       	ldi	r24, 0xC8	; 200
     38e:	92 ec       	ldi	r25, 0xC2	; 194
     390:	26 c0       	rjmp	.+76     	; 0x3de <GetTemperature+0xec>
     392:	8a 81       	ldd	r24, Y+2	; 0x02
     394:	83 ff       	sbrs	r24, 3
     396:	0e c0       	rjmp	.+28     	; 0x3b4 <GetTemperature+0xc2>
     398:	80 95       	com	r24
     39a:	8a 83       	std	Y+2, r24	; 0x02
     39c:	99 81       	ldd	r25, Y+1	; 0x01
     39e:	8f b7       	in	r24, 0x3f	; 63
     3a0:	8e 7f       	andi	r24, 0xFE	; 254
     3a2:	8f bf       	out	0x3f, r24	; 63
     3a4:	91 95       	neg	r25
     3a6:	99 83       	std	Y+1, r25	; 0x01
     3a8:	0f b6       	in	r0, 0x3f	; 63
     3aa:	00 fe       	sbrs	r0, 0
     3ac:	03 c0       	rjmp	.+6      	; 0x3b4 <GetTemperature+0xc2>
     3ae:	8a 81       	ldd	r24, Y+2	; 0x02
     3b0:	8f 5f       	subi	r24, 0xFF	; 255
     3b2:	8a 83       	std	Y+2, r24	; 0x02
     3b4:	6a 81       	ldd	r22, Y+2	; 0x02
     3b6:	70 e0       	ldi	r23, 0x00	; 0
     3b8:	80 e0       	ldi	r24, 0x00	; 0
     3ba:	90 e0       	ldi	r25, 0x00	; 0
     3bc:	98 2f       	mov	r25, r24
     3be:	87 2f       	mov	r24, r23
     3c0:	76 2f       	mov	r23, r22
     3c2:	66 27       	eor	r22, r22
     3c4:	29 81       	ldd	r18, Y+1	; 0x01
     3c6:	62 0f       	add	r22, r18
     3c8:	71 1d       	adc	r23, r1
     3ca:	81 1d       	adc	r24, r1
     3cc:	91 1d       	adc	r25, r1
     3ce:	0e 94 47 08 	call	0x108e	; 0x108e <__floatunsisf>
     3d2:	20 e0       	ldi	r18, 0x00	; 0
     3d4:	30 e0       	ldi	r19, 0x00	; 0
     3d6:	40 e8       	ldi	r20, 0x80	; 128
     3d8:	5d e3       	ldi	r21, 0x3D	; 61
     3da:	0e 94 be 0c 	call	0x197c	; 0x197c <__mulsf3>
     3de:	29 96       	adiw	r28, 0x09	; 9
     3e0:	0f b6       	in	r0, 0x3f	; 63
     3e2:	f8 94       	cli
     3e4:	de bf       	out	0x3e, r29	; 62
     3e6:	0f be       	out	0x3f, r0	; 63
     3e8:	cd bf       	out	0x3d, r28	; 61
     3ea:	df 91       	pop	r29
     3ec:	cf 91       	pop	r28
     3ee:	1f 91       	pop	r17
     3f0:	0f 91       	pop	r16
     3f2:	ff 90       	pop	r15
     3f4:	ef 90       	pop	r14
     3f6:	df 90       	pop	r13
     3f8:	cf 90       	pop	r12
     3fa:	08 95       	ret

000003fc <DS1820CRCDETECT>:
     3fc:	ef 92       	push	r14
     3fe:	ff 92       	push	r15
     400:	0f 93       	push	r16
     402:	1f 93       	push	r17
     404:	cf 93       	push	r28
     406:	df 93       	push	r29
     408:	cd b7       	in	r28, 0x3d	; 61
     40a:	de b7       	in	r29, 0x3e	; 62
     40c:	28 97       	sbiw	r28, 0x08	; 8
     40e:	0f b6       	in	r0, 0x3f	; 63
     410:	f8 94       	cli
     412:	de bf       	out	0x3e, r29	; 62
     414:	0f be       	out	0x3f, r0	; 63
     416:	cd bf       	out	0x3d, r28	; 61
     418:	0e 94 60 01 	call	0x2c0	; 0x2c0 <Init_DS1820>
     41c:	8c ec       	ldi	r24, 0xCC	; 204
     41e:	0e 94 3f 01 	call	0x27e	; 0x27e <write_DS1820>
     422:	8e e4       	ldi	r24, 0x4E	; 78
     424:	0e 94 3f 01 	call	0x27e	; 0x27e <write_DS1820>
     428:	82 e0       	ldi	r24, 0x02	; 2
     42a:	0e 94 3f 01 	call	0x27e	; 0x27e <write_DS1820>
     42e:	80 e8       	ldi	r24, 0x80	; 128
     430:	0e 94 3f 01 	call	0x27e	; 0x27e <write_DS1820>
     434:	8f e7       	ldi	r24, 0x7F	; 127
     436:	0e 94 3f 01 	call	0x27e	; 0x27e <write_DS1820>
     43a:	0e 94 60 01 	call	0x2c0	; 0x2c0 <Init_DS1820>
     43e:	83 e3       	ldi	r24, 0x33	; 51
     440:	0e 94 3f 01 	call	0x27e	; 0x27e <write_DS1820>
     444:	8e 01       	movw	r16, r28
     446:	0f 5f       	subi	r16, 0xFF	; 255
     448:	1f 4f       	sbci	r17, 0xFF	; 255
     44a:	49 e0       	ldi	r20, 0x09	; 9
     44c:	e4 2e       	mov	r14, r20
     44e:	f1 2c       	mov	r15, r1
     450:	ec 0e       	add	r14, r28
     452:	fd 1e       	adc	r15, r29
     454:	0e 94 1f 01 	call	0x23e	; 0x23e <read_DS1820>
     458:	f8 01       	movw	r30, r16
     45a:	81 93       	st	Z+, r24
     45c:	8f 01       	movw	r16, r30
     45e:	ee 15       	cp	r30, r14
     460:	ff 05       	cpc	r31, r15
     462:	c1 f7       	brne	.-16     	; 0x454 <DS1820CRCDETECT+0x58>
     464:	e9 81       	ldd	r30, Y+1	; 0x01
     466:	f0 e0       	ldi	r31, 0x00	; 0
     468:	eb 57       	subi	r30, 0x7B	; 123
     46a:	ff 4f       	sbci	r31, 0xFF	; 255
     46c:	e0 81       	ld	r30, Z
     46e:	8a 81       	ldd	r24, Y+2	; 0x02
     470:	e8 27       	eor	r30, r24
     472:	f0 e0       	ldi	r31, 0x00	; 0
     474:	eb 57       	subi	r30, 0x7B	; 123
     476:	ff 4f       	sbci	r31, 0xFF	; 255
     478:	e0 81       	ld	r30, Z
     47a:	8b 81       	ldd	r24, Y+3	; 0x03
     47c:	e8 27       	eor	r30, r24
     47e:	f0 e0       	ldi	r31, 0x00	; 0
     480:	eb 57       	subi	r30, 0x7B	; 123
     482:	ff 4f       	sbci	r31, 0xFF	; 255
     484:	e0 81       	ld	r30, Z
     486:	8c 81       	ldd	r24, Y+4	; 0x04
     488:	e8 27       	eor	r30, r24
     48a:	f0 e0       	ldi	r31, 0x00	; 0
     48c:	eb 57       	subi	r30, 0x7B	; 123
     48e:	ff 4f       	sbci	r31, 0xFF	; 255
     490:	e0 81       	ld	r30, Z
     492:	8d 81       	ldd	r24, Y+5	; 0x05
     494:	e8 27       	eor	r30, r24
     496:	f0 e0       	ldi	r31, 0x00	; 0
     498:	eb 57       	subi	r30, 0x7B	; 123
     49a:	ff 4f       	sbci	r31, 0xFF	; 255
     49c:	e0 81       	ld	r30, Z
     49e:	8e 81       	ldd	r24, Y+6	; 0x06
     4a0:	e8 27       	eor	r30, r24
     4a2:	f0 e0       	ldi	r31, 0x00	; 0
     4a4:	eb 57       	subi	r30, 0x7B	; 123
     4a6:	ff 4f       	sbci	r31, 0xFF	; 255
     4a8:	e0 81       	ld	r30, Z
     4aa:	8f 81       	ldd	r24, Y+7	; 0x07
     4ac:	e8 27       	eor	r30, r24
     4ae:	f0 e0       	ldi	r31, 0x00	; 0
     4b0:	20 e0       	ldi	r18, 0x00	; 0
     4b2:	30 e0       	ldi	r19, 0x00	; 0
     4b4:	eb 57       	subi	r30, 0x7B	; 123
     4b6:	ff 4f       	sbci	r31, 0xFF	; 255
     4b8:	90 81       	ld	r25, Z
     4ba:	88 85       	ldd	r24, Y+8	; 0x08
     4bc:	98 17       	cp	r25, r24
     4be:	11 f4       	brne	.+4      	; 0x4c4 <__stack+0x65>
     4c0:	21 e0       	ldi	r18, 0x01	; 1
     4c2:	30 e0       	ldi	r19, 0x00	; 0
     4c4:	c9 01       	movw	r24, r18
     4c6:	28 96       	adiw	r28, 0x08	; 8
     4c8:	0f b6       	in	r0, 0x3f	; 63
     4ca:	f8 94       	cli
     4cc:	de bf       	out	0x3e, r29	; 62
     4ce:	0f be       	out	0x3f, r0	; 63
     4d0:	cd bf       	out	0x3d, r28	; 61
     4d2:	df 91       	pop	r29
     4d4:	cf 91       	pop	r28
     4d6:	1f 91       	pop	r17
     4d8:	0f 91       	pop	r16
     4da:	ff 90       	pop	r15
     4dc:	ef 90       	pop	r14
     4de:	08 95       	ret

000004e0 <__vector_1>:
     4e0:	1f 92       	push	r1
     4e2:	0f 92       	push	r0
     4e4:	0f b6       	in	r0, 0x3f	; 63
     4e6:	0f 92       	push	r0
     4e8:	11 24       	eor	r1, r1
     4ea:	8f 93       	push	r24
     4ec:	8e b5       	in	r24, 0x2e	; 46
     4ee:	8d 7f       	andi	r24, 0xFD	; 253
     4f0:	8e bd       	out	0x2e, r24	; 46
     4f2:	8b b7       	in	r24, 0x3b	; 59
     4f4:	8f 7b       	andi	r24, 0xBF	; 191
     4f6:	8b bf       	out	0x3b, r24	; 59
     4f8:	8c b5       	in	r24, 0x2c	; 44
     4fa:	80 93 f5 02 	sts	0x02F5, r24
     4fe:	8d b5       	in	r24, 0x2d	; 45
     500:	80 93 eb 02 	sts	0x02EB, r24
     504:	1d bc       	out	0x2d, r1	; 45
     506:	1c bc       	out	0x2c, r1	; 44
     508:	81 e0       	ldi	r24, 0x01	; 1
     50a:	80 93 f6 02 	sts	0x02F6, r24
     50e:	8f 91       	pop	r24
     510:	0f 90       	pop	r0
     512:	0f be       	out	0x3f, r0	; 63
     514:	0f 90       	pop	r0
     516:	1f 90       	pop	r1
     518:	18 95       	reti

0000051a <__vector_6>:
     51a:	1f 92       	push	r1
     51c:	0f 92       	push	r0
     51e:	0f b6       	in	r0, 0x3f	; 63
     520:	0f 92       	push	r0
     522:	11 24       	eor	r1, r1
     524:	8f 93       	push	r24
     526:	8e b5       	in	r24, 0x2e	; 46
     528:	8d 7f       	andi	r24, 0xFD	; 253
     52a:	8e bd       	out	0x2e, r24	; 46
     52c:	1d bc       	out	0x2d, r1	; 45
     52e:	1c bc       	out	0x2c, r1	; 44
     530:	8b b7       	in	r24, 0x3b	; 59
     532:	8f 7b       	andi	r24, 0xBF	; 191
     534:	8b bf       	out	0x3b, r24	; 59
     536:	81 e0       	ldi	r24, 0x01	; 1
     538:	80 93 f0 02 	sts	0x02F0, r24
     53c:	8f 91       	pop	r24
     53e:	0f 90       	pop	r0
     540:	0f be       	out	0x3f, r0	; 63
     542:	0f 90       	pop	r0
     544:	1f 90       	pop	r1
     546:	18 95       	reti

00000548 <GetUltrasoundSpeed>:
     548:	ef 92       	push	r14
     54a:	ff 92       	push	r15
     54c:	0f 93       	push	r16
     54e:	1f 93       	push	r17
     550:	80 91 e8 02 	lds	r24, 0x02E8
     554:	90 91 e9 02 	lds	r25, 0x02E9
     558:	89 2b       	or	r24, r25
     55a:	c1 f5       	brne	.+112    	; 0x5cc <GetUltrasoundSpeed+0x84>
     55c:	0e 94 79 01 	call	0x2f2	; 0x2f2 <GetTemperature>
     560:	7b 01       	movw	r14, r22
     562:	8c 01       	movw	r16, r24
     564:	80 e6       	ldi	r24, 0x60	; 96
     566:	9a ee       	ldi	r25, 0xEA	; 234
     568:	90 93 e9 02 	sts	0x02E9, r25
     56c:	80 93 e8 02 	sts	0x02E8, r24
     570:	20 e0       	ldi	r18, 0x00	; 0
     572:	30 e0       	ldi	r19, 0x00	; 0
     574:	48 ec       	ldi	r20, 0xC8	; 200
     576:	52 ec       	ldi	r21, 0xC2	; 194
     578:	c8 01       	movw	r24, r16
     57a:	b7 01       	movw	r22, r14
     57c:	0e 94 41 0c 	call	0x1882	; 0x1882 <__cmpsf2>
     580:	88 23       	and	r24, r24
     582:	b9 f0       	breq	.+46     	; 0x5b2 <GetUltrasoundSpeed+0x6a>
     584:	26 ef       	ldi	r18, 0xF6	; 246
     586:	38 e2       	ldi	r19, 0x28	; 40
     588:	4c e1       	ldi	r20, 0x1C	; 28
     58a:	5f e3       	ldi	r21, 0x3F	; 63
     58c:	c8 01       	movw	r24, r16
     58e:	b7 01       	movw	r22, r14
     590:	0e 94 be 0c 	call	0x197c	; 0x197c <__mulsf3>
     594:	23 e3       	ldi	r18, 0x33	; 51
     596:	33 eb       	ldi	r19, 0xB3	; 179
     598:	45 ea       	ldi	r20, 0xA5	; 165
     59a:	53 e4       	ldi	r21, 0x43	; 67

⌨️ 快捷键说明

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