Index: format/rom.format
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/Only_24G_344/format/rom.format	(revision 4890)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/Only_24G_344/format/rom.format	(working copy)
@@ -9829,6 +9829,7 @@
 
 8 mem_sensor_s201x_init
 2 mem_mouse_temp_data
+1 mem_mouse_motion_staus
 )
 
 
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/Only_24G_344/output/eeprom.dat	(revision 4890)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/Only_24G_344/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-06
+0e
 1a
 c2
 84
@@ -79,7 +79,7 @@
 c0
 67
 86
-43
+45
 c0
 68
 03
@@ -87,7 +87,7 @@
 c0
 68
 85
-c4
+c6
 c0
 69
 83
@@ -95,7 +95,7 @@
 c0
 6a
 05
-ac
+ae
 c0
 6b
 02
@@ -115,7 +115,7 @@
 c0
 6f
 06
-0d
+0f
 c0
 6f
 80
@@ -211,7 +211,7 @@
 c0
 76
 86
-53
+55
 20
 20
 13
@@ -1411,7 +1411,7 @@
 20
 40
 05
-bb
+bd
 20
 20
 3b
@@ -1783,7 +1783,7 @@
 20
 40
 05
-fa
+fc
 df
 e0
 00
@@ -1791,7 +1791,7 @@
 20
 40
 05
-fa
+fc
 68
 48
 c9
@@ -2199,7 +2199,7 @@
 20
 40
 06
-78
+7a
 20
 40
 27
@@ -2255,7 +2255,7 @@
 20
 20
 06
-31
+33
 70
 4b
 94
@@ -2395,11 +2395,11 @@
 20
 40
 05
-b6
+b8
 20
 40
 05
-bb
+bd
 20
 20
 3e
@@ -2423,7 +2423,7 @@
 20
 40
 05
-f7
+f9
 d8
 40
 00
@@ -2631,7 +2631,7 @@
 20
 40
 05
-f7
+f9
 20
 20
 3e
@@ -3147,7 +3147,7 @@
 20
 40
 05
-bb
+bd
 20
 20
 02
@@ -3715,7 +3715,7 @@
 20
 20
 05
-b1
+b3
 58
 00
 00
@@ -3743,7 +3743,7 @@
 20
 20
 05
-b1
+b3
 6f
 e0
 cc
@@ -4771,7 +4771,7 @@
 20
 40
 05
-c4
+c6
 1f
 e1
 7e
@@ -5355,7 +5355,7 @@
 20
 40
 05
-64
+63
 20
 40
 05
@@ -5383,7 +5383,7 @@
 20
 40
 05
-c2
+c4
 6f
 e0
 c8
@@ -5403,7 +5403,7 @@
 20
 40
 05
-96
+97
 20
 20
 45
@@ -5431,7 +5431,7 @@
 20
 40
 05
-52
+51
 67
 e1
 48
@@ -5443,23 +5443,19 @@
 20
 40
 05
-52
-67
-e1
-48
-d3
+51
 20
-60
-00
-00
+20
+05
+aa
 c2
 87
 85
-55
+54
 c3
 07
 85
-59
+58
 20
 60
 00
@@ -5471,7 +5467,7 @@
 20
 40
 05
-59
+58
 1f
 e6
 7e
@@ -5503,7 +5499,7 @@
 24
 41
 05
-61
+60
 6f
 e1
 4d
@@ -5539,11 +5535,11 @@
 c0
 05
 85
-6a
+69
 c0
 06
 05
-74
+73
 20
 20
 42
@@ -5599,7 +5595,7 @@
 c0
 7f
 85
-7a
+79
 68
 48
 c9
@@ -5636,6 +5632,10 @@
 03
 80
 00
+67
+e0
+cd
+db
 20
 40
 05
@@ -5647,11 +5647,11 @@
 20
 40
 05
-9b
+9c
 20
 40
 05
-a2
+a3
 20
 20
 42
@@ -5685,17 +5685,25 @@
 00
 00
 6f
+e0
+cd
+db
+c4
+01
+80
+00
+6f
 e1
 48
 d1
 c2
 87
 85
-93
+94
 c3
 07
 85
-90
+92
 20
 60
 00
@@ -5704,14 +5712,10 @@
 00
 7f
 ff
-67
-e1
-48
-d1
 20
-60
-00
-00
+20
+05
+95
 58
 00
 80
@@ -5773,17 +5777,25 @@
 00
 00
 6f
+e0
+cd
+db
+c4
+02
+00
+00
+6f
 e1
 48
 d3
 c2
 87
 85
-a9
+ac
 c3
 07
 85
-a6
+a9
 20
 60
 00
@@ -5804,14 +5816,10 @@
 00
 80
 00
-67
-e1
-48
-d3
 20
-60
-00
-00
+20
+05
+aa
 20
 40
 3f
@@ -5823,7 +5831,7 @@
 c0
 05
 85
-b3
+b5
 20
 40
 42
@@ -5843,7 +5851,7 @@
 20
 40
 05
-b9
+bb
 da
 60
 4b
@@ -5851,7 +5859,7 @@
 20
 20
 05
-b1
+b3
 6f
 e0
 c9
@@ -5859,7 +5867,7 @@
 c0
 05
 85
-b9
+bb
 20
 20
 42
@@ -5887,7 +5895,7 @@
 c0
 05
 85
-c0
+c2
 20
 20
 42
@@ -5903,7 +5911,7 @@
 20
 40
 05
-c4
+c6
 20
 20
 40
@@ -5923,27 +5931,27 @@
 20
 40
 05
-ce
+d0
 20
 40
 05
-d3
+d5
 20
 40
 05
-d8
+da
 20
 40
 05
-dd
+df
 20
 40
 05
-ea
+ec
 20
 40
 05
-fd
+ff
 20
 20
 41
@@ -5955,7 +5963,7 @@
 20
 40
 05
-f7
+f9
 20
 40
 41
@@ -5975,7 +5983,7 @@
 20
 40
 05
-f7
+f9
 20
 40
 41
@@ -5995,7 +6003,7 @@
 20
 40
 05
-f7
+f9
 20
 40
 41
@@ -6039,7 +6047,7 @@
 c0
 7f
 85
-e6
+e8
 20
 20
 41
@@ -6051,7 +6059,7 @@
 20
 40
 05
-fa
+fc
 68
 48
 c9
@@ -6091,7 +6099,7 @@
 c0
 7f
 85
-f3
+f5
 20
 20
 41
@@ -6103,7 +6111,7 @@
 20
 40
 05
-fa
+fc
 68
 48
 c9
@@ -6175,7 +6183,7 @@
 20
 40
 05
-fa
+fc
 68
 48
 c9
@@ -6203,7 +6211,7 @@
 20
 40
 06
-13
+15
 20
 40
 79
@@ -6211,15 +6219,15 @@
 20
 40
 06
-31
+33
 20
 40
 06
-17
+19
 20
 40
 06
-22
+24
 20
 20
 46
@@ -6247,11 +6255,11 @@
 c2
 94
 86
-1b
+1d
 c2
 9b
 86
-1b
+1d
 20
 60
 00
@@ -6311,7 +6319,7 @@
 20
 20
 86
-2d
+2f
 6f
 e0
 c9
@@ -6367,7 +6375,7 @@
 20
 40
 06
-38
+3a
 20
 20
 40
@@ -6395,7 +6403,7 @@
 c0
 7f
 86
-3f
+41
 20
 20
 40
@@ -6407,7 +6415,7 @@
 20
 40
 05
-fa
+fc
 68
 48
 c9
@@ -6431,7 +6439,7 @@
 c0
 06
 06
-4d
+4f
 6f
 e0
 c9
@@ -6479,7 +6487,7 @@
 20
 20
 06
-4a
+4c
 6f
 e1
 47
@@ -6515,7 +6523,7 @@
 c5
 13
 06
-5d
+5f
 6f
 e0
 c8
@@ -6527,7 +6535,7 @@
 24
 21
 06
-77
+79
 6f
 e0
 c8
@@ -6539,7 +6547,7 @@
 24
 21
 06
-65
+67
 6f
 e0
 c8
@@ -6547,7 +6555,7 @@
 c0
 00
 06
-78
+7a
 20
 60
 00
@@ -6583,7 +6591,7 @@
 c5
 13
 06
-6e
+70
 6f
 e0
 c8
@@ -6615,7 +6623,7 @@
 c0
 01
 06
-7f
+81
 c0
 00
 a7
@@ -6635,7 +6643,7 @@
 c0
 01
 86
-7e
+80
 1f
 e0
 fe
@@ -6651,11 +6659,11 @@
 c0
 01
 06
-7f
+81
 20
 20
 06
-7f
+81
 70
 41
 e8
@@ -6664,8 +6672,8 @@
 60
 00
 00
-92
-d5
+d0
+6c
 aa
 55
 40
@@ -8040,22 +8048,14 @@
 00
 26
 4c
-2b
-53
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+55
+aa
+aa
+55
+e3
+a2
+3c
+7a
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-06
-b4
+07
+ae
Index: output/memmap.format
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/Only_24G_344/output/memmap.format	(revision 4890)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/Only_24G_344/output/memmap.format	(working copy)
@@ -2309,6 +2309,7 @@
 0x4dd0 mem_mouse_select_sensor_angle_type
 0x4dd1 mem_sensor_s201x_init
 0x4dd9 mem_mouse_temp_data
+0x4ddb mem_mouse_motion_staus
 0x48d0 mem_remote_car_hard_soft_switch
 0x48d1 mem_remote_car_queue_each_size
 0x48d2 mem_remote_car_queue_length
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/Only_24G_344/output/program.lis	(revision 4890)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/Only_24G_344/output/program.lis	(working copy)
@@ -18,16 +18,16 @@
 000f c0650286 beq patch19_2 ,p_mouse_lpm_before_common 
 0010 c06600f4 beq patch19_4 ,p_mouse_adc_read_start 
 0011 c0670536 beq patch19_6 ,p_mouse_motion 
-0012 c0678643 beq patch19_7 ,p_mouse_dpi_process 
+0012 c0678645 beq patch19_7 ,p_mouse_dpi_process 
 0013 c0680370 beq patch1a_0 ,p_mouse_seting_dpi 
-0014 c06885c4 beq patch1a_1 ,p_mouse_check_key_gpio 
+0014 c06885c6 beq patch1a_1 ,p_mouse_check_key_gpio 
 0015 c069838d beq patch1a_3 ,p_mouse_init_sunt 
-0016 c06a05ac beq patch1a_4 ,p_mouse_sensor_poweron 
+0016 c06a05ae beq patch1a_4 ,p_mouse_sensor_poweron 
 0017 c06b02af beq patch1a_6 ,p_mouse_priority_bb_event 
 0018 c06c83af beq patch1b_1 ,p_mouse_bb_event_timer 
 0019 c06d04c0 beq patch1b_2 ,p_mouse_start_discovery 
 001a c06d84ca beq patch1b_3 ,p_mouse_stop_discovery 
-001b c06f060d beq patch1b_6 ,p_mouse_idle 
+001b c06f060f beq patch1b_6 ,p_mouse_idle 
 001c c06f808b beq patch1b_7 ,p_mouse_ready_reconnection_by_button 
 001d c0708084 beq patch1c_1 ,p_mouse_led_off 
 001e c0710081 beq patch1c_2 ,p_mouse_led_on 
@@ -53,7 +53,7 @@
 0030 c07501ee beq patch3d_2 ,p_g24_transmit_no_interrupt 
 0031 c075821b beq patch3d_3 ,p_g24_transmit_hop_process 
 0032 c076052b beq patch3d_4 ,p_g24_lpm_wait 
-0033 c0768653 beq patch3d_5 ,p_power_ctrl_start 
+0033 c0768655 beq patch3d_5 ,p_power_ctrl_start 
 0034 2020137c branch loop 
 
 p_soft_reset:
@@ -457,7 +457,7 @@
 015c 20403d8a call mouse_usb_check_enable 
 015d 20404728 call mouse_drawing_optima_init 
 015e 204001cc call p_mouse_cb_fuction 
-015f 204005bb call p_mouse_sensor_powerdown 
+015f 204005bd call p_mouse_sensor_powerdown 
 0160 20203bc9 branch mouse_init + 8 
 
 p_mouse_customer_key_connect_vin:
@@ -580,9 +580,9 @@
 
 p_mouse_select_sensor_angle_by_ice:
 01bb 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-01bc 204005fa call p_mouse_gpio_config_output_low 
+01bc 204005fc call p_mouse_gpio_config_output_low 
 01bd dfe00013 arg 0x13 ,pdata 
-01be 204005fa call p_mouse_gpio_config_output_low 
+01be 204005fc call p_mouse_gpio_config_output_low 
 01bf 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
 01c0 20403f56 call mouse_gpio_config_input_pu 
 01c1 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
@@ -716,7 +716,7 @@
 0221 684a488d fetcht 4 ,mem_24g_fast_conn_addr 
 0222 98467c00 isub temp ,null 
 0223 2022a2cb branch g24_ch ,zero 
-0224 20400678 call p_power_ctrl_txpower_incrs 
+0224 2040067a call p_power_ctrl_txpower_incrs 
 0225 20402724 call power_ctrl_pac_succ_decrs 
 0226 202022cb branch g24_ch 
 
@@ -736,7 +736,7 @@
 p_mouse_dpi_check_once:
 0230 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
 0231 c4140000 rtnbit0 mouse_enable_select_device_by_dpi_button 
-0232 20200631 branch p_mouse_dpi_check 
+0232 20200633 branch p_mouse_dpi_check 
 
 p_mouse_select_device_by_pb_button_check_once:
 0233 704b9403 jam 0x03 ,mem_mouse_pbkey_press_status 
@@ -787,8 +787,8 @@
 0252 58000006 setarg pan_reg_config 
 0253 20405b0d call twspi_read 
 0254 c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
-0255 204005b6 call p_mouse_sensor_reset 
-0256 204005bb call p_mouse_sensor_powerdown 
+0255 204005b8 call p_mouse_sensor_reset 
+0256 204005bd call p_mouse_sensor_powerdown 
 0257 20203e23 branch mouse_app_enter_hibernate + 3 
 
 p_mouse_setgpio_hibernate:
@@ -796,7 +796,7 @@
 0259 20407fdc call clear_wake 
 025a 20404015 call mouse_before_hibernate_wheel_gpio_set 
 025b 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-025c 204005f7 call p_mouse_gpio_config_output_high 
+025c 204005f9 call p_mouse_gpio_config_output_high 
 025d d8400003 arg 3 ,temp 
 025e 20403f56 call mouse_gpio_config_input_pu 
 025f 20400286 call p_mouse_lpm_before_common 
@@ -866,7 +866,7 @@
 028d 20406050 call gpio_config_input 
 028e 20403f88 call mouse_wheel_check 
 028f 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-0290 204005f7 call p_mouse_gpio_config_output_high 
+0290 204005f9 call p_mouse_gpio_config_output_high 
 0291 20203e44 branch mouse_lpm_before_common + 4 
 
 p_g24_nodata_transmit:
@@ -1037,7 +1037,7 @@
 030e 67e3c8d0 store 7 ,mem_mouse_key 
 030f 67e0c8a7 store 1 ,mem_24g_abort_pac 
 0310 704be101 jam 1 ,mem_sensor_shutdown_flag 
-0311 204005bb call p_mouse_sensor_powerdown 
+0311 204005bd call p_mouse_sensor_powerdown 
 0312 20200297 branch p_g24_long_sleep 
 
 p_g24_pair_dispatch:
@@ -1237,7 +1237,7 @@
 039c 20404232 call mouse_sensor_reset 
 039d 20407d12 call delay_10ms 
 039e da604a39 arg mem_sensor_8650_init ,regc 
-039f 202005b1 branch p_mouse_sensor_end 
+039f 202005b3 branch p_mouse_sensor_end 
 
 p_mouse_3205_3t_init_param:
 03a0 58000049 setarg 0x49 
@@ -1248,7 +1248,7 @@
 p_mouse_s201x_init_param:
 03a4 7049270c jam s201x ,mem_config_sensor_type 
 03a5 da604dd1 arg mem_sensor_s201x_init ,regc 
-03a6 202005b1 branch p_mouse_sensor_end 
+03a6 202005b3 branch p_mouse_sensor_end 
 
 p_mouse_dpi_led_blink_delay:
 03a7 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
@@ -1645,7 +1645,7 @@
 
 p_mouse_commbination_key_start:
 04a6 6048cb9d storet 1 ,mem_mouse_commbination_key 
-04a7 204005c4 call p_mouse_check_key_gpio 
+04a7 204005c6 call p_mouse_check_key_gpio 
 04a8 1fe17e07 and pdata ,0x07 ,pdata 
 04a9 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
 04aa 98467c00 isub temp ,null 
@@ -1841,19 +1841,19 @@
 0536 78547c00 disable user 
 0537 58000000 setarg 0 
 0538 67e348d1 store 6 ,mem_mouse_x 
-0539 20400564 call p_mouse_check_sensor_data 
+0539 20400563 call p_mouse_check_sensor_data 
 053a 20400547 call p_mouse_zoom_data 
 053b 58000089 setarg 0x0089 
 053c 20405b0c call twspi_write 
 053d 20400372 call p_mouse_seting_sensor_type 
 053e 20403f7e call mouse_zwheel 
 053f 20403f83 call mouse_t_zwheel 
-0540 204005c2 call p_mouse_key 
+0540 204005c4 call p_mouse_key 
 0541 6fe0c8d0 fetch 1 ,mem_mouse_key 
 0542 1fe17e1f and_into 0x1f ,pdata 
 0543 67e0c8d0 store 1 ,mem_mouse_key 
 0544 24344728 nbranch mouse_drawing_optima_init ,user 
-0545 20400596 call p_mouse_drawing_optima 
+0545 20400597 call p_mouse_drawing_optima 
 0546 20204544 branch mouse_no_data_timer_init 
 
 p_mouse_zoom_data:
@@ -1862,80 +1862,80 @@
 0549 6fe0c992 fetch 1 ,mem_mouse_dpi 
 054a c1820000 rtnne mouse_dpi_level5 
 054b 6fe148d1 fetch 2 ,mem_mouse_x 
-054c 20400552 call p_mouse_6400_zoom 
+054c 20400551 call p_mouse_6400_zoom 
 054d 67e148d1 store 2 ,mem_mouse_x 
 054e 6fe148d3 fetch 2 ,mem_mouse_y 
-054f 20400552 call p_mouse_6400_zoom 
-0550 67e148d3 store 2 ,mem_mouse_y 
-0551 20600000 rtn 
+054f 20400551 call p_mouse_6400_zoom 
+0550 202005aa branch p_mouse_data_y_store 
 
 p_mouse_6400_zoom:
-0552 c2878555 bbit1 15 ,p_mouse_xy_inverse 
-0553 c3078559 bbit0 15 ,p_mouse_xy_zoom 
-0554 20600000 rtn 
+0551 c2878554 bbit1 15 ,p_mouse_xy_inverse 
+0552 c3078558 bbit0 15 ,p_mouse_xy_zoom 
+0553 20600000 rtn 
 
 p_mouse_xy_inverse:
-0555 1fe67e00 sub pdata ,0 ,pdata 
-0556 20400559 call p_mouse_xy_zoom 
-0557 1fe67e00 sub pdata ,0 ,pdata 
-0558 20600000 rtn 
+0554 1fe67e00 sub pdata ,0 ,pdata 
+0555 20400558 call p_mouse_xy_zoom 
+0556 1fe67e00 sub pdata ,0 ,pdata 
+0557 20600000 rtn 
 
 p_mouse_xy_zoom:
-0559 9fe0fe00 iadd pdata ,pdata 
-055a 793ffe0f set0 15 ,pdata 
-055b 67e14dd9 store 2 ,mem_mouse_temp_data 
-055c 6fe0cdda fetch 1 ,mem_mouse_temp_data + 1 
-055d 1fe67c7f sub pdata ,0x7f ,null 
-055e 24410561 ncall p_mouse_xy_forward_overflow ,positive 
-055f 6fe14dd9 fetch 2 ,mem_mouse_temp_data 
-0560 20600000 rtn 
+0558 9fe0fe00 iadd pdata ,pdata 
+0559 793ffe0f set0 15 ,pdata 
+055a 67e14dd9 store 2 ,mem_mouse_temp_data 
+055b 6fe0cdda fetch 1 ,mem_mouse_temp_data + 1 
+055c 1fe67c7f sub pdata ,0x7f ,null 
+055d 24410560 ncall p_mouse_xy_forward_overflow ,positive 
+055e 6fe14dd9 fetch 2 ,mem_mouse_temp_data 
+055f 20600000 rtn 
 
 p_mouse_xy_forward_overflow:
-0561 58007fff setarg 0x7fff 
-0562 67e14dd9 store 2 ,mem_mouse_temp_data 
-0563 20600000 rtn 
+0560 58007fff setarg 0x7fff 
+0561 67e14dd9 store 2 ,mem_mouse_temp_data 
+0562 20600000 rtn 
 
 p_mouse_check_sensor_data:
-0564 6fe0c4ac fetch 1 ,mem_spi_write_flash_sm 
-0565 c1800000 rtnne flash_sm_no_buys 
-0566 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0567 c005856a beq ka8g2 ,p_mouse_ka8g2_sensor_motion 
-0568 c0060574 beq s201x ,p_mouse_s201x_check_sensor_data 
-0569 20204243 branch mouse_check_sensor_data + 3 
+0563 6fe0c4ac fetch 1 ,mem_spi_write_flash_sm 
+0564 c1800000 rtnne flash_sm_no_buys 
+0565 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0566 c0058569 beq ka8g2 ,p_mouse_ka8g2_sensor_motion 
+0567 c0060573 beq s201x ,p_mouse_s201x_check_sensor_data 
+0568 20204243 branch mouse_check_sensor_data + 3 
 
 p_mouse_ka8g2_sensor_motion:
-056a 204042c4 call mouse_clear_sensor_data 
-056b 6fe0c911 fetch 1 ,mem_sensor_motion_gpio 
-056c c07fc294 beq gpio_disable ,mouse_pka8g2_sensor_motion_1 
-056d 6848c911 fetcht 1 ,mem_sensor_motion_gpio 
-056e 20406059 call gpio_get_bit 
-056f 24608000 nrtn true 
+0569 204042c4 call mouse_clear_sensor_data 
+056a 6fe0c911 fetch 1 ,mem_sensor_motion_gpio 
+056b c07fc294 beq gpio_disable ,mouse_pka8g2_sensor_motion_1 
+056c 6848c911 fetcht 1 ,mem_sensor_motion_gpio 
+056d 20406059 call gpio_get_bit 
+056e 24608000 nrtn true 
 
 p_mouse_pka8g2_sensor_motion_1:
-0570 58000000 setarg pan_reg_pid_l 
-0571 20405b0d call twspi_read 
-0572 c0ac41b2 bne pka8g2_id1 ,mouse_twspi_reset 
-0573 20204279 branch mouse_p3212_sensor_motion_2 
+056f 58000000 setarg pan_reg_pid_l 
+0570 20405b0d call twspi_read 
+0571 c0ac41b2 bne pka8g2_id1 ,mouse_twspi_reset 
+0572 20204279 branch mouse_p3212_sensor_motion_2 
 
 p_mouse_s201x_check_sensor_data:
-0574 204042c4 call mouse_clear_sensor_data 
-0575 6fe0c911 fetch 1 ,mem_sensor_motion_gpio 
-0576 c07f857a beq gpio_disable ,p_mouse_s201x_sensor_motion_1 
-0577 6848c911 fetcht 1 ,mem_sensor_motion_gpio 
-0578 20406059 call gpio_get_bit 
-0579 24608000 nrtn true 
+0573 204042c4 call mouse_clear_sensor_data 
+0574 6fe0c911 fetch 1 ,mem_sensor_motion_gpio 
+0575 c07f8579 beq gpio_disable ,p_mouse_s201x_sensor_motion_1 
+0576 6848c911 fetcht 1 ,mem_sensor_motion_gpio 
+0577 20406059 call gpio_get_bit 
+0578 24608000 nrtn true 
 
 p_mouse_s201x_sensor_motion_1:
-057a 58000000 setarg pan_reg_pid_l 
-057b 20405b0d call twspi_read 
-057c c09841b2 bne p32xx_id1 ,mouse_twspi_reset 
-057d 58000002 setarg pan_reg_motion_staus 
-057e 20405b0d call twspi_read 
-057f c4038000 rtnbit0 7 
+0579 58000000 setarg pan_reg_pid_l 
+057a 20405b0d call twspi_read 
+057b c09841b2 bne p32xx_id1 ,mouse_twspi_reset 
+057c 58000002 setarg pan_reg_motion_staus 
+057d 20405b0d call twspi_read 
+057e c4038000 rtnbit0 7 
+057f 67e0cddb store 1 ,mem_mouse_motion_staus 
 0580 20400585 call p_mouse_read_data_x 
 0581 2040058c call p_mouse_data_x_extsign_check 
-0582 2040059b call p_mouse_read_data_y 
-0583 204005a2 call p_mouse_data_y_extsign_check 
+0582 2040059c call p_mouse_read_data_y 
+0583 204005a3 call p_mouse_data_y_extsign_check 
 0584 20204286 branch mouse_set_sensor_angle 
 
 p_mouse_read_data_x:
@@ -1948,353 +1948,359 @@
 058b 20600000 rtn 
 
 p_mouse_data_x_extsign_check:
-058c 6fe148d1 fetch 2 ,mem_mouse_x 
-058d c2878593 bbit1 15 ,p_mouse_data_x_inverse_set 
-058e c3078590 bbit0 15 ,p_mouse_data_x_forward_overflow 
-058f 20600000 rtn 
+058c 6fe0cddb fetch 1 ,mem_mouse_motion_staus 
+058d c4018000 rtnbit0 3 
+058e 6fe148d1 fetch 2 ,mem_mouse_x 
+058f c2878594 bbit1 15 ,p_mouse_data_x_inverse_set 
+0590 c3078592 bbit0 15 ,p_mouse_data_x_forward_overflow 
+0591 20600000 rtn 
 
 p_mouse_data_x_forward_overflow:
-0590 58007fff setarg 0x7fff 
-0591 67e148d1 store 2 ,mem_mouse_x 
-0592 20600000 rtn 
+0592 58007fff setarg 0x7fff 
+0593 20200595 branch p_mouse_data_x_store 
 
 p_mouse_data_x_inverse_set:
-0593 58008000 setarg 0x8000 
-0594 67e148d1 store 2 ,mem_mouse_x 
-0595 20600000 rtn 
+0594 58008000 setarg 0x8000 
+
+p_mouse_data_x_store:
+0595 67e148d1 store 2 ,mem_mouse_x 
+0596 20600000 rtn 
 
 p_mouse_drawing_optima:
-0596 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0597 c1018000 rtneq p3212 
-0598 c1058000 rtneq ka8g2 
-0599 c1060000 rtneq s201x 
-059a 2020471a branch mouse_drawing_optima 
+0597 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0598 c1018000 rtneq p3212 
+0599 c1058000 rtneq ka8g2 
+059a c1060000 rtneq s201x 
+059b 2020471a branch mouse_drawing_optima 
 
 p_mouse_read_data_y:
-059b dfe00004 arg pan_reg_delta_y ,pdata 
-059c 20405b0d call twspi_read 
-059d 67e0c8d3 store 1 ,mem_mouse_y 
-059e 58000021 setarg pan_reg_dalta_y_high 
-059f 20405b0d call twspi_read 
-05a0 67e0c8d4 store 1 ,mem_mouse_y + 1 
-05a1 20600000 rtn 
+059c dfe00004 arg pan_reg_delta_y ,pdata 
+059d 20405b0d call twspi_read 
+059e 67e0c8d3 store 1 ,mem_mouse_y 
+059f 58000021 setarg pan_reg_dalta_y_high 
+05a0 20405b0d call twspi_read 
+05a1 67e0c8d4 store 1 ,mem_mouse_y + 1 
+05a2 20600000 rtn 
 
 p_mouse_data_y_extsign_check:
-05a2 6fe148d3 fetch 2 ,mem_mouse_y 
-05a3 c28785a9 bbit1 15 ,p_mouse_data_y_inverse_set 
-05a4 c30785a6 bbit0 15 ,p_mouse_data_y_forward_overflow 
-05a5 20600000 rtn 
+05a3 6fe0cddb fetch 1 ,mem_mouse_motion_staus 
+05a4 c4020000 rtnbit0 4 
+05a5 6fe148d3 fetch 2 ,mem_mouse_y 
+05a6 c28785ac bbit1 15 ,p_mouse_data_y_inverse_set 
+05a7 c30785a9 bbit0 15 ,p_mouse_data_y_forward_overflow 
+05a8 20600000 rtn 
 
 p_mouse_data_y_forward_overflow:
-05a6 58007fff setarg 0x7fff 
-05a7 67e148d3 store 2 ,mem_mouse_y 
-05a8 20600000 rtn 
+05a9 58007fff setarg 0x7fff 
 
-p_mouse_data_y_inverse_set:
-05a9 58008000 setarg 0x8000 
+p_mouse_data_y_store:
 05aa 67e148d3 store 2 ,mem_mouse_y 
 05ab 20600000 rtn 
 
+p_mouse_data_y_inverse_set:
+05ac 58008000 setarg 0x8000 
+05ad 202005aa branch p_mouse_data_y_store 
+
 p_mouse_sensor_poweron:
-05ac 20403f65 call mouse_sensor_spi_init 
-05ad 6fe0c927 fetch 1 ,mem_config_sensor_type 
-05ae c00585b3 beq ka8g2 ,p_mouse_ka8g2_sensor_init 
-05af 20404232 call mouse_sensor_reset 
-05b0 da604aa3 arg mem_sensor_poweron_init ,regc 
+05ae 20403f65 call mouse_sensor_spi_init 
+05af 6fe0c927 fetch 1 ,mem_config_sensor_type 
+05b0 c00585b5 beq ka8g2 ,p_mouse_ka8g2_sensor_init 
+05b1 20404232 call mouse_sensor_reset 
+05b2 da604aa3 arg mem_sensor_poweron_init ,regc 
 
 p_mouse_sensor_end:
-05b1 2040422b call mouse_sensor_wr_seq 
-05b2 20200372 branch p_mouse_seting_sensor_type 
+05b3 2040422b call mouse_sensor_wr_seq 
+05b4 20200372 branch p_mouse_seting_sensor_type 
 
 p_mouse_ka8g2_sensor_init:
-05b3 204005b9 call p_mouse_ka8g2_sensor_reset 
-05b4 da604be3 arg mem_ka8g2_sensor_poweron_init ,regc 
-05b5 202005b1 branch p_mouse_sensor_end 
+05b5 204005bb call p_mouse_ka8g2_sensor_reset 
+05b6 da604be3 arg mem_ka8g2_sensor_poweron_init ,regc 
+05b7 202005b3 branch p_mouse_sensor_end 
 
 p_mouse_sensor_reset:
-05b6 6fe0c927 fetch 1 ,mem_config_sensor_type 
-05b7 c00585b9 beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
-05b8 20204232 branch mouse_sensor_reset 
+05b8 6fe0c927 fetch 1 ,mem_config_sensor_type 
+05b9 c00585bb beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
+05ba 20204232 branch mouse_sensor_reset 
 
 p_mouse_ka8g2_sensor_reset:
-05b9 58009706 setarg 0x9706 
-05ba 20204233 branch mouse_sensor_reset_end 
+05bb 58009706 setarg 0x9706 
+05bc 20204233 branch mouse_sensor_reset_end 
 
 p_mouse_sensor_powerdown:
-05bb 204041a7 call mouse_init_sunt 
-05bc 20403f65 call mouse_sensor_spi_init 
-05bd 6fe0c927 fetch 1 ,mem_config_sensor_type 
-05be c00585c0 beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
-05bf 2020423e branch mouse_sensor_powerdown_end 
+05bd 204041a7 call mouse_init_sunt 
+05be 20403f65 call mouse_sensor_spi_init 
+05bf 6fe0c927 fetch 1 ,mem_config_sensor_type 
+05c0 c00585c2 beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
+05c1 2020423e branch mouse_sensor_powerdown_end 
 
 p_mouse_ka8g2_sensor_powerdown:
-05c0 58001f06 setarg 0x1f06 
-05c1 20205b0c branch twspi_write 
+05c2 58001f06 setarg 0x1f06 
+05c3 20205b0c branch twspi_write 
 
 p_mouse_key:
-05c2 204005c4 call p_mouse_check_key_gpio 
-05c3 202040dd branch mouse_key + 1 
+05c4 204005c6 call p_mouse_check_key_gpio 
+05c5 202040dd branch mouse_key + 1 
 
 p_mouse_check_key_gpio:
-05c4 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-05c5 245a4121 ncall mouse_check_key_gpio_once ,blank 
-05c6 da200000 arg 0 ,rega 
-05c7 204005ce call p_mouse_check_lkey_gpio 
-05c8 204005d3 call p_mouse_check_rkey_gpio 
-05c9 204005d8 call p_mouse_check_mkey_gpio 
-05ca 204005dd call p_mouse_check_bkkey_gpio 
-05cb 204005ea call p_mouse_check_fwkey_gpio 
-05cc 204005fd call p_mouse_check_customerkey_gpio 
-05cd 2020411f branch mouse_check_key_gpio_next + 1 
+05c6 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+05c7 245a4121 ncall mouse_check_key_gpio_once ,blank 
+05c8 da200000 arg 0 ,rega 
+05c9 204005d0 call p_mouse_check_lkey_gpio 
+05ca 204005d5 call p_mouse_check_rkey_gpio 
+05cb 204005da call p_mouse_check_mkey_gpio 
+05cc 204005df call p_mouse_check_bkkey_gpio 
+05cd 204005ec call p_mouse_check_fwkey_gpio 
+05ce 204005ff call p_mouse_check_customerkey_gpio 
+05cf 2020411f branch mouse_check_key_gpio_next + 1 
 
 p_mouse_check_lkey_gpio:
-05ce 6fe0c918 fetch 1 ,mem_lbutton_gpio 
-05cf 204005f7 call p_mouse_gpio_config_output_high 
-05d0 20404124 call mouse_check_lkey_gpio 
-05d1 6848c918 fetcht 1 ,mem_lbutton_gpio 
-05d2 20203f56 branch mouse_gpio_config_input_pu 
+05d0 6fe0c918 fetch 1 ,mem_lbutton_gpio 
+05d1 204005f9 call p_mouse_gpio_config_output_high 
+05d2 20404124 call mouse_check_lkey_gpio 
+05d3 6848c918 fetcht 1 ,mem_lbutton_gpio 
+05d4 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_rkey_gpio:
-05d3 6fe0c919 fetch 1 ,mem_rbutton_gpio 
-05d4 204005f7 call p_mouse_gpio_config_output_high 
-05d5 2040412a call mouse_check_rkey_gpio 
-05d6 6848c919 fetcht 1 ,mem_rbutton_gpio 
-05d7 20203f56 branch mouse_gpio_config_input_pu 
+05d5 6fe0c919 fetch 1 ,mem_rbutton_gpio 
+05d6 204005f9 call p_mouse_gpio_config_output_high 
+05d7 2040412a call mouse_check_rkey_gpio 
+05d8 6848c919 fetcht 1 ,mem_rbutton_gpio 
+05d9 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_mkey_gpio:
-05d8 6fe0c91a fetch 1 ,mem_mbutton_gpio 
-05d9 204005f7 call p_mouse_gpio_config_output_high 
-05da 20404130 call mouse_check_mkey_gpio 
-05db 6848c91a fetcht 1 ,mem_mbutton_gpio 
-05dc 20203f56 branch mouse_gpio_config_input_pu 
+05da 6fe0c91a fetch 1 ,mem_mbutton_gpio 
+05db 204005f9 call p_mouse_gpio_config_output_high 
+05dc 20404130 call mouse_check_mkey_gpio 
+05dd 6848c91a fetcht 1 ,mem_mbutton_gpio 
+05de 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_bkkey_gpio:
-05dd 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-05de c17f8000 rtneq gpio_disable 
-05df 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
-05e0 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
-05e1 1fe22600 copy pdata ,regc 
-05e2 6848c90d fetcht 1 ,mem_bk_button_gpio 
-05e3 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-05e4 c07f85e6 beq gpio_disable ,p_mouse_3io6key_bk_check 
-05e5 2020413e branch mouse_check_bkkey_gpio_next 
+05df 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+05e0 c17f8000 rtneq gpio_disable 
+05e1 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
+05e2 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
+05e3 1fe22600 copy pdata ,regc 
+05e4 6848c90d fetcht 1 ,mem_bk_button_gpio 
+05e5 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+05e6 c07f85e8 beq gpio_disable ,p_mouse_3io6key_bk_check 
+05e7 2020413e branch mouse_check_bkkey_gpio_next 
 
 p_mouse_3io6key_bk_check:
-05e6 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-05e7 204005fa call p_mouse_gpio_config_output_low 
-05e8 6848c90d fetcht 1 ,mem_bk_button_gpio 
-05e9 2020414b branch mouse_3io6key_bk_check 
+05e8 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+05e9 204005fc call p_mouse_gpio_config_output_low 
+05ea 6848c90d fetcht 1 ,mem_bk_button_gpio 
+05eb 2020414b branch mouse_3io6key_bk_check 
 
 p_mouse_check_fwkey_gpio:
-05ea 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-05eb c17f8000 rtneq gpio_disable 
-05ec 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
-05ed 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
-05ee 1fe22600 copy pdata ,regc 
-05ef 6848c90e fetcht 1 ,mem_fw_button_gpio 
-05f0 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-05f1 c07f85f3 beq gpio_disable ,p_mouse_3io6key_fw_check 
-05f2 20204157 branch mouse_check_fwkey_gpio_next 
+05ec 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+05ed c17f8000 rtneq gpio_disable 
+05ee 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
+05ef 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
+05f0 1fe22600 copy pdata ,regc 
+05f1 6848c90e fetcht 1 ,mem_fw_button_gpio 
+05f2 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+05f3 c07f85f5 beq gpio_disable ,p_mouse_3io6key_fw_check 
+05f4 20204157 branch mouse_check_fwkey_gpio_next 
 
 p_mouse_3io6key_fw_check:
-05f3 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-05f4 204005fa call p_mouse_gpio_config_output_low 
-05f5 6848c90e fetcht 1 ,mem_fw_button_gpio 
-05f6 20204164 branch mouse_3io6key_fw_check 
+05f5 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+05f6 204005fc call p_mouse_gpio_config_output_low 
+05f7 6848c90e fetcht 1 ,mem_fw_button_gpio 
+05f8 20204164 branch mouse_3io6key_fw_check 
 
 p_mouse_gpio_config_output_high:
-05f7 c17f8000 rtneq gpio_disable 
-05f8 d840003f arg gpcfg_output_high ,temp 
-05f9 20206093 branch gpio_config_function_int 
+05f9 c17f8000 rtneq gpio_disable 
+05fa d840003f arg gpcfg_output_high ,temp 
+05fb 20206093 branch gpio_config_function_int 
 
 p_mouse_gpio_config_output_low:
-05fa c17f8000 rtneq gpio_disable 
-05fb d840003e arg gpcfg_output_low ,temp 
-05fc 20206093 branch gpio_config_function_int 
+05fc c17f8000 rtneq gpio_disable 
+05fd d840003e arg gpcfg_output_low ,temp 
+05fe 20206093 branch gpio_config_function_int 
 
 p_mouse_check_customerkey_gpio:
-05fd 6fe0cd9a fetch 1 ,mem_mouse_customer_key_connect_vin_flag 
-05fe 203a416a branch mouse_check_customerkey_gpio ,blank 
-05ff 704b8b00 jam 0 ,mem_customer_key 
-0600 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0601 c40a8000 rtnbit0 mouse_enable_keyboard 
-0602 704b9607 jam mouse_customer_key ,mem_mouse_key_temp 
-0603 6fe0cb95 fetch 1 ,mem_mouse_customerkey_press_status 
-0604 1fe22600 copy pdata ,regc 
+05ff 6fe0cd9a fetch 1 ,mem_mouse_customer_key_connect_vin_flag 
+0600 203a416a branch mouse_check_customerkey_gpio ,blank 
+0601 704b8b00 jam 0 ,mem_customer_key 
+0602 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0603 c40a8000 rtnbit0 mouse_enable_keyboard 
+0604 704b9607 jam mouse_customer_key ,mem_mouse_key_temp 
+0605 6fe0cb95 fetch 1 ,mem_mouse_customerkey_press_status 
+0606 1fe22600 copy pdata ,regc 
 
 p_mouse_3io6key_customerkey_check:
-0605 6fe0c912 fetch 1 ,mem_customer_key_gpio 
-0606 204005fa call p_mouse_gpio_config_output_low 
-0607 6848c912 fetcht 1 ,mem_customer_key_gpio 
-0608 20404195 call mouse_3io6key_check 
-0609 67e0cb95 store 1 ,mem_mouse_customerkey_press_status 
-060a 20404174 call mouse_check_customerkey_state 
-060b 6848c912 fetcht 1 ,mem_customer_key_gpio 
-060c 20203f56 branch mouse_gpio_config_input_pu 
+0607 6fe0c912 fetch 1 ,mem_customer_key_gpio 
+0608 204005fc call p_mouse_gpio_config_output_low 
+0609 6848c912 fetcht 1 ,mem_customer_key_gpio 
+060a 20404195 call mouse_3io6key_check 
+060b 67e0cb95 store 1 ,mem_mouse_customerkey_press_status 
+060c 20404174 call mouse_check_customerkey_state 
+060d 6848c912 fetcht 1 ,mem_customer_key_gpio 
+060e 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_idle:
-060d 20400613 call p_mouse_low_voltage_led_no_enter_lpm 
-060e 20407936 call ui_check_paring_button 
-060f 20400631 call p_mouse_dpi_check 
-0610 20400617 call p_mouse_select_device_check 
-0611 20400622 call p_mouse_check_select_device_by_switch 
-0612 20204651 branch mouse_idle + 6 
+060f 20400615 call p_mouse_low_voltage_led_no_enter_lpm 
+0610 20407936 call ui_check_paring_button 
+0611 20400633 call p_mouse_dpi_check 
+0612 20400619 call p_mouse_select_device_check 
+0613 20400624 call p_mouse_check_select_device_by_switch 
+0614 20204651 branch mouse_idle + 6 
 
 p_mouse_low_voltage_led_no_enter_lpm:
-0613 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
-0614 c4018000 rtnbit0 mouse_enable_low_led 
-0615 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0616 20204992 branch mouse_low_voltage_led_no_enter_lpm + 2 
+0615 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+0616 c4018000 rtnbit0 mouse_enable_low_led 
+0617 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0618 20204992 branch mouse_low_voltage_led_no_enter_lpm + 2 
 
 p_mouse_select_device_check:
-0617 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0618 c294861b bbit1 mouse_enable_select_device_by_pb_button ,p_mouse_select_device_by_pb_button_check_judge 
-0619 c29b861b bbit1 mouse_enable_pb_button_long_press_disconvery ,p_mouse_select_device_by_pb_button_check_judge 
-061a 20600000 rtn 
+0619 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+061a c294861d bbit1 mouse_enable_select_device_by_pb_button ,p_mouse_select_device_by_pb_button_check_judge 
+061b c29b861d bbit1 mouse_enable_pb_button_long_press_disconvery ,p_mouse_select_device_by_pb_button_check_judge 
+061c 20600000 rtn 
 
 p_mouse_select_device_by_pb_button_check_judge:
-061b 6fe1478c fetch 2 ,mem_ui_state_map 
-061c c2830233 bbit1 ui_state_bt_discovery ,p_mouse_select_device_by_pb_button_check_once 
-061d 6fe0c91b fetch 1 ,mem_config_select_device_button_gpio 
-061e c17f8000 rtneq gpio_disable 
-061f 6fe0c9bf fetch 1 ,mem_store_information_delay_timer 
-0620 247a0000 nrtn blank 
-0621 2020465c branch mouse_select_device_by_pb_button + 2 
+061d 6fe1478c fetch 2 ,mem_ui_state_map 
+061e c2830233 bbit1 ui_state_bt_discovery ,p_mouse_select_device_by_pb_button_check_once 
+061f 6fe0c91b fetch 1 ,mem_config_select_device_button_gpio 
+0620 c17f8000 rtneq gpio_disable 
+0621 6fe0c9bf fetch 1 ,mem_store_information_delay_timer 
+0622 247a0000 nrtn blank 
+0623 2020465c branch mouse_select_device_by_pb_button + 2 
 
 p_mouse_check_select_device_by_switch:
-0622 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0623 c4150000 rtnbit0 mouse_enable_select_device_by_switch_gpio 
-0624 6848c91e fetcht 1 ,mem_device_switch_gpio 
-0625 20403f56 call mouse_gpio_config_input_pu 
+0624 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0625 c4150000 rtnbit0 mouse_enable_select_device_by_switch_gpio 
 0626 6848c91e fetcht 1 ,mem_device_switch_gpio 
-0627 20406059 call gpio_get_bit 
-0628 2020862d branch p_mouse_check_select_24g_device ,true 
+0627 20403f56 call mouse_gpio_config_input_pu 
+0628 6848c91e fetcht 1 ,mem_device_switch_gpio 
+0629 20406059 call gpio_get_bit 
+062a 2020862f branch p_mouse_check_select_24g_device ,true 
 
 p_mouse_select_btdevice:
-0629 6fe0c938 fetch 1 ,mem_device_flag 
-062a c1008000 rtneq mode_bt_device1 
-062b 70493801 jam mode_bt_device1 ,mem_device_flag 
-062c 202046c0 branch mouse_soft_reset 
+062b 6fe0c938 fetch 1 ,mem_device_flag 
+062c c1008000 rtneq mode_bt_device1 
+062d 70493801 jam mode_bt_device1 ,mem_device_flag 
+062e 202046c0 branch mouse_soft_reset 
 
 p_mouse_check_select_24g_device:
-062d 6fe0c938 fetch 1 ,mem_device_flag 
-062e c1000000 rtneq mode_24g_device 
-062f 70493800 jam mode_24g_device ,mem_device_flag 
-0630 202046c0 branch mouse_soft_reset 
+062f 6fe0c938 fetch 1 ,mem_device_flag 
+0630 c1000000 rtneq mode_24g_device 
+0631 70493800 jam mode_24g_device ,mem_device_flag 
+0632 202046c0 branch mouse_soft_reset 
 
 p_mouse_dpi_check:
-0631 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-0632 c17f8000 rtneq gpio_disable 
-0633 da200000 arg 0 ,rega 
-0634 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
-0635 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-0636 20400638 call p_mouse_dpi_key_check 
-0637 2020402f branch mouse_dpi_check_next 
+0633 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+0634 c17f8000 rtneq gpio_disable 
+0635 da200000 arg 0 ,rega 
+0636 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
+0637 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+0638 2040063a call p_mouse_dpi_key_check 
+0639 2020402f branch mouse_dpi_check_next 
 
 p_mouse_dpi_key_check:
-0638 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0639 c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
-063a 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
-063b 1fe22600 copy pdata ,regc 
-063c 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-063d c07f863f beq gpio_disable ,p_mouse_3io6key_dpi_check 
-063e 2020403f branch mouse_dpi_key_check_next 
+063a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+063b c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
+063c 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
+063d 1fe22600 copy pdata ,regc 
+063e 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+063f c07f8641 beq gpio_disable ,p_mouse_3io6key_dpi_check 
+0640 2020403f branch mouse_dpi_key_check_next 
 
 p_mouse_3io6key_dpi_check:
-063f 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-0640 204005fa call p_mouse_gpio_config_output_low 
-0641 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-0642 20204195 branch mouse_3io6key_check 
+0641 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+0642 204005fc call p_mouse_gpio_config_output_low 
+0643 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+0644 20204195 branch mouse_3io6key_check 
 
 p_mouse_dpi_process:
-0643 20404072 call mouse_dpi_ghost_check 
-0644 20740000 rtn user 
+0645 20404072 call mouse_dpi_ghost_check 
+0646 20740000 rtn user 
 
 p_mouse_dpi_process_next:
-0645 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0646 c006064d beq s201x ,p_mouse_set_dpi_level_5 
-0647 6fe0c992 fetch 1 ,mem_mouse_dpi 
-0648 1fe0fe01 increase 1 ,pdata 
-0649 1fe17e03 and pdata ,0x03 ,pdata 
+0647 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0648 c006064f beq s201x ,p_mouse_set_dpi_level_5 
+0649 6fe0c992 fetch 1 ,mem_mouse_dpi 
+064a 1fe0fe01 increase 1 ,pdata 
+064b 1fe17e03 and pdata ,0x03 ,pdata 
 
 p_mouse_dpi_store:
-064a 67e0c992 store 1 ,mem_mouse_dpi 
-064b 20400370 call p_mouse_seting_dpi 
-064c 20204643 branch mouse_store_eerpom_dpi 
+064c 67e0c992 store 1 ,mem_mouse_dpi 
+064d 20400370 call p_mouse_seting_dpi 
+064e 20204643 branch mouse_store_eerpom_dpi 
 
 p_mouse_set_dpi_level_5:
-064d 6fe0c992 fetch 1 ,mem_mouse_dpi 
-064e 1fe0fe01 increase 1 ,pdata 
-064f 67e0c992 store 1 ,mem_mouse_dpi 
-0650 1fe67c05 sub pdata ,5 ,null 
-0651 2042fe60 call set_pdata_0 ,zero 
-0652 2020064a branch p_mouse_dpi_store 
+064f 6fe0c992 fetch 1 ,mem_mouse_dpi 
+0650 1fe0fe01 increase 1 ,pdata 
+0651 67e0c992 store 1 ,mem_mouse_dpi 
+0652 1fe67c05 sub pdata ,5 ,null 
+0653 2042fe60 call set_pdata_0 ,zero 
+0654 2020064c branch p_mouse_dpi_store 
 
 p_power_ctrl_start:
-0653 6fe1478c fetch 2 ,mem_ui_state_map 
-0654 c3858000 rtnbit1 ui_state_ble_adv 
-0655 c3838000 rtnbit1 ui_state_bt_reconnect 
-0656 c3830000 rtnbit1 ui_state_bt_discovery 
-0657 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
-0658 204025cb call rssi_average 
-0659 6048c8c7 storet 1 ,mem_rssi_avg_received 
-065a 6fe0c8cc fetch 1 ,mem_rssi_dis_max_24g 
-065b c513065d bmark1 mark_24g ,p_power_ctrl_start_next 
-065c 6fe0c8cf fetch 1 ,mem_rssi_dis_max_ble 
+0655 6fe1478c fetch 2 ,mem_ui_state_map 
+0656 c3858000 rtnbit1 ui_state_ble_adv 
+0657 c3838000 rtnbit1 ui_state_bt_reconnect 
+0658 c3830000 rtnbit1 ui_state_bt_discovery 
+0659 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
+065a 204025cb call rssi_average 
+065b 6048c8c7 storet 1 ,mem_rssi_avg_received 
+065c 6fe0c8cc fetch 1 ,mem_rssi_dis_max_24g 
+065d c513065f bmark1 mark_24g ,p_power_ctrl_start_next 
+065e 6fe0c8cf fetch 1 ,mem_rssi_dis_max_ble 
 
 p_power_ctrl_start_next:
-065d 98467c00 isub temp ,null 
-065e 24210677 nbranch p_power_ctrl_txpower_incrs_force ,positive 
-065f 6fe0c8c9 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-0660 1fe67c02 sub pdata ,2 ,null 
-0661 24210665 nbranch p_power_ctrl_txpower_decrs_check ,positive 
-0662 6fe0c8c9 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-0663 c0000678 beq 0 ,p_power_ctrl_txpower_incrs 
-0664 20600000 rtn 
+065f 98467c00 isub temp ,null 
+0660 24210679 nbranch p_power_ctrl_txpower_incrs_force ,positive 
+0661 6fe0c8c9 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+0662 1fe67c02 sub pdata ,2 ,null 
+0663 24210667 nbranch p_power_ctrl_txpower_decrs_check ,positive 
+0664 6fe0c8c9 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+0665 c000067a beq 0 ,p_power_ctrl_txpower_incrs 
+0666 20600000 rtn 
 
 p_power_ctrl_txpower_decrs_check:
-0665 6fe0c8c9 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-0666 6848c8ca fetcht 1 ,mem_power_ctrl_pac_succ_cnt_init 
-0667 98467c00 isub temp ,null 
-0668 24628000 nrtn zero 
-0669 7048c900 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+0667 6fe0c8c9 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+0668 6848c8ca fetcht 1 ,mem_power_ctrl_pac_succ_cnt_init 
+0669 98467c00 isub temp ,null 
+066a 24628000 nrtn zero 
+066b 7048c900 jam 0 ,mem_power_ctrl_pac_succ_cnt 
 
 p_power_ctrl_txpower_decrs:
-066a 6848c8c7 fetcht 1 ,mem_rssi_avg_received 
-066b 6fe0c8cb fetch 1 ,mem_rssi_dis_min_24g 
-066c c513066e bmark1 mark_24g ,p_power_ctrl_txpower_decrs_next 
-066d 6fe0c8ce fetch 1 ,mem_rssi_dis_min_ble 
+066c 6848c8c7 fetcht 1 ,mem_rssi_avg_received 
+066d 6fe0c8cb fetch 1 ,mem_rssi_dis_min_24g 
+066e c5130670 bmark1 mark_24g ,p_power_ctrl_txpower_decrs_next 
+066f 6fe0c8ce fetch 1 ,mem_rssi_dis_min_ble 
 
 p_power_ctrl_txpower_decrs_next:
-066e 98467c00 isub temp ,null 
-066f 24610000 nrtn positive 
-0670 6fe0c8c8 fetch 1 ,mem_power_ctrl_level 
-0671 c000271b beq 0 ,power_ctrl_decrs_level0 
-0672 1fe0ffff increase -1 ,pdata 
-0673 67e0c8c8 store 1 ,mem_power_ctrl_level 
-0674 c001067f beq 2 ,p_power_ctrl_decrs_level2 
-0675 c000a711 beq 1 ,power_ctrl_decrs_level1 
-0676 2020271b branch power_ctrl_decrs_level0 
+0670 98467c00 isub temp ,null 
+0671 24610000 nrtn positive 
+0672 6fe0c8c8 fetch 1 ,mem_power_ctrl_level 
+0673 c000271b beq 0 ,power_ctrl_decrs_level0 
+0674 1fe0ffff increase -1 ,pdata 
+0675 67e0c8c8 store 1 ,mem_power_ctrl_level 
+0676 c0010681 beq 2 ,p_power_ctrl_decrs_level2 
+0677 c000a711 beq 1 ,power_ctrl_decrs_level1 
+0678 2020271b branch power_ctrl_decrs_level0 
 
 p_power_ctrl_txpower_incrs_force:
-0677 7048c900 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+0679 7048c900 jam 0 ,mem_power_ctrl_pac_succ_cnt 
 
 p_power_ctrl_txpower_incrs:
-0678 6fe0c8c8 fetch 1 ,mem_power_ctrl_level 
-0679 c001867e beq 3 ,p_power_ctrl_incrs_level3 
-067a 1fe0fe01 increase 1 ,pdata 
-067b 67e0c8c8 store 1 ,mem_power_ctrl_level 
-067c c000a711 beq 1 ,power_ctrl_incrs_level1 
-067d c001067f beq 2 ,p_power_ctrl_incrs_level2 
+067a 6fe0c8c8 fetch 1 ,mem_power_ctrl_level 
+067b c0018680 beq 3 ,p_power_ctrl_incrs_level3 
+067c 1fe0fe01 increase 1 ,pdata 
+067d 67e0c8c8 store 1 ,mem_power_ctrl_level 
+067e c000a711 beq 1 ,power_ctrl_incrs_level1 
+067f c0010681 beq 2 ,p_power_ctrl_incrs_level2 
 
 p_power_ctrl_incrs_level3:
-067e 2020067f branch p_power_ctrl_incrs_level2 
+0680 20200681 branch p_power_ctrl_incrs_level2 
 
 p_power_ctrl_decrs_level2:
 
 p_power_ctrl_incrs_level2:
-067f 7041e803 jam tx_power_3db ,mem_tx_power 
-0680 20600000 rtn 
+0681 7041e803 jam tx_power_3db ,mem_tx_power 
+0682 20600000 rtn 
               org 0x3bc1
 
 mouse_init:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/Only_24G_344/program/patch.prog	(revision 4890)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/Only_24G_344/program/patch.prog	(working copy)
@@ -2240,8 +2240,7 @@
 	store 2,mem_mouse_x
 	fetch 2,mem_mouse_y
 	call p_mouse_6400_zoom
-	store 2,mem_mouse_y
-	rtn
+	branch p_mouse_data_y_store
 
 p_mouse_6400_zoom:
 	bbit1 15,p_mouse_xy_inverse
@@ -2304,6 +2303,7 @@
 	setarg PAN_REG_MOTION_STAUS
 	call twspi_read
 	rtnbit0 7
+	store 1,mem_mouse_motion_staus
 	call p_mouse_read_data_x
 	call p_mouse_data_x_extsign_check
 	call p_mouse_read_data_y
@@ -2320,6 +2320,8 @@
 	rtn
 
 p_mouse_data_x_extsign_check:
+	fetch 1,mem_mouse_motion_staus
+	rtnbit0 3
 	fetch 2,mem_mouse_x
 	bbit1 15,p_mouse_data_x_inverse_set
 	bbit0 15,p_mouse_data_x_forward_overflow
@@ -2327,11 +2329,11 @@
 
 p_mouse_data_x_forward_overflow:
 	setarg 0x7fff
-	store 2,mem_mouse_x
-	rtn
+	branch p_mouse_data_x_store
 
 p_mouse_data_x_inverse_set:
 	setarg 0x8000
+p_mouse_data_x_store:
 	store 2,mem_mouse_x
 	rtn
 
@@ -2352,6 +2354,8 @@
 	rtn
 
 p_mouse_data_y_extsign_check:
+	fetch 1,mem_mouse_motion_staus
+	rtnbit0 4
 	fetch 2,mem_mouse_y
 	bbit1 15,p_mouse_data_y_inverse_set
 	bbit0 15,p_mouse_data_y_forward_overflow
@@ -2359,13 +2363,13 @@
 
 p_mouse_data_y_forward_overflow:
 	setarg 0x7fff
+p_mouse_data_y_store:
 	store 2,mem_mouse_y
 	rtn
 
 p_mouse_data_y_inverse_set:
 	setarg 0x8000
-	store 2,mem_mouse_y
-	rtn
+	branch p_mouse_data_y_store
 
 p_mouse_sensor_poweron:
 	call mouse_sensor_spi_init
