Index: format/rom.format
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_auto_lazy/format/rom.format	(revision 4677)
+++ /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_auto_lazy/format/rom.format	(working copy)
@@ -9790,6 +9790,7 @@
 //无规律摸鱼
 1 mem_24g_matrix_cnt
 1 mem_auto_ruling_cnt
+1 mem_auto_run_temp
 )
 
 
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_auto_lazy/output/eeprom.dat	(revision 4677)
+++ /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_auto_lazy/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-52
+3e
 19
 c2
 84
@@ -79,7 +79,7 @@
 c0
 67
 86
-41
+3c
 c0
 68
 03
@@ -87,7 +87,7 @@
 c0
 68
 85
-cb
+c6
 c0
 69
 83
@@ -95,7 +95,7 @@
 c0
 6a
 05
-b2
+ad
 c0
 6a
 be
@@ -119,7 +119,7 @@
 c0
 6f
 06
-1b
+16
 c0
 6f
 80
@@ -199,7 +199,7 @@
 c0
 76
 86
-4c
+47
 20
 20
 13
@@ -1211,7 +1211,7 @@
 20
 40
 05
-c2
+bd
 20
 20
 3b
@@ -1763,7 +1763,7 @@
 20
 20
 05
-c2
+bd
 20
 40
 26
@@ -2067,11 +2067,11 @@
 20
 40
 05
-bd
+b8
 20
 40
 05
-c2
+bd
 20
 20
 3e
@@ -2119,7 +2119,7 @@
 20
 40
 06
-15
+10
 d8
 40
 00
@@ -2307,7 +2307,7 @@
 20
 40
 06
-15
+10
 20
 20
 3e
@@ -2815,7 +2815,7 @@
 20
 40
 05
-c2
+bd
 20
 20
 02
@@ -4655,7 +4655,7 @@
 20
 40
 05
-cb
+c6
 1f
 e1
 7e
@@ -5287,7 +5287,7 @@
 20
 40
 05
-c9
+c4
 6f
 e0
 c8
@@ -5307,7 +5307,7 @@
 20
 40
 05
-af
+aa
 20
 20
 45
@@ -5339,7 +5339,7 @@
 20
 40
 05
-45
+49
 d8
 e0
 00
@@ -5360,6 +5360,22 @@
 7a
 00
 00
+6f
+e0
+cc
+b9
+1f
+e0
+fe
+01
+1f
+e1
+7e
+03
+67
+e0
+cc
+b9
 18
 0a
 7e
@@ -5367,7 +5383,7 @@
 1f
 e1
 7e
-0f
+03
 67
 e0
 cc
@@ -5403,143 +5419,107 @@
 20
 40
 05
-3f
+43
 6f
 e0
 cc
-b7
-1f
-e6
-7c
+b9
+c0
+00
+05
+4f
+c0
 00
-20
-22
 85
-68
-1f
-e6
-7c
+54
+c0
 01
+05
+59
 20
-22
-85
-6f
-1f
-e6
-7c
-02
 20
-22
+05
+5e
+6f
+e0
+cc
+b7
+c0
+00
+05
+63
+c0
+00
 85
-6c
-1f
-e6
-7c
-03
+6a
+c0
+01
+05
+67
 20
-22
-85
-72
-1f
-e6
-7c
-04
 20
-22
-85
-75
-1f
-e6
-7c
 05
-20
-22
+6d
+6f
+e0
+cc
+b7
+c0
+00
+05
+70
+c0
+01
+05
+74
+c0
+00
 85
-79
-1f
-e6
-7c
-06
+78
 20
-22
-85
-7d
-1f
-e6
-7c
-07
 20
-22
-85
+05
+7d
+6f
+e0
+cc
+b7
+c0
+00
+05
 82
-1f
-e6
-7c
-08
-20
-22
-85
+c0
+01
+05
 87
-1f
-e6
-7c
-09
-20
-22
+c0
+00
 85
 8c
-1f
-e6
-7c
-0a
 20
-22
-85
-91
-1f
-e6
-7c
-0b
 20
-22
-85
+05
+91
+6f
+e0
+cc
+b7
+c0
+00
+05
 96
-1f
-e6
-7c
-0c
-20
-22
-85
+c0
+01
+05
 9b
-1f
-e6
-7c
-0d
-20
-22
+c0
+00
 85
 a0
-1f
-e6
-7c
-0e
 20
-22
-85
-a5
-1f
-e6
-7c
-0f
 20
-22
-85
-aa
-20
-60
-00
-00
+05
+a5
 58
 00
 00
@@ -5567,7 +5547,7 @@
 20
 20
 05
-6a
+65
 5f
 ff
 ff
@@ -5579,7 +5559,7 @@
 20
 20
 05
-6a
+65
 58
 00
 00
@@ -5591,7 +5571,7 @@
 20
 20
 05
-6a
+65
 58
 00
 00
@@ -5607,11 +5587,11 @@
 20
 20
 05
-6a
+65
 5f
 ff
 ff
-f7
+f8
 67
 e1
 48
@@ -5623,7 +5603,7 @@
 20
 20
 05
-6a
+65
 58
 00
 00
@@ -5643,7 +5623,7 @@
 20
 20
 05
-6a
+65
 5f
 ff
 ff
@@ -5663,7 +5643,7 @@
 20
 20
 05
-6a
+65
 58
 00
 00
@@ -5683,7 +5663,7 @@
 20
 20
 05
-6a
+65
 5f
 ff
 ff
@@ -5703,7 +5683,7 @@
 20
 20
 05
-6a
+65
 5f
 ff
 ff
@@ -5723,7 +5703,7 @@
 20
 20
 05
-6a
+65
 58
 00
 00
@@ -5743,7 +5723,7 @@
 20
 20
 05
-6a
+65
 58
 00
 00
@@ -5763,7 +5743,7 @@
 20
 20
 05
-6a
+65
 5f
 ff
 ff
@@ -5783,7 +5763,7 @@
 20
 20
 05
-6a
+65
 5f
 ff
 ff
@@ -5803,7 +5783,7 @@
 20
 20
 05
-6a
+65
 58
 00
 00
@@ -5823,7 +5803,7 @@
 20
 20
 05
-6a
+65
 6f
 e0
 c9
@@ -5847,7 +5827,7 @@
 c0
 05
 85
-b9
+b4
 20
 40
 42
@@ -5867,7 +5847,7 @@
 20
 40
 05
-c0
+bb
 da
 60
 4b
@@ -5887,7 +5867,7 @@
 c0
 05
 85
-c0
+bb
 20
 20
 42
@@ -5915,7 +5895,7 @@
 c0
 05
 85
-c7
+c2
 20
 20
 42
@@ -5931,7 +5911,7 @@
 20
 40
 05
-cb
+c6
 20
 20
 40
@@ -5951,23 +5931,23 @@
 20
 40
 05
-d4
+cf
 20
 40
 05
-d9
+d4
 20
 40
 05
-de
+d9
 20
 40
 05
-fb
+f6
 20
 40
 06
-08
+03
 20
 20
 41
@@ -5979,7 +5959,7 @@
 20
 40
 06
-15
+10
 20
 40
 41
@@ -5999,7 +5979,7 @@
 20
 40
 06
-15
+10
 20
 40
 41
@@ -6043,11 +6023,11 @@
 c0
 7f
 85
-e7
+e2
 20
 20
 05
-ee
+e9
 6f
 e0
 c9
@@ -6055,7 +6035,7 @@
 20
 40
 06
-18
+13
 68
 48
 c9
@@ -6083,7 +6063,7 @@
 20
 20
 85
-f7
+f2
 68
 48
 c9
@@ -6127,7 +6107,7 @@
 20
 20
 05
-f5
+f0
 6f
 e0
 c9
@@ -6158,8 +6138,8 @@
 10
 c0
 7f
-86
-04
+85
+ff
 20
 20
 41
@@ -6171,7 +6151,7 @@
 20
 40
 06
-18
+13
 68
 48
 c9
@@ -6211,7 +6191,7 @@
 c0
 7f
 86
-11
+0c
 20
 20
 41
@@ -6223,7 +6203,7 @@
 20
 40
 06
-18
+13
 68
 48
 c9
@@ -6259,7 +6239,7 @@
 20
 40
 06
-20
+1b
 20
 40
 79
@@ -6267,11 +6247,11 @@
 20
 40
 06
-2d
+28
 20
 40
 06
-24
+1f
 20
 20
 46
@@ -6299,11 +6279,11 @@
 c2
 94
 86
-28
+23
 c2
 9b
 86
-28
+23
 20
 60
 00
@@ -6315,7 +6295,7 @@
 c2
 83
 06
-2b
+26
 20
 20
 46
@@ -6359,7 +6339,7 @@
 20
 40
 06
-36
+31
 20
 20
 40
@@ -6387,7 +6367,7 @@
 c0
 7f
 86
-3d
+38
 20
 20
 40
@@ -6399,7 +6379,7 @@
 20
 40
 06
-18
+13
 68
 48
 c9
@@ -6484,8 +6464,8 @@
 20
 26
 f6
-6e
-2c
+93
+14
 aa
 55
 40
@@ -7841,16 +7821,16 @@
 02
 40
 00
-ae
+9a
 1e
 55
 aa
 aa
 55
-75
+61
 99
-91
-76
+39
+1a
 ff
 ff
 ff
@@ -8188,5 +8168,25 @@
 ff
 ff
 ff
-7c
-64
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+31
+6e
Index: output/memmap.format
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_auto_lazy/output/memmap.format	(revision 4677)
+++ /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_auto_lazy/output/memmap.format	(working copy)
@@ -2296,6 +2296,7 @@
 0x4cb6 mem_mouse_y_count
 0x4cb7 mem_24g_matrix_cnt
 0x4cb8 mem_auto_ruling_cnt
+0x4cb9 mem_auto_run_temp
 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/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_auto_lazy/output/program.lis	(revision 4677)
+++ /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_auto_lazy/output/program.lis	(working copy)
@@ -18,17 +18,17 @@
 000f c0650239 beq patch19_2 ,p_mouse_lpm_before_common 
 0010 c06600b9 beq patch19_4 ,p_mouse_adc_read_start 
 0011 c0670520 beq patch19_6 ,p_mouse_motion 
-0012 c0678641 beq patch19_7 ,p_mouse_dpi_process 
+0012 c067863c beq patch19_7 ,p_mouse_dpi_process 
 0013 c0680327 beq patch1a_0 ,p_mouse_seting_dpi 
-0014 c06885cb beq patch1a_1 ,p_mouse_check_key_gpio 
+0014 c06885c6 beq patch1a_1 ,p_mouse_check_key_gpio 
 0015 c0698340 beq patch1a_3 ,p_mouse_init_sunt 
-0016 c06a05b2 beq patch1a_4 ,p_mouse_sensor_poweron 
+0016 c06a05ad beq patch1a_4 ,p_mouse_sensor_poweron 
 0017 c06abe23 beq patch1a_5 ,mouse_app_enter_hibernate + 3 
 0018 c06b025b beq patch1a_6 ,p_mouse_priority_bb_event 
 0019 c06c836a beq patch1b_1 ,p_mouse_bb_event_timer 
 001a c06d04a5 beq patch1b_2 ,p_mouse_start_discovery 
 001b c06d84af beq patch1b_3 ,p_mouse_stop_discovery 
-001c c06f061b beq patch1b_6 ,p_mouse_idle 
+001c c06f0616 beq patch1b_6 ,p_mouse_idle 
 001d c06f8046 beq patch1b_7 ,p_mouse_ready_reconnection_by_button 
 001e c070803e beq patch1c_1 ,p_mouse_led_off 
 001f c071003a beq patch1c_2 ,p_mouse_led_on 
@@ -50,7 +50,7 @@
 002d c07482c8 beq patch3d_1 ,p_g24_reconn_dispatch 
 002e c07501b8 beq patch3d_2 ,p_g24_transmit_no_interrupt 
 002f c0760513 beq patch3d_4 ,p_g24_lpm_wait 
-0030 c076864c beq patch3d_5 ,p_power_ctrl_start 
+0030 c0768647 beq patch3d_5 ,p_power_ctrl_start 
 0031 2020137c branch loop 
 
 p_soft_reset:
@@ -391,7 +391,7 @@
 012a 20403d8a call mouse_usb_check_enable 
 012b 20404728 call mouse_drawing_optima_init 
 012c 2040016a call p_mouse_cb_fuction 
-012d 204005c2 call p_mouse_sensor_powerdown 
+012d 204005bd call p_mouse_sensor_powerdown 
 012e 20203bc9 branch mouse_init + 8 
 
 p_mouse_le_name_load:
@@ -567,7 +567,7 @@
 01b4 67e0cba4 store 1 ,mem_mouse_search_dongle_action 
 01b5 6fe14bbc fetch 2 ,mem_mouse_24g_search_dongle_time_init 
 01b6 67e14ab2 store 2 ,mem_mouse_no_data_timer 
-01b7 202005c2 branch p_mouse_sensor_powerdown 
+01b7 202005bd branch p_mouse_sensor_powerdown 
 
 p_g24_transmit_no_interrupt:
 01b8 20402631 call g24_txdata_prep 
@@ -671,8 +671,8 @@
 0200 58000006 setarg pan_reg_config 
 0201 20405b0d call twspi_read 
 0202 c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
-0203 204005bd call p_mouse_sensor_reset 
-0204 204005c2 call p_mouse_sensor_powerdown 
+0203 204005b8 call p_mouse_sensor_reset 
+0204 204005bd call p_mouse_sensor_powerdown 
 0205 20203e23 branch mouse_app_enter_hibernate + 3 
 
 p_mouse_setgpio_hibernate:
@@ -686,7 +686,7 @@
 020d 6848c910 fetcht 1 ,mem_matrix_public_gpio 
 020e 20406042 call gpio_clr_wake 
 020f 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-0210 20400615 call p_mouse_gpio_config_output_high 
+0210 20400610 call p_mouse_gpio_config_output_high 
 0211 d8400003 arg 3 ,temp 
 0212 20403f56 call mouse_gpio_config_input_pu 
 0213 20400239 call p_mouse_lpm_before_common 
@@ -751,7 +751,7 @@
 023c 20406050 call gpio_config_input 
 023d 20403f88 call mouse_wheel_check 
 023e 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-023f 20400615 call p_mouse_gpio_config_output_high 
+023f 20400610 call p_mouse_gpio_config_output_high 
 0240 20203e44 branch mouse_lpm_before_common + 4 
 
 p_g24_nodata_transmit:
@@ -916,7 +916,7 @@
 02bb 58000000 setarg 0 
 02bc 67e3c8d0 store 7 ,mem_mouse_key 
 02bd 704be101 jam 1 ,mem_sensor_shutdown_flag 
-02be 204005c2 call p_mouse_sensor_powerdown 
+02be 204005bd call p_mouse_sensor_powerdown 
 02bf 20200246 branch p_g24_long_sleep 
 
 p_g24_pair_dispatch:
@@ -1588,7 +1588,7 @@
 
 p_mouse_commbination_key_start:
 0489 6048cb9d storet 1 ,mem_mouse_commbination_key 
-048a 204005cb call p_mouse_check_key_gpio 
+048a 204005c6 call p_mouse_check_key_gpio 
 048b 1fe17e07 and pdata ,0x07 ,pdata 
 048c 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
 048d 98467c00 isub temp ,null 
@@ -1798,12 +1798,12 @@
 0525 20400329 call p_mouse_seting_sensor_type 
 0526 20403f7e call mouse_zwheel 
 0527 20403f83 call mouse_t_zwheel 
-0528 204005c9 call p_mouse_key 
+0528 204005c4 call p_mouse_key 
 0529 6fe0c8d0 fetch 1 ,mem_mouse_key 
 052a 1fe17e1f and_into 0x1f ,pdata 
 052b 67e0c8d0 store 1 ,mem_mouse_key 
 052c 24344728 nbranch mouse_drawing_optima_init ,user 
-052d 204005af call p_mouse_drawing_optima 
+052d 204005aa call p_mouse_drawing_optima 
 052e 20204544 branch mouse_no_data_timer_init 
 
 p_mouse_start_lazy_check:
@@ -1813,7 +1813,7 @@
 0532 20407d74 call timer_check 
 0533 247a0000 nrtn blank 
 0534 20400539 call p_auto_ruling_random 
-0535 20400545 call p_mouse_auto_ruling_check 
+0535 20400549 call p_mouse_auto_ruling_check 
 
 p_mouse_fake_data_100ms_timer_init:
 0536 d8e0000d arg 13 ,queue 
@@ -1823,395 +1823,398 @@
 p_auto_ruling_random:
 0539 6fe0ccb8 fetch 1 ,mem_auto_ruling_cnt 
 053a 247a0000 nrtn blank 
-053b 180a7e00 random pdata 
-053c 1fe17e0f and_into 0x0f ,pdata 
-053d 67e0ccb7 store 1 ,mem_24g_matrix_cnt 
-053e 20600000 rtn 
+053b 6fe0ccb9 fetch 1 ,mem_auto_run_temp 
+053c 1fe0fe01 increase 1 ,pdata 
+053d 1fe17e03 and_into 0x03 ,pdata 
+053e 67e0ccb9 store 1 ,mem_auto_run_temp 
+053f 180a7e00 random pdata 
+0540 1fe17e03 and_into 0x03 ,pdata 
+0541 67e0ccb7 store 1 ,mem_24g_matrix_cnt 
+0542 20600000 rtn 
 
 p_mouse_auto_ruling_count:
-053f 6fe0ccb8 fetch 1 ,mem_auto_ruling_cnt 
-0540 1fe0fe01 pincrease 1 
-0541 67e0ccb8 store 1 ,mem_auto_ruling_cnt 
-0542 c1850000 rtnne 0x0a 
-0543 704cb800 jam 0x00 ,mem_auto_ruling_cnt 
-0544 20600000 rtn 
+0543 6fe0ccb8 fetch 1 ,mem_auto_ruling_cnt 
+0544 1fe0fe01 pincrease 1 
+0545 67e0ccb8 store 1 ,mem_auto_ruling_cnt 
+0546 c1850000 rtnne 0x0a 
+0547 704cb800 jam 0x00 ,mem_auto_ruling_cnt 
+0548 20600000 rtn 
 
 p_mouse_auto_ruling_check:
-0545 2040053f call p_mouse_auto_ruling_count 
-0546 6fe0ccb7 fetch 1 ,mem_24g_matrix_cnt 
-0547 1fe67c00 sub pdata ,0 ,null 
-0548 20228568 branch p_ms_x_right ,zero 
-0549 1fe67c01 sub pdata ,1 ,null 
-054a 2022856f branch p_ms_y_up ,zero 
-054b 1fe67c02 sub pdata ,2 ,null 
-054c 2022856c branch p_ms_x_left ,zero 
-054d 1fe67c03 sub pdata ,3 ,null 
-054e 20228572 branch p_ms_y_down ,zero 
-054f 1fe67c04 sub pdata ,4 ,null 
-0550 20228575 branch p_ruling_step_1 ,zero 
-0551 1fe67c05 sub pdata ,5 ,null 
-0552 20228579 branch p_ruling_step_2 ,zero 
-0553 1fe67c06 sub pdata ,6 ,null 
-0554 2022857d branch p_ruling_step_3 ,zero 
-0555 1fe67c07 sub pdata ,7 ,null 
-0556 20228582 branch p_ruling_step_4 ,zero 
-0557 1fe67c08 sub pdata ,8 ,null 
-0558 20228587 branch p_ruling_step_5 ,zero 
-0559 1fe67c09 sub pdata ,9 ,null 
-055a 2022858c branch p_ruling_step_6 ,zero 
-055b 1fe67c0a sub pdata ,10 ,null 
-055c 20228591 branch p_ruling_step_7 ,zero 
-055d 1fe67c0b sub pdata ,11 ,null 
-055e 20228596 branch p_ruling_step_8 ,zero 
-055f 1fe67c0c sub pdata ,12 ,null 
-0560 2022859b branch p_ruling_step_9 ,zero 
-0561 1fe67c0d sub pdata ,13 ,null 
-0562 202285a0 branch p_ruling_step_10 ,zero 
-0563 1fe67c0e sub pdata ,14 ,null 
-0564 202285a5 branch p_ruling_step_11 ,zero 
-0565 1fe67c0f sub pdata ,15 ,null 
-0566 202285aa branch p_ruling_step_12 ,zero 
-0567 20600000 rtn 
+0549 20400543 call p_mouse_auto_ruling_count 
+054a 6fe0ccb9 fetch 1 ,mem_auto_run_temp 
+054b c000054f beq 0 ,p_auto_ruling_random_0_3 
+054c c0008554 beq 1 ,p_auto_ruling_random_4_7 
+054d c0010559 beq 2 ,p_auto_ruling_random_8_11 
+054e 2020055e branch p_auto_ruling_random_9_15 
+
+p_auto_ruling_random_0_3:
+054f 6fe0ccb7 fetch 1 ,mem_24g_matrix_cnt 
+0550 c0000563 beq 0 ,p_ms_x_right 
+0551 c000856a beq 1 ,p_ms_y_up 
+0552 c0010567 beq 2 ,p_ms_x_left 
+0553 2020056d branch p_ms_y_down 
+
+p_auto_ruling_random_4_7:
+0554 6fe0ccb7 fetch 1 ,mem_24g_matrix_cnt 
+0555 c0000570 beq 0 ,p_ruling_step_1 
+0556 c0010574 beq 2 ,p_ruling_step_2 
+0557 c0008578 beq 1 ,p_ruling_step_3 
+0558 2020057d branch p_ruling_step_4 
+
+p_auto_ruling_random_8_11:
+0559 6fe0ccb7 fetch 1 ,mem_24g_matrix_cnt 
+055a c0000582 beq 0 ,p_ruling_step_5 
+055b c0010587 beq 2 ,p_ruling_step_6 
+055c c000858c beq 1 ,p_ruling_step_7 
+055d 20200591 branch p_ruling_step_8 
+
+p_auto_ruling_random_9_15:
+055e 6fe0ccb7 fetch 1 ,mem_24g_matrix_cnt 
+055f c0000596 beq 0 ,p_ruling_step_9 
+0560 c001059b beq 2 ,p_ruling_step_10 
+0561 c00085a0 beq 1 ,p_ruling_step_11 
+0562 202005a5 branch p_ruling_step_12 
 
 p_ms_x_right:
-0568 58000008 setarg 8 
-0569 67e148d1 store 2 ,mem_mouse_x 
+0563 58000008 setarg 8 
+0564 67e148d1 store 2 ,mem_mouse_x 
 
 p_data:
-056a 78347c00 enable user 
-056b 20600000 rtn 
+0565 78347c00 enable user 
+0566 20600000 rtn 
 
 p_ms_x_left:
-056c 5ffffff7 setarg -9 
-056d 67e148d1 store 2 ,mem_mouse_x 
-056e 2020056a branch p_data 
+0567 5ffffff7 setarg -9 
+0568 67e148d1 store 2 ,mem_mouse_x 
+0569 20200565 branch p_data 
 
 p_ms_y_up:
-056f 5ffffff7 setarg -9 
-0570 67e148d3 store 2 ,mem_mouse_y 
-0571 2020056a branch p_data 
+056a 5ffffff7 setarg -9 
+056b 67e148d3 store 2 ,mem_mouse_y 
+056c 20200565 branch p_data 
 
 p_ms_y_down:
-0572 58000008 setarg 8 
-0573 67e148d3 store 2 ,mem_mouse_y 
-0574 2020056a branch p_data 
+056d 58000008 setarg 8 
+056e 67e148d3 store 2 ,mem_mouse_y 
+056f 20200565 branch p_data 
 
 p_ruling_step_1:
-0575 58000008 setarg 8 
-0576 67e148d1 store 2 ,mem_mouse_x 
-0577 67e148d3 store 2 ,mem_mouse_y 
-0578 2020056a branch p_data 
+0570 58000008 setarg 8 
+0571 67e148d1 store 2 ,mem_mouse_x 
+0572 67e148d3 store 2 ,mem_mouse_y 
+0573 20200565 branch p_data 
 
 p_ruling_step_2:
-0579 5ffffff7 setarg -9 
-057a 67e148d1 store 2 ,mem_mouse_x 
-057b 67e148d3 store 2 ,mem_mouse_y 
-057c 2020056a branch p_data 
+0574 5ffffff8 setarg -8 
+0575 67e148d1 store 2 ,mem_mouse_x 
+0576 67e148d3 store 2 ,mem_mouse_y 
+0577 20200565 branch p_data 
 
 p_ruling_step_3:
-057d 58000008 setarg 8 
+0578 58000008 setarg 8 
+0579 67e148d1 store 2 ,mem_mouse_x 
+057a 5ffffff7 setarg -9 
+057b 67e148d3 store 2 ,mem_mouse_y 
+057c 20200565 branch p_data 
+
+p_ruling_step_4:
+057d 5ffffff7 setarg -9 
 057e 67e148d1 store 2 ,mem_mouse_x 
-057f 5ffffff7 setarg -9 
+057f 58000008 setarg 8 
 0580 67e148d3 store 2 ,mem_mouse_y 
-0581 2020056a branch p_data 
+0581 20200565 branch p_data 
 
-p_ruling_step_4:
-0582 5ffffff7 setarg -9 
+p_ruling_step_5:
+0582 5800000a setarg 10 
 0583 67e148d1 store 2 ,mem_mouse_x 
-0584 58000008 setarg 8 
+0584 58000006 setarg 6 
 0585 67e148d3 store 2 ,mem_mouse_y 
-0586 2020056a branch p_data 
+0586 20200565 branch p_data 
 
-p_ruling_step_5:
-0587 5800000a setarg 10 
+p_ruling_step_6:
+0587 5ffffff6 setarg -10 
 0588 67e148d1 store 2 ,mem_mouse_x 
-0589 58000006 setarg 6 
+0589 5ffffffa setarg -6 
 058a 67e148d3 store 2 ,mem_mouse_y 
-058b 2020056a branch p_data 
+058b 20200565 branch p_data 
 
-p_ruling_step_6:
+p_ruling_step_7:
 058c 5ffffff6 setarg -10 
 058d 67e148d1 store 2 ,mem_mouse_x 
-058e 5ffffffa setarg -6 
+058e 58000006 setarg 6 
 058f 67e148d3 store 2 ,mem_mouse_y 
-0590 2020056a branch p_data 
+0590 20200565 branch p_data 
 
-p_ruling_step_7:
-0591 5ffffff6 setarg -10 
+p_ruling_step_8:
+0591 5800000a setarg 10 
 0592 67e148d1 store 2 ,mem_mouse_x 
-0593 58000006 setarg 6 
+0593 5ffffffa setarg -6 
 0594 67e148d3 store 2 ,mem_mouse_y 
-0595 2020056a branch p_data 
+0595 20200565 branch p_data 
 
-p_ruling_step_8:
-0596 5800000a setarg 10 
+p_ruling_step_9:
+0596 58000006 setarg 6 
 0597 67e148d1 store 2 ,mem_mouse_x 
-0598 5ffffffa setarg -6 
+0598 5800000a setarg 10 
 0599 67e148d3 store 2 ,mem_mouse_y 
-059a 2020056a branch p_data 
+059a 20200565 branch p_data 
 
-p_ruling_step_9:
-059b 58000006 setarg 6 
+p_ruling_step_10:
+059b 5ffffffa setarg -6 
 059c 67e148d1 store 2 ,mem_mouse_x 
-059d 5800000a setarg 10 
+059d 5ffffff6 setarg -10 
 059e 67e148d3 store 2 ,mem_mouse_y 
-059f 2020056a branch p_data 
+059f 20200565 branch p_data 
 
-p_ruling_step_10:
+p_ruling_step_11:
 05a0 5ffffffa setarg -6 
 05a1 67e148d1 store 2 ,mem_mouse_x 
-05a2 5ffffff6 setarg -10 
+05a2 5800000a setarg 10 
 05a3 67e148d3 store 2 ,mem_mouse_y 
-05a4 2020056a branch p_data 
+05a4 20200565 branch p_data 
 
-p_ruling_step_11:
-05a5 5ffffffa setarg -6 
+p_ruling_step_12:
+05a5 58000006 setarg 6 
 05a6 67e148d1 store 2 ,mem_mouse_x 
-05a7 5800000a setarg 10 
+05a7 5ffffff6 setarg -10 
 05a8 67e148d3 store 2 ,mem_mouse_y 
-05a9 2020056a branch p_data 
-
-p_ruling_step_12:
-05aa 58000006 setarg 6 
-05ab 67e148d1 store 2 ,mem_mouse_x 
-05ac 5ffffff6 setarg -10 
-05ad 67e148d3 store 2 ,mem_mouse_y 
-05ae 2020056a branch p_data 
+05a9 20200565 branch p_data 
 
 p_mouse_drawing_optima:
-05af 6fe0c927 fetch 1 ,mem_config_sensor_type 
-05b0 c1018000 rtneq p3212 
-05b1 2020471a branch mouse_drawing_optima 
+05aa 6fe0c927 fetch 1 ,mem_config_sensor_type 
+05ab c1018000 rtneq p3212 
+05ac 2020471a branch mouse_drawing_optima 
 
 p_mouse_sensor_poweron:
-05b2 20403f65 call mouse_sensor_spi_init 
-05b3 6fe0c927 fetch 1 ,mem_config_sensor_type 
-05b4 c00585b9 beq ka8g2 ,p_mouse_ka8g2_sensor_init 
-05b5 20404232 call mouse_sensor_reset 
-05b6 da604aa3 arg mem_sensor_poweron_init ,regc 
-05b7 2040422b call mouse_sensor_wr_seq 
-05b8 20200329 branch p_mouse_seting_sensor_type 
+05ad 20403f65 call mouse_sensor_spi_init 
+05ae 6fe0c927 fetch 1 ,mem_config_sensor_type 
+05af c00585b4 beq ka8g2 ,p_mouse_ka8g2_sensor_init 
+05b0 20404232 call mouse_sensor_reset 
+05b1 da604aa3 arg mem_sensor_poweron_init ,regc 
+05b2 2040422b call mouse_sensor_wr_seq 
+05b3 20200329 branch p_mouse_seting_sensor_type 
 
 p_mouse_ka8g2_sensor_init:
-05b9 204005c0 call p_mouse_ka8g2_sensor_reset 
-05ba da604be3 arg mem_ka8g2_sensor_poweron_init ,regc 
-05bb 2040422b call mouse_sensor_wr_seq 
-05bc 2020408e branch mouse_dpi_config 
+05b4 204005bb call p_mouse_ka8g2_sensor_reset 
+05b5 da604be3 arg mem_ka8g2_sensor_poweron_init ,regc 
+05b6 2040422b call mouse_sensor_wr_seq 
+05b7 2020408e branch mouse_dpi_config 
 
 p_mouse_sensor_reset:
-05bd 6fe0c927 fetch 1 ,mem_config_sensor_type 
-05be c00585c0 beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
-05bf 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:
-05c0 58009706 setarg 0x9706 
-05c1 20204233 branch mouse_sensor_reset_end 
+05bb 58009706 setarg 0x9706 
+05bc 20204233 branch mouse_sensor_reset_end 
 
 p_mouse_sensor_powerdown:
-05c2 204041a7 call mouse_init_sunt 
-05c3 20403f65 call mouse_sensor_spi_init 
-05c4 6fe0c927 fetch 1 ,mem_config_sensor_type 
-05c5 c00585c7 beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
-05c6 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:
-05c7 58001f06 setarg 0x1f06 
-05c8 20205b0c branch twspi_write 
+05c2 58001f06 setarg 0x1f06 
+05c3 20205b0c branch twspi_write 
 
 p_mouse_key:
-05c9 204005cb call p_mouse_check_key_gpio 
-05ca 202040dd branch mouse_key + 1 
+05c4 204005c6 call p_mouse_check_key_gpio 
+05c5 202040dd branch mouse_key + 1 
 
 p_mouse_check_key_gpio:
-05cb 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-05cc 245a4121 ncall mouse_check_key_gpio_once ,blank 
-05cd da200000 arg 0 ,rega 
-05ce 204005d4 call p_mouse_check_lkey_gpio 
-05cf 204005d9 call p_mouse_check_rkey_gpio 
-05d0 204005de call p_mouse_check_mkey_gpio 
-05d1 204005fb call p_mouse_check_bkkey_gpio 
-05d2 20400608 call p_mouse_check_fwkey_gpio 
-05d3 2020411e branch mouse_check_key_gpio_next 
+05c6 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+05c7 245a4121 ncall mouse_check_key_gpio_once ,blank 
+05c8 da200000 arg 0 ,rega 
+05c9 204005cf call p_mouse_check_lkey_gpio 
+05ca 204005d4 call p_mouse_check_rkey_gpio 
+05cb 204005d9 call p_mouse_check_mkey_gpio 
+05cc 204005f6 call p_mouse_check_bkkey_gpio 
+05cd 20400603 call p_mouse_check_fwkey_gpio 
+05ce 2020411e branch mouse_check_key_gpio_next 
 
 p_mouse_check_lkey_gpio:
-05d4 6fe0c918 fetch 1 ,mem_lbutton_gpio 
-05d5 20400615 call p_mouse_gpio_config_output_high 
-05d6 20404124 call mouse_check_lkey_gpio 
-05d7 6848c918 fetcht 1 ,mem_lbutton_gpio 
-05d8 20203f56 branch mouse_gpio_config_input_pu 
+05cf 6fe0c918 fetch 1 ,mem_lbutton_gpio 
+05d0 20400610 call p_mouse_gpio_config_output_high 
+05d1 20404124 call mouse_check_lkey_gpio 
+05d2 6848c918 fetcht 1 ,mem_lbutton_gpio 
+05d3 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_rkey_gpio:
-05d9 6fe0c919 fetch 1 ,mem_rbutton_gpio 
-05da 20400615 call p_mouse_gpio_config_output_high 
-05db 2040412a call mouse_check_rkey_gpio 
-05dc 6848c919 fetcht 1 ,mem_rbutton_gpio 
-05dd 20203f56 branch mouse_gpio_config_input_pu 
+05d4 6fe0c919 fetch 1 ,mem_rbutton_gpio 
+05d5 20400610 call p_mouse_gpio_config_output_high 
+05d6 2040412a call mouse_check_rkey_gpio 
+05d7 6848c919 fetcht 1 ,mem_rbutton_gpio 
+05d8 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_mkey_gpio:
-05de 6fe0c91a fetch 1 ,mem_mbutton_gpio 
-05df c17f8000 rtneq gpio_disable 
-05e0 704b9602 jam mouse_m_key ,mem_mouse_key_temp 
-05e1 6fe0cb90 fetch 1 ,mem_mouse_mkey_press_status 
-05e2 1fe22600 copy pdata ,regc 
-05e3 6848c91a fetcht 1 ,mem_mbutton_gpio 
-05e4 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-05e5 c07f85e7 beq gpio_disable ,p_mouse_3io6key_m_check 
-05e6 202005ee branch p_mouse_check_key_gpio_next 
+05d9 6fe0c91a fetch 1 ,mem_mbutton_gpio 
+05da c17f8000 rtneq gpio_disable 
+05db 704b9602 jam mouse_m_key ,mem_mouse_key_temp 
+05dc 6fe0cb90 fetch 1 ,mem_mouse_mkey_press_status 
+05dd 1fe22600 copy pdata ,regc 
+05de 6848c91a fetcht 1 ,mem_mbutton_gpio 
+05df 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+05e0 c07f85e2 beq gpio_disable ,p_mouse_3io6key_m_check 
+05e1 202005e9 branch p_mouse_check_key_gpio_next 
 
 p_mouse_3io6key_m_check:
-05e7 6fe0c91a fetch 1 ,mem_mbutton_gpio 
-05e8 20400618 call p_mouse_gpio_config_output_low 
-05e9 6848c91a fetcht 1 ,mem_mbutton_gpio 
-05ea 20404195 call mouse_3io6key_check 
-05eb 67e0cb90 store 1 ,mem_mouse_mkey_press_status 
-05ec 6848c91a fetcht 1 ,mem_mbutton_gpio 
-05ed 20203f56 branch mouse_gpio_config_input_pu 
+05e2 6fe0c91a fetch 1 ,mem_mbutton_gpio 
+05e3 20400613 call p_mouse_gpio_config_output_low 
+05e4 6848c91a fetcht 1 ,mem_mbutton_gpio 
+05e5 20404195 call mouse_3io6key_check 
+05e6 67e0cb90 store 1 ,mem_mouse_mkey_press_status 
+05e7 6848c91a fetcht 1 ,mem_mbutton_gpio 
+05e8 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_key_gpio_next:
-05ee 20406059 call gpio_get_bit 
-05ef 202085f7 branch p_mouse_check_m_button_connect_gnd ,true 
-05f0 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-05f1 20406069 call gpio_out_active 
-05f2 6848c91a fetcht 1 ,mem_mbutton_gpio 
-05f3 6fe0cb90 fetch 1 ,mem_mouse_mkey_press_status 
-05f4 20404187 call mouse_check_key_connect_gnd 
+05e9 20406059 call gpio_get_bit 
+05ea 202085f2 branch p_mouse_check_m_button_connect_gnd ,true 
+05eb 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+05ec 20406069 call gpio_out_active 
+05ed 6848c91a fetcht 1 ,mem_mbutton_gpio 
+05ee 6fe0cb90 fetch 1 ,mem_mouse_mkey_press_status 
+05ef 20404187 call mouse_check_key_connect_gnd 
 
 p_mouse_check_mkey_gpio_end:
-05f5 67e0cb90 store 1 ,mem_mouse_mkey_press_status 
-05f6 20204168 branch mouse_matrix_public_gpio_reset 
+05f0 67e0cb90 store 1 ,mem_mouse_mkey_press_status 
+05f1 20204168 branch mouse_matrix_public_gpio_reset 
 
 p_mouse_check_m_button_connect_gnd:
-05f7 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-05f8 6fe0cb90 fetch 1 ,mem_mouse_mkey_press_status 
-05f9 20404187 call mouse_check_key_connect_gnd 
-05fa 202005f5 branch p_mouse_check_mkey_gpio_end 
+05f2 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+05f3 6fe0cb90 fetch 1 ,mem_mouse_mkey_press_status 
+05f4 20404187 call mouse_check_key_connect_gnd 
+05f5 202005f0 branch p_mouse_check_mkey_gpio_end 
 
 p_mouse_check_bkkey_gpio:
-05fb 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-05fc c17f8000 rtneq gpio_disable 
-05fd 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
-05fe 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
-05ff 1fe22600 copy pdata ,regc 
-0600 6848c90d fetcht 1 ,mem_bk_button_gpio 
-0601 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-0602 c07f8604 beq gpio_disable ,p_mouse_3io6key_bk_check 
-0603 2020413e branch mouse_check_bkkey_gpio_next 
+05f6 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+05f7 c17f8000 rtneq gpio_disable 
+05f8 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
+05f9 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
+05fa 1fe22600 copy pdata ,regc 
+05fb 6848c90d fetcht 1 ,mem_bk_button_gpio 
+05fc 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+05fd c07f85ff beq gpio_disable ,p_mouse_3io6key_bk_check 
+05fe 2020413e branch mouse_check_bkkey_gpio_next 
 
 p_mouse_3io6key_bk_check:
-0604 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-0605 20400618 call p_mouse_gpio_config_output_low 
-0606 6848c90d fetcht 1 ,mem_bk_button_gpio 
-0607 2020414b branch mouse_3io6key_bk_check 
+05ff 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+0600 20400613 call p_mouse_gpio_config_output_low 
+0601 6848c90d fetcht 1 ,mem_bk_button_gpio 
+0602 2020414b branch mouse_3io6key_bk_check 
 
 p_mouse_check_fwkey_gpio:
-0608 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-0609 c17f8000 rtneq gpio_disable 
-060a 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
-060b 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
-060c 1fe22600 copy pdata ,regc 
-060d 6848c90e fetcht 1 ,mem_fw_button_gpio 
-060e 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-060f c07f8611 beq gpio_disable ,p_mouse_3io6key_fw_check 
-0610 20204157 branch mouse_check_fwkey_gpio_next 
+0603 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+0604 c17f8000 rtneq gpio_disable 
+0605 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
+0606 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
+0607 1fe22600 copy pdata ,regc 
+0608 6848c90e fetcht 1 ,mem_fw_button_gpio 
+0609 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+060a c07f860c beq gpio_disable ,p_mouse_3io6key_fw_check 
+060b 20204157 branch mouse_check_fwkey_gpio_next 
 
 p_mouse_3io6key_fw_check:
-0611 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-0612 20400618 call p_mouse_gpio_config_output_low 
-0613 6848c90e fetcht 1 ,mem_fw_button_gpio 
-0614 20204164 branch mouse_3io6key_fw_check 
+060c 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+060d 20400613 call p_mouse_gpio_config_output_low 
+060e 6848c90e fetcht 1 ,mem_fw_button_gpio 
+060f 20204164 branch mouse_3io6key_fw_check 
 
 p_mouse_gpio_config_output_high:
-0615 c17f8000 rtneq gpio_disable 
-0616 d840003f arg gpcfg_output_high ,temp 
-0617 20206093 branch gpio_config_function_int 
+0610 c17f8000 rtneq gpio_disable 
+0611 d840003f arg gpcfg_output_high ,temp 
+0612 20206093 branch gpio_config_function_int 
 
 p_mouse_gpio_config_output_low:
-0618 c17f8000 rtneq gpio_disable 
-0619 d840003e arg gpcfg_output_low ,temp 
-061a 20206093 branch gpio_config_function_int 
+0613 c17f8000 rtneq gpio_disable 
+0614 d840003e arg gpcfg_output_low ,temp 
+0615 20206093 branch gpio_config_function_int 
 
 p_mouse_idle:
-061b 20400620 call p_mouse_low_voltage_led_no_enter_lpm 
-061c 20407936 call ui_check_paring_button 
-061d 2040062d call p_mouse_dpi_check 
-061e 20400624 call p_mouse_select_device_check 
-061f 20204650 branch mouse_idle + 5 
+0616 2040061b call p_mouse_low_voltage_led_no_enter_lpm 
+0617 20407936 call ui_check_paring_button 
+0618 20400628 call p_mouse_dpi_check 
+0619 2040061f call p_mouse_select_device_check 
+061a 20204650 branch mouse_idle + 5 
 
 p_mouse_low_voltage_led_no_enter_lpm:
-0620 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
-0621 c301c990 bbit0 mouse_enable_low_led ,mouse_low_voltage_led_no_enter_lpm 
+061b 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+061c c301c990 bbit0 mouse_enable_low_led ,mouse_low_voltage_led_no_enter_lpm 
 
 p_mouse_low_voltage_led_no_enter_lpm_next:
-0622 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0623 20204992 branch mouse_low_voltage_led_no_enter_lpm + 2 
+061d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+061e 20204992 branch mouse_low_voltage_led_no_enter_lpm + 2 
 
 p_mouse_select_device_check:
-0624 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0625 c2948628 bbit1 mouse_enable_select_device_by_pb_button ,p_mouse_select_device_by_pb_button_check_judge 
-0626 c29b8628 bbit1 mouse_enable_pb_button_long_press_disconvery ,p_mouse_select_device_by_pb_button_check_judge 
-0627 20600000 rtn 
+061f 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0620 c2948623 bbit1 mouse_enable_select_device_by_pb_button ,p_mouse_select_device_by_pb_button_check_judge 
+0621 c29b8623 bbit1 mouse_enable_pb_button_long_press_disconvery ,p_mouse_select_device_by_pb_button_check_judge 
+0622 20600000 rtn 
 
 p_mouse_select_device_by_pb_button_check_judge:
-0628 6fe1478c fetch 2 ,mem_ui_state_map 
-0629 c283062b bbit1 ui_state_bt_discovery ,p_mouse_select_device_by_pb_button_check_once 
-062a 2020465a branch mouse_select_device_by_pb_button 
+0623 6fe1478c fetch 2 ,mem_ui_state_map 
+0624 c2830626 bbit1 ui_state_bt_discovery ,p_mouse_select_device_by_pb_button_check_once 
+0625 2020465a branch mouse_select_device_by_pb_button 
 
 p_mouse_select_device_by_pb_button_check_once:
-062b 704b9403 jam 0x03 ,mem_mouse_pbkey_press_status 
-062c 202001e5 branch p_mouse_select_device_by_pb_button 
+0626 704b9403 jam 0x03 ,mem_mouse_pbkey_press_status 
+0627 202001e5 branch p_mouse_select_device_by_pb_button 
 
 p_mouse_dpi_check:
-062d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-062e c2974036 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
-062f 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-0630 c17f8000 rtneq gpio_disable 
-0631 da200000 arg 0 ,rega 
-0632 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
-0633 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-0634 20400636 call p_mouse_dpi_key_check 
-0635 2020402f branch mouse_dpi_check_next 
+0628 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0629 c2974036 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
+062a 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+062b c17f8000 rtneq gpio_disable 
+062c da200000 arg 0 ,rega 
+062d 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
+062e 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+062f 20400631 call p_mouse_dpi_key_check 
+0630 2020402f branch mouse_dpi_check_next 
 
 p_mouse_dpi_key_check:
-0636 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0637 c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
-0638 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
-0639 1fe22600 copy pdata ,regc 
-063a 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-063b c07f863d beq gpio_disable ,p_mouse_3io6key_dpi_check 
-063c 2020403f branch mouse_dpi_key_check_next 
+0631 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0632 c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
+0633 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
+0634 1fe22600 copy pdata ,regc 
+0635 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+0636 c07f8638 beq gpio_disable ,p_mouse_3io6key_dpi_check 
+0637 2020403f branch mouse_dpi_key_check_next 
 
 p_mouse_3io6key_dpi_check:
-063d 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-063e 20400618 call p_mouse_gpio_config_output_low 
-063f 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-0640 20204195 branch mouse_3io6key_check 
+0638 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+0639 20400613 call p_mouse_gpio_config_output_low 
+063a 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+063b 20204195 branch mouse_3io6key_check 
 
 p_mouse_dpi_process:
-0641 6fe0ccaf fetch 1 ,mem_mouse_lazy_flag 
-0642 247a0000 nrtn blank 
-0643 20404072 call mouse_dpi_ghost_check 
-0644 20740000 rtn user 
+063c 6fe0ccaf fetch 1 ,mem_mouse_lazy_flag 
+063d 247a0000 nrtn blank 
+063e 20404072 call mouse_dpi_ghost_check 
+063f 20740000 rtn user 
 
 p_mouse_dpi_process_next:
-0645 6fe0c992 fetch 1 ,mem_mouse_dpi 
-0646 1fe0fe01 increase 1 ,pdata 
-0647 1fe17e03 and pdata ,0x03 ,pdata 
+0640 6fe0c992 fetch 1 ,mem_mouse_dpi 
+0641 1fe0fe01 increase 1 ,pdata 
+0642 1fe17e03 and pdata ,0x03 ,pdata 
 
 p_mouse_dpi_store:
-0648 67e0c992 store 1 ,mem_mouse_dpi 
-0649 20400327 call p_mouse_seting_dpi 
-064a 704cad02 jam 2 ,mem_mouse_dpi_store_delay_timer 
-064b 20600000 rtn 
+0643 67e0c992 store 1 ,mem_mouse_dpi 
+0644 20400327 call p_mouse_seting_dpi 
+0645 704cad02 jam 2 ,mem_mouse_dpi_store_delay_timer 
+0646 20600000 rtn 
 
 p_power_ctrl_start:
-064c 6fe1478c fetch 2 ,mem_ui_state_map 
-064d c3858000 rtnbit1 ui_state_ble_adv 
-064e c3838000 rtnbit1 ui_state_bt_reconnect 
-064f c3830000 rtnbit1 ui_state_bt_discovery 
-0650 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
-0651 204025cb call rssi_average 
-0652 6048c8c7 storet 1 ,mem_rssi_avg_received 
-0653 202026f6 branch power_ctrl_rssi_avg_compare 
+0647 6fe1478c fetch 2 ,mem_ui_state_map 
+0648 c3858000 rtnbit1 ui_state_ble_adv 
+0649 c3838000 rtnbit1 ui_state_bt_reconnect 
+064a c3830000 rtnbit1 ui_state_bt_discovery 
+064b 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
+064c 204025cb call rssi_average 
+064d 6048c8c7 storet 1 ,mem_rssi_avg_received 
+064e 202026f6 branch power_ctrl_rssi_avg_compare 
               org 0x3bc1
 
 mouse_init:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_auto_lazy/program/patch.prog	(revision 4677)
+++ /YC1308AC/branch/mouse_project/YJX_Project/YJX_1059_To_1011-T/mouse_public_sdk_first_no_discovery_branch/SlideSwitch_3mode_2ch_first_no_discovery_auto_lazy/program/patch.prog	(working copy)
@@ -2053,8 +2053,12 @@
 p_auto_ruling_random:
 	fetch 1,mem_auto_ruling_cnt
 	nrtn blank
+	fetch 1,mem_auto_run_temp
+	increase 1,pdata
+	and_into 0x03,pdata
+	store 1,mem_auto_run_temp
 	random pdata
-	and_into 0x0f,pdata
+	and_into 0x03,pdata
 	store 1,mem_24g_matrix_cnt
 	rtn
 p_mouse_auto_ruling_count:
@@ -2066,51 +2070,36 @@
 	rtn
 p_mouse_auto_ruling_check:
 	call p_mouse_auto_ruling_count
-	fetch 1,mem_24g_matrix_cnt
-	sub pdata,0,null
-	branch p_ms_x_right,zero
-
-	sub pdata,1,null
-	branch p_ms_y_up,zero
-
-	sub pdata,2,null
-	branch p_ms_x_left,zero
-	
-	sub pdata,3,null
-	branch p_ms_y_down,zero
-
-	sub pdata,4,null
-	branch p_ruling_step_1,zero
-	
-	sub pdata,5,null
-	branch p_ruling_step_2,zero
-	
-	sub pdata,6,null
-	branch p_ruling_step_3,zero
-	
-	sub pdata,7,null
-	branch p_ruling_step_4,zero
+	fetch 1,mem_auto_run_temp
+	beq 0,p_auto_ruling_random_0_3
+	beq 1,p_auto_ruling_random_4_7
+	beq 2,p_auto_ruling_random_8_11
+	branch p_auto_ruling_random_9_15
 
-	sub pdata,8,null
-	branch p_ruling_step_5,zero
-
-	sub pdata,9,null
-	branch p_ruling_step_6,zero
-
-	sub pdata,10,null
-	branch p_ruling_step_7,zero
-
-	sub pdata,11,null
-	branch p_ruling_step_8,zero
-	sub pdata,12,null
-	branch p_ruling_step_9,zero
-	sub pdata,13,null
-	branch p_ruling_step_10,zero
-	sub pdata,14,null
-	branch p_ruling_step_11,zero
-	sub pdata,15,null
-	branch p_ruling_step_12,zero
-	rtn
+p_auto_ruling_random_0_3:	
+	fetch 1,mem_24g_matrix_cnt
+	beq 0,p_ms_x_right
+	beq 1,p_ms_y_up
+	beq 2,p_ms_x_left
+	branch p_ms_y_down
+p_auto_ruling_random_4_7:
+	fetch 1,mem_24g_matrix_cnt
+	beq 0,p_ruling_step_1
+	beq 2,p_ruling_step_2
+	beq 1,p_ruling_step_3
+	branch p_ruling_step_4
+p_auto_ruling_random_8_11:
+	fetch 1,mem_24g_matrix_cnt
+	beq 0,p_ruling_step_5
+	beq 2,p_ruling_step_6
+	beq 1,p_ruling_step_7
+	branch p_ruling_step_8
+p_auto_ruling_random_9_15:
+	fetch 1,mem_24g_matrix_cnt
+	beq 0,p_ruling_step_9
+	beq 2,p_ruling_step_10
+	beq 1,p_ruling_step_11
+	branch p_ruling_step_12
 
 	
 p_ms_x_right:
@@ -2139,7 +2128,7 @@
 	store 2,mem_mouse_y
 	branch p_data
 p_ruling_step_2:
-	setarg -9
+	setarg -8
 	store 2,mem_mouse_x
 	store 2,mem_mouse_y
 	branch p_data
