长沙理工自己的实验程序

源代码在线查看: 训练项目十一:led及拨码开关的综合实验.lst

软件大小: 158 K
上传用户: szjunhui899
关键词: 理工 实验 程序
下载地址: 免注册下载 普通下载 VIP

相关代码

				NO DEBUG INFORMATION AVAILABLE!
				__start:
				__text_start:
				      30 EFCF      LDI	R28,0xFF
				      31 E0DF      LDI	R29,0xF
				      32 BFCD      OUT	0x3D,R28
				      33 BFDE      OUT	0x3E,R29
				      34 51C0      SUBI	R28,0x10
				      35 40D0      SBCI	R29,0
				      36 EA0A      LDI	R16,0xAA
				      37 8308      STD	Y+0,R16
				      38 2400      CLR	R0
				      39 E6E0      LDI	R30,0x60
				      3A E0F0      LDI	R31,0
				      3B E010      LDI	R17,0
				      3C 36E0      CPI	R30,0x60
				      3D 07F1      CPC	R31,R17
				      3E F011      BEQ	0x0041
				      3F 9201      ST	R0,Z+
				      40 CFFB      RJMP	0x003C
				      41 8300      STD	Z+0,R16
				      42 E6E0      LDI	R30,0x60
				      43 E0F0      LDI	R31,0
				      44 E6A0      LDI	R26,0x60
				      45 E0B0      LDI	R27,0
				      46 E010      LDI	R17,0
				      47 E000      LDI	R16,0
				      48 BF0B      OUT	0x3B,R16
				      49 36E0      CPI	R30,0x60
				      4A 07F1      CPC	R31,R17
				      4B F021      BEQ	0x0050
				      4C 95C8      LPM
				      4D 9631      ADIW	R30,1
				      4E 920D      ST	R0,X+
				      4F CFF9      RJMP	0x0049
				      50 940E 0060 CALL	_main
				_exit:
				      52 CFFF      RJMP	_exit
				_Delay:
				      53 934A      ST	R20,-Y
				      54 935A      ST	R21,-Y
				      55 2744      CLR	R20
				      56 2755      CLR	R21
				      57 C002      RJMP	0x005A
				      58 5F4F      SUBI	R20,0xFF
				      59 4F5F      SBCI	R21,0xFF
				      5A 1740      CP	R20,R16
				      5B 0751      CPC	R21,R17
				      5C F3D8      BCS	0x0058
				      5D 9159      LD	R21,Y+
				      5E 9149      LD	R20,Y+
				      5F 9508      RET
				_main:
				      60 EF8F      LDI	R24,0xFF
				      61 BB8A      OUT	0x1A,R24
				      62 BB8B      OUT	0x1B,R24
				      63 2422      CLR	R2
				      64 BA27      OUT	0x17,R2
				      65 BB88      OUT	0x18,R24
				      66 99B0      SBIC	0x16,0
				      67 C03B      RJMP	0x00A3
				      68 EF8D      LDI	R24,0xFD
				      69 BB8B      OUT	0x1B,R24
				      6A E700      LDI	R16,0x70
				      6B E117      LDI	R17,0x17
				      6C DFE6      RCALL	_Delay
				      6D E700      LDI	R16,0x70
				      6E E117      LDI	R17,0x17
				      6F DFE3      RCALL	_Delay
				      70 E700      LDI	R16,0x70
				      71 E117      LDI	R17,0x17
				      72 DFE0      RCALL	_Delay
				      73 E700      LDI	R16,0x70
				      74 E117      LDI	R17,0x17
				      75 DFDD      RCALL	_Delay
				      76 E700      LDI	R16,0x70
				      77 E117      LDI	R17,0x17
				      78 DFDA      RCALL	_Delay
				      79 E700      LDI	R16,0x70
				      7A E117      LDI	R17,0x17
				      7B DFD7      RCALL	_Delay
				      7C E700      LDI	R16,0x70
				      7D E117      LDI	R17,0x17
				      7E DFD4      RCALL	_Delay
				      7F E700      LDI	R16,0x70
				      80 E117      LDI	R17,0x17
				      81 DFD1      RCALL	_Delay
				      82 E700      LDI	R16,0x70
				      83 E117      LDI	R17,0x17
				      84 DFCE      RCALL	_Delay
				      85 EF8B      LDI	R24,0xFB
				      86 BB8B      OUT	0x1B,R24
				      87 E700      LDI	R16,0x70
				      88 E117      LDI	R17,0x17
				      89 DFC9      RCALL	_Delay
				      8A E700      LDI	R16,0x70
				      8B E117      LDI	R17,0x17
				      8C DFC6      RCALL	_Delay
				      8D E700      LDI	R16,0x70
				      8E E117      LDI	R17,0x17
				      8F DFC3      RCALL	_Delay
				      90 E700      LDI	R16,0x70
				      91 E117      LDI	R17,0x17
				      92 DFC0      RCALL	_Delay
				      93 E700      LDI	R16,0x70
				      94 E117      LDI	R17,0x17
				      95 DFBD      RCALL	_Delay
				      96 E700      LDI	R16,0x70
				      97 E117      LDI	R17,0x17
				      98 DFBA      RCALL	_Delay
				      99 E700      LDI	R16,0x70
				      9A E117      LDI	R17,0x17
				      9B DFB7      RCALL	_Delay
				      9C E700      LDI	R16,0x70
				      9D E117      LDI	R17,0x17
				      9E DFB4      RCALL	_Delay
				      9F E700      LDI	R16,0x70
				      A0 E117      LDI	R17,0x17
				      A1 DFB1      RCALL	_Delay
				      A2 CFC3      RJMP	0x0066
				      A3 EF8F      LDI	R24,0xFF
				      A4 BB8B      OUT	0x1B,R24
				      A5 CFC0      RJMP	0x0066
				      A6 9508      RET
							

相关资源