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

📄 s6b0108.a30

📁 电表解决方案概要power_meter_r8c2g_source_code
💻 A30
📖 第 1 页 / 共 5 页
字号:
	._inspect	'V', 'e', "Lcd_Byte_1", 'G', 157, 1, 0, 0, 00h
	._inspect	'V', 'e', "Lcd_Byte_2", 'G', 158, 1, 0, 0, 00h
	._inspect	'V', 'e', "epprom_4ms_buff", 'G', 166, 1, 0, 0, 00h
	._inspect	'V', 'e', "key_4ms_buff", 'G', 167, 1, 0, 0, 00h
	._inspect	'V', 'e', "Tflash", 'G', 168, 1, 0, 0, 00h
	._inspect	'V', 'e', "Pflash", 'G', 169, 1, 0, 0, 00h
	._inspect	'V', 'e', "scan_buff", 'G', 170, 1, 0, 0, 00h
	._inspect	'V', 'e', "scan_count", 'G', 171, 1, 0, 0, 00h
	._inspect	'V', 'e', "flash_flag", 'G', 173, 1, 0, 0, 00h
	._inspect	'V', 'e', "flash_switch_flag", 'G', 174, 1, 0, 0, 00h
	._inspect	'V', 'e', "Pflash_switch_flag", 'G', 175, 1, 0, 0, 00h
	._inspect	'V', 'e', "run_page3_flag", 'G', 176, 1, 0, 0, 00h
	._inspect	'V', 'e', "confirm_num", 'G', 178, 1, 0, 0, 00h
	._inspect	'V', 'e', "set_num", 'G', 180, 1, 0, 0, 00h
	._inspect	'V', 'e', "set_num_lev_0", 'G', 181, 1, 0, 0, 00h
	._inspect	'V', 'e', "set_num_lev_1", 'G', 182, 1, 0, 0, 00h
	._inspect	'V', 'e', "set_num_lev_2", 'G', 183, 1, 0, 0, 00h
	._inspect	'V', 'e', "set_num_lev_3", 'G', 184, 1, 0, 0, 00h
	._inspect	'V', 'e', "menu_level_buff", 'G', 189, 1, 0, 0, 00h
	._inspect	'V', 'e', "menu_level_3_back_flag", 'G', 191, 1, 0, 0, 00h
	._inspect	'V', 'e', "menu_buff_0", 'G', 193, 1, 0, 0, 00h
	._inspect	'V', 'e', "menu_buff_1", 'G', 194, 1, 0, 0, 00h
	._inspect	'V', 'e', "menu_buff_2", 'G', 195, 1, 0, 0, 00h
	._inspect	'V', 'e', "menu_buff_3", 'G', 196, 1, 0, 0, 00h
	._inspect	'V', 'e', "menu_buff_4", 'G', 197, 1, 0, 0, 00h
	._inspect	'V', 'e', "menu_buff_5", 'G', 198, 1, 0, 0, 00h
	._inspect	'V', 'e', "menu_buff_6", 'G', 199, 1, 0, 0, 00h
	._inspect	'V', 'e', "menu_0_flag", 'G', 204, 1, 0, 0, 00h
	._inspect	'V', 'e', "function_set_flag", 'G', 213, 1, 0, 0, 00h
	._inspect	'V', 'e', "program_set_flag", 'G', 214, 1, 0, 0, 00h
	._inspect	'V', 'e', "water_set_flag", 'G', 215, 1, 0, 0, 00h
	._inspect	'V', 'e', "power_flag", 'G', 216, 1, 0, 0, 00h
	._inspect	'V', 'e', "key_press_flag", 'G', 217, 1, 0, 0, 00h
	._inspect	'V', 'e', "first_water_flag", 'G', 219, 1, 0, 0, 00h
	._inspect	'V', 'e', "first_soak_flag", 'G', 220, 1, 0, 0, 00h
	._inspect	'V', 'e', "first_wash_flag", 'G', 221, 1, 0, 0, 00h
	._inspect	'V', 'e', "first_rinse_flag", 'G', 222, 1, 0, 0, 00h
	._inspect	'V', 'e', "first_spin_flag", 'G', 223, 1, 0, 0, 00h
	._inspect	'V', 'e', "first_save_water_flag", 'G', 224, 1, 0, 0, 00h
	._inspect	'V', 'e', "first_wind_dry_flag", 'G', 225, 1, 0, 0, 00h
	._inspect	'V', 'e', "first_preset_flag", 'G', 226, 1, 0, 0, 00h
	._inspect	'V', 'e', "first_function_flag", 'G', 227, 1, 0, 0, 00h
	._inspect	'V', 'e', "confirm_water_flag", 'G', 229, 1, 0, 0, 00h
	._inspect	'V', 'e', "confirm_soak_flag", 'G', 230, 1, 0, 0, 00h
	._inspect	'V', 'e', "confirm_wash_flag", 'G', 231, 1, 0, 0, 00h
	._inspect	'V', 'e', "confirm_rinse_flag", 'G', 232, 1, 0, 0, 00h
	._inspect	'V', 'e', "confirm_spin_flag", 'G', 233, 1, 0, 0, 00h
	._inspect	'V', 'e', "confirm_save_water_flag", 'G', 234, 1, 0, 0, 00h
	._inspect	'V', 'e', "confirm_wind_dry_flag", 'G', 235, 1, 0, 0, 00h
	._inspect	'V', 'e', "confirm_preset_flag", 'G', 236, 1, 0, 0, 00h
	._inspect	'V', 'e', "confirm_function_flag", 'G', 237, 1, 0, 0, 00h
	._inspect	'V', 'e', "once_set_water_flag", 'G', 239, 1, 0, 0, 00h
	._inspect	'V', 'e', "once_set_soak_flag", 'G', 240, 1, 0, 0, 00h
	._inspect	'V', 'e', "once_set_wash_flag", 'G', 241, 1, 0, 0, 00h
	._inspect	'V', 'e', "once_set_rinse_flag", 'G', 242, 1, 0, 0, 00h
	._inspect	'V', 'e', "once_set_spin_flag", 'G', 243, 1, 0, 0, 00h
	._inspect	'V', 'e', "once_set_save_water_flag", 'G', 244, 1, 0, 0, 00h
	._inspect	'V', 'e', "once_set_wind_dry_flag", 'G', 245, 1, 0, 0, 00h
	._inspect	'V', 'e', "once_set_preset_flag", 'G', 246, 1, 0, 0, 00h
	._inspect	'V', 'e', "once_set_function_flag", 'G', 247, 1, 0, 0, 00h
	._inspect	'V', 'e', "num_overflow_flag", 'G', 249, 1, 0, 0, 00h
	._inspect	'V', 'e', "key_debunce_0", 'G', 251, 1, 0, 0, 00h
	._inspect	'V', 'e', "key_debunce_1", 'G', 252, 1, 0, 0, 00h
	._inspect	'V', 'e', "key_buff_0", 'G', 257, 1, 0, 0, 00h
	._inspect	'V', 'e', "key_buff_1", 'G', 258, 1, 0, 0, 00h
	._inspect	'V', 'e', "key_buff_2", 'G', 260, 2, 0, 0, 00h
	._inspect	'V', 'e', "key_buff_3", 'G', 261, 1, 0, 0, 00h
	._inspect	'V', 'e', "key_buff_4", 'G', 262, 1, 0, 0, 00h
	._inspect	'V', 'e', "save_key_1", 'G', 265, 2, 0, 0, 00h
	._inspect	'V', 'e', "save_key_2", 'G', 266, 1, 0, 0, 00h
	._inspect	'V', 'e', "left_time_buff", 'G', 271, 1, 0, 0, 00h
	._inspect	'V', 'e', "save_program_buff", 'G', 277, 1, 0, 0, 00h
	._inspect	'V', 'e', "rinse_three_time_flag", 'G', 278, 1, 0, 0, 00h
	._inspect	'V', 'e', "rinse_one_time_flag", 'G', 279, 1, 0, 0, 00h
	._inspect	'V', 'e', "program_buff_0", 'G', 281, 1, 0, 0, 00h
	._inspect	'V', 'e', "water_level_buff_0", 'G', 282, 1, 0, 0, 00h
	._inspect	'V', 'e', "soak_time_buff_0", 'G', 283, 1, 0, 0, 00h
	._inspect	'V', 'e', "wash_time_buff_0", 'G', 284, 1, 0, 0, 00h
	._inspect	'V', 'e', "rinse_time_buff_0", 'G', 285, 1, 0, 0, 00h
	._inspect	'V', 'e', "spin_time_buff_0", 'G', 286, 1, 0, 0, 00h
	._inspect	'V', 'e', "save_water_num_buff_0", 'G', 287, 1, 0, 0, 00h
	._inspect	'V', 'e', "winddry_time_buff_0", 'G', 288, 1, 0, 0, 00h
	._inspect	'V', 'e', "preset_time_buff_0", 'G', 289, 1, 0, 0, 00h
	._inspect	'V', 'e', "function_set_buff_0", 'G', 290, 1, 0, 0, 00h
	._inspect	'V', 'e', "soak_time_buff", 'G', 294, 1, 0, 0, 00h
	._inspect	'V', 'e', "wash_time_buff", 'G', 295, 1, 0, 0, 00h
	._inspect	'V', 'e', "rinse_time_buff", 'G', 296, 1, 0, 0, 00h
	._inspect	'V', 'e', "spin_time_buff", 'G', 297, 1, 0, 0, 00h
	._inspect	'V', 'e', "save_water_num_buff", 'G', 298, 1, 0, 0, 00h
	._inspect	'V', 'e', "winddry_time_buff", 'G', 299, 1, 0, 0, 00h
	._inspect	'V', 'e', "preset_time_buff", 'G', 300, 1, 0, 0, 00h
	._inspect	'V', 'e', "function_set_buff", 'G', 301, 1, 0, 0, 00h
	._inspect	'V', 'e', "program_start_flag", 'G', 304, 1, 0, 0, 00h
	._inspect	'V', 'e', "program_pause_flag", 'G', 305, 1, 0, 0, 00h
	._inspect	'V', 'e', "preset_set_flag", 'G', 307, 1, 0, 0, 00h

	._inspect	'M', "D:/Projects/Haier/General Washer/workspace/General_Washer/General_Washer/src/s6b0108.c", "D:/Projects/Haier/General Washer/workspace/General_Washer/General_Washer/src/s6b0108"
	._inspect	'F', 'p', "Delay", "$Delay", 'G', 7, 0, 00h, 0
	._inspect	'F', 'p', "Long_Delay", "$Long_Delay", 'G', 8, 0, 00h, 0
	._inspect	'F', 'p', "Write_0108_Reg", "$Write_0108_Reg", 'G', 9, 0, 00h, 0
	._inspect	'F', 'p', "Write_0108_Data", "$Write_0108_Data", 'G', 10, 0, 00h, 0
	._inspect	'F', 'p', "Set_XY", "$Set_XY", 'G', 11, 0, 00h, 0
	._inspect	'F', 'p', "Init_0108", "_Init_0108", 'G', 12, 0, 00h, 0
	._inspect	'F', 'p', "Clr_Screen_0", "_Clr_Screen_0", 'G', 13, 0, 00h, 0
	._inspect	'F', 'p', "Clr_Screen_1", "_Clr_Screen_1", 'G', 14, 0, 00h, 0
	._inspect	'F', 'p', "Clr_Screen_2", "_Clr_Screen_2", 'G', 15, 0, 00h, 0
	._inspect	'F', 'p', "Set_Screen3", "_Set_Screen3", 'G', 16, 0, 00h, 0
	._inspect	'F', 'p', "Set_Screen", "$Set_Screen", 'G', 18, 0, 00h, 0
	._inspect	'F', 'p', "Comp_Set_Screen", "$Comp_Set_Screen", 'G', 19, 0, 00h, 0
	._inspect	'F', 'p', "Set_Caracter", "$Set_Caracter", 'G', 21, 0, 00h, 0
	._inspect	'F', 'p', "Set_Char", "$Set_Char", 'G', 22, 0, 00h, 0
	._inspect	'F', 'p', "FSH_Set_Two_Page", "$FSH_Set_Two_Page", 'G', 23, 0, 00h, 0
	._inspect	'F', 'p', "Read_0108_Data", "_Read_0108_Data", 'G', 25, 0, 00h, 0
	._inspect	'F', 'p', "Data_Convert", "$Data_Convert", 'G', 26, 0, 00h, 0

;## #	FUNCTION Delay
;## #	FRAME	AUTO	(       t)	size  2,	offset -2
;## #  REGISTER ARG    (       t)   size   2,   REGISTER R1
;## #	ARG Size(0)	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/s6b0108.c'
	._type	256,'v'
	._type	257,'x',256,1
	._type	257,'m','t',0,16
	._func	'Delay','G',2,257,$Delay,0
	._inspect	'F', 's', "Delay", "$Delay", 'G', 7
	.align
	._block
	._line	59
	.glb	$Delay
$Delay:
	enter	#02H
	._block
	._var	't','R',16,6
	mov.w	R1,-2[FB]	;  t  t 
	._eblock
	._block
	._var	't','A',16,-2
	._line	60
L1:
	add.w	#-1,-2[FB]	;  t 
	jne	L1
	._eblock
	._line	61
	exitd	
E1:
	._eblock
M1:
	._efunc	M1
	._inspect	'F', 'd', "Delay", "$Delay", 'G', 59, 0, 00h, 0
	._inspect	'F', 't', "Delay", 'G', 257
	._inspect	'F', 'e', "Delay", "$Delay", 'G', 0, 0


;## #	FUNCTION Long_Delay
;## #	FRAME	AUTO	(       n)	size  2,	offset -4
;## #	FRAME	AUTO	(       t)	size  2,	offset -2
;## #  REGISTER ARG    (       t)   size   2,   REGISTER R1
;## #	ARG Size(0)	Auto Size(4)	Context Size(5)

	._type	258,'v'
	._type	259,'x',258,1
	._type	259,'m','t',0,16
	._func	'Long_Delay','G',4,259,$Long_Delay,0
	._inspect	'F', 's', "Long_Delay", "$Long_Delay", 'G', 9
	.align
	._line	68
	.glb	$Long_Delay
$Long_Delay:
	enter	#04H
	mov.w	R1,-2[FB]	;  t  t 
	._block
	._var	't','A',16,-2
	._var	'n','A',16,-4
	._line	69
	mov.w	#00ffH,-4[FB]	;  n 
	._line	71
L5:
	add.w	#-1,-2[FB]	;  t 
	jeq	L7
	._line	72
	._block
	._line	73
L9:
	add.w	#-1,-4[FB]	;  n 
	jne	L9
	._line	74
	mov.w	#00ffH,-4[FB]	;  n 
	._eblock
	._line	75
	jmp	L5
L7:
	._eblock
	._line	76
	exitd	
E2:
M2:
	._efunc	M2
	._inspect	'F', 'd', "Long_Delay", "$Long_Delay", 'G', 68, 0, 00h, 0
	._inspect	'F', 't', "Long_Delay", 'G', 259
	._inspect	'F', 'e', "Long_Delay", "$Long_Delay", 'G', 0, 0


;## #	FUNCTION Data_Convert
;## #	FRAME	AUTO	(lcd_data)	size  1,	offset -1
;## #  REGISTER ARG    (lcd_data)   size   1,   REGISTER R1L
;## #	ARG Size(0)	Auto Size(1)	Context Size(5)

	._type	260,'x',3,1
	._type	260,'m','lcd_data',0,3
	._func	'Data_Convert','G',1,260,$Data_Convert,0
	._inspect	'F', 's', "Data_Convert", "$Data_Convert", 'G', 6
	.align
	._line	83
	.glb	$Data_Convert
$Data_Convert:
	enter	#01H
	mov.b	R1L,-1[FB]	;  lcd_data  lcd_data 
	._block
	._var	'lcd_data','A',3,-1
	._line	84
	mov.b	-1[FB],_Lcd_Byte_0	;  lcd_data 
	._line	85
	mov.b	-1[FB],_Lcd_Byte_1	;  lcd_data 
	._line	87
	mov.b	_Lcd_Byte_0,A0
	and.w	#000fH,A0
	mov.b	A0,_Lcd_Byte_0
	._line	88
	mov.b	_Lcd_Byte_1,A0
	and.w	#00f0H,A0
	mov.b	A0,_Lcd_Byte_1
	._line	90
	mov.b	#07H,A0
	tst.b	#01H,_Lcd_Byte_0
	bmnz	_Lcd_Byte_0[A0]
	._line	91
	mov.b	#06H,A0
	tst.b	#02H,_Lcd_Byte_0
	bmnz	_Lcd_Byte_0[A0]
	._line	92
	mov.b	#05H,A0
	tst.b	#04H,_Lcd_Byte_0
	bmnz	_Lcd_Byte_0[A0]
	._line	93
	mov.b	#04H,A0
	tst.b	#08H,_Lcd_Byte_0
	bmnz	_Lcd_Byte_0[A0]
	._line	95
	mov.b	_Lcd_Byte_0,A0
	and.w	#00f0H,A0
	mov.b	A0,_Lcd_Byte_0
	._line	97
	shl.b	#-4,_Lcd_Byte_0
	._line	98
	mov.b	_Lcd_Byte_0,R0L
	or.b	_Lcd_Byte_1,R0L
	mov.b	R0L,_Lcd_Byte_2
	._line	100
	mov.b	_Lcd_Byte_2,R0L
	exitd	
E3:
	._eblock
M3:
	._efunc	M3
	._inspect	'F', 'd', "Data_Convert", "$Data_Convert", 'G', 83, 0, 00h, 0
	._inspect	'F', 't', "Data_Convert", 'G', 260
	._inspect	'V', 'r', "Lcd_Byte_0", 'G', 84, 1, 0, 0, 00h
	._inspect	'V', 'r', "Lcd_Byte_1", 'G', 85, 1, 0, 0, 00h
	._inspect	'V', 'r', "Lcd_Byte_0", 'G', 87, 1, 0, 0, 00h
	._inspect	'V', 'r', "Lcd_Byte_0", 'G', 87, 1, 0, 0, 00h
	._inspect	'V', 'r', "Lcd_Byte_1", 'G', 88, 1, 0, 0, 00h
	._inspect	'V', 'r', "Lcd_Byte_1", 'G', 88, 1, 0, 0, 00h
	._inspect	'V', 'r', "Lcd_Byte_0", 'G', 90, 1, 0, 0, 080h
	._inspect	'V', 'r', "Lcd_Byte_0", 'G', 90, 1, 0, 0, 01h
	._inspect	'V', 'r', "Lcd_Byte_0", 'G', 91, 1, 0, 0, 040h
	._inspect	'V', 'r', "Lcd_Byte_0", 'G', 91, 1, 0, 0, 02h
	._inspect	'V', 'r', "Lcd_Byte_0", 'G', 92, 1, 0, 0, 020h
	._inspect	'V', 'r', "Lcd_Byte_0", 'G', 92, 1, 0, 0, 04h
	._inspect	'V', 'r', "Lcd_Byte_0", 'G', 93, 1, 0, 0, 010h
	._inspect	'V', 'r', "Lcd_Byte_0", 'G', 93, 1, 0, 0, 08h
	._inspect	'V', 'r', "Lcd_Byte_0", 'G', 95, 1, 0, 0, 00h
	._inspect	'V', 'r', "Lcd_Byte_0", 'G', 95, 1, 0, 0, 00h
	._inspect	'V', 'r', "Lcd_Byte_0", 'G', 97, 1, 0, 0, 00h
	._inspect	'V', 'r', "Lcd_Byte_0", 'G', 97, 1, 0, 0, 00h
	._inspect	'V', 'r', "Lcd_Byte_0", 'G', 98, 1, 0, 0, 00h
	._inspect	'V', 'r', "Lcd_Byte_1", 'G', 98, 1, 0, 0, 00h
	._inspect	'V', 'r', "Lcd_Byte_2", 'G', 98, 1, 0, 0, 00h
	._inspect	'V', 'r', "Lcd_Byte_2", 'G', 100, 1, 0, 0, 00h
	._inspect	'F', 'e', "Data_Convert", "$Data_Convert", 'G', 0, 0


;## #	FUNCTION Write_0108_Reg
;## #	FRAME	AUTO	( bus_low)	size  1,	offset -2
;## #	FRAME	AUTO	(bus_high)	size  1,	offset -1
;## #	FRAME	AUTO	(Reg_Code)	size  1,	offset -1
;## #  REGISTER ARG    (Reg_Code)   size   1,   REGISTER R1L
;## #	ARG Size(0)	Auto Size(2)	Context Size(5)

	._type	261,'v'
	._type	262,'x',261,1
	._type	262,'m','Reg_Code',0,3
	._func	'Write_0108_Reg','G',2,262,$Write_0108_Reg,0
	._inspect	'F', 's', "Write_0108_Reg", "$Write_0108_Reg", 'G', 7
	.align
	._line	109

⌨️ 快捷键说明

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