📄 background.lst
字号:
281 ; DISPLAY_STAGE_APP_ENERGY,
282 ; DISPLAY_STAGE_TEMPERATURE,
283 ; DISPLAY_STAGE_TIME,
284 ; DISPLAY_STAGE_DATE,
285 ; DISPLAY_STAGE_TEST1,
286 ; DISPLAY_STAGE_TEST2,
287 ; DISPLAY_STAGE_TEST3,
288 ; DISPLAY_STAGE_TEST4,
289 ; DISPLAY_STAGE_TEST5,
290 ; DISPLAY_STAGE_TEST6,
291 ; DISPLAY_STAGE_TEST7,
292 ; DISPLAY_STAGE_TEST8,
293 ; DISPLAY_STAGE_TEST9,
294 ; DISPLAY_STAGE_LAST
295 ; };
296 ; struct rtc_s
297 ; {
298 ; uint8 second;
299 ; uint8 minute;
300 ; uint8 hour;
301 ; uint8 day;
302 ; uint8 week;
303 ; uint8 month;
304 ; uint8 year;
305 ; uint8 sumcheck;
306 ; };
307 ; extern struct rtc_s rtc;
308 ; extern uint32 ul_actensper1;
309 ; extern uint32 ul_actensper2;
310 ; extern void display (unsigned int value);
311 ; extern void update_display(void);
312 ; extern void LCDudec16(unsigned int value, int pos, int digits, int after);
313 ; extern void LCDudec32(unsigned long value, int pos, int digits, int after);
314 ; extern void LCDicon(int id, int on);
315 ; extern void LCDmodify_char(unsigned char ch, int pos, int on);
316 ; extern void LCDchar(unsigned char ch, int pos);
317 ; extern void clr_lcd_display(void);
318 ; extern void bin2bcd32(unsigned char bcd[5], unsigned long bin);
319 ; extern void bin2bcd16(unsigned char bcd[3], unsigned int bin);
320 ; extern unsigned long scale_long(unsigned long l, float f);
321 ; extern unsigned int scale_int(unsigned int i, float f);
322 ; extern void set_rtc_sumcheck(void);
323 ; extern int check_rtc_sumcheck(void);
324 ; extern int bump_rtc(void);
325 ; extern int weekday(void);
326 ; extern void rtc_bumper(void);
327 ; extern void correct_rtc(void);
328 ; extern void init_analog_front_end_ESP(void);
329 ; extern void init_esp_parameter(void);
330 ; extern void set_parameter(unsigned int param, unsigned int data);
331 ; extern void start_measurement(void);
332 ; extern char store_flash_var(char *ptr,char *from, int len);
333 ; extern void EnergyReadyIntMapping(void);
334 ; extern void ActensperReadyIntMapping(void);
335 ; extern void BasicTimerIntMapping(void);
336 ; void init_analog_front_end_SD16(void);
337 ; extern void tpd_gen(void);
338 ; extern int16_t dc_filter(register int32_t *p, register int16_t x);
339 ; extern int32_t imul16_up(register int16_t x, register int16_t y);
340 ; extern void accum48(register int16_t x[3], register int32_t y);
341 ; extern void log_parameters(void);
342 ; extern void transfer48(register int16_t y[3], register int16_t x[3]);
343 ; extern int32_t div48(register int16_t x[3], register int16_t y);
344 ; extern int32_t isqrt32(register int32_t h);
345 ; extern int32_t div_sh48(register int16_t x[3], int sh, register int16_t y);
346 ; extern int32_t current(void);
347 ; extern int32_t voltage(void);
348 ; extern void CheckExternVoltage(void);
349 ; extern void EnterSD16Measure (void);
350 ; extern void ExitSD16Measure (void);
351 ; extern void EnterESPMeasure (void);
352 ; extern void ExitESPMeasure (void);
353 ; extern void SwitchToSD16Measure(void);
354 ; extern void SwitchToESPMeasure(void);
355 ; extern void OnlyRTCMode(void);
356 ; void ClrDispVary(unsigned char OpMode);
357 ; void Switch_CalibrationOption_Add(void)
358 DBG3:
0028 00000000 359 .long 0x0
002c 00000438 360 .long DBG10
0030 00000000 361 .long _Switch_CalibrationOption_Add
0034 00000040 362 .long 0x40
0038 01020001 363 .long 0x1020001
003c 00000050 364 .long DBG1
0040 00000090 365 .long DBG7-DBG8
0044 00000000 366 .long DBG9
0048 000001b8 367 .long DBG6
004c 00000000 368 .long 0x0
369 .pseg background_code
370 DBG8:
371 .dbgseg dbg_syms
372 DBG1:
0050 0066622e 373 .long 0x66622e
0054 00000000 374 .long 0x0
0058 00000000 375 .long DBG8
005c 00000000 376 .long 0x0
0060 01650001 377 .long 0x1650001
0064 00000000 378 .long 0x0
0068 00000011 379 .long 0x11
006c 00000000 380 .long 0x0
0070 000001e0 381 .long DBG11
0074 00000000 382 .long 0x0
383 .dbgseg dbg_line
0000 384 .align 0x2
385 DBG9:
0000 00000028 386 .long DBG3
0004 00000000 387 .long 0x0
388 .iseg background_data_const
0000 389 .align 0x2
0000 390 .align 0x2
391 Switch_CalibrationOption_Add_LL3:
0000 0400 392 .data Switch_CalibrationOption_Add_L3
0002 0a00 393 .data Switch_CalibrationOption_Add_L4
0004 1400 394 .data Switch_CalibrationOption_Add_L5
0006 3400 395 .data Switch_CalibrationOption_Add_L6
0008 3a00 396 .data Switch_CalibrationOption_Add_L7
000a 4400 397 .data Switch_CalibrationOption_Add_L8
000c 6400 398 .data Switch_CalibrationOption_Add_L9
000e 6a00 399 .data Switch_CalibrationOption_Add_L10
0010 7000 400 .data Switch_CalibrationOption_Add_L11
401 .dbgseg dbg_line
0008 00000000 402 .long _Switch_CalibrationOption_Add
000c 00000001 403 .long 0x1
0010 00000002 404 .long DBG13
0014 00000002 405 .long 0x2
0018 00000002 406 .long DBG14
001c 00000003 407 .long 0x3
0020 00000004 408 .long DBG15
0024 00000004 409 .long 0x4
0028 00000004 410 .long DBG16
002c 00000005 411 .long 0x5
0030 00000004 412 .long DBG17
0034 00000006 413 .long 0x6
0038 00000008 414 .long DBG18
003c 00000007 415 .long 0x7
0040 0000000a 416 .long DBG19
0044 00000008 417 .long 0x8
0048 0000000a 418 .long DBG20
004c 00000009 419 .long 0x9
0050 00000012 420 .long DBG21
0054 0000000a 421 .long 0xa
0058 00000014 422 .long DBG22
005c 0000000b 423 .long 0xb
0060 00000014 424 .long DBG23
0064 0000000c 425 .long 0xc
0068 00000032 426 .long DBG24
006c 0000000d 427 .long 0xd
0070 00000034 428 .long DBG25
0074 0000000e 429 .long 0xe
0078 00000034 430 .long DBG26
007c 0000000f 431 .long 0xf
0080 00000038 432 .long DBG27
0084 00000010 433 .long 0x10
0088 0000003a 434 .long DBG28
008c 00000011 435 .long 0x11
0090 0000003a 436 .long DBG29
0094 00000012 437 .long 0x12
0098 00000042 438 .long DBG30
009c 00000013 439 .long 0x13
00a0 00000044 440 .long DBG31
00a4 00000014 441 .long 0x14
00a8 00000044 442 .long DBG32
00ac 00000015 443 .long 0x15
00b0 00000062 444 .long DBG33
00b4 00000016 445 .long 0x16
00b8 00000064 446 .long DBG34
00bc 00000017 447 .long 0x17
00c0 00000064 448 .long DBG35
00c4 00000018 449 .long 0x18
00c8 00000068 450 .long DBG36
00cc 00000019 451 .long 0x19
00d0 0000006a 452 .long DBG37
00d4 0000001a 453 .long 0x1a
00d8 0000006a 454 .long DBG38
00dc 0000001b 455 .long 0x1b
00e0 0000006e 456 .long DBG39
00e4 0000001c 457 .long 0x1c
00e8 00000070 458 .long DBG40
00ec 0000001d 459 .long 0x1d
00f0 00000070 460 .long DBG41
00f4 0000001e 461 .long 0x1e
00f8 00000074 462 .long DBG42
00fc 0000001f 463 .long 0x1f
0100 00000076 464 .long DBG43
0104 00000020 465 .long 0x20
0108 00000078 466 .long DBG44
010c 00000021 467 .long 0x21
0110 0000008c 468 .long DBG45
0114 00000022 469 .long 0x22
470 .pseg background_code
471 .global _Switch_CalibrationOption_Add
472 _Switch_CalibrationOption_Add:
0000 0412 473 push r4
474 DBG14:
475 DBG13:
476 DBG12:
477 ; ENTRY
478 ; {
479 ; switch(emeter.ucCalibrationOption)
0002 3a3c 480 jmp Switch_CalibrationOption_Add_L2
481 DBG16:
482 DBG15:
483 ; {
484 ; case 1:
485 Switch_CalibrationOption_Add_L3:
486 ; emeter.ui_GainCorr1 += 1;
487 DBG17:
0004 92534200 488 add #0x1,&_emeter+0x42
489 DBG18:
490 ; break;
0008 413c 491 jmp Switch_CalibrationOption_Add_LL2
492 DBG19:
493 ; case 2:
494 Switch_CalibrationOption_Add_L4:
495 ; emeter.l_PowerOffset1 += 1;
496 DBG20:
000a 92534600 497 add #0x1,&_emeter+0x46
000e 82634800 498 addc #0x0,&_emeter+0x48
499 DBG21:
500 ; break;
0012 3c3c 501 jmp Switch_CalibrationOption_Add_LL2
502 DBG22:
503 ; case 3:
504 Switch_CalibrationOption_Add_L5:
505 ; emeter.f_PhaseCorr1 += 0.001;
506 DBG23:
0014 34404e00 507 mov #_emeter+0x4e,r4
0018 3f406e12 508 mov #0x126e,r15
001c 3e40833a 509 mov #0x3a83,r14
0020 2d44 510 mov @r4,r13
0022 1c440200 511 mov 0x2(r4),r12
512 DBG46:
0026 b0120000 513 call #__s_add
514 DBG47:
002a 844d0000 515 mov r13,0(r4)
002e 844c0200 516 mov r12,0x2(r4)
517 DBG24:
518 ; break;
0032 2c3c 519 jmp Switch_CalibrationOption_Add_LL2
520 DBG25:
521 ; case 4:
522 Switch_CalibrationOption_Add_L6:
523 ; emeter.ui_GainCorr2 += 1;
524 DBG26:
0034 92534400 525 add #0x1,&_emeter+0x44
526 DBG27:
527 ; break;
0038 293c 528 jmp Switch_CalibrationOption_Add_LL2
529 DBG28:
530 ; case 5:
531 Switch_CalibrationOption_Add_L7:
532 ; emeter.l_PowerOffset2 += 1;
533 DBG29:
003a 92534a00 534 add #0x1,&_emeter+0x4a
003e 82634c00 535 addc #0x0,&_emeter+0x4c
536 DBG30:
537 ; break;
0042 243c 538 jmp Switch_CalibrationOption_Add_LL2
539 DBG31:
540 ; case 6:
541 Switch_CalibrationOption_Add_L8:
542 ; emeter.f_PhaseCorr2 += 0.001;
543 DBG32:
0044 34405200 544 mov #_emeter+0x52,r4
0048 3f406e12 545 mov #0x126e,r15
004c 3e40833a 546 mov #0x3a83,r14
0050 2d44 547 mov @r4,r13
0052 1c440200 548 mov 0x2(r4),r12
549 DBG48:
0056 b0120000 550 call #__s_add
551 DBG49:
005a 844d0000 552 mov r13,0(r4)
005e 844c0200 553 mov r12,0x2(r4)
554 DBG33:
555 ; break;
0062 143c 556 jmp Switch_CalibrationOption_Add_LL2
557 DBG34:
558 ; case 7:
559 Switch_CalibrationOption_Add_L9:
560 ; emeter.ui_SD16_CurrentCorr1 += 1;
561 DBG35:
0064 92535600 562 add #0x1,&_emeter+0x56
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -