operation_a.a30
来自「电表解决方案概要power_meter_r8c2g_source_code」· A30 代码 · 共 1,585 行 · 第 1/5 页
A30
1,585 行
._line 86
mov.b #00H,_release_save_water_flag
._eblock
L173:
._line 88
rts
._eblock
L183:
._line 91
cmp.b #01H,_status_buff
jne L213
._line 92
._block
._line 93
cmp.b #01H,_default_flag
jne L193
._line 94
._block
._line 95
mov.b #00H,_default_flag
._line 97
mov.b #06H,_water_level_buff
._line 99
mov.b #00H,_operation_buff
._eblock
L193:
._line 102
mov.b _status_5m_buff,R0L
jne L203
._line 103
._block
._line 104
mov.b #00H,_status_buff
._line 105
mov.b #05H,_status_5m_buff
._line 106
bset 7,_p3_addr
._eblock
L203:
._line 109
rts
._eblock
L213:
._line 112
cmp.b #02H,_status_buff
jne L223
._line 113
._block
._line 132
mov.b #01H,_program_start_flag
._line 133
mov.b #00H,_program_pause_flag
._line 135
._inspect 'S', 'c', "operation", "_operation", 'G', 0, 135
jsr _operation
._eblock
L223:
._line 141
cmp.b #04H,_status_buff
jne L283
._line 142
._block
._line 143
cmp.b #10H,_test_buff
jne L233
._line 144
._inspect 'S', 'c', "test_no_water", "_test_no_water", 'G', 0, 144
jsr _test_no_water
L233:
._line 146
cmp.b #11H,_test_buff
jne L243
._line 147
._inspect 'S', 'c', "test_production", "_test_production", 'G', 0, 147
jsr _test_production
L243:
._line 149
cmp.b #12H,_test_buff
jne L253
._line 150
._inspect 'S', 'c', "test_cycle", "_test_cycle", 'G', 0, 150
jsr _test_cycle
L253:
._line 152
cmp.b #13H,_test_buff
jne L263
._line 153
._inspect 'S', 'c', "test_interm_spin", "_test_interm_spin", 'G', 0, 153
jsr _test_interm_spin
L263:
._line 155
cmp.b #14H,_test_buff
jne L467
._line 156
._inspect 'S', 'c', "test_weight", "_test_weight", 'G', 0, 156
jsr _test_weight
._eblock
L467:
L283:
._line 159
cmp.b #05H,_status_buff
jne L343
._line 160
._block
._line 161
cmp.b #01H,_key_preset_flag
jne L293
._line 162
._block
._line 163
mov.b _preset_time_buff,_sys_1m_buff
._line 164
mov.b #00H,_key_preset_flag
._eblock
L293:
._line 167
mov.b _sys_1m_buff,R0L
jne L303
._line 168
._block
._line 171
rts
._eblock
L303:
._line 173
mov.b _preset_confirm_flag,R0L
jne L313
._line 174
._block
._line 175
mov.b #00H,_water_flash_flag
._line 176
mov.b #00H,_program_flash_flag
._eblock
L313:
._line 179
cmp.b #01H,_preset_confirm_flag
jne L465
._line 180
._block
._line 181
mov.b #01H,_water_flash_flag
._line 183
mov.b _preset_5s_buff,R0L
jne L469
._line 184
._block
._line 185
mov.b #00H,_preset_confirm_flag
._line 186
mov.b #01H,_preset_flash_flag
._line 187
rts
._eblock
._eblock
._eblock
._line 192
L343:
._line 193
rts
._eblock
L469:
L465:
L353:
._eblock
._line 197
rts
E1:
._eblock
M3:
._efunc M3
._inspect 'F', 'd', "logic", "_logic", 'G', 27, 0, 00h, 0
._inspect 'F', 't', "logic", 'G', 258
._inspect 'F', 'r', "run_stream", "_run_stream", 'G', 30, 0, 00h, 0
._inspect 'V', 'r', "water_level_buff", 'G', 32, 1, 0, 0, 00h
._inspect 'V', 'r', "water_level", 'G', 33, 1, 0, 0, 00h
._inspect 'V', 'r', "water_level_buff", 'G', 35, 1, 0, 0, 00h
._inspect 'V', 'r', "water_level_buff", 'G', 35, 1, 0, 0, 00h
._inspect 'V', 'r', "water_level", 'G', 36, 1, 0, 0, 00h
._inspect 'V', 'r', "water_level_buff", 'G', 38, 1, 0, 0, 00h
._inspect 'V', 'r', "water_level", 'G', 39, 1, 0, 0, 00h
._inspect 'V', 'r', "status_buff", 'G', 41, 1, 0, 0, 00h
._inspect 'V', 'r', "run_save_water_flag", 'G', 41, 1, 0, 0, 00h
._inspect 'V', 'r', "status_buff", 'G', 43, 1, 0, 0, 00h
._inspect 'V', 'r', "run_err_flag", 'G', 43, 1, 0, 0, 00h
._inspect 'V', 'r', "status_buff", 'G', 46, 1, 0, 0, 00h
._inspect 'V', 'r', "t_mode_switch_flag", 'G', 46, 1, 0, 0, 00h
._inspect 'V', 'r', "run_1s_buff", 'G', 48, 1, 0, 0, 00h
._inspect 'V', 'r', "t_mode_switch_flag", 'G', 49, 1, 0, 0, 00h
._inspect 'V', 'r', "status_buff", 'G', 52, 1, 0, 0, 00h
._inspect 'V', 'r', "test_start_flag", 'G', 52, 1, 0, 0, 00h
._inspect 'V', 'r', "run_1s_buff", 'G', 54, 1, 0, 0, 00h
._inspect 'V', 'r', "test_1_start_flag", 'G', 55, 1, 0, 0, 00h
._inspect 'V', 'r', "status_buff", 'G', 58, 1, 0, 0, 00h
._inspect 'V', 'r', "test_inlet_flag", 'G', 58, 1, 0, 0, 00h
._inspect 'V', 'r', "run_1s_buff", 'G', 60, 1, 0, 0, 00h
._inspect 'V', 'r', "test_1_start_flag", 'G', 61, 1, 0, 0, 00h
._inspect 'V', 'r', "run_1s_buff", 'G', 64, 1, 0, 0, 00h
._inspect 'V', 'r', "run_1s_buff", 'G', 66, 1, 0, 0, 00h
._inspect 'V', 'r', "status_buff", 'G', 69, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 71, 1, 0, 0, 00h
._inspect 'V', 'r', "status_buff", 'G', 75, 1, 0, 0, 00h
._inspect 'V', 'r', "output_buff", 'G', 77, 1, 0, 0, 00h
._inspect 'V', 'r', "program_start_flag", 'G', 78, 1, 0, 0, 00h
._inspect 'V', 'r', "program_pause_flag", 'G', 79, 1, 0, 0, 00h
._inspect 'V', 'r', "run_save_water_flag", 'G', 81, 1, 0, 0, 00h
._inspect 'F', 'r', "save_water", "_save_water", 'G', 82, 0, 00h, 0
._inspect 'V', 'r', "release_save_water_flag", 'G', 83, 1, 0, 0, 00h
._inspect 'V', 'r', "status_buff", 'G', 85, 1, 0, 0, 00h
._inspect 'V', 'r', "release_save_water_flag", 'G', 86, 1, 0, 0, 00h
._inspect 'V', 'r', "status_buff", 'G', 91, 1, 0, 0, 00h
._inspect 'V', 'r', "default_flag", 'G', 93, 1, 0, 0, 00h
._inspect 'V', 'r', "default_flag", 'G', 95, 1, 0, 0, 00h
._inspect 'V', 'r', "water_level_buff", 'G', 97, 1, 0, 0, 00h
._inspect 'V', 'r', "operation_buff", 'G', 99, 1, 0, 0, 00h
._inspect 'V', 'r', "status_5m_buff", 'G', 102, 1, 0, 0, 00h
._inspect 'V', 'r', "status_buff", 'G', 104, 1, 0, 0, 00h
._inspect 'V', 'r', "status_5m_buff", 'G', 105, 1, 0, 0, 00h
._inspect 'V', 'r', "p3_addr", 'G', 106, 1, 1, 0, 080h
._inspect 'V', 'r', "status_buff", 'G', 112, 1, 0, 0, 00h
._inspect 'V', 'r', "program_start_flag", 'G', 132, 1, 0, 0, 00h
._inspect 'V', 'r', "program_pause_flag", 'G', 133, 1, 0, 0, 00h
._inspect 'F', 'r', "operation", "_operation", 'G', 135, 0, 00h, 0
._inspect 'V', 'r', "status_buff", 'G', 141, 1, 0, 0, 00h
._inspect 'V', 'r', "test_buff", 'G', 143, 1, 0, 0, 00h
._inspect 'F', 'r', "test_no_water", "_test_no_water", 'G', 144, 0, 00h, 0
._inspect 'V', 'r', "test_buff", 'G', 146, 1, 0, 0, 00h
._inspect 'F', 'r', "test_production", "_test_production", 'G', 147, 0, 00h, 0
._inspect 'V', 'r', "test_buff", 'G', 149, 1, 0, 0, 00h
._inspect 'F', 'r', "test_cycle", "_test_cycle", 'G', 150, 0, 00h, 0
._inspect 'V', 'r', "test_buff", 'G', 152, 1, 0, 0, 00h
._inspect 'F', 'r', "test_interm_spin", "_test_interm_spin", 'G', 153, 0, 00h, 0
._inspect 'V', 'r', "test_buff", 'G', 155, 1, 0, 0, 00h
._inspect 'F', 'r', "test_weight", "_test_weight", 'G', 156, 0, 00h, 0
._inspect 'V', 'r', "status_buff", 'G', 159, 1, 0, 0, 00h
._inspect 'V', 'r', "key_preset_flag", 'G', 161, 1, 0, 0, 00h
._inspect 'V', 'r', "sys_1m_buff", 'G', 163, 1, 0, 0, 00h
._inspect 'V', 'r', "preset_time_buff", 'G', 163, 1, 0, 0, 00h
._inspect 'V', 'r', "key_preset_flag", 'G', 164, 1, 0, 0, 00h
._inspect 'V', 'r', "sys_1m_buff", 'G', 167, 1, 0, 0, 00h
._inspect 'V', 'r', "preset_confirm_flag", 'G', 173, 1, 0, 0, 00h
._inspect 'V', 'r', "water_flash_flag", 'G', 175, 1, 0, 0, 00h
._inspect 'V', 'r', "program_flash_flag", 'G', 176, 1, 0, 0, 00h
._inspect 'V', 'r', "preset_confirm_flag", 'G', 179, 1, 0, 0, 00h
._inspect 'V', 'r', "water_flash_flag", 'G', 181, 1, 0, 0, 00h
._inspect 'V', 'r', "preset_5s_buff", 'G', 183, 1, 0, 0, 00h
._inspect 'V', 'r', "preset_confirm_flag", 'G', 185, 1, 0, 0, 00h
._inspect 'V', 'r', "preset_flash_flag", 'G', 186, 1, 0, 0, 00h
._inspect 'F', 'e', "logic", "_logic", 'G', 0, 0
;## # FUNCTION operation
;## # FRAME AUTO ( j) size 1, offset -1
;## # ARG Size(0) Auto Size(1) Context Size(5)
._type 259,'v'
._type 260,'v'
._type 261,'x',259,1
._type 261,'m','',0,260
._func 'operation','G',1,261,_operation,0
._inspect 'F', 's', "operation", "_operation", 'G', 6
.align
._line 217
.glb _operation
_operation:
enter #01H
._block
._var 'i','A',3,0
._var 'j','A',3,-1
._line 222
mov.b _program_buff,R0L
jeq L473
cmp.b #01H,R0L
jeq L515
cmp.b #02H,R0L
jeq L537
cmp.b #03H,R0L
jeq L559
cmp.b #04H,R0L
jeq L581
cmp.b #05H,R0L
jeq L603
cmp.b #06H,R0L
jeq L625
cmp.b #07H,R0L
jeq L647
cmp.b #08H,R0L
jeq L669
cmp.b #09H,R0L
jeq L691
cmp.b #0aH,R0L
jeq L713
cmp.b #0bH,R0L
jeq L715
jmp L471
._line 223
._block
._line 224
L473:
._line 226
cmp.b #32H,_ac_frequency
jne L475
._line 227
mov.b #00H,_stream_table_row
jmp L485
._line 229
L475:
cmp.b #3cH,_ac_frequency
stz #01H,_stream_table_row
L485:
._line 232
mov.b #00H,_ext_stream_table_row
._line 234
cmp.b #01H,_program_auto_flag
jne L495
._line 235
._block
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?