📄 rtctempcompensation.lst
字号:
002a 12 300 .byte 0x12
301 ; 18,
002b 10 302 .byte 0x10
303 ; 16,
002c 0f 304 .byte 0xf
305 ; 15,
002d 0e 306 .byte 0xe
307 ; 14,
002e 0c 308 .byte 0xc
309 ; 12,
002f 0b 310 .byte 0xb
311 ; 11,
0030 0a 312 .byte 0xa
313 ; 10,
0031 09 314 .byte 0x9
315 ; 9,
0032 07 316 .byte 0x7
317 ; 7,
0033 06 318 .byte 0x6
319 ; 6,
0034 06 320 .byte 0x6
321 ; 6,
0035 05 322 .byte 0x5
323 ; 5,
0036 04 324 .byte 0x4
325 ; 4,
0037 03 326 .byte 0x3
327 ; 3,
0038 03 328 .byte 0x3
329 ; 3,
0039 02 330 .byte 0x2
331 ; 2,
003a 01 332 .byte 0x1
333 ; 1,
003b 01 334 .byte 0x1
335 ; 1,
003c 01 336 .byte 0x1
337 ; 1,
003d 00 338 .byte 0x0
339 ; 0,
003e 00 340 .byte 0x0
341 ; 0,
003f 00 342 .byte 0x0
343 ; 0,
0040 00 344 .byte 0x0
345 ; 0,
0041 00 346 .byte 0x0
347 ; 0,
0042 00 348 .byte 0x0
349 ; 0,
0043 00 350 .byte 0x0
351 ; 0,
0044 00 352 .byte 0x0
353 ; 0,
0045 00 354 .byte 0x0
355 ; 0,
0046 01 356 .byte 0x1
357 ; 1,
0047 01 358 .byte 0x1
359 ; 1,
0048 01 360 .byte 0x1
361 ; 1,
0049 02 362 .byte 0x2
363 ; 2,
004a 03 364 .byte 0x3
365 ; 3,
004b 03 366 .byte 0x3
367 ; 3,
004c 04 368 .byte 0x4
369 ; 4,
004d 05 370 .byte 0x5
371 ; 5,
004e 06 372 .byte 0x6
373 ; 6,
004f 06 374 .byte 0x6
375 ; 6,
0050 07 376 .byte 0x7
377 ; 7,
0051 09 378 .byte 0x9
379 ; 9,
0052 0a 380 .byte 0xa
381 ; 10,
0053 0b 382 .byte 0xb
383 ; 11,
0054 0c 384 .byte 0xc
385 ; 12,
0055 0e 386 .byte 0xe
387 ; 14,
0056 0f 388 .byte 0xf
389 ; 15,
0057 10 390 .byte 0x10
391 ; 16,
0058 12 392 .byte 0x12
393 ; 18,
0059 14 394 .byte 0x14
395 ; 20,
005a 15 396 .byte 0x15
397 ; 21,
005b 17 398 .byte 0x17
399 ; 23,
005c 19 400 .byte 0x19
401 ; 25,
005d 1b 402 .byte 0x1b
403 ; 27,
005e 1d 404 .byte 0x1d
405 ; 29,
005f 1f 406 .byte 0x1f
407 ; 31,
0060 21 408 .byte 0x21
409 ; 33,
0061 23 410 .byte 0x23
411 ; 35,
0062 25 412 .byte 0x25
413 ; 37,
0063 28 414 .byte 0x28
415 ; 40,
0064 2a 416 .byte 0x2a
417 ; 42,
0065 2c 418 .byte 0x2c
419 ; 44,
0066 2f 420 .byte 0x2f
421 ; 47,
0067 31 422 .byte 0x31
423 ; 49,
0068 34 424 .byte 0x34
425 ; 52,
0069 37 426 .byte 0x37
427 ; 55,
006a 3a 428 .byte 0x3a
429 ; 58,
006b 3c 430 .byte 0x3c
431 ; 60,
006c 3f 432 .byte 0x3f
433 ; 63,
006d 42 434 .byte 0x42
435 ; 66,
006e 45 436 .byte 0x45
437 ; 69,
006f 49 438 .byte 0x49
439 ; 73,
0070 4c 440 .byte 0x4c
441 ; 76,
0071 4f 442 .byte 0x4f
443 ; 79,
0072 52 444 .byte 0x52
445 ; 82,
0073 56 446 .byte 0x56
447 ; 86,
0074 59 448 .byte 0x59
449 ; 89,
0075 5d 450 .byte 0x5d
451 ; 93,
0076 60 452 .byte 0x60
453 ; 96,
0077 64 454 .byte 0x64
455 ; 100,
0078 68 456 .byte 0x68
457 ; 104,
0079 6c 458 .byte 0x6c
459 ; 108,
007a 70 460 .byte 0x70
461 ; 112,
007b 73 462 .byte 0x73
463 ; 115,
007c 78 464 .byte 0x78
465 ; 120,
007d 7c 466 .byte 0x7c
467 ; 124,
007e 80 468 .byte 0x80
469 ; 128,
007f 84 470 .byte 0x84
471 ; 132,
0080 88 472 .byte 0x88
473 ; 136,
0081 8d 474 .byte 0x8d
475 ; 141,
0082 91 476 .byte 0x91
477 ; FrequencyCorrectionTable size 131
478 ; 145 };
479 ; void UpdateCorrection(void)
480 .dbgseg dbg_syms
481 DBG3:
0028 00000000 482 .long 0x0
002c 0000015c 483 .long DBG10
0030 00000000 484 .long _UpdateCorrection
0034 00000040 485 .long 0x40
0038 01020001 486 .long 0x1020001
003c 00000050 487 .long DBG1
0040 00000050 488 .long DBG7-DBG8
0044 00000000 489 .long DBG9
0048 0000021c 490 .long DBG6
004c 00000000 491 .long 0x0
492 .pseg RtcTempCompensation_code
493 DBG8:
494 .dbgseg dbg_syms
495 DBG1:
0050 0066622e 496 .long 0x66622e
0054 00000000 497 .long 0x0
0058 00000000 498 .long DBG8
005c 00000000 499 .long 0x0
0060 01650001 500 .long 0x1650001
0064 00000000 501 .long 0x0
0068 00000145 502 .long 0x145
006c 00000000 503 .long 0x0
0070 00000244 504 .long DBG11
0074 00000000 505 .long 0x0
506 .dbgseg dbg_line
0000 507 .align 0x2
508 DBG9:
0000 00000028 509 .long DBG3
0004 00000000 510 .long 0x0
0008 00000000 511 .long _UpdateCorrection
000c 00000001 512 .long 0x1
0010 00000000 513 .long DBG13
0014 00000002 514 .long 0x2
0018 00000000 515 .long DBG14
001c 00000007 516 .long 0x7
0020 00000006 517 .long DBG15
0024 00000008 518 .long 0x8
0028 00000006 519 .long DBG16
002c 0000000a 520 .long 0xa
0030 0000000a 521 .long DBG17
0034 0000000c 522 .long 0xc
0038 0000000e 523 .long DBG18
003c 0000000d 524 .long 0xd
0040 00000012 525 .long DBG19
0044 0000000e 526 .long 0xe
0048 0000001e 527 .long DBG20
004c 0000000f 528 .long 0xf
0050 00000026 529 .long DBG21
0054 00000016 530 .long 0x16
0058 0000002a 531 .long DBG22
005c 0000001d 532 .long 0x1d
0060 00000030 533 .long DBG23
0064 0000001e 534 .long 0x1e
0068 00000030 535 .long DBG24
006c 0000001f 536 .long 0x1f
0070 00000034 537 .long DBG25
0074 00000021 538 .long 0x21
0078 00000034 539 .long DBG26
007c 00000022 540 .long 0x22
0080 0000003c 541 .long DBG27
0084 00000023 542 .long 0x23
0088 0000003c 543 .long DBG28
008c 00000024 544 .long 0x24
0090 00000040 545 .long DBG29
0094 00000026 546 .long 0x26
0098 00000040 547 .long DBG30
009c 0000002a 548 .long 0x2a
00a0 0000004e 549 .long DBG31
00a4 0000002b 550 .long 0x2b
00a8 0000004e 551 .long DBG32
00ac 0000002c 552 .long 0x2c
553 .pseg RtcTempCompensation_code
554 .global _UpdateCorrection
555 _UpdateCorrection:
556 ; ENTRY
557 DBG12:
558 ; tempC in reg size 2
559 ; RtcCorrectionIndex in reg size 2
560 ; {
561 DBG13:
562 ; int tempC;
563 ; if (UpdateTempCorrectionFlag)
564 DBG14:
0000 c2930200 565 cmp.b #0x0,&_UpdateTempCorrectionFlag
0004 2424 566 jeq UpdateCorrection_L1
567 DBG16:
568 DBG15:
569 ; {
570 ; uint16 RtcCorrectionIndex;
571 ; getTemp();
0006 b0120000 572 call #_getTemp
573 DBG17:
574 ; tempC = tempF;
000a 1d420000 575 mov &_tempF,r13
576 DBG18:
577 ; tempC -= 32;
000e 3d802000 578 sub #0x20,r13
579 DBG19:
580 ; tempC *= 5;
0012 0c4d 581 mov r13,r12
0014 12c3 582 clrc
0016 0c6c 583 rlc r12
0018 12c3 584 clrc
001a 0c6c 585 rlc r12
001c 0c5d 586 add r13,r12
587 DBG20:
588 ; tempC /= 9;
001e 3d400900 589 mov #0x9,r13
590 DBG34:
0022 b0120000 591 call #__sdiv16
592 DBG21:
593 DBG35:
594 ; RtcCorrectionIndex = tempC + 40;
0026 3c502800 595 add #0x28,r12
596 DBG22:
597 ; if (RtcCorrectionIndex < (-40) )
002a 3c90d8ff 598 cmp #-0x28,r12
002e 022c 599 jc UpdateCorrection_L2
600 DBG24:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -