📄 lcd_lm016l.lst
字号:
251 07AA l31
252 ;lcd_lm016l.c: 218: case 2: LCD_WriteControl (0
+ xc0 + column - 1); break;
253 07AA 0821 movf ?_LCD_Cursor,w
254 07AB 3EBF addlw -65
255 07AC 2F6C ljmp _LCD_WriteControl
256 07AD l32
257 ;lcd_lm016l.c: 219: case 3: LCD_WriteControl (0
+ x94 + column - 1); break;
258 07AD 0821 movf ?_LCD_Cursor,w
259 07AE 3E93 addlw -109
260 07AF 2F6C ljmp _LCD_WriteControl
261 07B0 l33
262 ;lcd_lm016l.c: 220: case 4: LCD_WriteControl (0
+ xd4 + column - 1); break;
263 07B0 0821 movf ?_LCD_Cursor,w
264 07B1 3ED3 addlw -45
265 07B2 2F6C ljmp _LCD_WriteControl
266 ;lcd_lm016l.c: 221: default: break;
267 07B3 l29
268 07B3 1283 bcf 3,5
269 07B4 1303 bcf 3,6 ;carry unused
270 07B5 0821 movf ?a_LCD_Cursor,w
271 07B6 3A01 xorlw 1
272 07B7 1903 btfsc 3,2
273 07B8 2FA7 goto l30
274 07B9 3A03 xorlw 3
275 07BA 1903 btfsc 3,2
276 07BB 2FAA goto l31
277 07BC 3A01 xorlw 1
278 07BD 1903 btfsc 3,2
279 07BE 2FAD goto l32
280 07BF 3A07 xorlw 7
281 07C0 1D03 btfss 3,2
282 07C1 0008 return
283 07C2 2FB0 goto l33
284 ;lcd_lm016l.c: 250: void LCD_Cursor_On (void)
285 ;lcd_lm016l.c: 251: {
286 07C3 _LCD_Cursor_On
287 ;lcd_lm016l.c: 252: LCD_WriteControl (0x0E);
288 07C3 300E movlw 14
289 07C4 2F6C ljmp _LCD_WriteControl
290 ;lcd_lm016l.c: 257: void LCD_Cursor_Off (void)
291 ;lcd_lm016l.c: 258: {
292 07C5 _LCD_Cursor_Off
293 ;lcd_lm016l.c: 259: LCD_WriteControl (0x0C);
294 07C5 300C movlw 12
295 07C6 2F6C ljmp _LCD_WriteControl
296 ;lcd_lm016l.c: 264: void LCD_Display_Off (void)
297 ;lcd_lm016l.c: 265: {
298 07C7 _LCD_Display_Off
299 ;lcd_lm016l.c: 266: LCD_WriteControl(0x08);
300 07C7 3008 movlw 8
301 07C8 2F6C ljmp _LCD_WriteControl
302 ;lcd_lm016l.c: 271: void LCD_Display_On (void)
303 ;lcd_lm016l.c: 272: {
304 07C9 _LCD_Display_On
305 ;lcd_lm016l.c: 273: LCD_WriteControl(0x0C);
306 07C9 300C movlw 12
307 07CA 2F6C ljmp _LCD_WriteControl
308 ;lcd_lm016l.c: 152: void LCD_WriteData (unsigne
+ d char Data)
309 ;lcd_lm016l.c: 153: {
310 07CB _LCD_WriteData
311 ; _Data assigned to ?a_LCD_WriteData+0
312 0000 _LCD_WriteData$Data set ?a_LCD_WriteData
313 ;_Data stored from w
314 07CB 0183 clrf 3 ;select bank 0
315 07CC 00A1 movwf ?a_LCD_WriteData
316 ;lcd_lm016l.c: 155: LCD_Busy();
317 07CD 2751 120A 118A fcall _LCD_Busy
318 ;lcd_lm016l.c: 156: TRISD=0X00;
319 07D0 1683 bsf 3,5
320 07D1 0188 clrf 8 ;volatile
321 ;lcd_lm016l.c: 159: PORTD =Data & 0xf0;
322 07D2 1283 bcf 3,5
323 07D3 0821 movf ?a_LCD_WriteData,w
324 07D4 39F0 andlw -16
325 07D5 0088 movwf 8 ;volatile
326 ;lcd_lm016l.c: 160: (PORTD &= ~(1 << 1)) ;
327 07D6 1088 bcf 8,1 ;volatile
328 ;lcd_lm016l.c: 161: (PORTD |= (1 << 0));
329 07D7 1408 bsf 8,0 ;volatile
330 ;lcd_lm016l.c: 162: (PORTD |= (1 << 2));
331 07D8 1508 bsf 8,2 ;volatile
332 ;lcd_lm016l.c: 163: asm("nop");
333 07D9 0000 nop ;#
334 ;lcd_lm016l.c: 164: asm("nop");
335 07DA 0000 nop ;#
336 ;lcd_lm016l.c: 165: (PORTD &= ~(1 << 2));
337 07DB 1108 bcf 8,2 ;volatile
338 ;lcd_lm016l.c: 166: PORTD = Data << 4;
339 07DC 0E21 swapf ?a_LCD_WriteData,w
340 07DD 39F0 andlw 240
341 07DE 0088 movwf 8 ;volatile
342 ;lcd_lm016l.c: 167: (PORTD &= ~(1 << 1)) ;
343 07DF 1088 bcf 8,1 ;volatile
344 ;lcd_lm016l.c: 168: (PORTD |= (1 << 0));
345 07E0 1408 bsf 8,0 ;volatile
346 ;lcd_lm016l.c: 169: (PORTD |= (1 << 2));
347 07E1 1508 bsf 8,2 ;volatile
348 ;lcd_lm016l.c: 170: asm("nop");
349 07E2 0000 nop ;#
350 ;lcd_lm016l.c: 171: asm("nop");
351 07E3 0000 nop ;#
352 ;lcd_lm016l.c: 172: (PORTD &= ~(1 << 2));
353 07E4 1108 bcf 8,2 ;volatile
354 ;lcd_lm016l.c: 173: }
355 07E5 0008 return
356 ;lcd_lm016l.c: 207: void LCD_DisplayCharacter (
+ char Char)
357 ;lcd_lm016l.c: 208: {
358 07E6 _LCD_DisplayCharacter
359 ; _Char assigned to ?a_LCD_DisplayCharacter+0
360 0000 _LCD_DisplayCharacter$Char set ?a_LCD_DisplayCh
+ aracter
361 ;_Char stored from w
362 07E6 0183 clrf 3 ;select bank 0
363 07E7 00A1 movwf ?a_LCD_DisplayCharacter
364 ;lcd_lm016l.c: 209: LCD_WriteData (Char);
365 07E8 2FCB ljmp _LCD_WriteData
366
367 psect text2
368 ;lcd_lm016l.c: 57: void delay_1ms(void)
369 ;lcd_lm016l.c: 58: {
370 06AF _delay_1ms
371 ; _i assigned to ?a_delay_1ms+0
372 0000 _delay_1ms$i set ?a_delay_1ms
373 ;lcd_lm016l.c: 59: unsigned int i;
374 06AF 0183 clrf 3 ;select bank 0
375 06B0 01A1 clrf ?a_delay_1ms
376 06B1 01A2 clrf ?a_delay_1ms+1
377 06B2 l8
378 06B2 0AA1 incf ?a_delay_1ms
379 06B3 1903 btfsc 3,2
380 06B4 0AA2 incf ?a_delay_1ms+1
381 06B5 3002 movlw 2
382 06B6 0222 subwf ?a_delay_1ms+1,w
383 06B7 303A movlw 58
384 06B8 1903 btfsc 3,2
385 06B9 0221 subwf ?a_delay_1ms,w
386 06BA 1803 btfsc 3,0
387 06BB 0008 return
388 06BC 2EB2 goto l8
389 06BD _delay_nms
390 ; _i assigned to ?a_delay_nms+0
391 0000 _delay_nms$i set ?a_delay_nms
392 ;lcd_lm016l.c: 65: unsigned int i=0;
393 06BD 0183 clrf 3 ;select bank 0
394 06BE 01A1 clrf ?a_delay_nms
395 06BF 01A2 clrf ?a_delay_nms+1
396 ;lcd_lm016l.c: 66: for (i=0;i<n;i++)
397 06C0 01A1 clrf ?a_delay_nms
398 06C1 01A2 clrf ?a_delay_nms+1
399 06C2 2EC7 goto l15
400 06C3 l12
401 ;lcd_lm016l.c: 67: {
402 ;lcd_lm016l.c: 68: delay_1ms();
403 06C3 26AF fcall _delay_1ms
404 ;lcd_lm016l.c: 69: }
405 06C4 0AA1 incf ?a_delay_nms
406 06C5 1903 btfsc 3,2
407 06C6 0AA2 incf ?a_delay_nms+1
408 06C7 l15
409 06C7 0822 movf ?_delay_nms+1,w
410 06C8 0222 subwf ?a_delay_nms+1,w
411 06C9 1D03 btfss 3,2
412 06CA 2ECD goto u35
413 06CB 0821 movf ?_delay_nms,w
414 06CC 0221 subwf ?a_delay_nms,w
415 06CD u35
416 06CD 1803 btfsc 3,0
417 06CE 0008 return
418 06CF 2EC3 goto l12
419
420 psect text13
421 0693 _LCD_DisplayString
422 ; _row assigned to ?a_LCD_DisplayString+0
423 0000 _LCD_DisplayString$row set ?a_LCD_DisplayString
424 ;_row stored from w
425 0693 0183 clrf 3 ;select bank 0
426 0694 00A1 movwf ?a_LCD_DisplayString
427 ;lcd_lm016l.c: 242: LCD_Cursor (row, column);
428 0695 0821 movf ?_LCD_DisplayString,w
429 0696 00A1 movwf ?_LCD_Cursor
430 0697 0821 movf ?a_LCD_DisplayString,w
431 0698 120A 118A 27A4 fcall _LCD_Cursor
+ 120A 118A
432 ;lcd_lm016l.c: 243: while (*string)
433 069D 2EA8 goto l36
434 069E l37
435 ;lcd_lm016l.c: 244: LCD_DisplayCharacter (*stri
+ ng++);
436 069E 0AA2 incf ?_LCD_DisplayString+1
437 069F 0322 decf ?_LCD_DisplayString+1,w
438 06A0 0084 movwf 4
439 06A1 1383 bcf 3,7
440 06A2 0800 movf 0,w
441 06A3 120A 118A 27E6 fcall _LCD_DisplayCharacter
+ 120A 118A
442 06A8 l36
443 06A8 0822 movf ?_LCD_DisplayString+1,w
444 06A9 0084 movwf 4
445 06AA 1383 bcf 3,7
446 06AB 0880 movf 0
447 06AC 1903 btfsc 3,2
448 06AD 0008 return
449 06AE 2E9E goto l37
450
451 psect text18
452 0000
453 0000
454 0000
455 0000
456 0000
457 0000
458 0000
459 0000
460 0000
461 0000
462 0000
463 0000
464 0000
465 0000
466 0000
467 0000
468 0000
469 0000
470 0000
471 0000
472 0000
473 0000
474 0000
475 0000
476 0000
477 0000
478 0000
479 0000
480 0000
481 0000
482 0000
483 0000
484 0000
485 0000
486 0000
487 0000
488 0000
489 0000
490 0000
491 0000
492 0000
493 0000
494 0000
495 0000
496 0000
497 0000
498 0000
499 0000
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -