📄 msp430dayii_democ.lst
字号:
290 ; int held_down = 0;
291 .iseg MSP430dayII_democ_idata
0011 292 .zero 0x1
0012 293 .align 0x2
0012 294 .align 0x2
0012 0000 295 .data 0x0
296 .dseg MSP430dayII_democ_data
0011 297 .bss 0x1
0012 298 .align 0x2
299 .global _held_down
300 _held_down:
0012 301 .bss 0x2
302 ; held_down size 2
303 ; short bcd_add_short(short arg1,short arg2);
304 ; void displayTime( void );
305 ; void displayValue( int value, int stop );
306 ; void clearLCD(void);
307 ; void init(void);
308 ; void decMinutes(void);
309 ; void incMinutes(void);
310 ; void incHours(void);
311 ; void displayTemp(void);
312 ; void changeUnitMode(void);
313 ; void calibrate(void);
314 ; void getTemp(void);
315 ; void flashLCD(void);
316 ; void flash_write(word* address, int data);
317 ; void flash_erase(word* address);
318 ; _DMEM2 static word Refcal_flash;
319 ; _DMEM2 static word Temp_slope;
320 ; _DMEM2 static word Temp_offset;
321 ; const char char_gen[] = {
322 .iseg MSP430dayII_democ_data_const
0000 323 .align 0x2
324 .global _char_gen
325 _char_gen:
0000 f5 326 .byte -0xb
327 ; 0x10 + 0x20 + 0x40 + 0x80 + 0x04 + 0x01 ,
0001 60 328 .byte 0x60
329 ; 0x20 + 0x40 ,
0002 b6 330 .byte -0x4a
331 ; 0x10 + 0x20 + 0x80 + 0x04 + 0x02 ,
0003 f2 332 .byte -0xe
333 ; 0x10 + 0x20 + 0x40 + 0x80 + 0x02 ,
0004 63 334 .byte 0x63
335 ; 0x20 + 0x40 + 0x01 + 0x02 ,
0005 d3 336 .byte -0x2d
337 ; 0x10 + 0x40 + 0x80 + 0x01 + 0x02 ,
0006 d7 338 .byte -0x29
339 ; 0x10 + 0x40 + 0x80 + 0x04 + 0x01 + 0x02 ,
0007 70 340 .byte 0x70
341 ; 0x10 + 0x20 + 0x40 ,
0008 f7 342 .byte -0x9
343 ; 0x10 + 0x20 + 0x40 + 0x80 + 0x04 + 0x01 + 0x02 ,
0009 f3 344 .byte -0xd
345 ; 0x10 + 0x20 + 0x40 + 0x80 + 0x01 + 0x02 ,
000a 77 346 .byte 0x77
347 ; 0x10 + 0x20 + 0x40 + 0x04 + 0x01 + 0x02 ,
000b 00 348 .byte 0x0
349 ; 0x00,
000c 95 350 .byte -0x6b
351 ; 0x10 + 0x80 + 0x04 + 0x01 ,
000d 33 352 .byte 0x33
353 ; 0x10 + 0x20 + 0x01 + 0x02 ,
000e 97 354 .byte -0x69
355 ; 0x10 + 0x80 + 0x04 + 0x01 + 0x02 ,
000f 17 356 .byte 0x17
357 ; 0x10 + 0x04 + 0x01 + 0x02 ,
0010 08 358 .byte 0x8
359 ; 0x08 ,
0011 02 360 .byte 0x2
361 ; 0x02 ,
362 ; 0x01 + 0x02 + 0x04 + 0x80
0012 87 363 .byte -0x79
364 ; char_gen size 19
365 ; };
366 ; void main(void)
367 .dbgseg dbg_syms
368 DBG3:
0028 6e69616d 369 .long 0x6e69616d
002c 00000000 370 .long 0x0
0030 00000000 371 .long _main
0034 00000040 372 .long 0x40
0038 01020001 373 .long 0x1020001
003c 00000050 374 .long DBG1
0040 00000086 375 .long DBG7-DBG8
0044 00000000 376 .long DBG9
0048 000000f0 377 .long DBG6
004c 00000000 378 .long 0x0
379 .pseg MSP430dayII_democ_code
380 DBG8:
381 .dbgseg dbg_syms
382 DBG1:
0050 0066622e 383 .long 0x66622e
0054 00000000 384 .long 0x0
0058 00000000 385 .long DBG8
005c 00000000 386 .long 0x0
0060 01650001 387 .long 0x1650001
0064 00000000 388 .long 0x0
0068 00000091 389 .long 0x91
006c 00000000 390 .long 0x0
0070 00000118 391 .long DBG10
0074 00000000 392 .long 0x0
393 .dbgseg dbg_line
0000 394 .align 0x2
395 DBG9:
0000 00000028 396 .long DBG3
0004 00000000 397 .long 0x0
0008 00000000 398 .long _main
000c 00000001 399 .long 0x1
0010 00000000 400 .long DBG12
0014 00000002 401 .long 0x2
0018 00000000 402 .long DBG13
001c 00000004 403 .long 0x4
0020 00000004 404 .long DBG14
0024 00000005 405 .long 0x5
0028 00000008 406 .long DBG15
002c 00000007 407 .long 0x7
0030 00000008 408 .long DBG16
0034 00000008 409 .long 0x8
0038 00000008 410 .long DBG17
003c 00000009 411 .long 0x9
0040 0000000c 412 .long DBG18
0044 0000000d 413 .long 0xd
0048 00000010 414 .long DBG19
004c 00000010 415 .long 0x10
0050 00000018 416 .long DBG20
0054 00000011 417 .long 0x11
0058 00000018 418 .long DBG21
005c 00000012 419 .long 0x12
0060 0000001c 420 .long DBG22
0064 00000013 421 .long 0x13
0068 00000020 422 .long DBG23
006c 00000015 423 .long 0x15
0070 0000002a 424 .long DBG24
0074 00000016 425 .long 0x16
0078 0000002e 426 .long DBG25
007c 00000017 427 .long 0x17
0080 00000030 428 .long DBG26
0084 00000018 429 .long 0x18
0088 00000034 430 .long DBG27
008c 0000001a 431 .long 0x1a
0090 00000038 432 .long DBG28
0094 0000001b 433 .long 0x1b
0098 0000003c 434 .long DBG29
009c 0000001c 435 .long 0x1c
00a0 0000003c 436 .long DBG30
00a4 0000001d 437 .long 0x1d
00a8 00000048 438 .long DBG31
00ac 0000001e 439 .long 0x1e
00b0 00000048 440 .long DBG32
00b4 0000001f 441 .long 0x1f
00b8 0000004c 442 .long DBG33
00bc 00000020 443 .long 0x20
00c0 00000054 444 .long DBG34
00c4 00000021 445 .long 0x21
00c8 00000058 446 .long DBG35
00cc 00000022 447 .long 0x22
00d0 00000058 448 .long DBG36
00d4 00000023 449 .long 0x23
00d8 0000005c 450 .long DBG37
00dc 00000025 451 .long 0x25
00e0 00000060 452 .long DBG38
00e4 00000026 453 .long 0x26
00e8 00000064 454 .long DBG39
00ec 00000028 455 .long 0x28
00f0 00000064 456 .long DBG40
00f4 00000029 457 .long 0x29
00f8 00000064 458 .long DBG42
00fc 0000002a 459 .long 0x2a
0100 00000066 460 .long DBG43
0104 0000002b 461 .long 0x2b
0108 00000066 462 .long DBG44
010c 0000002c 463 .long 0x2c
0110 0000006a 464 .long DBG45
0114 0000002d 465 .long 0x2d
0118 00000070 466 .long DBG46
011c 0000002e 467 .long 0x2e
0120 00000070 468 .long DBG47
0124 0000002f 469 .long 0x2f
0128 00000074 470 .long DBG48
012c 00000030 471 .long 0x30
0130 00000078 472 .long DBG49
0134 00000031 473 .long 0x31
0138 0000007c 474 .long DBG50
013c 00000032 475 .long 0x32
0140 0000007c 476 .long DBG51
0144 00000033 477 .long 0x33
0148 0000007e 478 .long DBG53
014c 00000034 479 .long 0x34
0150 00000082 480 .long DBG54
0154 00000035 481 .long 0x35
0158 00000082 482 .long DBG55
015c 00000036 483 .long 0x36
0160 00000082 484 .long DBG56
0164 00000037 485 .long 0x37
486 .pseg MSP430dayII_democ_code
487 .global _main
488 _main:
489 ; ENTRY
490 DBG11:
491 ; {
492 DBG12:
493 ; init();
494 DBG13:
0000 b0129c00 495 call #_init
496 DBG14:
497 ; clearLCD();
0004 b0128a04 498 call #_clearLCD
499 DBG15:
500 ; while( 1 )
501 main_L1:
502 ; {
503 DBG16:
504 ; _BIS_SR( ( (0x0080) + (0x0040) + (0x0010) ) ) ;
505 DBG17:
0008 32d0d000 506 bis #0xd0,sr
507 DBG18:
508 ; UpdateCorrection();
000c b0120000 509 call #_UpdateCorrection
510 DBG19:
511 ; if( tempModeTime > 0 )
0010 0c43 512 mov #0x0,r12
0012 1c920200 513 cmp &_tempModeTime,r12
0016 1334 514 jge main_L3
515 DBG21:
516 DBG20:
517 ; {
518 ; LCDCTL |= (0x01) ;
0018 d2d39000 519 bis.b #0x1,&0x90
520 DBG22:
521 ; getTemp();
001c b0123202 522 call #_getTemp
523 DBG23:
524 ; if (tempF > 79)
0020 3c404f00 525 mov #0x4f,r12
0024 1c920400 526 cmp &_tempF,r12
0028 0334 527 jge main_L4
528 DBG24:
529 ; P1OUT |= 0x01;
002a d2d32100 530 bis.b #0x1,&0x21
531 DBG25:
002e 023c 532 jmp main_L5
533 main_L4:
534 ; else
535 ; P1OUT &= ~0x01;
536 DBG26:
0030 d2c32100 537 bic.b #0x1,&0x21
538 main_L5:
539 ; displayTemp();
540 DBG27:
0034 b012a602 541 call #_displayTemp
542 DBG28:
543 ; tempModeTime--;
0038 92830200 544 sub #0x1,&_tempModeTime
545 DBG30:
546 DBG29:
547 ; }
003c e53f 548 jmp main_L1
549 main_L3:
550 ; else if( (~P2IN & ( (1 << 2) )) )
003e 5c422800 551 mov.b &0x28,r12
0042 3ce3 552 inv r12
0044 2cb2 553 bit #0x4,r12
0046 0f24 554 jeq main_L7
555 DBG32:
556 DBG31:
557 ; {
558 ; P1OUT &= ~0x01;
0048 d2c32100 559 bic.b #0x1,&0x21
560 DBG33:
561 ; held_down++;
004c 92531200 562 add #0x1,&_held_down
0050 1c421200 563 mov &_held_down,r12
564 DBG34:
565 ; if( held_down == 4 )
0054 2c92 566 cmp #0x4,r12
0056 d823 567 jne main_L1
568 DBG36:
569 DBG35:
570 ; {
571 ; held_down = 0;
0058 82431200 572 mov #0x0,&_held_down
573 DBG37:
574 ; unitMode ^= 1;
005c 92e30c00 575 xor #0x1,&_unitMode
576 DBG38:
577 ; calibrate();
0060 b0125401 578 call #_calibrate
579 DBG40:
580 DBG39:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -