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

📄 key2.lst

📁 82C55控制按键时
💻 LST
字号:

KEY2.elf:     file format elf32-avr

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .data         00000010  00800100  0000035a  000003ee  2**0
                  CONTENTS, ALLOC, LOAD, DATA
  1 .text         0000035a  00000000  00000000  00000094  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  2 .bss          00000007  00800110  00800110  000003fe  2**0
                  ALLOC
  3 .noinit       00000000  00800117  00800117  000003fe  2**0
                  CONTENTS
  4 .eeprom       00000000  00810000  00810000  000003fe  2**0
                  CONTENTS
  5 .debug_aranges 00000014  00000000  00000000  000003fe  2**0
                  CONTENTS, READONLY, DEBUGGING
  6 .debug_pubnames 0000007e  00000000  00000000  00000412  2**0
                  CONTENTS, READONLY, DEBUGGING
  7 .debug_info   000001d0  00000000  00000000  00000490  2**0
                  CONTENTS, READONLY, DEBUGGING
  8 .debug_abbrev 000000d9  00000000  00000000  00000660  2**0
                  CONTENTS, READONLY, DEBUGGING
  9 .debug_line   0000025c  00000000  00000000  00000739  2**0
                  CONTENTS, READONLY, DEBUGGING
 10 .debug_str    000000b6  00000000  00000000  00000995  2**0
                  CONTENTS, READONLY, DEBUGGING
Disassembly of section .text:

00000000 <__vectors>:
   0:	0c 94 46 00 	jmp	0x8c
   4:	0c 94 63 00 	jmp	0xc6
   8:	0c 94 63 00 	jmp	0xc6
   c:	0c 94 63 00 	jmp	0xc6
  10:	0c 94 63 00 	jmp	0xc6
  14:	0c 94 63 00 	jmp	0xc6
  18:	0c 94 63 00 	jmp	0xc6
  1c:	0c 94 63 00 	jmp	0xc6
  20:	0c 94 63 00 	jmp	0xc6
  24:	0c 94 63 00 	jmp	0xc6
  28:	0c 94 63 00 	jmp	0xc6
  2c:	0c 94 63 00 	jmp	0xc6
  30:	0c 94 63 00 	jmp	0xc6
  34:	0c 94 63 00 	jmp	0xc6
  38:	0c 94 63 00 	jmp	0xc6
  3c:	0c 94 63 00 	jmp	0xc6
  40:	0c 94 63 00 	jmp	0xc6
  44:	0c 94 63 00 	jmp	0xc6
  48:	0c 94 63 00 	jmp	0xc6
  4c:	0c 94 63 00 	jmp	0xc6
  50:	0c 94 63 00 	jmp	0xc6
  54:	0c 94 63 00 	jmp	0xc6
  58:	0c 94 63 00 	jmp	0xc6
  5c:	0c 94 63 00 	jmp	0xc6
  60:	0c 94 63 00 	jmp	0xc6
  64:	0c 94 63 00 	jmp	0xc6
  68:	0c 94 63 00 	jmp	0xc6
  6c:	0c 94 63 00 	jmp	0xc6
  70:	0c 94 63 00 	jmp	0xc6
  74:	0c 94 63 00 	jmp	0xc6
  78:	0c 94 63 00 	jmp	0xc6
  7c:	0c 94 63 00 	jmp	0xc6
  80:	0c 94 63 00 	jmp	0xc6
  84:	0c 94 63 00 	jmp	0xc6
  88:	0c 94 63 00 	jmp	0xc6

0000008c <__ctors_end>:
  8c:	11 24       	eor	r1, r1
  8e:	1f be       	out	0x3f, r1	; 63
  90:	cf ef       	ldi	r28, 0xFF	; 255
  92:	d0 e1       	ldi	r29, 0x10	; 16
  94:	de bf       	out	0x3e, r29	; 62
  96:	cd bf       	out	0x3d, r28	; 61

00000098 <__do_copy_data>:
  98:	11 e0       	ldi	r17, 0x01	; 1
  9a:	a0 e0       	ldi	r26, 0x00	; 0
  9c:	b1 e0       	ldi	r27, 0x01	; 1
  9e:	ea e5       	ldi	r30, 0x5A	; 90
  a0:	f3 e0       	ldi	r31, 0x03	; 3
  a2:	00 e0       	ldi	r16, 0x00	; 0
  a4:	0b bf       	out	0x3b, r16	; 59
  a6:	02 c0       	rjmp	.+4      	; 0xac

000000a8 <.__do_copy_data_loop>:
  a8:	07 90       	elpm	r0, Z+
  aa:	0d 92       	st	X+, r0

000000ac <.__do_copy_data_start>:
  ac:	a0 31       	cpi	r26, 0x10	; 16
  ae:	b1 07       	cpc	r27, r17
  b0:	d9 f7       	brne	.-10     	; 0xa8

000000b2 <__do_clear_bss>:
  b2:	11 e0       	ldi	r17, 0x01	; 1
  b4:	a0 e1       	ldi	r26, 0x10	; 16
  b6:	b1 e0       	ldi	r27, 0x01	; 1
  b8:	01 c0       	rjmp	.+2      	; 0xbc

000000ba <.do_clear_bss_loop>:
  ba:	1d 92       	st	X+, r1

000000bc <.do_clear_bss_start>:
  bc:	a7 31       	cpi	r26, 0x17	; 23
  be:	b1 07       	cpc	r27, r17
  c0:	e1 f7       	brne	.-8      	; 0xba
  c2:	0c 94 80 01 	jmp	0x300

000000c6 <__bad_interrupt>:
  c6:	0c 94 00 00 	jmp	0x0

000000ca <initialize_ppi>:
     }
	 
void initialize_ppi(void)
{
     ppi_ctrl=PPI_1_CT;
  ca:	83 e0       	ldi	r24, 0x03	; 3
  cc:	90 e6       	ldi	r25, 0x60	; 96
  ce:	90 93 16 01 	sts	0x0116, r25
  d2:	80 93 15 01 	sts	0x0115, r24
	 seg=PPI_1_PA;
  d6:	80 e0       	ldi	r24, 0x00	; 0
  d8:	90 e6       	ldi	r25, 0x60	; 96
  da:	90 93 12 01 	sts	0x0112, r25
  de:	80 93 11 01 	sts	0x0111, r24
	 key=PPI_1_PC;
  e2:	82 e0       	ldi	r24, 0x02	; 2
  e4:	90 e6       	ldi	r25, 0x60	; 96
  e6:	90 93 14 01 	sts	0x0114, r25
  ea:	80 93 13 01 	sts	0x0113, r24
	 *ppi_ctrl=0x80;                    // 7-Segment-2 输出, Switch 8位输出
  ee:	80 e8       	ldi	r24, 0x80	; 128
  f0:	80 93 03 60 	sts	0x6003, r24
	 *key=0x00;
  f4:	10 92 02 60 	sts	0x6002, r1
  f8:	08 95       	ret

000000fa <delay>:
  fa:	18 16       	cp	r1, r24
  fc:	19 06       	cpc	r1, r25
  fe:	4c f4       	brge	.+18     	; 0x112
 100:	16 16       	cp	r1, r22
 102:	17 06       	cpc	r1, r23
 104:	24 f4       	brge	.+8      	; 0x10e
 106:	9b 01       	movw	r18, r22
 108:	21 50       	subi	r18, 0x01	; 1
 10a:	30 40       	sbci	r19, 0x00	; 0
 10c:	e9 f7       	brne	.-6      	; 0x108
 10e:	01 97       	sbiw	r24, 0x01	; 1
 110:	b9 f7       	brne	.-18     	; 0x100
 112:	08 95       	ret

00000114 <key_scan>:
 114:	1f 93       	push	r17
 116:	cf 93       	push	r28
 118:	e0 91 15 01 	lds	r30, 0x0115
 11c:	f0 91 16 01 	lds	r31, 0x0116
 120:	81 e8       	ldi	r24, 0x81	; 129
 122:	80 83       	st	Z, r24
 124:	a0 91 11 01 	lds	r26, 0x0111
 128:	b0 91 12 01 	lds	r27, 0x0112
 12c:	80 91 10 01 	lds	r24, 0x0110
 130:	e8 2f       	mov	r30, r24
 132:	ff 27       	eor	r31, r31
 134:	e0 50       	subi	r30, 0x00	; 0
 136:	ff 4f       	sbci	r31, 0xFF	; 255
 138:	80 81       	ld	r24, Z
 13a:	8c 93       	st	X, r24
 13c:	e0 91 13 01 	lds	r30, 0x0113
 140:	f0 91 14 01 	lds	r31, 0x0114
 144:	80 ef       	ldi	r24, 0xF0	; 240
 146:	80 83       	st	Z, r24
 148:	6a e0       	ldi	r22, 0x0A	; 10
 14a:	70 e0       	ldi	r23, 0x00	; 0
 14c:	cb 01       	movw	r24, r22
 14e:	0e 94 7d 00 	call	0xfa
 152:	e0 91 13 01 	lds	r30, 0x0113
 156:	f0 91 14 01 	lds	r31, 0x0114
 15a:	c0 81       	ld	r28, Z
 15c:	cf 70       	andi	r28, 0x0F	; 15
 15e:	e0 91 15 01 	lds	r30, 0x0115
 162:	f0 91 16 01 	lds	r31, 0x0116
 166:	10 e8       	ldi	r17, 0x80	; 128
 168:	10 83       	st	Z, r17
 16a:	a0 91 11 01 	lds	r26, 0x0111
 16e:	b0 91 12 01 	lds	r27, 0x0112
 172:	80 91 10 01 	lds	r24, 0x0110
 176:	e8 2f       	mov	r30, r24
 178:	ff 27       	eor	r31, r31
 17a:	e0 50       	subi	r30, 0x00	; 0
 17c:	ff 4f       	sbci	r31, 0xFF	; 255
 17e:	80 81       	ld	r24, Z
 180:	8c 93       	st	X, r24
 182:	e0 91 13 01 	lds	r30, 0x0113
 186:	f0 91 14 01 	lds	r31, 0x0114
 18a:	10 82       	st	Z, r1
 18c:	cc 23       	and	r28, r28
 18e:	19 f4       	brne	.+6      	; 0x196
 190:	80 e0       	ldi	r24, 0x00	; 0
 192:	90 e0       	ldi	r25, 0x00	; 0
 194:	3e c0       	rjmp	.+124    	; 0x212
 196:	e0 91 15 01 	lds	r30, 0x0115
 19a:	f0 91 16 01 	lds	r31, 0x0116
 19e:	88 e8       	ldi	r24, 0x88	; 136
 1a0:	80 83       	st	Z, r24
 1a2:	a0 91 11 01 	lds	r26, 0x0111
 1a6:	b0 91 12 01 	lds	r27, 0x0112
 1aa:	80 91 10 01 	lds	r24, 0x0110
 1ae:	e8 2f       	mov	r30, r24
 1b0:	ff 27       	eor	r31, r31
 1b2:	e0 50       	subi	r30, 0x00	; 0
 1b4:	ff 4f       	sbci	r31, 0xFF	; 255
 1b6:	80 81       	ld	r24, Z
 1b8:	8c 93       	st	X, r24
 1ba:	e0 91 13 01 	lds	r30, 0x0113
 1be:	f0 91 14 01 	lds	r31, 0x0114
 1c2:	8f e0       	ldi	r24, 0x0F	; 15
 1c4:	80 83       	st	Z, r24
 1c6:	6a e0       	ldi	r22, 0x0A	; 10
 1c8:	70 e0       	ldi	r23, 0x00	; 0
 1ca:	cb 01       	movw	r24, r22
 1cc:	0e 94 7d 00 	call	0xfa
 1d0:	e0 91 13 01 	lds	r30, 0x0113
 1d4:	f0 91 14 01 	lds	r31, 0x0114
 1d8:	90 81       	ld	r25, Z
 1da:	90 7f       	andi	r25, 0xF0	; 240
 1dc:	e0 91 15 01 	lds	r30, 0x0115
 1e0:	f0 91 16 01 	lds	r31, 0x0116
 1e4:	10 83       	st	Z, r17
 1e6:	a0 91 11 01 	lds	r26, 0x0111
 1ea:	b0 91 12 01 	lds	r27, 0x0112
 1ee:	80 91 10 01 	lds	r24, 0x0110
 1f2:	e8 2f       	mov	r30, r24
 1f4:	ff 27       	eor	r31, r31
 1f6:	e0 50       	subi	r30, 0x00	; 0
 1f8:	ff 4f       	sbci	r31, 0xFF	; 255
 1fa:	80 81       	ld	r24, Z
 1fc:	8c 93       	st	X, r24
 1fe:	e0 91 13 01 	lds	r30, 0x0113
 202:	f0 91 14 01 	lds	r31, 0x0114
 206:	10 82       	st	Z, r1
 208:	99 23       	and	r25, r25
 20a:	11 f2       	breq	.-124    	; 0x190
 20c:	9c 2b       	or	r25, r28
 20e:	89 2f       	mov	r24, r25
 210:	99 27       	eor	r25, r25
 212:	cf 91       	pop	r28
 214:	1f 91       	pop	r17
 216:	08 95       	ret

00000218 <out_put>:
 218:	e0 e0       	ldi	r30, 0x00	; 0
 21a:	99 27       	eor	r25, r25
 21c:	88 32       	cpi	r24, 0x28	; 40
 21e:	91 05       	cpc	r25, r1
 220:	09 f4       	brne	.+2      	; 0x224
 222:	5e c0       	rjmp	.+188    	; 0x2e0
 224:	89 32       	cpi	r24, 0x29	; 41
 226:	91 05       	cpc	r25, r1
 228:	9c f4       	brge	.+38     	; 0x250
 22a:	88 31       	cpi	r24, 0x18	; 24
 22c:	91 05       	cpc	r25, r1
 22e:	c9 f1       	breq	.+114    	; 0x2a2
 230:	89 31       	cpi	r24, 0x19	; 25
 232:	91 05       	cpc	r25, r1
 234:	f4 f4       	brge	.+60     	; 0x272
 236:	82 31       	cpi	r24, 0x12	; 18
 238:	91 05       	cpc	r25, r1
 23a:	09 f4       	brne	.+2      	; 0x23e
 23c:	4c c0       	rjmp	.+152    	; 0x2d6
 23e:	83 31       	cpi	r24, 0x13	; 19
 240:	91 05       	cpc	r25, r1
 242:	0c f0       	brlt	.+2      	; 0x246
 244:	40 c0       	rjmp	.+128    	; 0x2c6
 246:	41 97       	sbiw	r24, 0x11	; 17
 248:	09 f0       	breq	.+2      	; 0x24c
 24a:	4a c0       	rjmp	.+148    	; 0x2e0
 24c:	e1 e0       	ldi	r30, 0x01	; 1
 24e:	48 c0       	rjmp	.+144    	; 0x2e0
 250:	88 34       	cpi	r24, 0x48	; 72
 252:	91 05       	cpc	r25, r1
 254:	41 f1       	breq	.+80     	; 0x2a6
 256:	89 34       	cpi	r24, 0x49	; 73
 258:	91 05       	cpc	r25, r1
 25a:	ac f4       	brge	.+42     	; 0x286
 25c:	82 34       	cpi	r24, 0x42	; 66
 25e:	91 05       	cpc	r25, r1
 260:	c1 f1       	breq	.+112    	; 0x2d2
 262:	83 34       	cpi	r24, 0x43	; 67
 264:	91 05       	cpc	r25, r1
 266:	0c f5       	brge	.+66     	; 0x2aa
 268:	81 34       	cpi	r24, 0x41	; 65
 26a:	91 05       	cpc	r25, r1
 26c:	c9 f5       	brne	.+114    	; 0x2e0
 26e:	e3 e0       	ldi	r30, 0x03	; 3
 270:	37 c0       	rjmp	.+110    	; 0x2e0
 272:	82 32       	cpi	r24, 0x22	; 34
 274:	91 05       	cpc	r25, r1
 276:	59 f1       	breq	.+86     	; 0x2ce
 278:	83 32       	cpi	r24, 0x23	; 35
 27a:	91 05       	cpc	r25, r1
 27c:	04 f5       	brge	.+64     	; 0x2be
 27e:	81 97       	sbiw	r24, 0x21	; 33
 280:	79 f5       	brne	.+94     	; 0x2e0
 282:	e2 e0       	ldi	r30, 0x02	; 2
 284:	2d c0       	rjmp	.+90     	; 0x2e0
 286:	82 38       	cpi	r24, 0x82	; 130
 288:	91 05       	cpc	r25, r1
 28a:	39 f1       	breq	.+78     	; 0x2da
 28c:	83 38       	cpi	r24, 0x83	; 131
 28e:	91 05       	cpc	r25, r1
 290:	8c f0       	brlt	.+34     	; 0x2b4
 292:	84 38       	cpi	r24, 0x84	; 132
 294:	91 05       	cpc	r25, r1
 296:	19 f1       	breq	.+70     	; 0x2de
 298:	88 38       	cpi	r24, 0x88	; 136
 29a:	91 05       	cpc	r25, r1
 29c:	09 f5       	brne	.+66     	; 0x2e0
 29e:	ef e0       	ldi	r30, 0x0F	; 15
 2a0:	1f c0       	rjmp	.+62     	; 0x2e0
 2a2:	ed e0       	ldi	r30, 0x0D	; 13
 2a4:	1d c0       	rjmp	.+58     	; 0x2e0
 2a6:	ee e0       	ldi	r30, 0x0E	; 14
 2a8:	1b c0       	rjmp	.+54     	; 0x2e0
 2aa:	84 34       	cpi	r24, 0x44	; 68
 2ac:	91 05       	cpc	r25, r1
 2ae:	c1 f4       	brne	.+48     	; 0x2e0
 2b0:	e9 e0       	ldi	r30, 0x09	; 9
 2b2:	16 c0       	rjmp	.+44     	; 0x2e0
 2b4:	81 38       	cpi	r24, 0x81	; 129
 2b6:	91 05       	cpc	r25, r1
 2b8:	99 f4       	brne	.+38     	; 0x2e0
 2ba:	ea e0       	ldi	r30, 0x0A	; 10
 2bc:	11 c0       	rjmp	.+34     	; 0x2e0
 2be:	84 97       	sbiw	r24, 0x24	; 36
 2c0:	79 f4       	brne	.+30     	; 0x2e0
 2c2:	e8 e0       	ldi	r30, 0x08	; 8
 2c4:	0d c0       	rjmp	.+26     	; 0x2e0
 2c6:	44 97       	sbiw	r24, 0x14	; 20
 2c8:	59 f4       	brne	.+22     	; 0x2e0
 2ca:	e7 e0       	ldi	r30, 0x07	; 7
 2cc:	09 c0       	rjmp	.+18     	; 0x2e0
 2ce:	e5 e0       	ldi	r30, 0x05	; 5
 2d0:	07 c0       	rjmp	.+14     	; 0x2e0
 2d2:	e6 e0       	ldi	r30, 0x06	; 6
 2d4:	05 c0       	rjmp	.+10     	; 0x2e0
 2d6:	e4 e0       	ldi	r30, 0x04	; 4
 2d8:	03 c0       	rjmp	.+6      	; 0x2e0
 2da:	eb e0       	ldi	r30, 0x0B	; 11
 2dc:	01 c0       	rjmp	.+2      	; 0x2e0
 2de:	ec e0       	ldi	r30, 0x0C	; 12
 2e0:	e0 93 10 01 	sts	0x0110, r30
 2e4:	8e 2f       	mov	r24, r30
 2e6:	82 95       	swap	r24
 2e8:	80 7f       	andi	r24, 0xF0	; 240
 2ea:	82 bb       	out	0x12, r24	; 18
 2ec:	a0 91 11 01 	lds	r26, 0x0111
 2f0:	b0 91 12 01 	lds	r27, 0x0112
 2f4:	ff 27       	eor	r31, r31
 2f6:	e0 50       	subi	r30, 0x00	; 0
 2f8:	ff 4f       	sbci	r31, 0xFF	; 255
 2fa:	80 81       	ld	r24, Z
 2fc:	8c 93       	st	X, r24
 2fe:	08 95       	ret

00000300 <main>:
 300:	cf ef       	ldi	r28, 0xFF	; 255
 302:	d0 e1       	ldi	r29, 0x10	; 16
 304:	de bf       	out	0x3e, r29	; 62
 306:	cd bf       	out	0x3d, r28	; 61
 308:	85 b7       	in	r24, 0x35	; 53
 30a:	80 68       	ori	r24, 0x80	; 128
 30c:	85 bf       	out	0x35, r24	; 53
 30e:	0e 94 65 00 	call	0xca
 312:	80 ef       	ldi	r24, 0xF0	; 240
 314:	81 bb       	out	0x11, r24	; 17
 316:	12 ba       	out	0x12, r1	; 18
 318:	a0 91 11 01 	lds	r26, 0x0111
 31c:	b0 91 12 01 	lds	r27, 0x0112
 320:	80 91 10 01 	lds	r24, 0x0110
 324:	e8 2f       	mov	r30, r24
 326:	ff 27       	eor	r31, r31
 328:	e0 50       	subi	r30, 0x00	; 0
 32a:	ff 4f       	sbci	r31, 0xFF	; 255
 32c:	80 81       	ld	r24, Z
 32e:	8c 93       	st	X, r24
 330:	62 e3       	ldi	r22, 0x32	; 50
 332:	70 e0       	ldi	r23, 0x00	; 0
 334:	cb 01       	movw	r24, r22
 336:	0e 94 7d 00 	call	0xfa
 33a:	0e 94 8a 00 	call	0x114
 33e:	88 23       	and	r24, r24
 340:	b9 f3       	breq	.-18     	; 0x330
 342:	0e 94 0c 01 	call	0x218
 346:	62 e3       	ldi	r22, 0x32	; 50
 348:	70 e0       	ldi	r23, 0x00	; 0
 34a:	cb 01       	movw	r24, r22
 34c:	0e 94 7d 00 	call	0xfa
 350:	0e 94 8a 00 	call	0x114
 354:	88 23       	and	r24, r24
 356:	61 f3       	breq	.-40     	; 0x330
 358:	f4 cf       	rjmp	.-24     	; 0x342

⌨️ 快捷键说明

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