process.a30
来自「电表解决方案概要power_meter_r8c2g_source_code」· A30 代码 · 共 1,738 行 · 第 1/5 页
A30
1,738 行
._line 344
mov.w #01e0H,_drain_8m_buff
._line 345
mov.b #78H,_drain_2m_buff
._line 346
mov.w #0000H,_process_left_time
._line 348
inc.b _operation_counter
._line 349
inc.b _pass_time_counter
._line 350
mov.b #00H,_save_water_once_flag
._line 352
rts
._eblock
._eblock
._line 355
L629:
cmp.b #77H,_drain_2m_buff
jne L757
._line 356
._block
._line 357
mov.b #01H,_drain_empty_flag
._line 358
cmp.b #00H,_drain_10s_buff
jle L639
._line 359
dec.b _drain_10s_buff
L639:
._line 360
cmp.b #00H,_drain_20s_buff
jle L649
._line 361
dec.b _drain_20s_buff
L649:
._line 363
mov.b _drain_20s_buff,R0L
jne L659
._line 364
._block
._line 365
mov.b #0aH,_drain_10s_buff
._line 366
mov.b #14H,_drain_20s_buff
._line 367
mov.w #01e0H,_drain_8m_buff
._line 368
mov.b #78H,_drain_2m_buff
._line 369
mov.b #00H,_drain_empty_flag
._line 370
mov.w #0000H,_process_left_time
._line 372
inc.b _operation_counter
._line 373
inc.b _pass_time_counter
._line 374
mov.b #00H,_save_water_once_flag
._line 375
rts
._eblock
._line 377
L659:
mov.b _drain_10s_buff,R0L
jne L759
._line 378
._block
._line 379
mov.b _machine_type,R0L
jne L761
._line 380
._block
._line 381
mov.b #0aH,_drain_10s_buff
._line 382
mov.b #14H,_drain_20s_buff
._line 383
mov.w #01e0H,_drain_8m_buff
._line 384
mov.b #78H,_drain_2m_buff
._line 385
mov.b #00H,_drain_empty_flag
._line 386
mov.w #0000H,_process_left_time
._line 388
inc.b _operation_counter
._line 389
inc.b _pass_time_counter
._line 390
mov.b #00H,_save_water_once_flag
._line 391
rts
._eblock
._eblock
._eblock
._eblock
._line 399
L699:
cmp.w #0000H,_drain_8m_buff
jne L709
._line 401
._block
._line 402
mov.w #01e0H,_drain_8m_buff
._line 403
mov.b #78H,_drain_2m_buff
._line 404
mov.b #0aH,_drain_10s_buff
._line 405
mov.b #14H,_drain_20s_buff
._line 406
mov.b #3cH,_drain_60s_buff
._line 407
mov.b _drain_2m_buff,R0L
exts.b R0L
mov.w R0,_process_left_time
._line 409
mov.b #02H,_err_buff
._line 410
rts
._eblock
._line 413
L709:
._line 414
rts
L761:
L759:
L757:
L711:
._eblock
._line 416
rts
E2:
M2:
._efunc M2
._inspect 'F', 'd', "drain", "_drain", 'G', 308, 0, 00h, 0
._inspect 'F', 't', "drain", 'G', 260
._inspect 'V', 'r', "output_buff", 'G', 312, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 312, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_8m_buff", 'G', 314, 2, 0, 0, 00h
._inspect 'V', 'r', "drain_8m_buff", 'G', 315, 2, 0, 0, 00h
._inspect 'V', 'r', "drain_2m_buff", 'G', 317, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_empty_flag", 'G', 317, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_2m_buff", 'G', 319, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_2m_buff", 'G', 320, 1, 0, 0, 00h
._inspect 'V', 'r', "process_left_time", 'G', 320, 2, 0, 0, 00h
._inspect 'V', 'r', "water_buff", 'G', 335, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_2m_buff", 'G', 337, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_60s_buff", 'G', 339, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_60s_buff", 'G', 340, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_60s_buff", 'G', 341, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_60s_buff", 'G', 343, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_8m_buff", 'G', 344, 2, 0, 0, 00h
._inspect 'V', 'r', "drain_2m_buff", 'G', 345, 1, 0, 0, 00h
._inspect 'V', 'r', "process_left_time", 'G', 346, 2, 0, 0, 00h
._inspect 'V', 'r', "operation_counter", 'G', 348, 1, 0, 0, 00h
._inspect 'V', 'r', "pass_time_counter", 'G', 349, 1, 0, 0, 00h
._inspect 'V', 'r', "save_water_once_flag", 'G', 350, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_2m_buff", 'G', 355, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_empty_flag", 'G', 357, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_10s_buff", 'G', 358, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_10s_buff", 'G', 359, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_20s_buff", 'G', 360, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_20s_buff", 'G', 361, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_20s_buff", 'G', 363, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_10s_buff", 'G', 365, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_20s_buff", 'G', 366, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_8m_buff", 'G', 367, 2, 0, 0, 00h
._inspect 'V', 'r', "drain_2m_buff", 'G', 368, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_empty_flag", 'G', 369, 1, 0, 0, 00h
._inspect 'V', 'r', "process_left_time", 'G', 370, 2, 0, 0, 00h
._inspect 'V', 'r', "operation_counter", 'G', 372, 1, 0, 0, 00h
._inspect 'V', 'r', "pass_time_counter", 'G', 373, 1, 0, 0, 00h
._inspect 'V', 'r', "save_water_once_flag", 'G', 374, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_10s_buff", 'G', 377, 1, 0, 0, 00h
._inspect 'V', 'r', "machine_type", 'G', 379, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_10s_buff", 'G', 381, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_20s_buff", 'G', 382, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_8m_buff", 'G', 383, 2, 0, 0, 00h
._inspect 'V', 'r', "drain_2m_buff", 'G', 384, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_empty_flag", 'G', 385, 1, 0, 0, 00h
._inspect 'V', 'r', "process_left_time", 'G', 386, 2, 0, 0, 00h
._inspect 'V', 'r', "operation_counter", 'G', 388, 1, 0, 0, 00h
._inspect 'V', 'r', "pass_time_counter", 'G', 389, 1, 0, 0, 00h
._inspect 'V', 'r', "save_water_once_flag", 'G', 390, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_8m_buff", 'G', 399, 2, 0, 0, 00h
._inspect 'V', 'r', "drain_8m_buff", 'G', 402, 2, 0, 0, 00h
._inspect 'V', 'r', "drain_2m_buff", 'G', 403, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_10s_buff", 'G', 404, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_20s_buff", 'G', 405, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_60s_buff", 'G', 406, 1, 0, 0, 00h
._inspect 'V', 'r', "drain_2m_buff", 'G', 407, 1, 0, 0, 00h
._inspect 'V', 'r', "process_left_time", 'G', 407, 2, 0, 0, 00h
._inspect 'V', 'r', "err_buff", 'G', 409, 1, 0, 0, 00h
._inspect 'F', 'e', "drain", "_drain", 'G', 0, 0
;## # FUNCTION soak
;## # FRAME AUTO (soak_time) size 2, offset -3
;## # FRAME AUTO ( i) size 1, offset -1
;## # REGISTER ARG (soak_time) size 2, REGISTER R1
;## # ARG Size(0) Auto Size(3) Context Size(5)
._type 261,'v'
._type 262,'x',261,1
._type 262,'m','soak_time',0,18
._func 'soak','G',3,262,$soak,0
._inspect 'F', 's', "soak", "$soak", 'G', 8
.align
._line 424
.glb $soak
$soak:
enter #03H
mov.w R1,-3[FB] ; soak_time soak_time
._block
._var 'soak_time','A',18,-3
._var 'i','A',3,-1
._line 427
mov.b _water_full_flag,R0L
jne L783
._line 428
._block
._line 429
mov.b _water_level_buff,-1[FB] ; i
sub.b _water_buff,-1[FB] ; i
._line 431
cmp.b #01H,-1[FB] ; i
jltu L1467
._line 432
._block
._line 433
mov.b #03H,_status_buff
._line 434
mov.b #01H,_run_inlet_flag
._line 435
cmp.b _water_level_buff,_water_buff
jeq L1469
._line 436
._block
._line 437
push.b _water_level_buff
._inspect 'S', 'p', 1
push.b #00H
._inspect 'S', 'p', 1
mov.b #00H,R1L
._inspect 'S', 'c', "inlet", "$inlet", 'G', 0, 437
jsr $inlet
._inspect 'S', 'p', -2
add.b #02H,SP
._line 438
exitd
._eblock
._eblock
._eblock
L1469:
L1467:
L783:
._line 443
mov.b _lid_open,R0L
jeq L793
._line 444
._block
._line 445
mov.b #03H,_err_buff
._line 446
exitd
._eblock
L793:
._line 449
cmp.w #000aH,-3[FB] ; soak_time
jne L879
._line 450
._block
._line 451
cmp.w #0000H,_process_left_time
jne L803
cmp.b #01H,_soak_2_cycle_buff
jeq L1471
._line 452
cmp.w #0258H,_process_left_time
stzx #01H,#00H,R0L
mov.b #00H,R0H
L1471:
L803:
._line 454
add.w #-1,_process_left_time
._line 456
cmp.b #01H,_soak_1_cycle_buff
jeq L831
._line 457
._inspect 'S', 'c', "soak_1", "_soak_1", 'G', 0, 457
jsr _soak_1
L831:
._line 459
cmp.b #01H,_soak_2_cycle_buff
jeq L841
cmp.b #01H,_soak_1_cycle_buff
jne L1473
._line 460
._inspect 'S', 'c', "soak_2", "_soak_2", 'G', 0, 460
jsr _soak_2
jmp L1475
._line 462
L1473:
L841:
cmp.b #01H,_soak_2_cycle_buff
jne L869
._line 463
._block
._line 464
inc.b _pass_time_counter
._line 465
inc.b _operation_counter
._line 466
mov.w #0000H,_process_left_time
._eblock
L869:
L1475:
._line 469
exitd
._eblock
._line 471
L879:
cmp.w #0014H,-3[FB] ; soak_time
jne L1017
._line 472
._block
._line 473
cmp.w #0000H,_process_left_time
jne L895
cmp.b #01H,_soak_3_cycle_buff
jeq L1477
._line 474
cmp.w #04b0H,_process_left_time
stzx #01H,#00H,R0L
mov.b #00H,R0H
L1477:
L895:
._line 476
add.w #-1,_process_left_time
._line 478
cmp.b #01H,_soak_1_cycle_buff
jeq L923
._line 479
._inspect 'S', 'c',
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?