⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 process.a30

📁 电表解决方案概要power_meter_r8c2g_source_code
💻 A30
📖 第 1 页 / 共 5 页
字号:
	._inspect	'V', 'e', "operation_flag_3", 'G', 278, 2, 0, 0, 00h
	._inspect	'V', 'e', "operation_flag_4", 'G', 279, 2, 0, 0, 00h
	._inspect	'V', 'e', "operation_flag_5", 'G', 280, 2, 0, 0, 00h
	._inspect	'V', 'e', "save_water_flag_1", 'G', 282, 2, 0, 0, 00h
	._inspect	'V', 'e', "test1_flag_1", 'G', 285, 2, 0, 0, 00h
	._inspect	'V', 'e', "test1_key_flag", 'G', 287, 2, 0, 0, 00h
	._inspect	'V', 'e', "test2_key_flag", 'G', 288, 2, 0, 0, 00h
	._inspect	'V', 'e', "test3_key_flag", 'G', 289, 2, 0, 0, 00h
	._inspect	'V', 'e', "test4_key_flag", 'G', 290, 2, 0, 0, 00h
	._inspect	'V', 'e', "test5_key_flag", 'G', 291, 2, 0, 0, 00h
	._inspect	'V', 'e', "buzz_flag_1", 'G', 293, 2, 0, 0, 00h
	._inspect	'V', 'e', "epprom_4ms_buff", 'G', 297, 1, 0, 0, 00h
	._inspect	'V', 'e', "key_4ms_buff", 'G', 298, 1, 0, 0, 00h
	._inspect	'V', 'e', "Tflash", 'G', 299, 1, 0, 0, 00h
	._inspect	'V', 'e', "Pflash", 'G', 300, 1, 0, 0, 00h
	._inspect	'V', 'e', "scan_buff", 'G', 301, 1, 0, 0, 00h
	._inspect	'V', 'e', "scan_count", 'G', 302, 1, 0, 0, 00h
	._inspect	'V', 'e', "flash_flag", 'G', 304, 1, 0, 0, 00h
	._inspect	'V', 'e', "flash_switch_flag", 'G', 305, 1, 0, 0, 00h
	._inspect	'V', 'e', "Pflash_switch_flag", 'G', 306, 1, 0, 0, 00h
	._inspect	'V', 'e', "confirm_num", 'G', 308, 1, 0, 0, 00h
	._inspect	'V', 'e', "set_num", 'G', 310, 1, 0, 0, 00h
	._inspect	'V', 'e', "set_num_lev_0", 'G', 311, 1, 0, 0, 00h
	._inspect	'V', 'e', "set_num_lev_1", 'G', 312, 1, 0, 0, 00h
	._inspect	'V', 'e', "set_num_lev_2", 'G', 313, 1, 0, 0, 00h
	._inspect	'V', 'e', "set_num_lev_3", 'G', 314, 1, 0, 0, 00h
	._inspect	'V', 'e', "menu_level_buff", 'G', 316, 1, 0, 0, 00h
	._inspect	'V', 'e', "menu_buff_0", 'G', 318, 1, 0, 0, 00h
	._inspect	'V', 'e', "menu_buff_1", 'G', 319, 1, 0, 0, 00h
	._inspect	'V', 'e', "menu_buff_2", 'G', 320, 1, 0, 0, 00h
	._inspect	'V', 'e', "menu_buff_3", 'G', 321, 1, 0, 0, 00h
	._inspect	'V', 'e', "menu_buff_4", 'G', 322, 1, 0, 0, 00h
	._inspect	'V', 'e', "menu_buff_5", 'G', 323, 1, 0, 0, 00h
	._inspect	'V', 'e', "menu_buff_6", 'G', 324, 1, 0, 0, 00h
	._inspect	'V', 'e', "key_debunce_0", 'G', 326, 1, 0, 0, 00h
	._inspect	'V', 'e', "key_debunce_1", 'G', 327, 1, 0, 0, 00h
	._inspect	'V', 'e', "key_buff_0", 'G', 332, 1, 0, 0, 00h
	._inspect	'V', 'e', "key_buff_1", 'G', 333, 1, 0, 0, 00h
	._inspect	'V', 'e', "key_buff_2", 'G', 335, 2, 0, 0, 00h
	._inspect	'V', 'e', "key_buff_3", 'G', 336, 1, 0, 0, 00h
	._inspect	'V', 'e', "key_buff_4", 'G', 337, 1, 0, 0, 00h
	._inspect	'V', 'e', "save_key_1", 'G', 340, 2, 0, 0, 00h
	._inspect	'V', 'e', "save_key_2", 'G', 341, 1, 0, 0, 00h
	._inspect	'V', 'e', "left_time_buff", 'G', 343, 1, 0, 0, 00h
	._inspect	'V', 'e', "save_program_buff", 'G', 345, 1, 0, 0, 00h
	._inspect	'V', 'e', "program_buff_0", 'G', 347, 1, 0, 0, 00h
	._inspect	'V', 'e', "water_level_buff_0", 'G', 348, 1, 0, 0, 00h
	._inspect	'V', 'e', "soak_time_buff_0", 'G', 349, 1, 0, 0, 00h
	._inspect	'V', 'e', "wash_time_buff_0", 'G', 350, 1, 0, 0, 00h
	._inspect	'V', 'e', "rinse_time_buff_0", 'G', 351, 1, 0, 0, 00h
	._inspect	'V', 'e', "spin_time_buff_0", 'G', 352, 1, 0, 0, 00h
	._inspect	'V', 'e', "save_water_num_buff_0", 'G', 353, 1, 0, 0, 00h
	._inspect	'V', 'e', "winddry_time_buff_0", 'G', 354, 1, 0, 0, 00h
	._inspect	'V', 'e', "preset_time_buff_0", 'G', 355, 1, 0, 0, 00h
	._inspect	'V', 'e', "function_set_buff_0", 'G', 356, 1, 0, 0, 00h
	._inspect	'V', 'e', "soak_time_buff", 'G', 358, 1, 0, 0, 00h
	._inspect	'V', 'e', "wash_time_buff", 'G', 359, 1, 0, 0, 00h
	._inspect	'V', 'e', "rinse_time_buff", 'G', 360, 1, 0, 0, 00h
	._inspect	'V', 'e', "spin_time_buff", 'G', 361, 1, 0, 0, 00h
	._inspect	'V', 'e', "save_water_num_buff", 'G', 362, 1, 0, 0, 00h
	._inspect	'V', 'e', "winddry_time_buff", 'G', 363, 1, 0, 0, 00h
	._inspect	'V', 'e', "preset_time_buff", 'G', 364, 1, 0, 0, 00h
	._inspect	'V', 'e', "function_set_buff", 'G', 365, 1, 0, 0, 00h

	._inspect	'M', "D:/Projects/Haier/General Washer/workspace/General_Washer/General_Washer/src/process.c", "D:/Projects/Haier/General Washer/workspace/General_Washer/General_Washer/src/process"
	._inspect	'V', 'd', "rinse_led", "_rinse_led", 'G', 10, 1, 0, 0, 00h
	._inspect	'V', 'd', "display_number", "_display_number", 'G', 11, 1, 0, 0, 00h
	._inspect	'V', 'd', "left_time", "_left_time", 'G', 13, 1, 0, 0, 00h
	._inspect	'F', 'p', "soak_1", "_soak_1", 'G', 15, 0, 00h, 0
	._inspect	'F', 'p', "soak_2", "_soak_2", 'G', 16, 0, 00h, 0
	._inspect	'F', 'p', "soak_3", "_soak_3", 'G', 17, 0, 00h, 0

;## #	FUNCTION inlet
;## #	FRAME	AUTO	(       i)	size  1,	offset -2
;## #	FRAME	AUTO	(       j)	size  1,	offset -2
;## #	FRAME	AUTO	(inlet_time)	size  1,	offset -1
;## #  FRAME   ARG (   cycle)  size   1,    offset 5
;## #  FRAME   ARG (   level)  size   1,    offset 6
;## #  REGISTER ARG    (inlet_time)   size   1,   REGISTER R1L
;## #	ARG Size(2)	Auto Size(2)	Context Size(5)


	.SECTION	program,CODE,align
	._inspect	'U', 2, "program", "program", 0
	._file	'D:/Projects/Haier/General Washer/workspace/General_Washer/General_Washer/src/process.c'
	._type	256,'v'
	._type	257,'x',256,3
	._type	257,'m','inlet_time',0,3
	._type	257,'m','cycle',0,3
	._type	257,'m','level',0,3
	._func	'inlet','G',2,257,$inlet,0
	._inspect	'F', 's', "inlet", "$inlet", 'G', 7
	.align
	._block
	._line	33
	.glb	$inlet
$inlet:
	enter	#02H
	._block
	._var	'inlet_time','R',3,3
	mov.b	R1L,-1[FB]	;  inlet_time  inlet_time 
	._eblock
	._block
	._var	'inlet_time','A',3,-1
	._var	'cycle','A',3,5
	._var	'level','A',3,6
	._var	'cycle_buff','S',3,___S0_cycle_buff
	._inspect	'V', 'd', "cycle_buff", "___S0_cycle_buff", 'L', 34, 1, 0, 0, 00h
	._inspect	'V', 't', "cycle_buff", 'L', 3
	._var	'i','A',3,-2
	._var	'j','A',19,-2
	._line	38
	cmp.w	#0000H,_process_left_time
	jne	L1
	._line	39
	mov.b	_inlet_2m_buff,R0L
	exts.b	R0L
	mov.w	R0,_process_left_time
L1:
	._line	41
	mov.b	6[FB],R0L	;  level 
	jeq	L253
	mov.b	-1[FB],R0L	;  inlet_time 
	jeq	L543
	._line	42
	._block
	._line	43
	tst.b	#01H,_operation_flag_5
	jnz	L11
	._line	44
	._block
	._line	47
	mov.b	_output_buff,A0
	or.b	#04H,A0
	mov.b	A0,_output_buff
	._eblock
L11:
	._line	50
	mov.b	-1[FB],-2[FB]	;  inlet_time  j 
	._line	52
	cmp.b	#78H,-2[FB]	;  j 
	jle	L51
	._line	55
	._block
	._line	58
	mov.b	_output_buff,A0
	or.b	#08H,A0
	mov.b	A0,_output_buff
	._eblock
	._line	53
	._block
	._line	60
	cmp.b	#00H,_inlet_10s_buff
	jgt	L545
	._line	61
	._block
	._line	64
	mov.b	_output_buff,A0
	bclr	03H,A0
	mov.b	A0,_output_buff
	._line	66
	mov.b	#0aH,_inlet_10s_buff
	._line	68
	or.b	#02H,_operation_flag_5
	._line	69
	tst.b	#01H,_operation_flag_5
	jz	L547
	._line	70
	._block
	._line	71
	mov.w	#0000H,_process_left_time
	._line	72
	inc.b	_operation_counter
	._line	73
	inc.b	_pass_time_counter
	._line	74
	exitd	
	._eblock
	._eblock
	._eblock
L547:
L545:
L51:
	._line	79
	cmp.b	#00H,_inlet_10s_buff
	jle	L61
	._line	80
	dec.b	_inlet_10s_buff
L61:
	._line	81
	cmp.w	#0000H,_inlet_20m_buff
	jle	L71
	._line	82
	add.w	#-1,_inlet_20m_buff
L71:
	._line	83
	cmp.b	#00H,_inlet_2m_buff
	jle	L81
	._line	84
	._block
	._line	85
	dec.b	_inlet_2m_buff
	._line	86
	add.w	#-1,_process_left_time
	._eblock
L81:
	._line	89
	cmp.w	#0000H,_inlet_20m_buff
	jne	L91
	._line	90
	._block
	._line	93
	mov.b	_output_buff,A0
	bclr	02H,A0
	mov.b	A0,_output_buff
	._line	95
	mov.w	#04b0H,_inlet_20m_buff
	._line	96
	mov.b	#78H,_inlet_2m_buff
	._line	97
	mov.b	#0aH,_inlet_10s_buff
	._line	98
	mov.b	_inlet_2m_buff,R0L
	exts.b	R0L
	mov.w	R0,_process_left_time
	._line	100
	mov.b	#06H,_err_buff
	._line	101
	exitd	
	._eblock
L91:
	._line	104
	cmp.b	#04H,_water_level_buff
	jltu	L177
	._line	105
	._block
	._line	106
	cmp.b	#03H,_water_buff
	jltu	L549
	._line	107
	._block
	._line	112
	mov.b	#00H,_inlet_2m_buff
	._line	114
	cmp.b	_water_level_buff,_water_buff
	jne	L551
	._line	115
	._block
	._line	116
	or.b	#01H,_operation_flag_5
	._line	120
	mov.b	_output_buff,A0
	bclr	02H,A0
	mov.b	A0,_output_buff
	._line	122
	cmp.b	#78H,-2[FB]	;  j 
	jeq	L473
	cmp.b	#28H,-2[FB]	;  j 
	jne	L101
L473:
	._line	123
	._block
	._line	124
	mov.w	#04b0H,_inlet_20m_buff
	._line	125
	mov.b	#78H,_inlet_2m_buff
	._line	127
	mov.w	#0000H,_process_left_time
	._line	128
	inc.b	_operation_counter
	._line	129
	inc.b	_pass_time_counter
	._line	130
	exitd	
	._eblock
	._line	132
L101:
	cmp.b	#78H,-2[FB]	;  j 
	jle	L553
	tst.b	#02H,_operation_flag_5
	jz	L555
	._line	133
	._block
	._line	134
	mov.w	#04b0H,_inlet_20m_buff
	._line	135
	mov.b	#78H,_inlet_2m_buff
	._line	137
	mov.w	#0000H,_process_left_time
	._line	138
	inc.b	_operation_counter
	._line	139
	inc.b	_pass_time_counter
	._line	140
	exitd	
	._eblock
	._eblock
	._eblock
	._eblock
L555:
L553:
L551:
L549:
L177:
	._line	145
	cmp.b	_water_level_buff,_water_buff
	jne	L243
	._line	146
	._block
	._line	151
	mov.b	#00H,_inlet_2m_buff
	._line	155
	mov.b	_output_buff,A0
	bclr	02H,A0
	mov.b	A0,_output_buff
	._line	157
	or.b	#01H,_operation_flag_5
	._line	159
	cmp.b	#78H,-2[FB]	;  j 
	jeq	L495
	cmp.b	#28H,-2[FB]	;  j 
	jne	L187
L495:
	._line	160
	._block
	._line	161
	mov.w	#04b0H,_inlet_20m_buff
	._line	162
	mov.b	#78H,_inlet_2m_buff
	._line	164

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -