process.a30
来自「电表解决方案概要power_meter_r8c2g_source_code」· A30 代码 · 共 1,738 行 · 第 1/5 页
A30
1,738 行
jgt L421
._line 207
._block
._line 208
mov.b #06H,_err_buff
._line 209
mov.w #04b0H,_inlet_20m_buff
._line 210
exitd
._eblock
._eblock
._line 213
L549:
L309:
mov.b 5[FB],R0L ; cycle
jeq L419
._line 214
._block
._line 215
cmp.b #01H,_cycle_start_flag
jeq L329
._line 216
._block
._line 217
mov.b 5[FB],___S0_cycle_buff ; cycle
._line 218
mov.b #01H,_cycle_start_flag
._eblock
L329:
._line 221
mov.b ___S0_cycle_buff,-2[FB] ; i
._line 222
mov.b -2[FB],A0 ; i
and.w #0080H,A0
mov.b A0,-2[FB] ; i
._line 225
jeq L369
._line 226
._block
._line 229
mov.b _output_buff,A0
or.b #04H,A0
mov.b A0,_output_buff
._line 231
cmp.b #00H,_inlet_2m_buff
jle L339
._line 232
dec.b _inlet_2m_buff
L339:
._line 234
mov.b _inlet_2m_buff,R0L
exts.b R0L
mov.w #0078H,R1
sub.w R0,R1
cmp.w #0023H,R1
jne L551
._line 235
._block
._line 238
mov.b _output_buff,A0
bclr 02H,A0
mov.b A0,_output_buff
._line 240
mov.b #78H,_inlet_2m_buff
._line 241
shl.b #01H,___S0_cycle_buff
._line 242
jne L349
._line 243
._block
._line 245
mov.b #00H,_mot_cycle_buff
._line 246
mov.b _output_buff,A0
bclr 00H,A0
mov.b A0,_output_buff
._line 247
mov.b _output_buff,A0
bclr 04H,A0
mov.b A0,_output_buff
._eblock
L349:
._line 251
inc.b _pass_time_counter
._eblock
._line 253
jmp L559
._eblock
._line 255
L369:
mov.b -2[FB],R0L ; i
jne L553
._line 256
._block
._line 257
cmp.b #00H,_inlet_2m_buff
jle L379
._line 258
dec.b _inlet_2m_buff
L379:
._line 259
mov.b _inlet_2m_buff,R0L
exts.b R0L
mov.w #0078H,R1
sub.w R0,R1
cmp.w #001eH,R1
jne L555
._line 260
._block
._line 261
mov.b #78H,_inlet_2m_buff
._line 262
shl.b #01H,___S0_cycle_buff
._line 265
inc.b _pass_time_counter
._line 267
mov.b ___S0_cycle_buff,R0L
jne L557
._line 282
._block
._line 283
mov.b #00H,_mot_cycle_buff
._line 284
mov.b _output_buff,A0
bclr 00H,A0
mov.b A0,_output_buff
._line 285
mov.b _output_buff,A0
bclr 04H,A0
mov.b A0,_output_buff
._line 286
mov.w #0000H,_process_left_time
._line 288
mov.b #00H,_cycle_start_flag
._line 289
mov.b _operation_counter,R0L
exts.b R0L
add.w #0008H,R0
mov.b R0L,_operation_counter
._line 290
inc.b _pass_time_counter
._eblock
._line 292
jmp L559
._eblock
._eblock
._eblock
._line 297
L419:
._line 298
exitd
L559:
L557:
L555:
L553:
L551:
L421:
._eblock
._line 299
exitd
E1:
._eblock
M1:
._efunc M1
._inspect 'F', 'd', "inlet", "$inlet", 'G', 30, 0, 00h, 0
._inspect 'F', 't', "inlet", 'G', 257
._inspect 'V', 'r', "water_full_flag", 'G', 37, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 41, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 41, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 52, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 52, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_10s_buff", 'G', 54, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 58, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 58, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_10s_buff", 'G', 60, 1, 0, 0, 00h
._inspect 'V', 'r', "softener_flag", 'G', 62, 1, 0, 0, 00h
._inspect 'V', 'r', "water_full_flag", 'G', 63, 1, 0, 0, 00h
._inspect 'V', 'r', "operation_counter", 'G', 65, 1, 0, 0, 00h
._inspect 'V', 'r', "pass_time_counter", 'G', 66, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_10s_buff", 'G', 72, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_10s_buff", 'G', 73, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_20m_buff", 'G', 74, 2, 0, 0, 00h
._inspect 'V', 'r', "inlet_20m_buff", 'G', 75, 2, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 76, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 78, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 79, 1, 0, 0, 00h
._inspect 'V', 'r', "process_left_time", 'G', 79, 2, 0, 0, 00h
._inspect 'V', 'r', "inlet_20m_buff", 'G', 82, 2, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 86, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 86, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_20m_buff", 'G', 88, 2, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 89, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_10s_buff", 'G', 90, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 91, 1, 0, 0, 00h
._inspect 'V', 'r', "process_left_time", 'G', 91, 2, 0, 0, 00h
._inspect 'V', 'r', "err_buff", 'G', 93, 1, 0, 0, 00h
._inspect 'V', 'r', "water_level_buff", 'G', 97, 1, 0, 0, 00h
._inspect 'V', 'r', "water_buff", 'G', 99, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 105, 1, 0, 0, 00h
._inspect 'V', 'r', "water_buff", 'G', 107, 1, 0, 0, 00h
._inspect 'V', 'r', "water_level_buff", 'G', 107, 1, 0, 0, 00h
._inspect 'V', 'r', "water_full_flag", 'G', 109, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 113, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 113, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_20m_buff", 'G', 117, 2, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 118, 1, 0, 0, 00h
._inspect 'V', 'r', "process_left_time", 'G', 119, 2, 0, 0, 00h
._inspect 'V', 'r', "operation_counter", 'G', 121, 1, 0, 0, 00h
._inspect 'V', 'r', "pass_time_counter", 'G', 122, 1, 0, 0, 00h
._inspect 'V', 'r', "softener_flag", 'G', 125, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_20m_buff", 'G', 127, 2, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 128, 1, 0, 0, 00h
._inspect 'V', 'r', "process_left_time", 'G', 129, 2, 0, 0, 00h
._inspect 'V', 'r', "operation_counter", 'G', 131, 1, 0, 0, 00h
._inspect 'V', 'r', "pass_time_counter", 'G', 132, 1, 0, 0, 00h
._inspect 'V', 'r', "water_buff", 'G', 138, 1, 0, 0, 00h
._inspect 'V', 'r', "water_level_buff", 'G', 138, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 144, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 148, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 148, 1, 0, 0, 00h
._inspect 'V', 'r', "water_full_flag", 'G', 150, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_20m_buff", 'G', 154, 2, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 155, 1, 0, 0, 00h
._inspect 'V', 'r', "process_left_time", 'G', 156, 2, 0, 0, 00h
._inspect 'V', 'r', "operation_counter", 'G', 158, 1, 0, 0, 00h
._inspect 'V', 'r', "pass_time_counter", 'G', 159, 1, 0, 0, 00h
._inspect 'V', 'r', "softener_flag", 'G', 162, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_20m_buff", 'G', 164, 2, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 165, 1, 0, 0, 00h
._inspect 'V', 'r', "process_left_time", 'G', 166, 2, 0, 0, 00h
._inspect 'V', 'r', "operation_counter", 'G', 168, 1, 0, 0, 00h
._inspect 'V', 'r', "pass_time_counter", 'G', 169, 1, 0, 0, 00h
._inspect 'V', 'r', "water_full_flag", 'G', 179, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 183, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 183, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_20m_buff", 'G', 186, 2, 0, 0, 00h
._inspect 'V', 'r', "inlet_20m_buff", 'G', 187, 2, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 188, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 190, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 191, 1, 0, 0, 00h
._inspect 'V', 'r', "process_left_time", 'G', 191, 2, 0, 0, 00h
._inspect 'V', 'r', "water_buff", 'G', 194, 1, 0, 0, 00h
._inspect 'V', 'r', "water_level_buff", 'G', 194, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_20m_buff", 'G', 196, 2, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 197, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 201, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 201, 1, 0, 0, 00h
._inspect 'V', 'r', "water_full_flag", 'G', 203, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_20m_buff", 'G', 206, 2, 0, 0, 00h
._inspect 'V', 'r', "err_buff", 'G', 208, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_20m_buff", 'G', 209, 2, 0, 0, 00h
._inspect 'V', 'r', "cycle_start_flag", 'G', 215, 1, 0, 0, 00h
._inspect 'V', 'r', "cycle_start_flag", 'G', 218, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 229, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 229, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 231, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 232, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 234, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 238, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 238, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 240, 1, 0, 0, 00h
._inspect 'V', 'r', "mot_cycle_buff", 'G', 245, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 246, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 246, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 247, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 247, 1, 0, 0, 00h
._inspect 'V', 'r', "pass_time_counter", 'G', 251, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 257, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 258, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 259, 1, 0, 0, 00h
._inspect 'V', 'r', "inlet_2m_buff", 'G', 261, 1, 0, 0, 00h
._inspect 'V', 'r', "pass_time_counter", 'G', 265, 1, 0, 0, 00h
._inspect 'V', 'r', "mot_cycle_buff", 'G', 283, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 284, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 284, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 285, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 285, 1, 0, 0, 00h
._inspect 'V', 'r', "process_left_time", 'G', 286, 2, 0, 0, 00h
._inspect 'V', 'r', "cycle_start_flag", 'G', 288, 1, 0, 0, 00h
._inspect 'V', 'r', "operation_counter", 'G', 289, 1, 0, 0, 00h
._inspect 'V', 'r', "operation_counter", 'G', 289, 1, 0, 0, 00h
._inspect 'V', 'r', "pass_time_counter", 'G', 290, 1, 0, 0, 00h
._inspect 'F', 'e', "inlet", "$inlet", 'G', 0, 0
;## # FUNCTION drain
;## # ARG Size(0) Auto Size(0) Context Size(3)
._type 258,'v'
._type 259,'v'
._type 260,'x',258,1
._type 260,'m','',0,259
._func 'drain','G',0,260,_drain,0
._inspect 'F', 's', "drain", "_drain", 'G', 3
.align
._line 308
.glb _drain
_drain:
._block
._line 312
mov.b _output_buff,A0
or.b #02H,A0
mov.b A0,_output_buff
._line 314
cmp.w #0000H,_drain_8m_buff
jle L561
._line 315
add.w #-1,_drain_8m_buff
L561:
._line 317
cmp.b #00H,_drain_2m_buff
jle L571
mov.b _drain_empty_flag,R0L
jne L755
._line 318
._block
._line 319
dec.b _drain_2m_buff
._line 320
mov.b _drain_2m_buff,R0L
exts.b R0L
mov.w R0,_process_left_time
._eblock
L755:
L571:
._line 335
mov.b _water_buff,R0L
jne L699
._line 336
._block
._line 337
cmp.b #77H,_drain_2m_buff
jge L629
._line 338
._block
._line 339
cmp.b #00H,_drain_60s_buff
jle L609
._line 340
dec.b _drain_60s_buff
L609:
._line 341
mov.b _drain_60s_buff,R0L
jne L711
._line 342
._block
._line 343
mov.b #3cH,_drain_60s_buff
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?