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

📄 main.lst

📁 功能 : 1602字符型液晶显示驱动 开发环境:WinAVR 硬件环境:ATMEGA32/AVR开发板 创建日期:2008-3-27 最后修改:2008-3-27 作 者:bjj9217@1
💻 LST
📖 第 1 页 / 共 3 页
字号:
   1               		.file	"main.c"
   2               		.arch atmega32
   3               	__SREG__ = 0x3f
   4               	__SP_H__ = 0x3e
   5               	__SP_L__ = 0x3d
   6               	__tmp_reg__ = 0
   7               	__zero_reg__ = 1
   8               		.global __do_copy_data
   9               		.global __do_clear_bss
  17               	.Ltext0:
  18               	.global	delay_ms
  20               	delay_ms:
  21               	.LFB7:
  22               	.LM1:
  23               	/* prologue: frame size=0 */
  24               	/* prologue end (size=0) */
  25               	.LVL0:
  26 0000 9C01      		movw r18,r24
  27 0002 E8EE      		ldi r30,lo8(1000)
  28 0004 F3E0      		ldi r31,hi8(1000)
  29 0006 00C0      		rjmp .L2
  30               	.LVL1:
  31               	.L3:
  32               	.LBB10:
  33               	.LBB11:
  34               	.LM2:
  35 0008 CF01      		movw r24,r30
  36               	/* #APP */
  37 000a 0197      		1: sbiw r24,1
  38 000c 01F4      		brne 1b
  39               	/* #NOAPP */
  40               	.LBE11:
  41               	.LBE10:
  42               	.LM3:
  43 000e 2150      		subi r18,lo8(-(-1))
  44 0010 3040      		sbci r19,hi8(-(-1))
  45               	.LVL2:
  46               	.L2:
  47 0012 2115      		cp r18,__zero_reg__
  48 0014 3105      		cpc r19,__zero_reg__
  49 0016 01F4      		brne .L3
  50               	/* epilogue: frame size=0 */
  51 0018 0895      		ret
  52               	/* epilogue end (size=1) */
  53               	/* function delay_ms size 15 (14) */
  54               	.LFE7:
  56               	.global	delay
  58               	delay:
  59               	.LFB8:
  60               	.LM4:
  61               	/* prologue: frame size=0 */
  62               	/* prologue end (size=0) */
  63               	.LVL3:
  64               	/* epilogue: frame size=0 */
  65 001a 0895      		ret
  66               	/* epilogue end (size=1) */
  67               	/* function delay size 1 (0) */
  68               	.LFE8:
  70               	.global	LCD1602ReadBusy
  72               	LCD1602ReadBusy:
  73               	.LFB9:
  74               	.LM5:
  75               	/* prologue: frame size=0 */
  76               	/* prologue end (size=0) */
  77               	.LM6:
  78 001c A798      		cbi 52-0x20,7
  79               	.LM7:
  80 001e AF9A      		sbi 53-0x20,7
  81               	.LM8:
  82 0020 A998      		cbi 53-0x20,1
  83               	.LM9:
  84 0022 AA9A      		sbi 53-0x20,2
  85               	.LM10:
  86 0024 AB9A      		sbi 53-0x20,3
  87               	.L9:
  88               	.LM11:
  89 0026 9F99      		sbic 51-0x20,7
  90 0028 00C0      		rjmp .L9
  91               	.LM12:
  92 002a AB98      		cbi 53-0x20,3
  93               	.LM13:
  94 002c A998      		cbi 53-0x20,1
  95               	.LM14:
  96 002e AA98      		cbi 53-0x20,2
  97               	.LM15:
  98 0030 A79A      		sbi 52-0x20,7
  99               	.LBB12:
 100               	.LBB13:
 101               	.LBB14:
 102               	.LBB15:
 103               	.LM16:
 104 0032 81E0      		ldi r24,lo8(1)
 105               	.LVL4:
 106               	/* #APP */
 107 0034 8A95      		1: dec r24
 108 0036 01F4      		brne 1b
 109               	/* #NOAPP */
 110               	.LBE15:
 111               	.LBE14:
 112               	.LBE13:
 113               	.LBE12:
 114               	/* epilogue: frame size=0 */
 115 0038 0895      		ret
 116               	/* epilogue end (size=1) */
 117               	/* function LCD1602ReadBusy size 17 (16) */
 118               	.LFE9:
 120               	.global	WriteComand
 122               	WriteComand:
 123               	.LFB10:
 124               	.LM17:
 125               	/* prologue: frame size=0 */
 126 003a 1F93      		push r17
 127               	/* prologue end (size=1) */
 128               	.LVL5:
 129 003c 182F      		mov r17,r24
 130               	.LM18:
 131 003e 0E94 0000 		call LCD1602ReadBusy
 132               	.LVL6:
 133               	.LM19:
 134 0042 A998      		cbi 53-0x20,1
 135               	.LM20:
 136 0044 AA98      		cbi 53-0x20,2
 137               	.LM21:
 138 0046 84B3      		in r24,52-0x20
 139 0048 2FEF      		ldi r18,lo8(-1)
 140 004a 24BB      		out 52-0x20,r18
 141               	.LM22:
 142 004c AB9A      		sbi 53-0x20,3
 143               	.LM23:
 144 004e 85B3      		in r24,53-0x20
 145 0050 8F70      		andi r24,lo8(15)
 146 0052 85BB      		out 53-0x20,r24
 147               	.LM24:
 148 0054 85B3      		in r24,53-0x20
 149 0056 912F      		mov r25,r17
 150 0058 907F      		andi r25,lo8(-16)
 151 005a 892B      		or r24,r25
 152 005c 85BB      		out 53-0x20,r24
 153               	.LM25:
 154 005e AB98      		cbi 53-0x20,3
 155               	.LM26:
 156 0060 84B3      		in r24,52-0x20
 157 0062 24BB      		out 52-0x20,r18
 158               	.LM27:
 159 0064 AB9A      		sbi 53-0x20,3
 160               	.LM28:
 161 0066 85B3      		in r24,53-0x20
 162 0068 8F70      		andi r24,lo8(15)
 163 006a 85BB      		out 53-0x20,r24
 164               	.LM29:
 165 006c 85B3      		in r24,53-0x20
 166 006e 1295      		swap r17
 167 0070 107F      		andi r17,0xf0
 168 0072 812B      		or r24,r17
 169 0074 85BB      		out 53-0x20,r24
 170               	.LM30:
 171 0076 AB98      		cbi 53-0x20,3
 172               	/* epilogue: frame size=0 */
 173 0078 1F91      		pop r17
 174 007a 0895      		ret
 175               	/* epilogue end (size=2) */
 176               	/* function WriteComand size 33 (30) */
 177               	.LFE10:
 179               	.global	WriteData
 181               	WriteData:
 182               	.LFB11:
 183               	.LM31:
 184               	/* prologue: frame size=0 */
 185 007c 1F93      		push r17
 186               	/* prologue end (size=1) */
 187               	.LVL7:
 188 007e 182F      		mov r17,r24
 189               	.LM32:
 190 0080 0E94 0000 		call LCD1602ReadBusy
 191               	.LVL8:
 192               	.LM33:
 193 0084 A99A      		sbi 53-0x20,1
 194               	.LM34:
 195 0086 AA98      		cbi 53-0x20,2
 196               	.LM35:
 197 0088 84B3      		in r24,52-0x20
 198 008a 2FEF      		ldi r18,lo8(-1)
 199 008c 24BB      		out 52-0x20,r18
 200               	.LM36:
 201 008e AB9A      		sbi 53-0x20,3
 202               	.LM37:
 203 0090 85B3      		in r24,53-0x20
 204 0092 8F70      		andi r24,lo8(15)
 205 0094 85BB      		out 53-0x20,r24
 206               	.LM38:
 207 0096 85B3      		in r24,53-0x20
 208 0098 912F      		mov r25,r17
 209 009a 907F      		andi r25,lo8(-16)
 210 009c 892B      		or r24,r25
 211 009e 85BB      		out 53-0x20,r24
 212               	.LM39:
 213 00a0 AB98      		cbi 53-0x20,3
 214               	.LM40:
 215 00a2 84B3      		in r24,52-0x20
 216 00a4 24BB      		out 52-0x20,r18
 217               	.LM41:
 218 00a6 AB9A      		sbi 53-0x20,3
 219               	.LM42:
 220 00a8 85B3      		in r24,53-0x20
 221 00aa 8F70      		andi r24,lo8(15)
 222 00ac 85BB      		out 53-0x20,r24
 223               	.LM43:
 224 00ae 85B3      		in r24,53-0x20
 225 00b0 1295      		swap r17
 226 00b2 107F      		andi r17,0xf0
 227 00b4 812B      		or r24,r17
 228 00b6 85BB      		out 53-0x20,r24
 229               	.LM44:
 230 00b8 AB98      		cbi 53-0x20,3
 231               	/* epilogue: frame size=0 */
 232 00ba 1F91      		pop r17
 233 00bc 0895      		ret
 234               	/* epilogue end (size=2) */
 235               	/* function WriteData size 33 (30) */
 236               	.LFE11:
 238               	.global	Locate_xy
 240               	Locate_xy:
 241               	.LFB12:
 242               	.LM45:
 243               	/* prologue: frame size=0 */
 244               	/* prologue end (size=0) */
 245               	.LVL9:
 246               	.LM46:
 247 00be 6623      		tst r22
 248 00c0 01F4      		brne .L19
 249               	.LM47:
 250 00c2 8058      		subi r24,lo8(-(-128))
 251               	.LVL10:
 252 00c4 00C0      		rjmp .L21
 253               	.LVL11:
 254               	.L19:
 255 00c6 8054      		subi r24,lo8(-(-64))
 256               	.LVL12:
 257               	.L21:
 258               	.LM48:
 259 00c8 0E94 0000 		call WriteComand
 260               	.LVL13:
 261               	/* epilogue: frame size=0 */
 262 00cc 0895      		ret
 263               	/* epilogue end (size=1) */
 264               	/* function Locate_xy size 8 (7) */
 265               	.LFE12:
 267               	.global	DispChar
 269               	DispChar:
 270               	.LFB13:
 271               	.LM49:
 272               	/* prologue: frame size=0 */
 273               	/* prologue end (size=0) */
 274               	.LVL14:
 275               	.LM50:
 276 00ce 0E94 0000 		call WriteData
 277               	.LVL15:
 278               	/* epilogue: frame size=0 */
 279 00d2 0895      		ret
 280               	/* epilogue end (size=1) */
 281               	/* function DispChar size 3 (2) */
 282               	.LFE13:
 284               	.global	XYChar
 286               	XYChar:
 287               	.LFB14:
 288               	.LM51:
 289               	/* prologue: frame size=0 */
 290 00d4 1F93      		push r17
 291               	/* prologue end (size=1) */
 292               	.LVL16:
 293 00d6 142F      		mov r17,r20
 294               	.LM52:
 295 00d8 0E94 0000 		call Locate_xy
 296               	.LVL17:
 297               	.LM53:
 298 00dc 812F      		mov r24,r17
 299 00de 0E94 0000 		call WriteData
 300               	/* epilogue: frame size=0 */
 301 00e2 1F91      		pop r17
 302 00e4 0895      		ret
 303               	/* epilogue end (size=2) */
 304               	/* function XYChar size 9 (6) */
 305               	.LFE14:
 307               	.global	DispString
 309               	DispString:
 310               	.LFB15:
 311               	.LM54:
 312               	/* prologue: frame size=0 */

⌨️ 快捷键说明

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