Index: output/bt_program23.icode
===================================================================
--- /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/bt_program23.icode	(revision 3320)
+++ /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/bt_program23.icode	(working copy)
@@ -17,26 +17,26 @@
  00000016  0x00000035 beq  0x0000006c , 0x00000289 
  00000017  0x00000036 beq  0x0000006e , 0x00000472 
  00000018  0x00000037 beq  0x0000006f , 0x00000477 
- 00000019  0x00000038 beq  0x00000073 , 0x000004c6 
+ 00000019  0x00000038 beq  0x00000073 , 0x000004d7 
  00000020  0x00000039 beq  0x00000074 , 0x00000239 
- 00000021  0x0000003a beq  0x0000007a , 0x00000517 
- 00000022  0x0000003c beq  0x0000007f , 0x000004a7 
- 00000023  0x0000003d beq  0x00000081 , 0x000004fc 
- 00000024  0x0000003e beq  0x00000084 , 0x000003bc 
- 00000025  0x0000003f beq  0x00000085 , 0x00000407 
- 00000026  0x00000040 beq  0x00000086 , 0x0000020e 
- 00000027  0x00000041 beq  0x00000087 , 0x000003e5 
- 00000028  0x00000042 beq  0x00000088 , 0x00000405 
- 00000029  0x00000043 beq  0x0000008a , 0x000003cf 
- 00000030  0x00000044 beq  0x0000008b , 0x000002f0 
- 00000031  0x00000045 beq  0x0000008c , 0x00000313 
- 00000032  0x00000046 beq  0x0000008d , 0x00000379 
- 00000033  0x00000047 beq  0x0000008e , 0x0000048f 
- 00000034  0x00000048 beq  0x00000090 , 0x000004e9 
- 00000035  0x00000049 beq  0x00000093 , 0x00000522 
- 00000036  0x0000004a beq  0x00000095 , 0x000004bd 
- 00000037  0x0000004b beq  0x00000096 , 0x000004d2 
- 00000038  0x0000004c beq  0x0000009d , 0x00000559 
+ 00000021  0x0000003a beq  0x0000007a , 0x00000528 
+ 00000022  0x0000003b beq  0x0000007e , 0x000004a7 
+ 00000023  0x0000003c beq  0x0000007f , 0x000004b8 
+ 00000024  0x0000003d beq  0x00000081 , 0x0000050d 
+ 00000025  0x0000003e beq  0x00000084 , 0x000003bc 
+ 00000026  0x0000003f beq  0x00000085 , 0x00000407 
+ 00000027  0x00000040 beq  0x00000086 , 0x0000020e 
+ 00000028  0x00000041 beq  0x00000087 , 0x000003e5 
+ 00000029  0x00000042 beq  0x00000088 , 0x00000405 
+ 00000030  0x00000043 beq  0x0000008a , 0x000003cf 
+ 00000031  0x00000044 beq  0x0000008b , 0x000002f0 
+ 00000032  0x00000045 beq  0x0000008c , 0x00000313 
+ 00000033  0x00000046 beq  0x0000008d , 0x00000379 
+ 00000034  0x00000047 beq  0x0000008e , 0x0000048f 
+ 00000035  0x00000048 beq  0x00000090 , 0x000004fa 
+ 00000036  0x00000049 beq  0x00000093 , 0x00000533 
+ 00000037  0x0000004a beq  0x00000095 , 0x000004ce 
+ 00000038  0x0000004b beq  0x00000096 , 0x000004e3 
  00000039  0x0000004e beq  0x000000c5 , 0x00000267 
  00000040  0x0000004f beq  0x000000d5 , 0x0000022d 
  00000041  0x00000050 beq  0x000000d6 , 0x00000226 
@@ -53,7 +53,7 @@
  00000052  0x0000005d beq  0x0000004d , 0x000001b0 
  00000053  0x0000005e beq  0x00000090 , 0x0000026a 
  00000054  0x0000005f beq  0x00000092 , 0x0000027e 
- 00000055  0x00000060 beq  0x00000096 , 0x000004b4 
+ 00000055  0x00000060 beq  0x00000096 , 0x000004c5 
  00000056  0x00000061 beq  0x0000009a , 0x000000f6 
  00000057  0x00000062 beq  0x0000009d , 0x00000103 
  00000058  0x00000063 beq  0x0000009f , 0x00000296 
@@ -546,7 +546,7 @@
  00000545  0x000002c2 call  0x00005ab2 
  00000546  0x000002c3 nrtn  0x00000028 
  00000547  0x000002c4 call  0x00005abc 
- 00000548  0x000002c5 call  0x000004de 
+ 00000548  0x000002c5 call  0x000004ef 
  00000549  0x000002c6 branch  0x00005b37 
  00000550  0x000002c9 sub  0x00000002 , 0x000000ff , 0x0000003e 
  00000551  0x000002ca rtn  0x00000005 
@@ -567,7 +567,7 @@
  00000566  0x000002e1 setarg  0x00000010 
  00000567  0x000002e3 store  0x00000001 , 0x00008141 
  00000568  0x000002e4 branch  0x000023e2 
- 00000569  0x000002e7 call  0x000004b9 
+ 00000569  0x000002e7 call  0x000004ca 
  00000570  0x000002e8 jam  0x00000000 , 0x00004b1d 
  00000571  0x000002e9 fetcht  0x00000001 , 0x00004654 
  00000572  0x000002ea call  0x00006ef7 
@@ -742,7 +742,7 @@
  00000741  0x000003e6 branch  0x00005daa 
  00000742  0x000003e9 fetch  0x00000008 , 0x00004713 
  00000743  0x000003ea rtnbit0  0x0000002a 
- 00000744  0x000003eb call  0x000004e9 
+ 00000744  0x000003eb call  0x000004fa 
  00000745  0x000003ed fetch  0x00000001 , 0x00004666 
  00000746  0x000003ee store  0x00000001 , 0x00004a06 
  00000747  0x000003ef rtn 
@@ -1188,202 +1188,202 @@
  00001187  0x00000651 fetch  0x00000001 , 0x00004649 
  00001188  0x00000652 call  0x00005946 
  00001189  0x00000653 fetcht  0x00000001 , 0x00004649 
- 00001190  0x00000654 branch  0x000004a7 
- 00001191  0x0000066d copy  0x00000013 , 0x0000003f 
- 00001192  0x0000066e store  0x00000001 , 0x00004978 
- 00001193  0x0000066f lshift  0x0000003f , 0x0000003f 
- 00001194  0x00000670 copy  0x0000003f , 0x00000012 
- 00001195  0x00000671 copy  0x00000002 , 0x00000013 
- 00001196  0x00000672 call  0x00006ef7 
- 00001197  0x00000673 copy  0x00000013 , 0x00000002 
- 00001198  0x00000674 call  0x000055b1 
- 00001199  0x00000675 copy  0x00000013 , 0x00000002 
- 00001200  0x00000676 call  0x00006ee6 
- 00001201  0x00000677 nsetflag  0x00000001 , 0x00000000 , 0x00000012 
- 00001202  0x00000678 call  0x0000593d 
- 00001203  0x00000679 branch  0x00005929 
- 00001204  0x0000067c call  0x000036b4 
- 00001205  0x0000067d nrtn  0x00000028 
- 00001206  0x0000067e call  0x000036be 
- 00001207  0x0000067f call  0x000004b9 
- 00001208  0x00000680 branch  0x0000361b 
- 00001209  0x00000684 setarg  0x00000000 
- 00001210  0x00000685 store  0x00000008 , 0x00000016 
- 00001211  0x00000686 store  0x00000004 , 0x0000001e 
- 00001212  0x00000687 rtn 
- 00001213  0x0000068a jam  0x00000000 , 0x00004600 
- 00001214  0x0000068b call  0x00003647 
- 00001215  0x0000068c setarg  0xffffffff 
- 00001216  0x0000068d store  0x00000004 , 0x000045af 
- 00001217  0x0000068e setarg  0x00000000 
- 00001218  0x0000068f store  0x00000007 , 0x00004846 
- 00001219  0x00000690 jam  0x00000001 , 0x0000473f 
- 00001220  0x00000691 call  0x000059ed 
- 00001221  0x00000693 branch  0x0000622b 
- 00001222  0x00000696 call  0x00005a92 
- 00001223  0x00000697 call  0x000004b9 
- 00001224  0x00000698 call  0x000056a9 
- 00001225  0x00000699 fetch  0x00000001 , 0x0000464d 
- 00001226  0x0000069a call  0x00005943 
- 00001227  0x0000069c fetcht  0x00000001 , 0x0000465a 
- 00001228  0x0000069d call  0x000055ab 
- 00001229  0x0000069e arg  0x00000009 , 0x00000002 
- 00001230  0x0000069f call  0x000055b5 
- 00001231  0x000006a1 call  0x0000611a 
- 00001232  0x000006a2 call  0x00000239 
- 00001233  0x000006a6 branch  0x000054e2 
- 00001234  0x000006a8 rtnmark0  0x00000026 
- 00001235  0x000006a9 call  0x00005601 
- 00001236  0x000006aa nrtn  0x00000028 
- 00001237  0x000006ab fetch  0x00000001 , 0x0000477c 
- 00001238  0x000006ac jam  0x00000000 , 0x0000477c 
- 00001239  0x000006ad ncall  0x000004e7 , 0x00000034 
- 00001240  0x000006af fetch  0x00000008 , 0x00004713 
- 00001241  0x000006b0 bbit0  0x00000016 , 0x000004dc 
- 00001242  0x000006b1 fetch  0x00000001 , 0x0000496c 
- 00001243  0x000006b2 nbranch  0x000060b6 , 0x00000034 
- 00001244  0x000006b4 call  0x000004de 
- 00001245  0x000006b5 branch  0x000060a2 
- 00001246  0x000006b8 fetch  0x00000001 , 0x00004659 
- 00001247  0x000006b9 rtnne  0x000000ff 
- 00001248  0x000006ba fetch  0x00000001 , 0x0000477d 
- 00001249  0x000006bb rtn  0x00000034 
- 00001250  0x000006bc increase  0xffffffff , 0x0000003f 
- 00001251  0x000006bd store  0x00000001 , 0x0000477d 
- 00001252  0x000006be setarg  0x00000000 
- 00001253  0x000006bf store  0x00000004 , 0x00004847 
- 00001254  0x000006c0 branch  0x00005a73 
- 00001255  0x000006c3 call  0x000004b9 
- 00001256  0x000006c4 branch  0x00000258 
- 00001257  0x000006c7 fetch  0x00000008 , 0x00004713 
- 00001258  0x000006c8 rtnbit0  0x0000002a 
- 00001259  0x000006c9 bbit0  0x0000003f , 0x000004f6 
- 00001260  0x000006cb call  0x000004f8 
- 00001261  0x000006cc call  0x000004f2 
- 00001262  0x000006ce fetcht  0x00000001 , 0x0000465a 
- 00001263  0x000006cf call  0x00006ef3 
- 00001264  0x000006d0 fetcht  0x00000001 , 0x0000465a 
- 00001265  0x000006d1 branch  0x000055b5 
- 00001266  0x000006d4 fetcht  0x00000001 , 0x0000465a 
- 00001267  0x000006d5 call  0x00006ee6 
- 00001268  0x000006d6 nbranch  0x00005ec2 , 0x00000001 
- 00001269  0x000006d7 branch  0x00005ebe 
- 00001270  0x000006da call  0x000004ee 
- 00001271  0x000006db call  0x00005ebb 
- 00001272  0x000006dd fetcht  0x00000001 , 0x0000465a 
- 00001273  0x000006de call  0x00006ef7 
- 00001274  0x000006df fetcht  0x00000001 , 0x0000465a 
- 00001275  0x000006e0 branch  0x000055b1 
- 00001276  0x000006e3 call  0x00005958 
- 00001277  0x000006e4 beq  0x00000030 , 0x0000595f 
- 00001278  0x000006e5 beq  0x00000031 , 0x000059c6 
- 00001279  0x000006e6 beq  0x00000058 , 0x00000501 
- 00001280  0x000006e7 branch  0x00005952 
- 00001281  0x000006ea call  0x000059e7 
- 00001282  0x000006eb fetch  0x00000001 , 0x0000485a 
- 00001283  0x000006ec beq  0x00000059 , 0x00000505 
- 00001284  0x000006ed branch  0x0000595f 
- 00001285  0x000006ef jam  0x0000000b , 0x00004957 
- 00001286  0x000006f0 arg  0x00004a0b , 0x00000013 
- 00001287  0x000006f1 branch  0x00005995 
- 00001288  0x000006f4 fetch  0x00000001 , 0x00004420 
- 00001289  0x000006f5 rtnne  0x00000000 
- 00001290  0x000006f6 fetch  0x00000001 , 0x00004957 
- 00001291  0x000006f7 beq  0x0000000b , 0x0000050d 
- 00001292  0x000006f8 branch  0x000059f8 
- 00001293  0x000006fb call  0x00005a6d 
- 00001294  0x000006fc fetch  0x00000001 , 0x00004659 
- 00001295  0x000006fd beq  0x000000ff , 0x00000513 
- 00001296  0x000006fe fetcht  0x00000001 , 0x00004659 
- 00001297  0x000006ff call  0x00006ee6 
- 00001298  0x00000700 nrtn  0x00000001 
- 00001299  0x00000702 setarg  0x00000000 
- 00001300  0x00000703 call  0x000069e5 
- 00001301  0x00000704 bne  0x00000058 , 0x00005955 
- 00001302  0x00000705 branch  0x00005a2f 
- 00001303  0x00000708 disable  0x00000028 
- 00001304  0x00000709 setarg  0x00000000 
- 00001305  0x0000070a store  0x00000006 , 0x00004847 
- 00001306  0x0000070b call  0x00000508 
- 00001307  0x0000070c setarg  0x00000089 
- 00001308  0x0000070d call  0x000069e4 
- 00001309  0x0000070e call  0x00005747 
- 00001310  0x0000070f call  0x00005612 
- 00001311  0x00000710 call  0x00005617 
- 00001312  0x00000711 call  0x00000525 
- 00001313  0x00000712 branch  0x0000560c 
- 00001314  0x00000715 fetch  0x00000001 , 0x00004957 
- 00001315  0x00000716 rtneq  0x0000000b 
- 00001316  0x00000717 branch  0x00005f27 
- 00001317  0x0000071a call  0x0000584c 
- 00001318  0x0000071b fetch  0x00000001 , 0x00004987 
- 00001319  0x0000071c nbranch  0x00005860 , 0x00000034 
- 00001320  0x0000071d fetch  0x00000001 , 0x00004982 
- 00001321  0x0000071e nbranch  0x0000585f , 0x00000034 
- 00001322  0x00000720 call  0x00005888 
- 00001323  0x00000721 call  0x0000052d 
- 00001324  0x00000722 branch  0x000057ad 
- 00001325  0x00000725 jam  0x00000000 , 0x00004979 
- 00001326  0x00000726 jam  0x00000000 , 0x0000497a 
- 00001327  0x00000727 jam  0x00000000 , 0x0000497b 
- 00001328  0x00000728 copy  0x0000003f , 0x00000012 
- 00001329  0x00000729 fetcht  0x00000001 , 0x00004644 
- 00001330  0x0000072a fetch  0x00000001 , 0x00004647 
- 00001331  0x0000072b isub  0x00000002 , 0x0000003e 
- 00001332  0x0000072c branch  0x0000053f , 0x00000005 
- 00001333  0x0000072d fetch  0x00000001 , 0x00004648 
- 00001334  0x0000072e isub  0x00000002 , 0x0000003e 
- 00001335  0x0000072f branch  0x00000545 , 0x00000005 
- 00001336  0x00000730 fetcht  0x00000001 , 0x00004645 
- 00001337  0x00000731 fetch  0x00000001 , 0x00004647 
- 00001338  0x00000732 isub  0x00000002 , 0x0000003e 
- 00001339  0x00000733 branch  0x0000054e , 0x00000005 
- 00001340  0x00000735 call  0x000057fb 
- 00001341  0x00000737 call  0x00000553 
- 00001342  0x00000738 branch  0x000057e5 
- 00001343  0x0000073b fetcht  0x00000001 , 0x00004645 
- 00001344  0x0000073c fetch  0x00000001 , 0x00004648 
- 00001345  0x0000073d isub  0x00000002 , 0x0000003e 
- 00001346  0x0000073e branch  0x000057d6 , 0x00000005 
- 00001347  0x00000740 call  0x000057ef 
- 00001348  0x00000741 branch  0x0000054f 
- 00001349  0x00000744 fetcht  0x00000001 , 0x00004645 
- 00001350  0x00000745 fetch  0x00000001 , 0x00004647 
- 00001351  0x00000746 isub  0x00000002 , 0x0000003e 
- 00001352  0x00000747 branch  0x0000054b , 0x00000005 
- 00001353  0x00000749 call  0x00000555 
- 00001354  0x0000074a branch  0x0000053d 
- 00001355  0x0000074d call  0x00000555 
- 00001356  0x0000074e call  0x00000551 
- 00001357  0x0000074f branch  0x000057e5 
- 00001358  0x00000752 call  0x00000551 
- 00001359  0x00000754 call  0x00000557 
- 00001360  0x00000755 branch  0x000057e5 
- 00001361  0x00000758 and  0x00000012 , 0x00000012 , 0x0000003f 
- 00001362  0x00000759 branch  0x000057f3 
- 00001363  0x0000075c and  0x00000012 , 0x0000000a , 0x0000003f 
- 00001364  0x0000075d branch  0x000057f6 
- 00001365  0x00000760 and  0x00000012 , 0x00000011 , 0x0000003f 
- 00001366  0x00000761 branch  0x000057f9 
- 00001367  0x00000764 and  0x00000012 , 0x00000012 , 0x0000003f 
- 00001368  0x00000765 branch  0x000057ff 
- 00001369  0x00000768 fetch  0x00000001 , 0x00004666 
- 00001370  0x00000769 beq  0x00000000 , 0x0000055e 
- 00001371  0x0000076a beq  0x00000001 , 0x00000562 
- 00001372  0x0000076b beq  0x00000002 , 0x00000566 
- 00001373  0x0000076c rtn 
- 00001374  0x0000076e fetcht  0x00000001 , 0x0000465d 
- 00001375  0x0000076f fetch  0x00000008 , 0x00004713 
- 00001376  0x00000770 bbit0  0x00000020 , 0x000061e5 
- 00001377  0x00000771 branch  0x00006f0b 
- 00001378  0x00000773 fetcht  0x00000001 , 0x0000465e 
- 00001379  0x00000774 fetch  0x00000008 , 0x00004713 
- 00001380  0x00000775 bbit0  0x00000020 , 0x000061e5 
- 00001381  0x00000776 branch  0x00006f0b 
- 00001382  0x00000778 fetcht  0x00000001 , 0x0000465f 
- 00001383  0x00000779 fetch  0x00000008 , 0x00004713 
- 00001384  0x0000077a bbit0  0x00000020 , 0x000061e5 
- 00001385  0x0000077b branch  0x00006f0b 
+ 00001190  0x00000654 branch  0x000004b8 
+ 00001191  0x00000657 fetch  0x00000001 , 0x0000473f 
+ 00001192  0x00000658 ncall  0x00005895 , 0x00000034 
+ 00001193  0x00000659 arg  0x00000000 , 0x00000011 
+ 00001194  0x0000065a call  0x00005898 
+ 00001195  0x0000065b call  0x000058a1 
+ 00001196  0x0000065d call  0x000004ae 
+ 00001197  0x0000065e branch  0x0000588f 
+ 00001198  0x00000661 fetcht  0x00000001 , 0x00004645 
+ 00001199  0x00000662 call  0x00005946 
+ 00001200  0x00000663 jam  0x00000002 , 0x00004977 
+ 00001201  0x00000664 fetch  0x00000001 , 0x00004971 
+ 00001202  0x00000665 copy  0x0000003f , 0x00000013 
+ 00001203  0x00000666 fetcht  0x00000001 , 0x00004645 
+ 00001204  0x00000667 call  0x00005931 
+ 00001205  0x00000668 store  0x00000001 , 0x00004971 
+ 00001206  0x00000669 fetcht  0x00000001 , 0x00004645 
+ 00001207  0x0000066a branch  0x000055b5 
+ 00001208  0x0000066d copy  0x00000013 , 0x0000003f 
+ 00001209  0x0000066e store  0x00000001 , 0x00004978 
+ 00001210  0x0000066f lshift  0x0000003f , 0x0000003f 
+ 00001211  0x00000670 copy  0x0000003f , 0x00000012 
+ 00001212  0x00000671 copy  0x00000002 , 0x00000013 
+ 00001213  0x00000672 call  0x00006ef7 
+ 00001214  0x00000673 copy  0x00000013 , 0x00000002 
+ 00001215  0x00000674 call  0x000055b1 
+ 00001216  0x00000675 copy  0x00000013 , 0x00000002 
+ 00001217  0x00000676 call  0x00006ee6 
+ 00001218  0x00000677 nsetflag  0x00000001 , 0x00000000 , 0x00000012 
+ 00001219  0x00000678 call  0x0000593d 
+ 00001220  0x00000679 branch  0x00005929 
+ 00001221  0x0000067c call  0x000036b4 
+ 00001222  0x0000067d nrtn  0x00000028 
+ 00001223  0x0000067e call  0x000036be 
+ 00001224  0x0000067f call  0x000004ca 
+ 00001225  0x00000680 branch  0x0000361b 
+ 00001226  0x00000684 setarg  0x00000000 
+ 00001227  0x00000685 store  0x00000008 , 0x00000016 
+ 00001228  0x00000686 store  0x00000004 , 0x0000001e 
+ 00001229  0x00000687 rtn 
+ 00001230  0x0000068a jam  0x00000000 , 0x00004600 
+ 00001231  0x0000068b call  0x00003647 
+ 00001232  0x0000068c setarg  0xffffffff 
+ 00001233  0x0000068d store  0x00000004 , 0x000045af 
+ 00001234  0x0000068e setarg  0x00000000 
+ 00001235  0x0000068f store  0x00000007 , 0x00004846 
+ 00001236  0x00000690 jam  0x00000001 , 0x0000473f 
+ 00001237  0x00000691 call  0x000059ed 
+ 00001238  0x00000693 branch  0x0000622b 
+ 00001239  0x00000696 call  0x00005a92 
+ 00001240  0x00000697 call  0x000004ca 
+ 00001241  0x00000698 call  0x000056a9 
+ 00001242  0x00000699 fetch  0x00000001 , 0x0000464d 
+ 00001243  0x0000069a call  0x00005943 
+ 00001244  0x0000069c fetcht  0x00000001 , 0x0000465a 
+ 00001245  0x0000069d call  0x000055ab 
+ 00001246  0x0000069e arg  0x00000009 , 0x00000002 
+ 00001247  0x0000069f call  0x000055b5 
+ 00001248  0x000006a1 call  0x0000611a 
+ 00001249  0x000006a2 call  0x00000239 
+ 00001250  0x000006a6 branch  0x000054e2 
+ 00001251  0x000006a8 rtnmark0  0x00000026 
+ 00001252  0x000006a9 call  0x00005601 
+ 00001253  0x000006aa nrtn  0x00000028 
+ 00001254  0x000006ab fetch  0x00000001 , 0x0000477c 
+ 00001255  0x000006ac jam  0x00000000 , 0x0000477c 
+ 00001256  0x000006ad ncall  0x000004f8 , 0x00000034 
+ 00001257  0x000006af fetch  0x00000008 , 0x00004713 
+ 00001258  0x000006b0 bbit0  0x00000016 , 0x000004ed 
+ 00001259  0x000006b1 fetch  0x00000001 , 0x0000496c 
+ 00001260  0x000006b2 nbranch  0x000060b6 , 0x00000034 
+ 00001261  0x000006b4 call  0x000004ef 
+ 00001262  0x000006b5 branch  0x000060a2 
+ 00001263  0x000006b8 fetch  0x00000001 , 0x00004659 
+ 00001264  0x000006b9 rtnne  0x000000ff 
+ 00001265  0x000006ba fetch  0x00000001 , 0x0000477d 
+ 00001266  0x000006bb rtn  0x00000034 
+ 00001267  0x000006bc increase  0xffffffff , 0x0000003f 
+ 00001268  0x000006bd store  0x00000001 , 0x0000477d 
+ 00001269  0x000006be setarg  0x00000000 
+ 00001270  0x000006bf store  0x00000004 , 0x00004847 
+ 00001271  0x000006c0 branch  0x00005a73 
+ 00001272  0x000006c3 call  0x000004ca 
+ 00001273  0x000006c4 branch  0x00000258 
+ 00001274  0x000006c7 fetch  0x00000008 , 0x00004713 
+ 00001275  0x000006c8 rtnbit0  0x0000002a 
+ 00001276  0x000006c9 bbit0  0x0000003f , 0x00000507 
+ 00001277  0x000006cb call  0x00000509 
+ 00001278  0x000006cc call  0x00000503 
+ 00001279  0x000006ce fetcht  0x00000001 , 0x0000465a 
+ 00001280  0x000006cf call  0x00006ef3 
+ 00001281  0x000006d0 fetcht  0x00000001 , 0x0000465a 
+ 00001282  0x000006d1 branch  0x000055b5 
+ 00001283  0x000006d4 fetcht  0x00000001 , 0x0000465a 
+ 00001284  0x000006d5 call  0x00006ee6 
+ 00001285  0x000006d6 nbranch  0x00005ec2 , 0x00000001 
+ 00001286  0x000006d7 branch  0x00005ebe 
+ 00001287  0x000006da call  0x000004ff 
+ 00001288  0x000006db call  0x00005ebb 
+ 00001289  0x000006dd fetcht  0x00000001 , 0x0000465a 
+ 00001290  0x000006de call  0x00006ef7 
+ 00001291  0x000006df fetcht  0x00000001 , 0x0000465a 
+ 00001292  0x000006e0 branch  0x000055b1 
+ 00001293  0x000006e3 call  0x00005958 
+ 00001294  0x000006e4 beq  0x00000030 , 0x0000595f 
+ 00001295  0x000006e5 beq  0x00000031 , 0x000059c6 
+ 00001296  0x000006e6 beq  0x00000058 , 0x00000512 
+ 00001297  0x000006e7 branch  0x00005952 
+ 00001298  0x000006ea call  0x000059e7 
+ 00001299  0x000006eb fetch  0x00000001 , 0x0000485a 
+ 00001300  0x000006ec beq  0x00000059 , 0x00000516 
+ 00001301  0x000006ed branch  0x0000595f 
+ 00001302  0x000006ef jam  0x0000000b , 0x00004957 
+ 00001303  0x000006f0 arg  0x00004a0b , 0x00000013 
+ 00001304  0x000006f1 branch  0x00005995 
+ 00001305  0x000006f4 fetch  0x00000001 , 0x00004420 
+ 00001306  0x000006f5 rtnne  0x00000000 
+ 00001307  0x000006f6 fetch  0x00000001 , 0x00004957 
+ 00001308  0x000006f7 beq  0x0000000b , 0x0000051e 
+ 00001309  0x000006f8 branch  0x000059f8 
+ 00001310  0x000006fb call  0x00005a6d 
+ 00001311  0x000006fc fetch  0x00000001 , 0x00004659 
+ 00001312  0x000006fd beq  0x000000ff , 0x00000524 
+ 00001313  0x000006fe fetcht  0x00000001 , 0x00004659 
+ 00001314  0x000006ff call  0x00006ee6 
+ 00001315  0x00000700 nrtn  0x00000001 
+ 00001316  0x00000702 setarg  0x00000000 
+ 00001317  0x00000703 call  0x000069e5 
+ 00001318  0x00000704 bne  0x00000058 , 0x00005955 
+ 00001319  0x00000705 branch  0x00005a2f 
+ 00001320  0x00000708 disable  0x00000028 
+ 00001321  0x00000709 setarg  0x00000000 
+ 00001322  0x0000070a store  0x00000006 , 0x00004847 
+ 00001323  0x0000070b call  0x00000519 
+ 00001324  0x0000070c setarg  0x00000089 
+ 00001325  0x0000070d call  0x000069e4 
+ 00001326  0x0000070e call  0x00005747 
+ 00001327  0x0000070f call  0x00005612 
+ 00001328  0x00000710 call  0x00005617 
+ 00001329  0x00000711 call  0x00000536 
+ 00001330  0x00000712 branch  0x0000560c 
+ 00001331  0x00000715 fetch  0x00000001 , 0x00004957 
+ 00001332  0x00000716 rtneq  0x0000000b 
+ 00001333  0x00000717 branch  0x00005f27 
+ 00001334  0x0000071a call  0x0000584c 
+ 00001335  0x0000071b fetch  0x00000001 , 0x00004987 
+ 00001336  0x0000071c nbranch  0x00005860 , 0x00000034 
+ 00001337  0x0000071d fetch  0x00000001 , 0x00004982 
+ 00001338  0x0000071e nbranch  0x0000585f , 0x00000034 
+ 00001339  0x00000720 call  0x00005888 
+ 00001340  0x00000721 call  0x0000053e 
+ 00001341  0x00000722 branch  0x000057ad 
+ 00001342  0x00000725 jam  0x00000000 , 0x00004979 
+ 00001343  0x00000726 jam  0x00000000 , 0x0000497a 
+ 00001344  0x00000727 jam  0x00000000 , 0x0000497b 
+ 00001345  0x00000728 copy  0x0000003f , 0x00000012 
+ 00001346  0x00000729 fetcht  0x00000001 , 0x00004644 
+ 00001347  0x0000072a fetch  0x00000001 , 0x00004647 
+ 00001348  0x0000072b isub  0x00000002 , 0x0000003e 
+ 00001349  0x0000072c branch  0x00000550 , 0x00000005 
+ 00001350  0x0000072d fetch  0x00000001 , 0x00004648 
+ 00001351  0x0000072e isub  0x00000002 , 0x0000003e 
+ 00001352  0x0000072f branch  0x00000556 , 0x00000005 
+ 00001353  0x00000730 fetcht  0x00000001 , 0x00004645 
+ 00001354  0x00000731 fetch  0x00000001 , 0x00004647 
+ 00001355  0x00000732 isub  0x00000002 , 0x0000003e 
+ 00001356  0x00000733 branch  0x0000055f , 0x00000005 
+ 00001357  0x00000735 call  0x000057fb 
+ 00001358  0x00000737 call  0x00000564 
+ 00001359  0x00000738 branch  0x000057e5 
+ 00001360  0x0000073b fetcht  0x00000001 , 0x00004645 
+ 00001361  0x0000073c fetch  0x00000001 , 0x00004648 
+ 00001362  0x0000073d isub  0x00000002 , 0x0000003e 
+ 00001363  0x0000073e branch  0x000057d6 , 0x00000005 
+ 00001364  0x00000740 call  0x000057ef 
+ 00001365  0x00000741 branch  0x00000560 
+ 00001366  0x00000744 fetcht  0x00000001 , 0x00004645 
+ 00001367  0x00000745 fetch  0x00000001 , 0x00004647 
+ 00001368  0x00000746 isub  0x00000002 , 0x0000003e 
+ 00001369  0x00000747 branch  0x0000055c , 0x00000005 
+ 00001370  0x00000749 call  0x00000566 
+ 00001371  0x0000074a branch  0x0000054e 
+ 00001372  0x0000074d call  0x00000566 
+ 00001373  0x0000074e call  0x00000562 
+ 00001374  0x0000074f branch  0x000057e5 
+ 00001375  0x00000752 call  0x00000562 
+ 00001376  0x00000754 call  0x00000568 
+ 00001377  0x00000755 branch  0x000057e5 
+ 00001378  0x00000758 and  0x00000012 , 0x00000012 , 0x0000003f 
+ 00001379  0x00000759 branch  0x000057f3 
+ 00001380  0x0000075c and  0x00000012 , 0x0000000a , 0x0000003f 
+ 00001381  0x0000075d branch  0x000057f6 
+ 00001382  0x00000760 and  0x00000012 , 0x00000011 , 0x0000003f 
+ 00001383  0x00000761 branch  0x000057f9 
+ 00001384  0x00000764 and  0x00000012 , 0x00000012 , 0x0000003f 
+ 00001385  0x00000765 branch  0x000057ff 
  00008192  0x00000784 call  0x00002385 
  00008193  0x00000787 bpatch  0x00000000 , 0x00004000 
  00008194  0x00000788 clear_stack 
Index: output/bt_program23.list
===================================================================
--- /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/bt_program23.list	(revision 3320)
+++ /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/bt_program23.list	(working copy)
@@ -22,23 +22,23 @@
 0x13 000056 beq patch0e_3 ,p_mouse_setgpio_hibernate 
 0x14 000057 beq patch0e_4 ,p_mouse_lpm_before_common 
 0x15 000058 beq patch0f_2 ,p_mouse_motion 
-0x16 000060 beq patch0f_7 ,p_mouse_3io6key_check 
-0x17 000061 beq patch10_1 ,p_mouse_init_sensor 
-0x18 000062 beq patch10_4 ,p_mouse_buletooth_fast_conn_end 
-0x19 000063 beq patch10_5 ,p_mouse_priority_bb_event 
-0x1a 000064 beq patch10_6 ,p_mouse_le 
-0x1b 000065 beq patch10_7 ,p_mouse_bb_event_timer 
-0x1c 000066 beq patch11_0 ,p_mouse_start_discovery 
-0x1d 000067 beq patch11_2 ,p_mouse_store_remote_bdaddr 
-0x1e 000068 beq patch11_3 ,p_mouse_app_initflag_check 
-0x1f 000069 beq patch11_4 ,p_mouse_store_device_info 
-0x20 000070 beq patch11_5 ,p_mouse_store_dpi_info_check 
-0x21 000071 beq patch11_6 ,p_mouse_idle 
-0x22 000072 beq patch12_0 ,p_mouse_check_select_device_by_switch 
-0x23 000073 beq patch12_3 ,p_mouse_drawing_optima 
-0x24 000074 beq patch12_5 ,p_mouse_24g_hibernate_set 
-0x25 000075 beq patch12_6 ,p_mouse_24g_package_data 
-0x26 000076 beq patch13_5 ,p_mouse_device_led_off 
+0x16 000059 beq patch0f_6 ,p_mouse_check_key_gpio 
+0x17 000060 beq patch0f_7 ,p_mouse_3io6key_check 
+0x18 000061 beq patch10_1 ,p_mouse_init_sensor 
+0x19 000062 beq patch10_4 ,p_mouse_buletooth_fast_conn_end 
+0x1a 000063 beq patch10_5 ,p_mouse_priority_bb_event 
+0x1b 000064 beq patch10_6 ,p_mouse_le 
+0x1c 000065 beq patch10_7 ,p_mouse_bb_event_timer 
+0x1d 000066 beq patch11_0 ,p_mouse_start_discovery 
+0x1e 000067 beq patch11_2 ,p_mouse_store_remote_bdaddr 
+0x1f 000068 beq patch11_3 ,p_mouse_app_initflag_check 
+0x20 000069 beq patch11_4 ,p_mouse_store_device_info 
+0x21 000070 beq patch11_5 ,p_mouse_store_dpi_info_check 
+0x22 000071 beq patch11_6 ,p_mouse_idle 
+0x23 000072 beq patch12_0 ,p_mouse_check_select_device_by_switch 
+0x24 000073 beq patch12_3 ,p_mouse_drawing_optima 
+0x25 000074 beq patch12_5 ,p_mouse_24g_hibernate_set 
+0x26 000075 beq patch12_6 ,p_mouse_24g_package_data 
 0x27 000078 beq patch18_5 ,p_otp_read_data 
 0x28 000079 beq patch1a_5 ,p_gpio_set_wake_by_current_state 
 0x29 000080 beq patch1a_6 ,p_gpio_set_wake 
@@ -1379,243 +1379,241 @@
 0x4a4 001618 call mouse_gpio_config_output_low 
 0x4a5 001619 fetcht 1 ,mem_dpi_button_gpio 
 0x4a6 001620 branch p_mouse_3io6key_check 
+:      001622 p_mouse_check_key_gpio:
+0x4a7 001623 fetch 1 ,mem_sensor_shutdown_flag 
+0x4a8 001624 ncall mouse_check_key_gpio_once ,blank 
+0x4a9 001625 arg 0 ,rega 
+0x4aa 001626 call mouse_check_lkey_gpio 
+0x4ab 001627 call mouse_check_rkey_gpio 
+0x4ac 001629 call p_mouse_check_mkey_gpio 
+0x4ad 001630 branch mouse_check_key_gpio + 7 
+:      001632 p_mouse_check_mkey_gpio:
+0x4ae 001633 fetcht 1 ,mem_mbutton_gpio 
+0x4af 001634 call mouse_gpio_config_output_low 
+0x4b0 001635 jam mouse_m_key ,mem_mouse_key_temp 
+0x4b1 001636 fetch 1 ,mem_mouse_mkey_press_status 
+0x4b2 001637 copy pdata ,regc 
+0x4b3 001638 fetcht 1 ,mem_mbutton_gpio 
+0x4b4 001639 call mouse_3io6key_check 
+0x4b5 001640 store 1 ,mem_mouse_mkey_press_status 
+0x4b6 001641 fetcht 1 ,mem_mbutton_gpio 
+0x4b7 001642 branch mouse_gpio_config_input_pu 
 :      001644 p_mouse_3io6key_check:
-0x4a7 001645 copy regc ,pdata 
-0x4a8 001646 store 1 ,mem_mouse_key_status 
-0x4a9 001647 lshift pdata ,pdata 
-0x4aa 001648 copy pdata ,regb 
-0x4ab 001649 copy temp ,regc 
-0x4ac 001650 call gpio_out_active 
-0x4ad 001651 copy regc ,temp 
-0x4ae 001652 call mouse_gpio_config_input_pd 
-0x4af 001653 copy regc ,temp 
-0x4b0 001654 call gpio_get_bit 
-0x4b1 001655 nsetflag true ,0 ,regb 
-0x4b2 001656 call mouse_check_press 
-0x4b3 001657 branch mouse_check_key_connect_gnd_1 
+0x4b8 001645 copy regc ,pdata 
+0x4b9 001646 store 1 ,mem_mouse_key_status 
+0x4ba 001647 lshift pdata ,pdata 
+0x4bb 001648 copy pdata ,regb 
+0x4bc 001649 copy temp ,regc 
+0x4bd 001650 call gpio_out_active 
+0x4be 001651 copy regc ,temp 
+0x4bf 001652 call mouse_gpio_config_input_pd 
+0x4c0 001653 copy regc ,temp 
+0x4c1 001654 call gpio_get_bit 
+0x4c2 001655 nsetflag true ,0 ,regb 
+0x4c3 001656 call mouse_check_press 
+0x4c4 001657 branch mouse_check_key_connect_gnd_1 
 :      001659 p_g24_short_sleep:
-0x4b4 001660 call g24_lpm_wait 
-0x4b5 001661 nrtn user 
-0x4b6 001662 call g24_setgpio_lpm_before 
-0x4b7 001663 call p_clear_wake 
-0x4b8 001664 branch g24_short_sleep_next 
+0x4c5 001660 call g24_lpm_wait 
+0x4c6 001661 nrtn user 
+0x4c7 001662 call g24_setgpio_lpm_before 
+0x4c8 001663 call p_clear_wake 
+0x4c9 001664 branch g24_short_sleep_next 
 :      001667 p_clear_wake:
-0x4b9 001668 setarg 0 
-0x4ba 001669 store 8 ,mem_gpio_wakeup_cfg 
-0x4bb 001670 store 4 ,mem_gpio_wakeup_cfg + 8 
-0x4bc 001671 rtn 
+0x4ca 001668 setarg 0 
+0x4cb 001669 store 8 ,mem_gpio_wakeup_cfg 
+0x4cc 001670 store 4 ,mem_gpio_wakeup_cfg + 8 
+0x4cd 001671 rtn 
 :      001673 p_mouse_24g_hibernate_set:
-0x4bd 001674 jam 0 ,mem_24g_attempt_fail_flag 
-0x4be 001675 call g24_transmit_next_packet 
-0x4bf 001676 setarg -1 
-0x4c0 001677 store 4 ,mem_24g_enter_hibernate 
-0x4c1 001678 setarg 0 
-0x4c2 001679 store 7 ,mem_mouse_key 
-0x4c3 001680 jam 1 ,mem_sensor_shutdown_flag 
-0x4c4 001681 call mouse_sensor_powerdown 
-0x4c5 001683 branch mouse_24g_long_sleep 
+0x4ce 001674 jam 0 ,mem_24g_attempt_fail_flag 
+0x4cf 001675 call g24_transmit_next_packet 
+0x4d0 001676 setarg -1 
+0x4d1 001677 store 4 ,mem_24g_enter_hibernate 
+0x4d2 001678 setarg 0 
+0x4d3 001679 store 7 ,mem_mouse_key 
+0x4d4 001680 jam 1 ,mem_sensor_shutdown_flag 
+0x4d5 001681 call mouse_sensor_powerdown 
+0x4d6 001683 branch mouse_24g_long_sleep 
 :      001685 p_mouse_setgpio_hibernate:
-0x4c6 001686 call mouse_set_sdio_high 
-0x4c7 001687 call p_clear_wake 
-0x4c8 001688 call mouse_before_hibernate_wheel_gpio_set 
-0x4c9 001689 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-0x4ca 001690 call mouse_gpio_config_output_high 
-0x4cb 001692 fetcht 1 ,mem_device_switch_gpio 
-0x4cc 001693 call mouse_gpio_set_pupd_by_input 
-0x4cd 001694 arg 09 ,temp 
-0x4ce 001695 call mouse_gpio_config_input_pu 
-0x4cf 001697 call mouse_logo_led_off 
-0x4d0 001698 call p_mouse_lpm_before_common 
-0x4d1 001702 branch mouse_setgpio_hibernate_next 
+0x4d7 001686 call mouse_set_sdio_high 
+0x4d8 001687 call p_clear_wake 
+0x4d9 001688 call mouse_before_hibernate_wheel_gpio_set 
+0x4da 001689 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+0x4db 001690 call mouse_gpio_config_output_high 
+0x4dc 001692 fetcht 1 ,mem_device_switch_gpio 
+0x4dd 001693 call mouse_gpio_set_pupd_by_input 
+0x4de 001694 arg 09 ,temp 
+0x4df 001695 call mouse_gpio_config_input_pu 
+0x4e0 001697 call mouse_logo_led_off 
+0x4e1 001698 call p_mouse_lpm_before_common 
+0x4e2 001702 branch mouse_setgpio_hibernate_next 
 :      001703 p_mouse_24g_package_data:
-0x4d2 001704 rtnmark0 mark_24g 
-0x4d3 001705 call mouse_motion 
-0x4d4 001706 nrtn user 
-0x4d5 001707 fetch 1 ,mem_mouse_24g_long_sleep_flag 
-0x4d6 001708 jam 0 ,mem_mouse_24g_long_sleep_flag 
-0x4d7 001709 ncall p_mouse_24g_short_sleep_clear_wake ,blank 
-0x4d8 001711 fetch mouse_flag_len ,mem_mouse_flag 
-0x4d9 001712 bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
-0x4da 001713 fetch 1 ,mem_customer_key 
-0x4db 001714 nbranch mouse_24g_keyboard_package_data ,blank 
+0x4e3 001704 rtnmark0 mark_24g 
+0x4e4 001705 call mouse_motion 
+0x4e5 001706 nrtn user 
+0x4e6 001707 fetch 1 ,mem_mouse_24g_long_sleep_flag 
+0x4e7 001708 jam 0 ,mem_mouse_24g_long_sleep_flag 
+0x4e8 001709 ncall p_mouse_24g_short_sleep_clear_wake ,blank 
+0x4e9 001711 fetch mouse_flag_len ,mem_mouse_flag 
+0x4ea 001712 bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
+0x4eb 001713 fetch 1 ,mem_customer_key 
+0x4ec 001714 nbranch mouse_24g_keyboard_package_data ,blank 
 :      001715 p_mouse_24g_mouse_package_data:
-0x4dc 001716 call p_mouse_data_xy_release 
-0x4dd 001717 branch mouse_24g_mouse_package_data + 1 
+0x4ed 001716 call p_mouse_data_xy_release 
+0x4ee 001717 branch mouse_24g_mouse_package_data + 1 
 :      001719 p_mouse_data_xy_release:
-0x4de 001720 fetch 1 ,mem_sensor_motion_gpio 
-0x4df 001721 rtnne gpio_disable 
-0x4e0 001722 fetch 1 ,mem_mouse_long_mult_flag 
-0x4e1 001723 rtn blank 
-0x4e2 001724 increase -1 ,pdata 
-0x4e3 001725 store 1 ,mem_mouse_long_mult_flag 
-0x4e4 001726 setarg 0 
-0x4e5 001727 store 4 ,mem_mouse_x 
-0x4e6 001728 branch mouse_init_sensor_reset 
+0x4ef 001720 fetch 1 ,mem_sensor_motion_gpio 
+0x4f0 001721 rtnne gpio_disable 
+0x4f1 001722 fetch 1 ,mem_mouse_long_mult_flag 
+0x4f2 001723 rtn blank 
+0x4f3 001724 increase -1 ,pdata 
+0x4f4 001725 store 1 ,mem_mouse_long_mult_flag 
+0x4f5 001726 setarg 0 
+0x4f6 001727 store 4 ,mem_mouse_x 
+0x4f7 001728 branch mouse_init_sensor_reset 
 :      001730 p_mouse_24g_short_sleep_clear_wake:
-0x4e7 001731 call p_clear_wake 
-0x4e8 001732 branch p_lpm_write_gpio_wakeup 
+0x4f8 001731 call p_clear_wake 
+0x4f9 001732 branch p_lpm_write_gpio_wakeup 
 :      001734 p_mouse_check_select_device_by_switch:
-0x4e9 001735 fetch mouse_flag_len ,mem_mouse_flag 
-0x4ea 001736 rtnbit0 mouse_enable_select_device_by_switch_gpio 
-0x4eb 001737 bbit0 mouse_enable_switch_gpio_connect_vin ,p_mouse_switch_gpio_connect_gnd 
+0x4fa 001735 fetch mouse_flag_len ,mem_mouse_flag 
+0x4fb 001736 rtnbit0 mouse_enable_select_device_by_switch_gpio 
+0x4fc 001737 bbit0 mouse_enable_switch_gpio_connect_vin ,p_mouse_switch_gpio_connect_gnd 
 :      001738 p_mouse_switch_gpio_connect_vin_check:
-0x4ec 001739 call p_mouse_switch_gpio_pd_set 
-0x4ed 001740 call p_mouse_switch_gpio_connect_vin 
+0x4fd 001739 call p_mouse_switch_gpio_pd_set 
+0x4fe 001740 call p_mouse_switch_gpio_connect_vin 
 :      001741 p_mouse_switch_gpio_pu_set:
-0x4ee 001742 fetcht 1 ,mem_device_switch_gpio 
-0x4ef 001743 call gpio_out_inactive 
-0x4f0 001744 fetcht 1 ,mem_device_switch_gpio 
-0x4f1 001745 branch mouse_gpio_config_input_pu 
+0x4ff 001742 fetcht 1 ,mem_device_switch_gpio 
+0x500 001743 call gpio_out_inactive 
+0x501 001744 fetcht 1 ,mem_device_switch_gpio 
+0x502 001745 branch mouse_gpio_config_input_pu 
 :      001747 p_mouse_switch_gpio_connect_vin:
-0x4f2 001748 fetcht 1 ,mem_device_switch_gpio 
-0x4f3 001749 call gpio_get_bit 
-0x4f4 001750 nbranch mouse_check_select_24g_device ,true 
-0x4f5 001751 branch mouse_select_btdevice 
+0x503 001748 fetcht 1 ,mem_device_switch_gpio 
+0x504 001749 call gpio_get_bit 
+0x505 001750 nbranch mouse_check_select_24g_device ,true 
+0x506 001751 branch mouse_select_btdevice 
 :      001753 p_mouse_switch_gpio_connect_gnd:
-0x4f6 001754 call p_mouse_switch_gpio_pu_set 
-0x4f7 001755 call mouse_switch_gpio_connect_gnd 
+0x507 001754 call p_mouse_switch_gpio_pu_set 
+0x508 001755 call mouse_switch_gpio_connect_gnd 
 :      001756 p_mouse_switch_gpio_pd_set:
-0x4f8 001757 fetcht 1 ,mem_device_switch_gpio 
-0x4f9 001758 call gpio_out_active 
-0x4fa 001759 fetcht 1 ,mem_device_switch_gpio 
-0x4fb 001760 branch mouse_gpio_config_input_pd 
+0x509 001757 fetcht 1 ,mem_device_switch_gpio 
+0x50a 001758 call gpio_out_active 
+0x50b 001759 fetcht 1 ,mem_device_switch_gpio 
+0x50c 001760 branch mouse_gpio_config_input_pd 
 :      001762 p_mouse_init_sensor:
-0x4fc 001763 call mouse_read_sensor_id 
-0x4fd 001764 beq p32xx_id1 ,mouse_init_p32xx_id2_judge 
-0x4fe 001765 beq p3065_id1 ,mouse_init_p3065 
-0x4ff 001766 beq pka8g2_id1 ,p_mouse_ka8g2_id2_judge 
-0x500 001767 branch mouse_init_sensor + 5 
+0x50d 001763 call mouse_read_sensor_id 
+0x50e 001764 beq p32xx_id1 ,mouse_init_p32xx_id2_judge 
+0x50f 001765 beq p3065_id1 ,mouse_init_p3065 
+0x510 001766 beq pka8g2_id1 ,p_mouse_ka8g2_id2_judge 
+0x511 001767 branch mouse_init_sensor + 5 
 :      001769 p_mouse_ka8g2_id2_judge:
-0x501 001770 call mouse_sensor_poweron 
-0x502 001771 fetch 1 ,mem_sensor_id2 
-0x503 001772 beq pka8g2_id2 ,p_mouse_ka8g2_init_param 
-0x504 001773 branch mouse_init_p32xx_id2_judge 
+0x512 001770 call mouse_sensor_poweron 
+0x513 001771 fetch 1 ,mem_sensor_id2 
+0x514 001772 beq pka8g2_id2 ,p_mouse_ka8g2_init_param 
+0x515 001773 branch mouse_init_p32xx_id2_judge 
 :      001774 p_mouse_ka8g2_init_param:
-0x505 001775 jam ka8g2 ,mem_config_sensor_type 
-0x506 001776 arg mem_sensor_ka8g2_init_new ,regc 
-0x507 001777 branch mouse_sensor_wr_seq 
+0x516 001775 jam ka8g2 ,mem_config_sensor_type 
+0x517 001776 arg mem_sensor_ka8g2_init_new ,regc 
+0x518 001777 branch mouse_sensor_wr_seq 
 :      001779 p_mouse_check_sensor_data:
-0x508 001780 fetch 1 ,mem_spi_write_flash_sm 
-0x509 001781 rtnne flash_sm_no_buys 
-0x50a 001782 fetch 1 ,mem_config_sensor_type 
-0x50b 001783 beq ka8g2 ,p_mouse_pka8g2_sensor_motion 
-0x50c 001784 branch mouse_check_sensor_data + 2 
+0x519 001780 fetch 1 ,mem_spi_write_flash_sm 
+0x51a 001781 rtnne flash_sm_no_buys 
+0x51b 001782 fetch 1 ,mem_config_sensor_type 
+0x51c 001783 beq ka8g2 ,p_mouse_pka8g2_sensor_motion 
+0x51d 001784 branch mouse_check_sensor_data + 2 
 :      001786 p_mouse_pka8g2_sensor_motion:
-0x50d 001787 call mouse_clear_sensor_data 
-0x50e 001788 fetch 1 ,mem_sensor_motion_gpio 
-0x50f 001789 beq gpio_disable ,p_mouse_pka8g2_sensor_motion_1 
-0x510 001790 fetcht 1 ,mem_sensor_motion_gpio 
-0x511 001791 call gpio_get_bit 
-0x512 001792 nrtn true 
+0x51e 001787 call mouse_clear_sensor_data 
+0x51f 001788 fetch 1 ,mem_sensor_motion_gpio 
+0x520 001789 beq gpio_disable ,p_mouse_pka8g2_sensor_motion_1 
+0x521 001790 fetcht 1 ,mem_sensor_motion_gpio 
+0x522 001791 call gpio_get_bit 
+0x523 001792 nrtn true 
 :      001793 p_mouse_pka8g2_sensor_motion_1:
-0x513 001794 setarg pan_reg_pid_l 
-0x514 001795 call twspi_read 
-0x515 001796 bne pka8g2_id1 ,mouse_twspi_reset 
-0x516 001797 branch mouse_p3212_sensor_motion_2 
+0x524 001794 setarg pan_reg_pid_l 
+0x525 001795 call twspi_read 
+0x526 001796 bne pka8g2_id1 ,mouse_twspi_reset 
+0x527 001797 branch mouse_p3212_sensor_motion_2 
 :      001799 p_mouse_motion:
-0x517 001800 disable user 
-0x518 001801 setarg 0 
-0x519 001802 store 6 ,mem_mouse_x 
-0x51a 001803 call p_mouse_check_sensor_data 
-0x51b 001804 setarg 0x0089 
-0x51c 001805 call twspi_write 
-0x51d 001806 call mouse_setting_sensor_type 
-0x51e 001807 call mouse_zwheel 
-0x51f 001808 call mouse_t_zwheel 
-0x520 001809 call p_mouse_key 
-0x521 001810 branch mouse_motion + 11 
+0x528 001800 disable user 
+0x529 001801 setarg 0 
+0x52a 001802 store 6 ,mem_mouse_x 
+0x52b 001803 call p_mouse_check_sensor_data 
+0x52c 001804 setarg 0x0089 
+0x52d 001805 call twspi_write 
+0x52e 001806 call mouse_setting_sensor_type 
+0x52f 001807 call mouse_zwheel 
+0x530 001808 call mouse_t_zwheel 
+0x531 001809 call p_mouse_key 
+0x532 001810 branch mouse_motion + 11 
 :      001812 p_mouse_drawing_optima:
-0x522 001813 fetch 1 ,mem_config_sensor_type 
-0x523 001814 rtneq ka8g2 
-0x524 001815 branch mouse_drawing_optima + 1 
+0x533 001813 fetch 1 ,mem_config_sensor_type 
+0x534 001814 rtneq ka8g2 
+0x535 001815 branch mouse_drawing_optima + 1 
 :      001817 p_mouse_key:
-0x525 001818 call mouse_check_firekey_gpio 
-0x526 001819 fetch 1 ,mem_fire_key_flag 
-0x527 001820 nbranch fire_key_press ,blank 
-0x528 001821 fetch 1 ,mem_fire_key_status 
-0x529 001822 nbranch fire_key_process ,blank 
-0x52a 001824 call mouse_check_key_gpio 
-0x52b 001825 call p_mouse_ghost_key_check 
-0x52c 001826 branch mouse_key + 7 
+0x536 001818 call mouse_check_firekey_gpio 
+0x537 001819 fetch 1 ,mem_fire_key_flag 
+0x538 001820 nbranch fire_key_press ,blank 
+0x539 001821 fetch 1 ,mem_fire_key_status 
+0x53a 001822 nbranch fire_key_process ,blank 
+0x53b 001824 call mouse_check_key_gpio 
+0x53c 001825 call p_mouse_ghost_key_check 
+0x53d 001826 branch mouse_key + 7 
 :      001828 p_mouse_ghost_key_check:
-0x52d 001829 jam 0 ,mem_mouse_matrix_key_cow_count 
-0x52e 001830 jam 0 ,mem_mouse_matrix_key_row_count 
-0x52f 001831 jam 0 ,mem_mouse_ghost_flag 
-0x530 001832 copy pdata ,regb 
-0x531 001833 fetcht 1 ,mem_lbutton_gpio 
-0x532 001834 fetch 1 ,mem_bk_button_gpio 
-0x533 001835 isub temp ,null 
-0x534 001836 branch p_mouse_matrix_ghost_key_l_bk ,zero 
-0x535 001837 fetch 1 ,mem_fw_button_gpio 
-0x536 001838 isub temp ,null 
-0x537 001839 branch p_mouse_matrix_ghost_key_l_fw ,zero 
-0x538 001840 fetcht 1 ,mem_mbutton_gpio 
-0x539 001841 fetch 1 ,mem_bk_button_gpio 
-0x53a 001842 isub temp ,null 
-0x53b 001843 branch p_mouse_ghost_key_mbk_rfw ,zero 
+0x53e 001829 jam 0 ,mem_mouse_matrix_key_cow_count 
+0x53f 001830 jam 0 ,mem_mouse_matrix_key_row_count 
+0x540 001831 jam 0 ,mem_mouse_ghost_flag 
+0x541 001832 copy pdata ,regb 
+0x542 001833 fetcht 1 ,mem_lbutton_gpio 
+0x543 001834 fetch 1 ,mem_bk_button_gpio 
+0x544 001835 isub temp ,null 
+0x545 001836 branch p_mouse_matrix_ghost_key_l_bk ,zero 
+0x546 001837 fetch 1 ,mem_fw_button_gpio 
+0x547 001838 isub temp ,null 
+0x548 001839 branch p_mouse_matrix_ghost_key_l_fw ,zero 
+0x549 001840 fetcht 1 ,mem_mbutton_gpio 
+0x54a 001841 fetch 1 ,mem_bk_button_gpio 
+0x54b 001842 isub temp ,null 
+0x54c 001843 branch p_mouse_ghost_key_mbk_rfw ,zero 
 :      001844 p_mouse_ghost_key_mfw_rbk:
-0x53c 001845 call mouse_ghost_key_check_m_fw 
+0x54d 001845 call mouse_ghost_key_check_m_fw 
 :      001846 p_mouse_ghost_key_rbk:
-0x53d 001847 call p_mouse_ghost_key_check_r_bk 
-0x53e 001848 branch mouse_ghost_key_check_next 
+0x54e 001847 call p_mouse_ghost_key_check_r_bk 
+0x54f 001848 branch mouse_ghost_key_check_next 
 :      001850 p_mouse_matrix_ghost_key_l_bk:
-0x53f 001851 fetcht 1 ,mem_mbutton_gpio 
-0x540 001852 fetch 1 ,mem_fw_button_gpio 
-0x541 001853 isub temp ,null 
-0x542 001854 branch mouse_ghost_key_lbk_mfw ,zero 
+0x550 001851 fetcht 1 ,mem_mbutton_gpio 
+0x551 001852 fetch 1 ,mem_fw_button_gpio 
+0x552 001853 isub temp ,null 
+0x553 001854 branch mouse_ghost_key_lbk_mfw ,zero 
 :      001855 p_mouse_ghost_key_lbk_rfw:
-0x543 001856 call mouse_ghost_key_check_l_bk 
-0x544 001857 branch p_mouse_ghost_key_rfw 
+0x554 001856 call mouse_ghost_key_check_l_bk 
+0x555 001857 branch p_mouse_ghost_key_rfw 
 :      001859 p_mouse_matrix_ghost_key_l_fw:
-0x545 001860 fetcht 1 ,mem_mbutton_gpio 
-0x546 001861 fetch 1 ,mem_bk_button_gpio 
-0x547 001862 isub temp ,null 
-0x548 001863 branch p_mouse_ghost_key_lfw_mbk ,zero 
+0x556 001860 fetcht 1 ,mem_mbutton_gpio 
+0x557 001861 fetch 1 ,mem_bk_button_gpio 
+0x558 001862 isub temp ,null 
+0x559 001863 branch p_mouse_ghost_key_lfw_mbk ,zero 
 :      001864 p_mouse_ghost_key_lfw_rbk:
-0x549 001865 call p_mouse_ghost_key_check_l_fw 
-0x54a 001866 branch p_mouse_ghost_key_rbk 
+0x55a 001865 call p_mouse_ghost_key_check_l_fw 
+0x55b 001866 branch p_mouse_ghost_key_rbk 
 :      001868 p_mouse_ghost_key_lfw_mbk:
-0x54b 001869 call p_mouse_ghost_key_check_l_fw 
-0x54c 001870 call p_mouse_ghost_key_check_m_bk 
-0x54d 001871 branch mouse_ghost_key_check_next 
+0x55c 001869 call p_mouse_ghost_key_check_l_fw 
+0x55d 001870 call p_mouse_ghost_key_check_m_bk 
+0x55e 001871 branch mouse_ghost_key_check_next 
 :      001873 p_mouse_ghost_key_mbk_rfw:
-0x54e 001874 call p_mouse_ghost_key_check_m_bk 
+0x55f 001874 call p_mouse_ghost_key_check_m_bk 
 :      001875 p_mouse_ghost_key_rfw:
-0x54f 001876 call p_mouse_ghost_key_check_r_fw 
-0x550 001877 branch mouse_ghost_key_check_next 
+0x560 001876 call p_mouse_ghost_key_check_r_fw 
+0x561 001877 branch mouse_ghost_key_check_next 
 :      001879 p_mouse_ghost_key_check_m_bk:
-0x551 001880 and regb ,mouse_m_bk_button ,pdata 
-0x552 001881 branch mouse_ghost_key_check_m_bk + 1 
+0x562 001880 and regb ,mouse_m_bk_button ,pdata 
+0x563 001881 branch mouse_ghost_key_check_m_bk + 1 
 :      001883 p_mouse_ghost_key_check_r_bk:
-0x553 001884 and regb ,mouse_r_bk_button ,pdata 
-0x554 001885 branch mouse_ghost_key_check_r_bk + 1 
+0x564 001884 and regb ,mouse_r_bk_button ,pdata 
+0x565 001885 branch mouse_ghost_key_check_r_bk + 1 
 :      001887 p_mouse_ghost_key_check_l_fw:
-0x555 001888 and regb ,mouse_l_fw_button ,pdata 
-0x556 001889 branch mouse_ghost_key_check_l_fw + 1 
+0x566 001888 and regb ,mouse_l_fw_button ,pdata 
+0x567 001889 branch mouse_ghost_key_check_l_fw + 1 
 :      001891 p_mouse_ghost_key_check_r_fw:
-0x557 001892 and regb ,mouse_r_fw_button ,pdata 
-0x558 001893 branch mouse_ghost_key_check_r_fw + 1 
-:      001895 p_mouse_device_led_off:
-0x559 001896 fetch 1 ,mem_device_flag 
-0x55a 001897 beq mode_24g_device ,p_mouse_device_24g_led_off 
-0x55b 001898 beq mode_bt_device1 ,p_mouse_device_bt1_led_off 
-0x55c 001899 beq mode_bt_device2 ,p_mouse_device_bt2_led_off 
-0x55d 001900 rtn 
-:      001901 p_mouse_device_24g_led_off:
-0x55e 001902 fetcht 1 ,mem_mouse_1io2led_multi_24gled 
-0x55f 001903 fetch mouse_flag_len ,mem_mouse_flag 
-0x560 001904 bbit0 mouse_enable_1io2led ,mouse_led_off 
-0x561 001905 branch gpio_set_analog 
-:      001906 p_mouse_device_bt1_led_off:
-0x562 001907 fetcht 1 ,mem_mouse_1io2led_multi_bt1led 
-0x563 001908 fetch mouse_flag_len ,mem_mouse_flag 
-0x564 001909 bbit0 mouse_enable_1io2led ,mouse_led_off 
-0x565 001910 branch gpio_set_analog 
-:      001911 p_mouse_device_bt2_led_off:
-0x566 001912 fetcht 1 ,mem_mouse_1io2led_multi_bt2led 
-0x567 001913 fetch mouse_flag_len ,mem_mouse_flag 
-0x568 001914 bbit0 mouse_enable_1io2led ,mouse_led_off 
-0x569 001915 branch gpio_set_analog 
+0x568 001892 and regb ,mouse_r_fw_button ,pdata 
+0x569 001893 branch mouse_ghost_key_check_r_fw + 1 
               org 0x2000
 :      001923 start:
 0x2000 001924 call lpmstate 
Index: output/bt_program23.meta
===================================================================
--- /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/bt_program23.meta	(revision 3320)
+++ /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/bt_program23.meta	(working copy)
@@ -56,7 +56,7 @@
 	beq patch0e_3,p_mouse_setgpio_hibernate
 	beq patch0e_4,p_mouse_lpm_before_common
 	beq patch0f_2,p_mouse_motion
-	// beq patch0f_6,p_mouse_check_key_gpio
+	beq patch0f_6,p_mouse_check_key_gpio
 	beq patch0f_7,p_mouse_3io6key_check
 	beq patch10_1,p_mouse_init_sensor
 	beq patch10_4,p_mouse_buletooth_fast_conn_end
@@ -73,7 +73,7 @@
 	beq patch12_3,p_mouse_drawing_optima
 	beq patch12_5,p_mouse_24g_hibernate_set
 	beq patch12_6,p_mouse_24g_package_data
-	beq patch13_5,p_mouse_device_led_off
+	// beq patch13_5,p_mouse_device_led_off
 	// beq patch16_1,p_app_init
 	beq patch18_5,p_otp_read_data
 	beq patch1a_5,p_gpio_set_wake_by_current_state	
@@ -1619,27 +1619,27 @@
 	fetcht 1,mem_dpi_button_gpio
 	branch p_mouse_3io6key_check
 	
-// p_mouse_check_key_gpio:
-// 	fetch 1,mem_sensor_shutdown_flag
-// 	ncall mouse_check_key_gpio_once,blank
-// 	arg 0,rega
-// 	call mouse_check_lkey_gpio
-// 	call mouse_check_rkey_gpio
-// 	call mouse_check_mkey_gpio
-// 	// call p_mouse_check_mkey_gpio
-// 	branch mouse_check_key_gpio+7
-
-// p_mouse_check_mkey_gpio:
-// 	fetcht 1,mem_mbutton_gpio
-// 	call mouse_gpio_config_output_low
-// 	jam MOUSE_M_KEY,mem_mouse_key_temp
-// 	fetch 1,mem_mouse_mkey_press_status
-// 	copy pdata,regc
-// 	fetcht 1,mem_mbutton_gpio
-// 	call mouse_3io6key_check
-// 	store 1,mem_mouse_mkey_press_status
-// 	fetcht 1,mem_mbutton_gpio
-// 	branch mouse_gpio_config_input_pu
+p_mouse_check_key_gpio:
+	fetch 1,mem_sensor_shutdown_flag
+	ncall mouse_check_key_gpio_once,blank
+	arg 0,rega
+	call mouse_check_lkey_gpio
+	call mouse_check_rkey_gpio
+	// call mouse_check_mkey_gpio
+	call p_mouse_check_mkey_gpio
+	branch mouse_check_key_gpio+7
+
+p_mouse_check_mkey_gpio:
+	fetcht 1,mem_mbutton_gpio
+	call mouse_gpio_config_output_low
+	jam MOUSE_M_KEY,mem_mouse_key_temp
+	fetch 1,mem_mouse_mkey_press_status
+	copy pdata,regc
+	fetcht 1,mem_mbutton_gpio
+	call mouse_3io6key_check
+	store 1,mem_mouse_mkey_press_status
+	fetcht 1,mem_mbutton_gpio
+	branch mouse_gpio_config_input_pu
 	
 p_mouse_3io6key_check:
 	copy regc,pdata
@@ -1892,27 +1892,27 @@
 	and regb,MOUSE_R_FW_BUTTON,pdata
 	branch mouse_ghost_key_check_R_FW+1
 
-p_mouse_device_led_off:
-	fetch 1,mem_device_flag
-	beq MODE_24G_DEVICE,p_mouse_device_24g_led_off
-	beq MODE_BT_DEVICE1,p_mouse_device_bt1_led_off
-	beq MODE_BT_DEVICE2,p_mouse_device_bt2_led_off
-	rtn
-p_mouse_device_24g_led_off:
-	fetcht 1,mem_mouse_1io2led_multi_24gled
-	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	bbit0 MOUSE_ENABLE_1IO2LED,mouse_led_off
-	branch gpio_set_analog
-p_mouse_device_bt1_led_off:
-	fetcht 1,mem_mouse_1io2led_multi_bt1led
-	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	bbit0 MOUSE_ENABLE_1IO2LED,mouse_led_off
-	branch gpio_set_analog
-p_mouse_device_bt2_led_off:
-	fetcht 1,mem_mouse_1io2led_multi_bt2led
-	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	bbit0 MOUSE_ENABLE_1IO2LED,mouse_led_off
-	branch gpio_set_analog
+// p_mouse_device_led_off:
+// 	fetch 1,mem_device_flag
+// 	beq MODE_24G_DEVICE,p_mouse_device_24g_led_off
+// 	beq MODE_BT_DEVICE1,p_mouse_device_bt1_led_off
+// 	beq MODE_BT_DEVICE2,p_mouse_device_bt2_led_off
+// 	rtn
+// p_mouse_device_24g_led_off:
+// 	fetcht 1,mem_mouse_1io2led_multi_24gled
+// 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+// 	bbit0 MOUSE_ENABLE_1IO2LED,mouse_led_off
+// 	branch gpio_set_analog
+// p_mouse_device_bt1_led_off:
+// 	fetcht 1,mem_mouse_1io2led_multi_bt1led
+// 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+// 	bbit0 MOUSE_ENABLE_1IO2LED,mouse_led_off
+// 	branch gpio_set_analog
+// p_mouse_device_bt2_led_off:
+// 	fetcht 1,mem_mouse_1io2led_multi_bt2led
+// 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+// 	bbit0 MOUSE_ENABLE_1IO2LED,mouse_led_off
+// 	branch gpio_set_analog
 
 
 
Index: output/bt_program23.rom
===================================================================
--- /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/bt_program23.rom	(revision 3320)
+++ /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/bt_program23.rom	(working copy)
@@ -17,11 +17,12 @@
 11000000001101100000001010001001
 11000000001101110000010001110010
 11000000001101111000010001110111
-11000000001110011000010011000110
+11000000001110011000010011010111
 11000000001110100000001000111001
-11000000001111010000010100010111
-11000000001111111000010010100111
-11000000010000001000010011111100
+11000000001111010000010100101000
+11000000001111110000010010100111
+11000000001111111000010010111000
+11000000010000001000010100001101
 11000000010000100000001110111100
 11000000010000101000010000000111
 11000000010000110000001000001110
@@ -32,11 +33,10 @@
 11000000010001100000001100010011
 11000000010001101000001101111001
 11000000010001110000010010001111
-11000000010010000000010011101001
-11000000010010011000010100100010
-11000000010010101000010010111101
-11000000010010110000010011010010
-11000000010011101000010101011001
+11000000010010000000010011111010
+11000000010010011000010100110011
+11000000010010101000010011001110
+11000000010010110000010011100011
 11000000011000101000001001100111
 11000000011010101000001000101101
 11000000011010110000001000100110
@@ -53,7 +53,7 @@
 11000000001001101000000110110000
 11000000010010000000001001101010
 11000000010010010000001001111110
-11000000010010110000010010110100
+11000000010010110000010011000101
 11000000010011010000000011110110
 11000000010011101000000100000011
 11000000010011111000001010010110
@@ -546,7 +546,7 @@
 00100000010000000101101010110010
 00100100011101000000000000000000
 00100000010000000101101010111100
-00100000010000000000010011011110
+00100000010000000000010011101111
 00100000001000000101101100110111
 00011000010001100111110011111111
 00100000011000101000000000000000
@@ -567,7 +567,7 @@
 01011000000000000000000000010000
 01100111111100001000000101000001
 00100000001000000010001111100010
-00100000010000000000010010111001
+00100000010000000000010011001010
 01110000010010110001110100000000
 01101000010010001100011001010100
 00100000010000000110111011110111
@@ -742,7 +742,7 @@
 00100000001000000101110110101010
 01101111111001000100011100010011
 11000100000101010000000000000000
-00100000010000000000010011101001
+00100000010000000000010011111010
 01101111111000001100011001100110
 01100111111000001100101000000110
 00100000011000000000000000000000
@@ -1188,7 +1188,24 @@
 01101111111000001100011001001001
 00100000010000000101100101000110
 01101000010010001100011001001001
-00100000001000000000010010100111
+00100000001000000000010010111000
+01101111111000001100011100111111
+00100100010110100101100010010101
+11011010001000000000000000000000
+00100000010000000101100010011000
+00100000010000000101100010100001
+00100000010000000000010010101110
+00100000001000000101100010001111
+01101000010010001100011001000101
+00100000010000000101100101000110
+01110000010010010111011100000010
+01101111111000001100100101110001
+00011111111000100010011000000000
+01101000010010001100011001000101
+00100000010000000101100100110001
+01100111111000001100100101110001
+01101000010010001100011001000101
+00100000001000000101010110110101
 00011010011000100111111000000000
 01100111111000001100100101111000
 00011111111000111111111000000000
@@ -1205,7 +1222,7 @@
 00100000010000000011011010110100
 00100100011101000000000000000000
 00100000010000000011011010111110
-00100000010000000000010010111001
+00100000010000000000010011001010
 00100000001000000011011000011011
 01011000000000000000000000000000
 01100111111001000000000000010110
@@ -1221,7 +1238,7 @@
 00100000010000000101100111101101
 00100000001000000110001000101011
 00100000010000000101101010010010
-00100000010000000000010010111001
+00100000010000000000010011001010
 00100000010000000101011010101001
 01101111111000001100011001001101
 00100000010000000101100101000011
@@ -1237,12 +1254,12 @@
 00100100011101000000000000000000
 01101111111000001100011101111100
 01110000010001110111110000000000
-00100100010110100000010011100111
+00100100010110100000010011111000
 01101111111001000100011100010011
-11000011000010110000010011011100
+11000011000010110000010011101101
 01101111111000001100100101101100
 00100100001110100110000010110110
-00100000010000000000010011011110
+00100000010000000000010011101111
 00100000001000000110000010100010
 01101111111000001100011001011001
 11000001111111111000000000000000
@@ -1253,13 +1270,13 @@
 01011000000000000000000000000000
 01100111111000100100100001000111
 00100000001000000101101001110011
-00100000010000000000010010111001
+00100000010000000000010011001010
 00100000001000000000001001011000
 01101111111001000100011100010011
 11000100000101010000000000000000
-11000011000111111000010011110110
-00100000010000000000010011111000
-00100000010000000000010011110010
+11000011000111111000010100000111
+00100000010000000000010100001001
+00100000010000000000010100000011
 01101000010010001100011001011010
 00100000010000000110111011110011
 01101000010010001100011001011010
@@ -1268,7 +1285,7 @@
 00100000010000000110111011100110
 00100100001000001101111011000010
 00100000001000000101111010111110
-00100000010000000000010011101110
+00100000010000000000010011111111
 00100000010000000101111010111011
 01101000010010001100011001011010
 00100000010000000110111011110111
@@ -1277,11 +1294,11 @@
 00100000010000000101100101011000
 11000000000110000101100101011111
 11000000000110001101100111000110
-11000000001011000000010100000001
+11000000001011000000010100010010
 00100000001000000101100101010010
 00100000010000000101100111100111
 01101111111000001100100001011010
-11000000001011001000010100000101
+11000000001011001000010100010110
 00100000001000000101100101011111
 01110000010010010101011100001011
 11011010011000000100101000001011
@@ -1289,11 +1306,11 @@
 01101111111000001100010000100000
 11000001100000000000000000000000
 01101111111000001100100101010111
-11000000000001011000010100001101
+11000000000001011000010100011110
 00100000001000000101100111111000
 00100000010000000101101001101101
 01101111111000001100011001011001
-11000000011111111000010100010011
+11000000011111111000010100100100
 01101000010010001100011001011001
 00100000010000000110111011100110
 00100100011000001000000000000000
@@ -1304,13 +1321,13 @@
 01111000010101000111110000000000
 01011000000000000000000000000000
 01100111111000110100100001000111
-00100000010000000000010100001000
+00100000010000000000010100011001
 01011000000000000000000010001001
 00100000010000000110100111100100
 00100000010000000101011101000111
 00100000010000000101011000010010
 00100000010000000101011000010111
-00100000010000000000010100100101
+00100000010000000000010100110110
 00100000001000000101011000001100
 01101111111000001100100101010111
 11000001000001011000000000000000
@@ -1321,7 +1338,7 @@
 01101111111000001100100110000010
 00100100001110100101100001011111
 00100000010000000101100010001000
-00100000010000000000010100101101
+00100000010000000000010100111110
 00100000001000000101011110101101
 01110000010010010111100100000000
 01110000010010010111101000000000
@@ -1330,34 +1347,34 @@
 01101000010010001100011001000100
 01101111111000001100011001000111
 10011000010001100111110000000000
-00100000001000101000010100111111
+00100000001000101000010101010000
 01101111111000001100011001001000
 10011000010001100111110000000000
-00100000001000101000010101000101
+00100000001000101000010101010110
 01101000010010001100011001000101
 01101111111000001100011001000111
 10011000010001100111110000000000
-00100000001000101000010101001110
+00100000001000101000010101011111
 00100000010000000101011111111011
-00100000010000000000010101010011
+00100000010000000000010101100100
 00100000001000000101011111100101
 01101000010010001100011001000101
 01101111111000001100011001001000
 10011000010001100111110000000000
 00100000001000101101011111010110
 00100000010000000101011111101111
-00100000001000000000010101001111
+00100000001000000000010101100000
 01101000010010001100011001000101
 01101111111000001100011001000111
 10011000010001100111110000000000
-00100000001000101000010101001011
-00100000010000000000010101010101
-00100000001000000000010100111101
-00100000010000000000010101010101
-00100000010000000000010101010001
+00100000001000101000010101011100
+00100000010000000000010101100110
+00100000001000000000010101001110
+00100000010000000000010101100110
+00100000010000000000010101100010
 00100000001000000101011111100101
-00100000010000000000010101010001
-00100000010000000000010101010111
+00100000010000000000010101100010
+00100000010000000000010101101000
 00100000001000000101011111100101
 00011010010000010111111000010010
 00100000001000000101011111110011
@@ -1367,23 +1384,6 @@
 00100000001000000101011111111001
 00011010010000010111111000010010
 00100000001000000101011111111111
-01101111111000001100011001100110
-11000000000000000000010101011110
-11000000000000001000010101100010
-11000000000000010000010101100110
-00100000011000000000000000000000
-01101000010010001100011001011101
-01101111111001000100011100010011
-11000011000100000110000111100101
-00100000001000000110111100001011
-01101000010010001100011001011110
-01101111111001000100011100010011
-11000011000100000110000111100101
-00100000001000000110111100001011
-01101000010010001100011001011111
-01101111111001000100011100010011
-11000011000100000110000111100101
-00100000001000000110111100001011
                                 
                                 
                                 
Index: output/eeprom.dat
===================================================================
--- /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/eeprom.dat	(revision 3320)
+++ /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/eeprom.dat	(working copy)
@@ -99,7 +99,7 @@
 61
 67
 7a
-da
+cb
 9a
 2a
 65
@@ -107,75 +107,75 @@
 f7
 dc
 c3
-b4
+8b
 ca
 93
-eb
+6b
 62
 f6
-fd
+82
 fe
-9c
+d8
 0d
-b9
-88
-64
+bb
+0e
+d5
 50
 83
-9b
-bd
+1c
+06
 6f
-31
-5b
-02
+30
+dd
+0b
 f3
 0e
-9d
-87
+1c
+6c
 2b
-50
-d6
-a0
+57
+51
+40
 9d
-89
-54
-3d
+88
+53
+f7
 6a
 da
-4e
-c6
-8b
-0d
+cf
+f9
 8b
-e5
+0e
+0a
+06
 9b
 d7
-9e
-4d
+1e
+27
 79
-d1
-10
-84
+d0
+97
+72
 28
-2c
+23
 69
-65
+03
 bc
-c3
-e2
-c4
+c2
+63
+1c
 41
-15
-1e
-08
+16
+1f
+86
 ad
-41
-02
-f8
+40
+82
+e4
 43
-3c
-4f
-19
+39
+ce
+a3
 59
 a9
 fa
@@ -243,7 +243,7 @@
 7b
 f7
 af
-12
+63
 0f
 c5
 4f
@@ -2215,7 +2215,7 @@
 aa
 9b
 7e
-47
+76
 a9
 5e
 9c
@@ -2299,7 +2299,7 @@
 9d
 3e
 c5
-a1
+d2
 cc
 f0
 f5
@@ -2999,7 +2999,7 @@
 2f
 8a
 e0
-80
+93
 76
 11
 d9
@@ -4783,647 +4783,647 @@
 b2
 3c
 28
-27
-a1
-5c
-9b
-af
-8a
+38
+d4
+de
+22
+90
+c9
+41
 fb
-6a
-89
-40
-e9
-f7
-ca
+64
 85
-98
-ce
-c4
-2e
-97
-74
-31
+2a
+09
+ca
+ba
+3a
+b2
+5c
+16
+95
+0a
+90
 5f
 25
-b8
-00
-2a
-d7
-f6
-84
+d2
 59
+10
+95
 aa
-be
-9d
-75
-fb
-bc
-58
-c9
-2e
-9b
-02
-c7
-b9
-3f
-6a
-dc
-da
+0b
+11
+a2
+2d
+69
+4f
+d9
+e1
+1e
+99
+27
+82
+e6
+d5
+79
+52
+1b
+e3
+78
+78
+bd
+5b
+c8
+50
 07
-80
-13
-a0
-cf
-6b
 63
 ec
-b2
-a3
-a2
-df
-c7
-eb
-46
-5f
-0a
-d1
-86
-2a
-fe
-1b
+dd
+26
+e1
+4b
+0e
 9a
+0e
+57
+fa
+2a
+86
+4a
+af
+17
+a0
+ce
+d7
 8c
-9f
-97
-dc
-2d
-ee
-92
-a1
-00
-91
-c0
-1c
+e3
+cd
+27
+ea
+d9
+07
+6f
+d6
+64
 95
-b9
-b8
-43
-5d
-eb
-32
-a4
 9d
-a7
-66
-f0
-f1
-02
-8f
-e3
-2c
-a9
-dd
-b9
-31
-68
-36
-bc
-1e
-76
+a6
+7b
+7f
+cd
+32
+f4
+9b
+c9
+91
+ca
+d3
+30
+c8
+9c
+93
+03
+93
+c4
+b1
+29
+99
+c4
+5e
+18
+ff
+49
+03
+63
+a8
+27
 19
-53
-c0
-0f
-ee
-77
-1e
-fe
-f2
+98
+ce
 8e
-31
+51
 bf
-0c
+c8
 b9
-f6
-bd
-b3
-76
-1b
-4c
-c2
+96
+e9
+2c
+72
+2f
+16
+50
 45
 7b
-86
-30
+b4
+37
 ca
 00
-9c
-d6
-27
-23
-20
-d3
-bc
-60
-f9
-bb
-44
-d9
-9a
-28
-bc
-cd
-ad
-2d
+ce
+b5
 68
-c8
+e3
+d0
+85
+c4
+20
+a0
+f8
+4b
+75
+5c
+64
+fb
+6f
+f8
+98
+90
+e8
 b8
-15
-18
-c6
-5e
-16
+1c
+48
+c0
+0b
+a3
 44
 8a
-5d
-13
-dd
-01
-8a
-3b
-4a
-fe
-67
-ff
-bf
-bb
+0a
+4e
+a2
+be
+77
+fd
+0d
+3c
+76
+b2
+21
+28
 6b
 36
-11
-75
-df
-46
-57
-67
-70
-3a
+56
 d6
-3e
-78
-57
-1e
-82
-1e
-9b
-4a
-59
-27
-77
-69
-87
-cf
-fa
-2f
-37
-da
-4a
+41
+01
+03
+54
+4f
+3b
+99
+9e
+e6
+c6
+4e
+e5
+00
+b0
+4e
+43
+79
+02
+26
+23
+8c
+23
+cc
+7c
+88
+3f
 6b
 95
-30
-c7
-69
-68
-98
-56
-a8
-d8
-a8
-64
-88
-83
-7d
-9f
-cd
-63
-66
-49
-d0
-56
-a1
-df
+3f
+e6
 6d
-57
-1c
-5d
-4a
-7d
-59
-d1
-22
-00
-ce
-b5
-1b
-7e
-76
-76
-1a
+12
+a1
+a3
+e0
+d0
+6a
+e0
+88
+e3
+48
+96
 7a
-cc
-4f
-77
-fb
-54
-4c
-54
-8e
-d8
+c3
+a0
+19
+31
+e9
+74
+6a
+22
+f7
+ba
+3a
+4a
+47
+5b
+e8
+1d
+c0
+65
 a8
-23
-a9
-b0
+ba
+0d
+b1
+0b
+62
+3a
+9a
+4e
+34
+6d
+1c
+0b
 1b
-5f
-21
-09
-b7
+4e
+45
+a7
+73
+ae
+c8
+a2
+5b
+5b
+0f
+17
 9c
 77
 e2
 3f
-5e
-0f
 59
-bf
-f9
-48
-8a
-08
-65
-85
-6a
-be
+11
+5d
+52
+55
+b7
+c7
+92
+61
+ff
+0e
+f0
 e8
 fe
 ae
-22
-e6
-34
-21
-11
-54
-80
-96
-6e
-71
-df
-0f
-dd
-50
-50
-76
-af
-bf
-47
-0f
-b9
-00
-39
-93
-5e
-38
-b1
-91
-61
-75
-30
-bc
+3f
+ae
+5c
+87
+e9
+1b
+20
+3e
+c4
 d8
-6a
-e7
-60
-98
-d1
-72
-30
-58
-f5
-16
-f1
-65
-30
-9a
-eb
-05
-d1
+68
+49
+87
+1f
 90
-09
-a0
-13
-3a
+e4
+67
+f7
+75
+c9
+e3
 3f
-27
-1b
-6c
-f9
-ec
+99
+02
+47
+7b
+71
+88
+de
+0d
+10
+e2
+66
+2d
 45
-03
-64
-4e
-7c
-fa
 2c
-68
-11
-56
-1b
-38
-f1
-03
-f8
-85
-43
-be
-f3
+31
+d1
+12
+34
+90
+bd
+1e
+33
+f5
+30
+fa
+87
+aa
+d6
+3c
+88
+e9
 f7
-55
-62
-8b
+0f
+6a
+96
+f8
+33
+25
+b3
 a5
-55
-87
-5e
-68
+5b
+38
+18
+9c
+a2
+f0
+ad
+b9
+32
+d8
+63
+f1
+63
+cf
+24
+0b
+b6
+6c
+4a
+1a
+a2
+16
+4a
+fd
+e3
+1d
+37
 30
-7e
-d0
-ce
-eb
-b5
-74
-f9
-05
-6f
-b7
+1e
 e7
+77
+bf
+dc
+fd
+30
+ff
+2f
+a3
+52
 65
-e9
-fb
-2c
-b5
-d7
-be
-a1
-5b
-59
-da
-0a
-bb
-19
-59
-9e
-68
-20
-95
-70
+89
+a6
+46
+fa
+77
+24
+3a
+f2
+91
+1c
+50
+f4
+b9
+fe
+3e
+c0
+6d
+d6
+27
 d0
 d3
-97
-a6
+9b
+ef
 dd
 23
-a9
-4c
-d2
-23
-64
-a6
-8c
-55
-2e
-dc
-c9
-e6
-02
-9d
-96
-f5
-ff
-30
-8f
-19
-58
-bc
+aa
+79
+7d
+db
 fb
-50
-3e
-91
-53
+a0
+8c
 32
-45
-f7
+72
+09
 61
-63
-cd
-8b
-79
-36
-f7
-8d
-29
+82
 c1
-09
-fc
-8d
-07
+d6
+96
+95
 c8
-64
-1e
-97
-17
-30
-7a
-cf
+84
+8b
+39
+81
+5b
+cc
+b0
+f6
 cb
-1b
-40
-7e
-c7
-68
-43
-83
-83
-3e
-bd
-d1
+b3
 5e
-7c
+a9
+04
+81
+ef
+cd
+81
+29
+5f
+fa
+a9
+8b
+f5
+3f
+f7
+f5
+27
+91
+f1
+16
+94
+9b
+57
+9b
+0f
+ce
+13
+77
+9e
+0e
+b6
+a3
+c6
+6f
+c4
+bd
+b1
+50
+c3
+e0
+3d
+b4
+50
+4d
+10
+88
+d7
+09
+75
+f6
+cf
 e0
-3d
-b8
-2f
-02
-b0
-18
-99
-e9
-4a
-76
-ce
-a8
-f0
-54
-2b
-c5
-24
-41
-6d
-a2
-8b
+98
+c4
+7e
+8a
+84
+e6
+dc
+47
+ee
 e1
 17
-a5
-94
-14
-89
+dd
+b4
+4b
+ae
 d7
 27
-4f
-a6
-a8
-79
-ec
-43
-e0
-9d
-48
+7e
+0f
+07
+35
+7c
+91
+e4
+87
+4a
+bb
+52
 f4
-45
-40
-92
-29
-38
-2c
-6b
-5d
-da
-f9
-e8
-40
+27
+ab
+44
+16
+33
+02
+9d
+5a
+f8
+8f
 76
 59
 a7
-64
-13
-7c
-6e
-74
-c7
-d8
-73
-35
-84
-2d
-6d
-47
-4a
-17
-4f
-92
-1b
-08
+50
+6b
+5c
 39
-b3
-b2
-87
-52
-bb
-2a
-ed
-55
-41
-ad
-3b
-a6
+50
 97
-2c
-7d
-29
-60
-71
-da
-af
+d1
 63
+d1
+d4
+24
+40
+00
+1a
+1e
+62
+80
+24
+aa
+4b
+a4
+fa
+8f
+91
+c9
+65
+2d
+c5
+0a
+5a
+9d
+13
 c0
-d6
+cd
+5a
+2c
+5f
+3e
+1a
+36
 0c
-77
-dd
-4e
-09
-07
-ec
+78
+d0
+28
 3b
-55
-81
+92
+8c
+45
+c5
+a0
+49
+cb
+a4
 28
 0b
-91
-e9
-28
-a5
-3a
-ed
+9e
+2c
+94
+d9
+1e
+b2
 24
-64
-af
-60
+06
+72
+a6
 3e
 a0
-76
-83
+24
+46
 41
-80
-44
-2f
-8a
-77
-be
-d7
-81
-ca
-30
-f5
-36
-e7
-22
-05
-22
-6b
-c4
+e0
+16
+d1
+da
+1e
+90
+32
+99
+cb
+8c
+b0
+29
+4e
+9f
+4d
+a5
+cf
+9c
 9b
-ae
-57
-c1
-b4
-15
-2c
-88
+e6
+3d
+d0
+26
+5a
+8c
+19
+29
+fb
+df
+14
+4c
+1d
+d9
+fb
 81
-43
-b9
-6d
-03
-55
-b3
-b8
-94
 a4
 cc
 58
-ae
+a1
 7c
 b6
 6c
@@ -5431,141 +5431,141 @@
 4f
 ae
 95
-1f
-fd
-07
-e3
-27
-35
-66
-5d
-0b
-84
-89
+02
+b5
+0f
 20
-b1
+37
+7a
+a6
+9e
+71
+3c
+8f
+59
+e4
 fd
-56
-82
-70
+34
+02
+7e
 45
-fd
+9d
 7c
-94
+8a
 9b
 43
 ff
-bd
+88
 13
-07
-30
-3d
-89
-7b
-73
-0b
-66
-c3
-b2
-c0
-c1
-be
-0c
-d1
-cf
-70
-07
 67
+62
+8f
+c1
+13
+e2
+ab
+13
+62
+0a
+9a
+79
+d8
+27
+22
+f5
+13
+ae
+bb
 2b
-e5
+85
 75
-3c
-66
-97
-84
-88
-52
-ea
-04
-4e
-ad
-28
-b0
-a7
-ba
-c2
-99
-45
-a4
-5f
+25
+5c
+f6
+ff
+f9
+1a
 82
-14
-be
-6f
+95
+f2
+d8
+89
+08
+f2
+02
+a4
+b2
+ba
+eb
+9d
+c1
+2e
+5e
+2f
 c9
-e0
-a6
-25
-64
-13
-6a
-5d
+d8
+46
+05
+e4
+3f
+8a
+1c
 c8
 bd
 5f
-ad
-25
-36
-c4
-93
-04
-64
-bb
-e1
-8e
-57
-cf
-1c
-01
-78
+8d
+20
+54
+8c
+fb
+95
+dc
+f4
+45
+cc
+26
+2c
+4c
+65
+f5
 10
 50
-96
-39
-b2
-7d
-43
-6a
-06
-1d
+ae
+d7
+c0
+74
+fb
+26
+49
+d9
+38
+b9
+45
 28
-59
-9c
-79
-29
-2f
+36
+c0
 e0
 af
-42
-8a
-97
-36
-03
-42
-20
-05
-93
-a0
-37
-fc
+7a
+77
+e5
+3f
+bb
+0c
+6f
+c1
+83
+4a
+ee
+ad
+6f
 70
-87
 03
 18
-18
-1b
-40
+20
 ef
+16
+35
 ec
 8c
 b9
@@ -5593,11 +5593,11 @@
 00
 d7
 18
-84
+c4
 f2
 7d
 69
-20
+00
 00
 00
 00
@@ -5652,7 +5652,7 @@
 c9
 12
 00
-1b
+02
 22
 82
 1b
@@ -5663,8 +5663,8 @@
 44
 46
 08
-04
 07
+09
 ff
 ff
 08
@@ -5679,7 +5679,7 @@
 ff
 ff
 ff
-09
+07
 ff
 ff
 ff
@@ -5687,7 +5687,7 @@
 ff
 05
 ff
-00
+84
 80
 92
 ff
@@ -6789,10 +6789,10 @@
 aa
 aa
 55
-99
-48
-b0
-e7
+27
+49
+40
+66
 ff
 ff
 ff
Index: output/flash.dat
===================================================================
--- /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/flash.dat	(revision 3320)
+++ /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/flash.dat	(working copy)
@@ -99,7 +99,7 @@
 61
 67
 7a
-da
+cb
 9a
 2a
 65
@@ -107,75 +107,75 @@
 f7
 dc
 c3
-b4
+8b
 ca
 93
-eb
+6b
 62
 f6
-fd
+82
 fe
-9c
+d8
 0d
-b9
-88
-64
+bb
+0e
+d5
 50
 83
-9b
-bd
+1c
+06
 6f
-31
-5b
-02
+30
+dd
+0b
 f3
 0e
-9d
-87
+1c
+6c
 2b
-50
-d6
-a0
+57
+51
+40
 9d
-89
-54
-3d
+88
+53
+f7
 6a
 da
-4e
-c6
-8b
-0d
+cf
+f9
 8b
-e5
+0e
+0a
+06
 9b
 d7
-9e
-4d
+1e
+27
 79
-d1
-10
-84
+d0
+97
+72
 28
-2c
+23
 69
-65
+03
 bc
-c3
-e2
-c4
+c2
+63
+1c
 41
-15
-1e
-08
+16
+1f
+86
 ad
-41
-02
-f8
+40
+82
+e4
 43
-3c
-4f
-19
+39
+ce
+a3
 59
 a9
 fa
@@ -243,7 +243,7 @@
 7b
 f7
 af
-12
+63
 0f
 c5
 4f
@@ -2215,7 +2215,7 @@
 aa
 9b
 7e
-47
+76
 a9
 5e
 9c
@@ -2299,7 +2299,7 @@
 9d
 3e
 c5
-a1
+d2
 cc
 f0
 f5
@@ -2999,7 +2999,7 @@
 2f
 8a
 e0
-80
+93
 76
 11
 d9
@@ -4783,647 +4783,647 @@
 b2
 3c
 28
-27
-a1
-5c
-9b
-af
-8a
+38
+d4
+de
+22
+90
+c9
+41
 fb
-6a
-89
-40
-e9
-f7
-ca
+64
 85
-98
-ce
-c4
-2e
-97
-74
-31
+2a
+09
+ca
+ba
+3a
+b2
+5c
+16
+95
+0a
+90
 5f
 25
-b8
-00
-2a
-d7
-f6
-84
+d2
 59
+10
+95
 aa
-be
-9d
-75
-fb
-bc
-58
-c9
-2e
-9b
-02
-c7
-b9
-3f
-6a
-dc
-da
+0b
+11
+a2
+2d
+69
+4f
+d9
+e1
+1e
+99
+27
+82
+e6
+d5
+79
+52
+1b
+e3
+78
+78
+bd
+5b
+c8
+50
 07
-80
-13
-a0
-cf
-6b
 63
 ec
-b2
-a3
-a2
-df
-c7
-eb
-46
-5f
-0a
-d1
-86
-2a
-fe
-1b
+dd
+26
+e1
+4b
+0e
 9a
+0e
+57
+fa
+2a
+86
+4a
+af
+17
+a0
+ce
+d7
 8c
-9f
-97
-dc
-2d
-ee
-92
-a1
-00
-91
-c0
-1c
+e3
+cd
+27
+ea
+d9
+07
+6f
+d6
+64
 95
-b9
-b8
-43
-5d
-eb
-32
-a4
 9d
-a7
-66
-f0
-f1
-02
-8f
-e3
-2c
-a9
-dd
-b9
-31
-68
-36
-bc
-1e
-76
+a6
+7b
+7f
+cd
+32
+f4
+9b
+c9
+91
+ca
+d3
+30
+c8
+9c
+93
+03
+93
+c4
+b1
+29
+99
+c4
+5e
+18
+ff
+49
+03
+63
+a8
+27
 19
-53
-c0
-0f
-ee
-77
-1e
-fe
-f2
+98
+ce
 8e
-31
+51
 bf
-0c
+c8
 b9
-f6
-bd
-b3
-76
-1b
-4c
-c2
+96
+e9
+2c
+72
+2f
+16
+50
 45
 7b
-86
-30
+b4
+37
 ca
 00
-9c
-d6
-27
-23
-20
-d3
-bc
-60
-f9
-bb
-44
-d9
-9a
-28
-bc
-cd
-ad
-2d
+ce
+b5
 68
-c8
+e3
+d0
+85
+c4
+20
+a0
+f8
+4b
+75
+5c
+64
+fb
+6f
+f8
+98
+90
+e8
 b8
-15
-18
-c6
-5e
-16
+1c
+48
+c0
+0b
+a3
 44
 8a
-5d
-13
-dd
-01
-8a
-3b
-4a
-fe
-67
-ff
-bf
-bb
+0a
+4e
+a2
+be
+77
+fd
+0d
+3c
+76
+b2
+21
+28
 6b
 36
-11
-75
-df
-46
-57
-67
-70
-3a
+56
 d6
-3e
-78
-57
-1e
-82
-1e
-9b
-4a
-59
-27
-77
-69
-87
-cf
-fa
-2f
-37
-da
-4a
+41
+01
+03
+54
+4f
+3b
+99
+9e
+e6
+c6
+4e
+e5
+00
+b0
+4e
+43
+79
+02
+26
+23
+8c
+23
+cc
+7c
+88
+3f
 6b
 95
-30
-c7
-69
-68
-98
-56
-a8
-d8
-a8
-64
-88
-83
-7d
-9f
-cd
-63
-66
-49
-d0
-56
-a1
-df
+3f
+e6
 6d
-57
-1c
-5d
-4a
-7d
-59
-d1
-22
-00
-ce
-b5
-1b
-7e
-76
-76
-1a
+12
+a1
+a3
+e0
+d0
+6a
+e0
+88
+e3
+48
+96
 7a
-cc
-4f
-77
-fb
-54
-4c
-54
-8e
-d8
+c3
+a0
+19
+31
+e9
+74
+6a
+22
+f7
+ba
+3a
+4a
+47
+5b
+e8
+1d
+c0
+65
 a8
-23
-a9
-b0
+ba
+0d
+b1
+0b
+62
+3a
+9a
+4e
+34
+6d
+1c
+0b
 1b
-5f
-21
-09
-b7
+4e
+45
+a7
+73
+ae
+c8
+a2
+5b
+5b
+0f
+17
 9c
 77
 e2
 3f
-5e
-0f
 59
-bf
-f9
-48
-8a
-08
-65
-85
-6a
-be
+11
+5d
+52
+55
+b7
+c7
+92
+61
+ff
+0e
+f0
 e8
 fe
 ae
-22
-e6
-34
-21
-11
-54
-80
-96
-6e
-71
-df
-0f
-dd
-50
-50
-76
-af
-bf
-47
-0f
-b9
-00
-39
-93
-5e
-38
-b1
-91
-61
-75
-30
-bc
+3f
+ae
+5c
+87
+e9
+1b
+20
+3e
+c4
 d8
-6a
-e7
-60
-98
-d1
-72
-30
-58
-f5
-16
-f1
-65
-30
-9a
-eb
-05
-d1
+68
+49
+87
+1f
 90
-09
-a0
-13
-3a
+e4
+67
+f7
+75
+c9
+e3
 3f
-27
-1b
-6c
-f9
-ec
+99
+02
+47
+7b
+71
+88
+de
+0d
+10
+e2
+66
+2d
 45
-03
-64
-4e
-7c
-fa
 2c
-68
-11
-56
-1b
-38
-f1
-03
-f8
-85
-43
-be
-f3
+31
+d1
+12
+34
+90
+bd
+1e
+33
+f5
+30
+fa
+87
+aa
+d6
+3c
+88
+e9
 f7
-55
-62
-8b
+0f
+6a
+96
+f8
+33
+25
+b3
 a5
-55
-87
-5e
-68
+5b
+38
+18
+9c
+a2
+f0
+ad
+b9
+32
+d8
+63
+f1
+63
+cf
+24
+0b
+b6
+6c
+4a
+1a
+a2
+16
+4a
+fd
+e3
+1d
+37
 30
-7e
-d0
-ce
-eb
-b5
-74
-f9
-05
-6f
-b7
+1e
 e7
+77
+bf
+dc
+fd
+30
+ff
+2f
+a3
+52
 65
-e9
-fb
-2c
-b5
-d7
-be
-a1
-5b
-59
-da
-0a
-bb
-19
-59
-9e
-68
-20
-95
-70
+89
+a6
+46
+fa
+77
+24
+3a
+f2
+91
+1c
+50
+f4
+b9
+fe
+3e
+c0
+6d
+d6
+27
 d0
 d3
-97
-a6
+9b
+ef
 dd
 23
-a9
-4c
-d2
-23
-64
-a6
-8c
-55
-2e
-dc
-c9
-e6
-02
-9d
-96
-f5
-ff
-30
-8f
-19
-58
-bc
+aa
+79
+7d
+db
 fb
-50
-3e
-91
-53
+a0
+8c
 32
-45
-f7
+72
+09
 61
-63
-cd
-8b
-79
-36
-f7
-8d
-29
+82
 c1
-09
-fc
-8d
-07
+d6
+96
+95
 c8
-64
-1e
-97
-17
-30
-7a
-cf
+84
+8b
+39
+81
+5b
+cc
+b0
+f6
 cb
-1b
-40
-7e
-c7
-68
-43
-83
-83
-3e
-bd
-d1
+b3
 5e
-7c
+a9
+04
+81
+ef
+cd
+81
+29
+5f
+fa
+a9
+8b
+f5
+3f
+f7
+f5
+27
+91
+f1
+16
+94
+9b
+57
+9b
+0f
+ce
+13
+77
+9e
+0e
+b6
+a3
+c6
+6f
+c4
+bd
+b1
+50
+c3
+e0
+3d
+b4
+50
+4d
+10
+88
+d7
+09
+75
+f6
+cf
 e0
-3d
-b8
-2f
-02
-b0
-18
-99
-e9
-4a
-76
-ce
-a8
-f0
-54
-2b
-c5
-24
-41
-6d
-a2
-8b
+98
+c4
+7e
+8a
+84
+e6
+dc
+47
+ee
 e1
 17
-a5
-94
-14
-89
+dd
+b4
+4b
+ae
 d7
 27
-4f
-a6
-a8
-79
-ec
-43
-e0
-9d
-48
+7e
+0f
+07
+35
+7c
+91
+e4
+87
+4a
+bb
+52
 f4
-45
-40
-92
-29
-38
-2c
-6b
-5d
-da
-f9
-e8
-40
+27
+ab
+44
+16
+33
+02
+9d
+5a
+f8
+8f
 76
 59
 a7
-64
-13
-7c
-6e
-74
-c7
-d8
-73
-35
-84
-2d
-6d
-47
-4a
-17
-4f
-92
-1b
-08
+50
+6b
+5c
 39
-b3
-b2
-87
-52
-bb
-2a
-ed
-55
-41
-ad
-3b
-a6
+50
 97
-2c
-7d
-29
-60
-71
-da
-af
+d1
 63
+d1
+d4
+24
+40
+00
+1a
+1e
+62
+80
+24
+aa
+4b
+a4
+fa
+8f
+91
+c9
+65
+2d
+c5
+0a
+5a
+9d
+13
 c0
-d6
+cd
+5a
+2c
+5f
+3e
+1a
+36
 0c
-77
-dd
-4e
-09
-07
-ec
+78
+d0
+28
 3b
-55
-81
+92
+8c
+45
+c5
+a0
+49
+cb
+a4
 28
 0b
-91
-e9
-28
-a5
-3a
-ed
+9e
+2c
+94
+d9
+1e
+b2
 24
-64
-af
-60
+06
+72
+a6
 3e
 a0
-76
-83
+24
+46
 41
-80
-44
-2f
-8a
-77
-be
-d7
-81
-ca
-30
-f5
-36
-e7
-22
-05
-22
-6b
-c4
+e0
+16
+d1
+da
+1e
+90
+32
+99
+cb
+8c
+b0
+29
+4e
+9f
+4d
+a5
+cf
+9c
 9b
-ae
-57
-c1
-b4
-15
-2c
-88
+e6
+3d
+d0
+26
+5a
+8c
+19
+29
+fb
+df
+14
+4c
+1d
+d9
+fb
 81
-43
-b9
-6d
-03
-55
-b3
-b8
-94
 a4
 cc
 58
-ae
+a1
 7c
 b6
 6c
@@ -5431,141 +5431,141 @@
 4f
 ae
 95
-1f
-fd
-07
-e3
-27
-35
-66
-5d
-0b
-84
-89
+02
+b5
+0f
 20
-b1
+37
+7a
+a6
+9e
+71
+3c
+8f
+59
+e4
 fd
-56
-82
-70
+34
+02
+7e
 45
-fd
+9d
 7c
-94
+8a
 9b
 43
 ff
-bd
+88
 13
-07
-30
-3d
-89
-7b
-73
-0b
-66
-c3
-b2
-c0
-c1
-be
-0c
-d1
-cf
-70
-07
 67
+62
+8f
+c1
+13
+e2
+ab
+13
+62
+0a
+9a
+79
+d8
+27
+22
+f5
+13
+ae
+bb
 2b
-e5
+85
 75
-3c
-66
-97
-84
-88
-52
-ea
-04
-4e
-ad
-28
-b0
-a7
-ba
-c2
-99
-45
-a4
-5f
+25
+5c
+f6
+ff
+f9
+1a
 82
-14
-be
-6f
+95
+f2
+d8
+89
+08
+f2
+02
+a4
+b2
+ba
+eb
+9d
+c1
+2e
+5e
+2f
 c9
-e0
-a6
-25
-64
-13
-6a
-5d
+d8
+46
+05
+e4
+3f
+8a
+1c
 c8
 bd
 5f
-ad
-25
-36
-c4
-93
-04
-64
-bb
-e1
-8e
-57
-cf
-1c
-01
-78
+8d
+20
+54
+8c
+fb
+95
+dc
+f4
+45
+cc
+26
+2c
+4c
+65
+f5
 10
 50
-96
-39
-b2
-7d
-43
-6a
-06
-1d
+ae
+d7
+c0
+74
+fb
+26
+49
+d9
+38
+b9
+45
 28
-59
-9c
-79
-29
-2f
+36
+c0
 e0
 af
-42
-8a
-97
-36
-03
-42
-20
-05
-93
-a0
-37
-fc
+7a
+77
+e5
+3f
+bb
+0c
+6f
+c1
+83
+4a
+ee
+ad
+6f
 70
-87
 03
 18
-18
-1b
-40
+20
 ef
+16
+35
 ec
 8c
 b9
@@ -5593,11 +5593,11 @@
 00
 d7
 18
-84
+c4
 f2
 7d
 69
-20
+00
 00
 00
 00
@@ -5652,7 +5652,7 @@
 c9
 12
 00
-1b
+02
 22
 82
 1b
@@ -5663,8 +5663,8 @@
 44
 46
 08
-04
 07
+09
 ff
 ff
 08
@@ -5679,7 +5679,7 @@
 ff
 ff
 ff
-09
+07
 ff
 ff
 ff
@@ -5687,7 +5687,7 @@
 ff
 05
 ff
-00
+84
 80
 92
 ff
@@ -6789,10 +6789,10 @@
 aa
 aa
 55
-99
-48
-b0
-e7
+27
+49
+40
+66
 ff
 ff
 ff
Index: output/otp.dat
===================================================================
--- /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/otp.dat	(revision 3320)
+++ /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/otp.dat	(working copy)
@@ -108,7 +108,7 @@
 61
 67
 7a
-da
+cb
 9a
 2a
 65
@@ -116,75 +116,75 @@
 f7
 dc
 c3
-b4
+8b
 ca
 93
-eb
+6b
 62
 f6
-fd
+82
 fe
-9c
+d8
 0d
-b9
-88
-64
+bb
+0e
+d5
 50
 83
-9b
-bd
+1c
+06
 6f
-31
-5b
-02
+30
+dd
+0b
 f3
 0e
-9d
-87
+1c
+6c
 2b
-50
-d6
-a0
+57
+51
+40
 9d
-89
-54
-3d
+88
+53
+f7
 6a
 da
-4e
-c6
-8b
-0d
+cf
+f9
 8b
-e5
+0e
+0a
+06
 9b
 d7
-9e
-4d
+1e
+27
 79
-d1
-10
-84
+d0
+97
+72
 28
-2c
+23
 69
-65
+03
 bc
-c3
-e2
-c4
+c2
+63
+1c
 41
-15
-1e
-08
+16
+1f
+86
 ad
-41
-02
-f8
+40
+82
+e4
 43
-3c
-4f
-19
+39
+ce
+a3
 59
 a9
 fa
@@ -252,7 +252,7 @@
 7b
 f7
 af
-12
+63
 0f
 c5
 4f
@@ -2224,7 +2224,7 @@
 aa
 9b
 7e
-47
+76
 a9
 5e
 9c
@@ -2308,7 +2308,7 @@
 9d
 3e
 c5
-a1
+d2
 cc
 f0
 f5
@@ -3008,7 +3008,7 @@
 2f
 8a
 e0
-80
+93
 76
 11
 d9
@@ -4792,647 +4792,647 @@
 b2
 3c
 28
-27
-a1
-5c
-9b
-af
-8a
+38
+d4
+de
+22
+90
+c9
+41
 fb
-6a
-89
-40
-e9
-f7
-ca
+64
 85
-98
-ce
-c4
-2e
-97
-74
-31
+2a
+09
+ca
+ba
+3a
+b2
+5c
+16
+95
+0a
+90
 5f
 25
-b8
-00
-2a
-d7
-f6
-84
+d2
 59
+10
+95
 aa
-be
-9d
-75
-fb
-bc
-58
-c9
-2e
-9b
-02
-c7
-b9
-3f
-6a
-dc
-da
+0b
+11
+a2
+2d
+69
+4f
+d9
+e1
+1e
+99
+27
+82
+e6
+d5
+79
+52
+1b
+e3
+78
+78
+bd
+5b
+c8
+50
 07
-80
-13
-a0
-cf
-6b
 63
 ec
-b2
-a3
-a2
-df
-c7
-eb
-46
-5f
-0a
-d1
-86
-2a
-fe
-1b
+dd
+26
+e1
+4b
+0e
 9a
+0e
+57
+fa
+2a
+86
+4a
+af
+17
+a0
+ce
+d7
 8c
-9f
-97
-dc
-2d
-ee
-92
-a1
-00
-91
-c0
-1c
+e3
+cd
+27
+ea
+d9
+07
+6f
+d6
+64
 95
-b9
-b8
-43
-5d
-eb
-32
-a4
 9d
-a7
-66
-f0
-f1
-02
-8f
-e3
-2c
-a9
-dd
-b9
-31
-68
-36
-bc
-1e
-76
+a6
+7b
+7f
+cd
+32
+f4
+9b
+c9
+91
+ca
+d3
+30
+c8
+9c
+93
+03
+93
+c4
+b1
+29
+99
+c4
+5e
+18
+ff
+49
+03
+63
+a8
+27
 19
-53
-c0
-0f
-ee
-77
-1e
-fe
-f2
+98
+ce
 8e
-31
+51
 bf
-0c
+c8
 b9
-f6
-bd
-b3
-76
-1b
-4c
-c2
+96
+e9
+2c
+72
+2f
+16
+50
 45
 7b
-86
-30
+b4
+37
 ca
 00
-9c
-d6
-27
-23
-20
-d3
-bc
-60
-f9
-bb
-44
-d9
-9a
-28
-bc
-cd
-ad
-2d
+ce
+b5
 68
-c8
+e3
+d0
+85
+c4
+20
+a0
+f8
+4b
+75
+5c
+64
+fb
+6f
+f8
+98
+90
+e8
 b8
-15
-18
-c6
-5e
-16
+1c
+48
+c0
+0b
+a3
 44
 8a
-5d
-13
-dd
-01
-8a
-3b
-4a
-fe
-67
-ff
-bf
-bb
+0a
+4e
+a2
+be
+77
+fd
+0d
+3c
+76
+b2
+21
+28
 6b
 36
-11
-75
-df
-46
-57
-67
-70
-3a
+56
 d6
-3e
-78
-57
-1e
-82
-1e
-9b
-4a
-59
-27
-77
-69
-87
-cf
-fa
-2f
-37
-da
-4a
+41
+01
+03
+54
+4f
+3b
+99
+9e
+e6
+c6
+4e
+e5
+00
+b0
+4e
+43
+79
+02
+26
+23
+8c
+23
+cc
+7c
+88
+3f
 6b
 95
-30
-c7
-69
-68
-98
-56
-a8
-d8
-a8
-64
-88
-83
-7d
-9f
-cd
-63
-66
-49
-d0
-56
-a1
-df
+3f
+e6
 6d
-57
-1c
-5d
-4a
-7d
-59
-d1
-22
-00
-ce
-b5
-1b
-7e
-76
-76
-1a
+12
+a1
+a3
+e0
+d0
+6a
+e0
+88
+e3
+48
+96
 7a
-cc
-4f
-77
-fb
-54
-4c
-54
-8e
-d8
+c3
+a0
+19
+31
+e9
+74
+6a
+22
+f7
+ba
+3a
+4a
+47
+5b
+e8
+1d
+c0
+65
 a8
-23
-a9
-b0
+ba
+0d
+b1
+0b
+62
+3a
+9a
+4e
+34
+6d
+1c
+0b
 1b
-5f
-21
-09
-b7
+4e
+45
+a7
+73
+ae
+c8
+a2
+5b
+5b
+0f
+17
 9c
 77
 e2
 3f
-5e
-0f
 59
-bf
-f9
-48
-8a
-08
-65
-85
-6a
-be
+11
+5d
+52
+55
+b7
+c7
+92
+61
+ff
+0e
+f0
 e8
 fe
 ae
-22
-e6
-34
-21
-11
-54
-80
-96
-6e
-71
-df
-0f
-dd
-50
-50
-76
-af
-bf
-47
-0f
-b9
-00
-39
-93
-5e
-38
-b1
-91
-61
-75
-30
-bc
+3f
+ae
+5c
+87
+e9
+1b
+20
+3e
+c4
 d8
-6a
-e7
-60
-98
-d1
-72
-30
-58
-f5
-16
-f1
-65
-30
-9a
-eb
-05
-d1
+68
+49
+87
+1f
 90
-09
-a0
-13
-3a
+e4
+67
+f7
+75
+c9
+e3
 3f
-27
-1b
-6c
-f9
-ec
+99
+02
+47
+7b
+71
+88
+de
+0d
+10
+e2
+66
+2d
 45
-03
-64
-4e
-7c
-fa
 2c
-68
-11
-56
-1b
-38
-f1
-03
-f8
-85
-43
-be
-f3
+31
+d1
+12
+34
+90
+bd
+1e
+33
+f5
+30
+fa
+87
+aa
+d6
+3c
+88
+e9
 f7
-55
-62
-8b
+0f
+6a
+96
+f8
+33
+25
+b3
 a5
-55
-87
-5e
-68
+5b
+38
+18
+9c
+a2
+f0
+ad
+b9
+32
+d8
+63
+f1
+63
+cf
+24
+0b
+b6
+6c
+4a
+1a
+a2
+16
+4a
+fd
+e3
+1d
+37
 30
-7e
-d0
-ce
-eb
-b5
-74
-f9
-05
-6f
-b7
+1e
 e7
+77
+bf
+dc
+fd
+30
+ff
+2f
+a3
+52
 65
-e9
-fb
-2c
-b5
-d7
-be
-a1
-5b
-59
-da
-0a
-bb
-19
-59
-9e
-68
-20
-95
-70
+89
+a6
+46
+fa
+77
+24
+3a
+f2
+91
+1c
+50
+f4
+b9
+fe
+3e
+c0
+6d
+d6
+27
 d0
 d3
-97
-a6
+9b
+ef
 dd
 23
-a9
-4c
-d2
-23
-64
-a6
-8c
-55
-2e
-dc
-c9
-e6
-02
-9d
-96
-f5
-ff
-30
-8f
-19
-58
-bc
+aa
+79
+7d
+db
 fb
-50
-3e
-91
-53
+a0
+8c
 32
-45
-f7
+72
+09
 61
-63
-cd
-8b
-79
-36
-f7
-8d
-29
+82
 c1
-09
-fc
-8d
-07
+d6
+96
+95
 c8
-64
-1e
-97
-17
-30
-7a
-cf
+84
+8b
+39
+81
+5b
+cc
+b0
+f6
 cb
-1b
-40
-7e
-c7
-68
-43
-83
-83
-3e
-bd
-d1
+b3
 5e
-7c
+a9
+04
+81
+ef
+cd
+81
+29
+5f
+fa
+a9
+8b
+f5
+3f
+f7
+f5
+27
+91
+f1
+16
+94
+9b
+57
+9b
+0f
+ce
+13
+77
+9e
+0e
+b6
+a3
+c6
+6f
+c4
+bd
+b1
+50
+c3
+e0
+3d
+b4
+50
+4d
+10
+88
+d7
+09
+75
+f6
+cf
 e0
-3d
-b8
-2f
-02
-b0
-18
-99
-e9
-4a
-76
-ce
-a8
-f0
-54
-2b
-c5
-24
-41
-6d
-a2
-8b
+98
+c4
+7e
+8a
+84
+e6
+dc
+47
+ee
 e1
 17
-a5
-94
-14
-89
+dd
+b4
+4b
+ae
 d7
 27
-4f
-a6
-a8
-79
-ec
-43
-e0
-9d
-48
+7e
+0f
+07
+35
+7c
+91
+e4
+87
+4a
+bb
+52
 f4
-45
-40
-92
-29
-38
-2c
-6b
-5d
-da
-f9
-e8
-40
+27
+ab
+44
+16
+33
+02
+9d
+5a
+f8
+8f
 76
 59
 a7
-64
-13
-7c
-6e
-74
-c7
-d8
-73
-35
-84
-2d
-6d
-47
-4a
-17
-4f
-92
-1b
-08
+50
+6b
+5c
 39
-b3
-b2
-87
-52
-bb
-2a
-ed
-55
-41
-ad
-3b
-a6
+50
 97
-2c
-7d
-29
-60
-71
-da
-af
+d1
 63
+d1
+d4
+24
+40
+00
+1a
+1e
+62
+80
+24
+aa
+4b
+a4
+fa
+8f
+91
+c9
+65
+2d
+c5
+0a
+5a
+9d
+13
 c0
-d6
+cd
+5a
+2c
+5f
+3e
+1a
+36
 0c
-77
-dd
-4e
-09
-07
-ec
+78
+d0
+28
 3b
-55
-81
+92
+8c
+45
+c5
+a0
+49
+cb
+a4
 28
 0b
-91
-e9
-28
-a5
-3a
-ed
+9e
+2c
+94
+d9
+1e
+b2
 24
-64
-af
-60
+06
+72
+a6
 3e
 a0
-76
-83
+24
+46
 41
-80
-44
-2f
-8a
-77
-be
-d7
-81
-ca
-30
-f5
-36
-e7
-22
-05
-22
-6b
-c4
+e0
+16
+d1
+da
+1e
+90
+32
+99
+cb
+8c
+b0
+29
+4e
+9f
+4d
+a5
+cf
+9c
 9b
-ae
-57
-c1
-b4
-15
-2c
-88
+e6
+3d
+d0
+26
+5a
+8c
+19
+29
+fb
+df
+14
+4c
+1d
+d9
+fb
 81
-43
-b9
-6d
-03
-55
-b3
-b8
-94
 a4
 cc
 58
-ae
+a1
 7c
 b6
 6c
@@ -5440,141 +5440,141 @@
 4f
 ae
 95
-1f
-fd
-07
-e3
-27
-35
-66
-5d
-0b
-84
-89
+02
+b5
+0f
 20
-b1
+37
+7a
+a6
+9e
+71
+3c
+8f
+59
+e4
 fd
-56
-82
-70
+34
+02
+7e
 45
-fd
+9d
 7c
-94
+8a
 9b
 43
 ff
-bd
+88
 13
-07
-30
-3d
-89
-7b
-73
-0b
-66
-c3
-b2
-c0
-c1
-be
-0c
-d1
-cf
-70
-07
 67
+62
+8f
+c1
+13
+e2
+ab
+13
+62
+0a
+9a
+79
+d8
+27
+22
+f5
+13
+ae
+bb
 2b
-e5
+85
 75
-3c
-66
-97
-84
-88
-52
-ea
-04
-4e
-ad
-28
-b0
-a7
-ba
-c2
-99
-45
-a4
-5f
+25
+5c
+f6
+ff
+f9
+1a
 82
-14
-be
-6f
+95
+f2
+d8
+89
+08
+f2
+02
+a4
+b2
+ba
+eb
+9d
+c1
+2e
+5e
+2f
 c9
-e0
-a6
-25
-64
-13
-6a
-5d
+d8
+46
+05
+e4
+3f
+8a
+1c
 c8
 bd
 5f
-ad
-25
-36
-c4
-93
-04
-64
-bb
-e1
-8e
-57
-cf
-1c
-01
-78
+8d
+20
+54
+8c
+fb
+95
+dc
+f4
+45
+cc
+26
+2c
+4c
+65
+f5
 10
 50
-96
-39
-b2
-7d
-43
-6a
-06
-1d
+ae
+d7
+c0
+74
+fb
+26
+49
+d9
+38
+b9
+45
 28
-59
-9c
-79
-29
-2f
+36
+c0
 e0
 af
-42
-8a
-97
-36
-03
-42
-20
-05
-93
-a0
-37
-fc
+7a
+77
+e5
+3f
+bb
+0c
+6f
+c1
+83
+4a
+ee
+ad
+6f
 70
-87
 03
 18
-18
-1b
-40
+20
 ef
+16
+35
 ec
 8c
 b9
@@ -5602,11 +5602,11 @@
 00
 d7
 18
-84
+c4
 f2
 7d
 69
-20
+00
 00
 00
 00
@@ -5661,7 +5661,7 @@
 c9
 12
 00
-1b
+02
 22
 82
 1b
@@ -5672,8 +5672,8 @@
 44
 46
 08
-04
 07
+09
 ff
 ff
 08
@@ -5688,7 +5688,7 @@
 ff
 ff
 ff
-09
+07
 ff
 ff
 ff
@@ -5696,7 +5696,7 @@
 ff
 05
 ff
-00
+84
 80
 92
 ff
@@ -6798,8 +6798,8 @@
 aa
 aa
 55
-99
-48
-b0
-e7
+27
+49
+40
+66
 20
Index: output/program.lis
===================================================================
--- /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/program.lis	(revision 3320)
+++ /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/program.lis	(working copy)
@@ -19,26 +19,26 @@
 0010 c0360289 beq patch0d_4 ,p_mouse_param_init 
 0011 c0370472 beq patch0d_6 ,p_mouse_start_work 
 0012 c0378477 beq patch0d_7 ,p_mouse4_0_check_reconn_target 
-0013 c03984c6 beq patch0e_3 ,p_mouse_setgpio_hibernate 
+0013 c03984d7 beq patch0e_3 ,p_mouse_setgpio_hibernate 
 0014 c03a0239 beq patch0e_4 ,p_mouse_lpm_before_common 
-0015 c03d0517 beq patch0f_2 ,p_mouse_motion 
-0016 c03f84a7 beq patch0f_7 ,p_mouse_3io6key_check 
-0017 c04084fc beq patch10_1 ,p_mouse_init_sensor 
-0018 c04203bc beq patch10_4 ,p_mouse_buletooth_fast_conn_end 
-0019 c0428407 beq patch10_5 ,p_mouse_priority_bb_event 
-001a c043020e beq patch10_6 ,p_mouse_le 
-001b c04383e5 beq patch10_7 ,p_mouse_bb_event_timer 
-001c c0440405 beq patch11_0 ,p_mouse_start_discovery 
-001d c04503cf beq patch11_2 ,p_mouse_store_remote_bdaddr 
-001e c04582f0 beq patch11_3 ,p_mouse_app_initflag_check 
-001f c0460313 beq patch11_4 ,p_mouse_store_device_info 
-0020 c0468379 beq patch11_5 ,p_mouse_store_dpi_info_check 
-0021 c047048f beq patch11_6 ,p_mouse_idle 
-0022 c04804e9 beq patch12_0 ,p_mouse_check_select_device_by_switch 
-0023 c0498522 beq patch12_3 ,p_mouse_drawing_optima 
-0024 c04a84bd beq patch12_5 ,p_mouse_24g_hibernate_set 
-0025 c04b04d2 beq patch12_6 ,p_mouse_24g_package_data 
-0026 c04e8559 beq patch13_5 ,p_mouse_device_led_off 
+0015 c03d0528 beq patch0f_2 ,p_mouse_motion 
+0016 c03f04a7 beq patch0f_6 ,p_mouse_check_key_gpio 
+0017 c03f84b8 beq patch0f_7 ,p_mouse_3io6key_check 
+0018 c040850d beq patch10_1 ,p_mouse_init_sensor 
+0019 c04203bc beq patch10_4 ,p_mouse_buletooth_fast_conn_end 
+001a c0428407 beq patch10_5 ,p_mouse_priority_bb_event 
+001b c043020e beq patch10_6 ,p_mouse_le 
+001c c04383e5 beq patch10_7 ,p_mouse_bb_event_timer 
+001d c0440405 beq patch11_0 ,p_mouse_start_discovery 
+001e c04503cf beq patch11_2 ,p_mouse_store_remote_bdaddr 
+001f c04582f0 beq patch11_3 ,p_mouse_app_initflag_check 
+0020 c0460313 beq patch11_4 ,p_mouse_store_device_info 
+0021 c0468379 beq patch11_5 ,p_mouse_store_dpi_info_check 
+0022 c047048f beq patch11_6 ,p_mouse_idle 
+0023 c04804fa beq patch12_0 ,p_mouse_check_select_device_by_switch 
+0024 c0498533 beq patch12_3 ,p_mouse_drawing_optima 
+0025 c04a84ce beq patch12_5 ,p_mouse_24g_hibernate_set 
+0026 c04b04e3 beq patch12_6 ,p_mouse_24g_package_data 
 0027 c0628267 beq patch18_5 ,p_otp_read_data 
 0028 c06a822d beq patch1a_5 ,p_gpio_set_wake_by_current_state 
 0029 c06b0226 beq patch1a_6 ,p_gpio_set_wake 
@@ -57,7 +57,7 @@
 0034 c02681b0 beq patch29_5 ,p_le_init_adv 
 0035 c048026a beq patch32_0 ,p_g24_reconn_dispatch 
 0036 c049027e beq patch32_2 ,p_g24_reconn_device_fail 
-0037 c04b04b4 beq patch32_6 ,p_g24_short_sleep 
+0037 c04b04c5 beq patch32_6 ,p_g24_short_sleep 
 0038 c04d00f6 beq patch33_2 ,p_mouse_g24_retransmit 
 0039 c04e8103 beq patch33_5 ,p_g24_transmit_hop_process 
 003a c04f8296 beq patch33_7 ,p_power_ctrl_start 
@@ -674,7 +674,7 @@
 0221 20405ab2 call mouse_check_125hz 
 0222 24740000 nrtn user 
 0223 20405abc call mouse_current_mult_update 
-0224 204004de call p_mouse_data_xy_release 
+0224 204004ef call p_mouse_data_xy_release 
 0225 20205b37 branch mouse_le_next + 12 
 
 p_gpio_set_wake:
@@ -711,7 +711,7 @@
 0238 202023e2 branch lpm_write_wait 
 
 p_mouse_lpm_before_common:
-0239 204004b9 call p_clear_wake 
+0239 204004ca call p_clear_wake 
 023a 704b1d00 jam 0 ,mem_mouse_qdec_set_flag 
 023b 6848c654 fetcht 1 ,mem_matrix_public_gpio 
 023c 20406ef7 call gpio_out_active 
@@ -956,7 +956,7 @@
 p_mouse_select_device_by_switch_check:
 02e6 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
 02e7 c4150000 rtnbit0 mouse_enable_select_device_by_switch_gpio 
-02e8 204004e9 call p_mouse_check_select_device_by_switch 
+02e8 204004fa call p_mouse_check_select_device_by_switch 
 
 p_mouse_device_flag_temp_store:
 02e9 6fe0c666 fetch 1 ,mem_device_flag 
@@ -1566,286 +1566,282 @@
 04a3 6fe0c649 fetch 1 ,mem_dpi_button_gpio 
 04a4 20405946 call mouse_gpio_config_output_low 
 04a5 6848c649 fetcht 1 ,mem_dpi_button_gpio 
-04a6 202004a7 branch p_mouse_3io6key_check 
+04a6 202004b8 branch p_mouse_3io6key_check 
+
+p_mouse_check_key_gpio:
+04a7 6fe0c73f fetch 1 ,mem_sensor_shutdown_flag 
+04a8 245a5895 ncall mouse_check_key_gpio_once ,blank 
+04a9 da200000 arg 0 ,rega 
+04aa 20405898 call mouse_check_lkey_gpio 
+04ab 204058a1 call mouse_check_rkey_gpio 
+04ac 204004ae call p_mouse_check_mkey_gpio 
+04ad 2020588f branch mouse_check_key_gpio + 7 
+
+p_mouse_check_mkey_gpio:
+04ae 6848c645 fetcht 1 ,mem_mbutton_gpio 
+04af 20405946 call mouse_gpio_config_output_low 
+04b0 70497702 jam mouse_m_key ,mem_mouse_key_temp 
+04b1 6fe0c971 fetch 1 ,mem_mouse_mkey_press_status 
+04b2 1fe22600 copy pdata ,regc 
+04b3 6848c645 fetcht 1 ,mem_mbutton_gpio 
+04b4 20405931 call mouse_3io6key_check 
+04b5 67e0c971 store 1 ,mem_mouse_mkey_press_status 
+04b6 6848c645 fetcht 1 ,mem_mbutton_gpio 
+04b7 202055b5 branch mouse_gpio_config_input_pu 
 
 p_mouse_3io6key_check:
-04a7 1a627e00 copy regc ,pdata 
-04a8 67e0c978 store 1 ,mem_mouse_key_status 
-04a9 1fe3fe00 lshift pdata ,pdata 
-04aa 1fe22400 copy pdata ,regb 
-04ab 18422600 copy temp ,regc 
-04ac 20406ef7 call gpio_out_active 
-04ad 1a620400 copy regc ,temp 
-04ae 204055b1 call mouse_gpio_config_input_pd 
-04af 1a620400 copy regc ,temp 
-04b0 20406ee6 call gpio_get_bit 
-04b1 7d20a400 nsetflag true ,0 ,regb 
-04b2 2040593d call mouse_check_press 
-04b3 20205929 branch mouse_check_key_connect_gnd_1 
+04b8 1a627e00 copy regc ,pdata 
+04b9 67e0c978 store 1 ,mem_mouse_key_status 
+04ba 1fe3fe00 lshift pdata ,pdata 
+04bb 1fe22400 copy pdata ,regb 
+04bc 18422600 copy temp ,regc 
+04bd 20406ef7 call gpio_out_active 
+04be 1a620400 copy regc ,temp 
+04bf 204055b1 call mouse_gpio_config_input_pd 
+04c0 1a620400 copy regc ,temp 
+04c1 20406ee6 call gpio_get_bit 
+04c2 7d20a400 nsetflag true ,0 ,regb 
+04c3 2040593d call mouse_check_press 
+04c4 20205929 branch mouse_check_key_connect_gnd_1 
 
 p_g24_short_sleep:
-04b4 204036b4 call g24_lpm_wait 
-04b5 24740000 nrtn user 
-04b6 204036be call g24_setgpio_lpm_before 
-04b7 204004b9 call p_clear_wake 
-04b8 2020361b branch g24_short_sleep_next 
+04c5 204036b4 call g24_lpm_wait 
+04c6 24740000 nrtn user 
+04c7 204036be call g24_setgpio_lpm_before 
+04c8 204004ca call p_clear_wake 
+04c9 2020361b branch g24_short_sleep_next 
 
 p_clear_wake:
-04b9 58000000 setarg 0 
-04ba 67e40016 store 8 ,mem_gpio_wakeup_cfg 
-04bb 67e2001e store 4 ,mem_gpio_wakeup_cfg + 8 
-04bc 20600000 rtn 
+04ca 58000000 setarg 0 
+04cb 67e40016 store 8 ,mem_gpio_wakeup_cfg 
+04cc 67e2001e store 4 ,mem_gpio_wakeup_cfg + 8 
+04cd 20600000 rtn 
 
 p_mouse_24g_hibernate_set:
-04bd 70460000 jam 0 ,mem_24g_attempt_fail_flag 
-04be 20403647 call g24_transmit_next_packet 
-04bf 5fffffff setarg -1 
-04c0 67e245af store 4 ,mem_24g_enter_hibernate 
-04c1 58000000 setarg 0 
-04c2 67e3c846 store 7 ,mem_mouse_key 
-04c3 70473f01 jam 1 ,mem_sensor_shutdown_flag 
-04c4 204059ed call mouse_sensor_powerdown 
-04c5 2020622b branch mouse_24g_long_sleep 
+04ce 70460000 jam 0 ,mem_24g_attempt_fail_flag 
+04cf 20403647 call g24_transmit_next_packet 
+04d0 5fffffff setarg -1 
+04d1 67e245af store 4 ,mem_24g_enter_hibernate 
+04d2 58000000 setarg 0 
+04d3 67e3c846 store 7 ,mem_mouse_key 
+04d4 70473f01 jam 1 ,mem_sensor_shutdown_flag 
+04d5 204059ed call mouse_sensor_powerdown 
+04d6 2020622b branch mouse_24g_long_sleep 
 
 p_mouse_setgpio_hibernate:
-04c6 20405a92 call mouse_set_sdio_high 
-04c7 204004b9 call p_clear_wake 
-04c8 204056a9 call mouse_before_hibernate_wheel_gpio_set 
-04c9 6fe0c64d fetch 1 ,mem_mouse_sensor_sdio_gpio 
-04ca 20405943 call mouse_gpio_config_output_high 
-04cb 6848c65a fetcht 1 ,mem_device_switch_gpio 
-04cc 204055ab call mouse_gpio_set_pupd_by_input 
-04cd d8400009 arg 09 ,temp 
-04ce 204055b5 call mouse_gpio_config_input_pu 
-04cf 2040611a call mouse_logo_led_off 
-04d0 20400239 call p_mouse_lpm_before_common 
-04d1 202054e2 branch mouse_setgpio_hibernate_next 
+04d7 20405a92 call mouse_set_sdio_high 
+04d8 204004ca call p_clear_wake 
+04d9 204056a9 call mouse_before_hibernate_wheel_gpio_set 
+04da 6fe0c64d fetch 1 ,mem_mouse_sensor_sdio_gpio 
+04db 20405943 call mouse_gpio_config_output_high 
+04dc 6848c65a fetcht 1 ,mem_device_switch_gpio 
+04dd 204055ab call mouse_gpio_set_pupd_by_input 
+04de d8400009 arg 09 ,temp 
+04df 204055b5 call mouse_gpio_config_input_pu 
+04e0 2040611a call mouse_logo_led_off 
+04e1 20400239 call p_mouse_lpm_before_common 
+04e2 202054e2 branch mouse_setgpio_hibernate_next 
 
 p_mouse_24g_package_data:
-04d2 c6930000 rtnmark0 mark_24g 
-04d3 20405601 call mouse_motion 
-04d4 24740000 nrtn user 
-04d5 6fe0c77c fetch 1 ,mem_mouse_24g_long_sleep_flag 
-04d6 70477c00 jam 0 ,mem_mouse_24g_long_sleep_flag 
-04d7 245a04e7 ncall p_mouse_24g_short_sleep_clear_wake ,blank 
-04d8 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-04d9 c30b04dc bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
-04da 6fe0c96c fetch 1 ,mem_customer_key 
-04db 243a60b6 nbranch mouse_24g_keyboard_package_data ,blank 
+04e3 c6930000 rtnmark0 mark_24g 
+04e4 20405601 call mouse_motion 
+04e5 24740000 nrtn user 
+04e6 6fe0c77c fetch 1 ,mem_mouse_24g_long_sleep_flag 
+04e7 70477c00 jam 0 ,mem_mouse_24g_long_sleep_flag 
+04e8 245a04f8 ncall p_mouse_24g_short_sleep_clear_wake ,blank 
+04e9 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+04ea c30b04ed bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
+04eb 6fe0c96c fetch 1 ,mem_customer_key 
+04ec 243a60b6 nbranch mouse_24g_keyboard_package_data ,blank 
 
 p_mouse_24g_mouse_package_data:
-04dc 204004de call p_mouse_data_xy_release 
-04dd 202060a2 branch mouse_24g_mouse_package_data + 1 
+04ed 204004ef call p_mouse_data_xy_release 
+04ee 202060a2 branch mouse_24g_mouse_package_data + 1 
 
 p_mouse_data_xy_release:
-04de 6fe0c659 fetch 1 ,mem_sensor_motion_gpio 
-04df c1ff8000 rtnne gpio_disable 
-04e0 6fe0c77d fetch 1 ,mem_mouse_long_mult_flag 
-04e1 207a0000 rtn blank 
-04e2 1fe0ffff increase -1 ,pdata 
-04e3 67e0c77d store 1 ,mem_mouse_long_mult_flag 
-04e4 58000000 setarg 0 
-04e5 67e24847 store 4 ,mem_mouse_x 
-04e6 20205a73 branch mouse_init_sensor_reset 
+04ef 6fe0c659 fetch 1 ,mem_sensor_motion_gpio 
+04f0 c1ff8000 rtnne gpio_disable 
+04f1 6fe0c77d fetch 1 ,mem_mouse_long_mult_flag 
+04f2 207a0000 rtn blank 
+04f3 1fe0ffff increase -1 ,pdata 
+04f4 67e0c77d store 1 ,mem_mouse_long_mult_flag 
+04f5 58000000 setarg 0 
+04f6 67e24847 store 4 ,mem_mouse_x 
+04f7 20205a73 branch mouse_init_sensor_reset 
 
 p_mouse_24g_short_sleep_clear_wake:
-04e7 204004b9 call p_clear_wake 
-04e8 20200258 branch p_lpm_write_gpio_wakeup 
+04f8 204004ca call p_clear_wake 
+04f9 20200258 branch p_lpm_write_gpio_wakeup 
 
 p_mouse_check_select_device_by_switch:
-04e9 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-04ea c4150000 rtnbit0 mouse_enable_select_device_by_switch_gpio 
-04eb c31f84f6 bbit0 mouse_enable_switch_gpio_connect_vin ,p_mouse_switch_gpio_connect_gnd 
+04fa 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+04fb c4150000 rtnbit0 mouse_enable_select_device_by_switch_gpio 
+04fc c31f8507 bbit0 mouse_enable_switch_gpio_connect_vin ,p_mouse_switch_gpio_connect_gnd 
 
 p_mouse_switch_gpio_connect_vin_check:
-04ec 204004f8 call p_mouse_switch_gpio_pd_set 
-04ed 204004f2 call p_mouse_switch_gpio_connect_vin 
+04fd 20400509 call p_mouse_switch_gpio_pd_set 
+04fe 20400503 call p_mouse_switch_gpio_connect_vin 
 
 p_mouse_switch_gpio_pu_set:
-04ee 6848c65a fetcht 1 ,mem_device_switch_gpio 
-04ef 20406ef3 call gpio_out_inactive 
-04f0 6848c65a fetcht 1 ,mem_device_switch_gpio 
-04f1 202055b5 branch mouse_gpio_config_input_pu 
+04ff 6848c65a fetcht 1 ,mem_device_switch_gpio 
+0500 20406ef3 call gpio_out_inactive 
+0501 6848c65a fetcht 1 ,mem_device_switch_gpio 
+0502 202055b5 branch mouse_gpio_config_input_pu 
 
 p_mouse_switch_gpio_connect_vin:
-04f2 6848c65a fetcht 1 ,mem_device_switch_gpio 
-04f3 20406ee6 call gpio_get_bit 
-04f4 2420dec2 nbranch mouse_check_select_24g_device ,true 
-04f5 20205ebe branch mouse_select_btdevice 
+0503 6848c65a fetcht 1 ,mem_device_switch_gpio 
+0504 20406ee6 call gpio_get_bit 
+0505 2420dec2 nbranch mouse_check_select_24g_device ,true 
+0506 20205ebe branch mouse_select_btdevice 
 
 p_mouse_switch_gpio_connect_gnd:
-04f6 204004ee call p_mouse_switch_gpio_pu_set 
-04f7 20405ebb call mouse_switch_gpio_connect_gnd 
+0507 204004ff call p_mouse_switch_gpio_pu_set 
+0508 20405ebb call mouse_switch_gpio_connect_gnd 
 
 p_mouse_switch_gpio_pd_set:
-04f8 6848c65a fetcht 1 ,mem_device_switch_gpio 
-04f9 20406ef7 call gpio_out_active 
-04fa 6848c65a fetcht 1 ,mem_device_switch_gpio 
-04fb 202055b1 branch mouse_gpio_config_input_pd 
+0509 6848c65a fetcht 1 ,mem_device_switch_gpio 
+050a 20406ef7 call gpio_out_active 
+050b 6848c65a fetcht 1 ,mem_device_switch_gpio 
+050c 202055b1 branch mouse_gpio_config_input_pd 
 
 p_mouse_init_sensor:
-04fc 20405958 call mouse_read_sensor_id 
-04fd c018595f beq p32xx_id1 ,mouse_init_p32xx_id2_judge 
-04fe c018d9c6 beq p3065_id1 ,mouse_init_p3065 
-04ff c02c0501 beq pka8g2_id1 ,p_mouse_ka8g2_id2_judge 
-0500 20205952 branch mouse_init_sensor + 5 
+050d 20405958 call mouse_read_sensor_id 
+050e c018595f beq p32xx_id1 ,mouse_init_p32xx_id2_judge 
+050f c018d9c6 beq p3065_id1 ,mouse_init_p3065 
+0510 c02c0512 beq pka8g2_id1 ,p_mouse_ka8g2_id2_judge 
+0511 20205952 branch mouse_init_sensor + 5 
 
 p_mouse_ka8g2_id2_judge:
-0501 204059e7 call mouse_sensor_poweron 
-0502 6fe0c85a fetch 1 ,mem_sensor_id2 
-0503 c02c8505 beq pka8g2_id2 ,p_mouse_ka8g2_init_param 
-0504 2020595f branch mouse_init_p32xx_id2_judge 
+0512 204059e7 call mouse_sensor_poweron 
+0513 6fe0c85a fetch 1 ,mem_sensor_id2 
+0514 c02c8516 beq pka8g2_id2 ,p_mouse_ka8g2_init_param 
+0515 2020595f branch mouse_init_p32xx_id2_judge 
 
 p_mouse_ka8g2_init_param:
-0505 7049570b jam ka8g2 ,mem_config_sensor_type 
-0506 da604a0b arg mem_sensor_ka8g2_init_new ,regc 
-0507 20205995 branch mouse_sensor_wr_seq 
+0516 7049570b jam ka8g2 ,mem_config_sensor_type 
+0517 da604a0b arg mem_sensor_ka8g2_init_new ,regc 
+0518 20205995 branch mouse_sensor_wr_seq 
 
 p_mouse_check_sensor_data:
-0508 6fe0c420 fetch 1 ,mem_spi_write_flash_sm 
-0509 c1800000 rtnne flash_sm_no_buys 
-050a 6fe0c957 fetch 1 ,mem_config_sensor_type 
-050b c005850d beq ka8g2 ,p_mouse_pka8g2_sensor_motion 
-050c 202059f8 branch mouse_check_sensor_data + 2 
+0519 6fe0c420 fetch 1 ,mem_spi_write_flash_sm 
+051a c1800000 rtnne flash_sm_no_buys 
+051b 6fe0c957 fetch 1 ,mem_config_sensor_type 
+051c c005851e beq ka8g2 ,p_mouse_pka8g2_sensor_motion 
+051d 202059f8 branch mouse_check_sensor_data + 2 
 
 p_mouse_pka8g2_sensor_motion:
-050d 20405a6d call mouse_clear_sensor_data 
-050e 6fe0c659 fetch 1 ,mem_sensor_motion_gpio 
-050f c07f8513 beq gpio_disable ,p_mouse_pka8g2_sensor_motion_1 
-0510 6848c659 fetcht 1 ,mem_sensor_motion_gpio 
-0511 20406ee6 call gpio_get_bit 
-0512 24608000 nrtn true 
+051e 20405a6d call mouse_clear_sensor_data 
+051f 6fe0c659 fetch 1 ,mem_sensor_motion_gpio 
+0520 c07f8524 beq gpio_disable ,p_mouse_pka8g2_sensor_motion_1 
+0521 6848c659 fetcht 1 ,mem_sensor_motion_gpio 
+0522 20406ee6 call gpio_get_bit 
+0523 24608000 nrtn true 
 
 p_mouse_pka8g2_sensor_motion_1:
-0513 58000000 setarg pan_reg_pid_l 
-0514 204069e5 call twspi_read 
-0515 c0ac5955 bne pka8g2_id1 ,mouse_twspi_reset 
-0516 20205a2f branch mouse_p3212_sensor_motion_2 
+0524 58000000 setarg pan_reg_pid_l 
+0525 204069e5 call twspi_read 
+0526 c0ac5955 bne pka8g2_id1 ,mouse_twspi_reset 
+0527 20205a2f branch mouse_p3212_sensor_motion_2 
 
 p_mouse_motion:
-0517 78547c00 disable user 
-0518 58000000 setarg 0 
-0519 67e34847 store 6 ,mem_mouse_x 
-051a 20400508 call p_mouse_check_sensor_data 
-051b 58000089 setarg 0x0089 
-051c 204069e4 call twspi_write 
-051d 20405747 call mouse_setting_sensor_type 
-051e 20405612 call mouse_zwheel 
-051f 20405617 call mouse_t_zwheel 
-0520 20400525 call p_mouse_key 
-0521 2020560c branch mouse_motion + 11 
+0528 78547c00 disable user 
+0529 58000000 setarg 0 
+052a 67e34847 store 6 ,mem_mouse_x 
+052b 20400519 call p_mouse_check_sensor_data 
+052c 58000089 setarg 0x0089 
+052d 204069e4 call twspi_write 
+052e 20405747 call mouse_setting_sensor_type 
+052f 20405612 call mouse_zwheel 
+0530 20405617 call mouse_t_zwheel 
+0531 20400536 call p_mouse_key 
+0532 2020560c branch mouse_motion + 11 
 
 p_mouse_drawing_optima:
-0522 6fe0c957 fetch 1 ,mem_config_sensor_type 
-0523 c1058000 rtneq ka8g2 
-0524 20205f27 branch mouse_drawing_optima + 1 
+0533 6fe0c957 fetch 1 ,mem_config_sensor_type 
+0534 c1058000 rtneq ka8g2 
+0535 20205f27 branch mouse_drawing_optima + 1 
 
 p_mouse_key:
-0525 2040584c call mouse_check_firekey_gpio 
-0526 6fe0c987 fetch 1 ,mem_fire_key_flag 
-0527 243a5860 nbranch fire_key_press ,blank 
-0528 6fe0c982 fetch 1 ,mem_fire_key_status 
-0529 243a585f nbranch fire_key_process ,blank 
-052a 20405888 call mouse_check_key_gpio 
-052b 2040052d call p_mouse_ghost_key_check 
-052c 202057ad branch mouse_key + 7 
+0536 2040584c call mouse_check_firekey_gpio 
+0537 6fe0c987 fetch 1 ,mem_fire_key_flag 
+0538 243a5860 nbranch fire_key_press ,blank 
+0539 6fe0c982 fetch 1 ,mem_fire_key_status 
+053a 243a585f nbranch fire_key_process ,blank 
+053b 20405888 call mouse_check_key_gpio 
+053c 2040053e call p_mouse_ghost_key_check 
+053d 202057ad branch mouse_key + 7 
 
 p_mouse_ghost_key_check:
-052d 70497900 jam 0 ,mem_mouse_matrix_key_cow_count 
-052e 70497a00 jam 0 ,mem_mouse_matrix_key_row_count 
-052f 70497b00 jam 0 ,mem_mouse_ghost_flag 
-0530 1fe22400 copy pdata ,regb 
-0531 6848c644 fetcht 1 ,mem_lbutton_gpio 
-0532 6fe0c647 fetch 1 ,mem_bk_button_gpio 
-0533 98467c00 isub temp ,null 
-0534 2022853f branch p_mouse_matrix_ghost_key_l_bk ,zero 
-0535 6fe0c648 fetch 1 ,mem_fw_button_gpio 
-0536 98467c00 isub temp ,null 
-0537 20228545 branch p_mouse_matrix_ghost_key_l_fw ,zero 
-0538 6848c645 fetcht 1 ,mem_mbutton_gpio 
-0539 6fe0c647 fetch 1 ,mem_bk_button_gpio 
-053a 98467c00 isub temp ,null 
-053b 2022854e branch p_mouse_ghost_key_mbk_rfw ,zero 
+053e 70497900 jam 0 ,mem_mouse_matrix_key_cow_count 
+053f 70497a00 jam 0 ,mem_mouse_matrix_key_row_count 
+0540 70497b00 jam 0 ,mem_mouse_ghost_flag 
+0541 1fe22400 copy pdata ,regb 
+0542 6848c644 fetcht 1 ,mem_lbutton_gpio 
+0543 6fe0c647 fetch 1 ,mem_bk_button_gpio 
+0544 98467c00 isub temp ,null 
+0545 20228550 branch p_mouse_matrix_ghost_key_l_bk ,zero 
+0546 6fe0c648 fetch 1 ,mem_fw_button_gpio 
+0547 98467c00 isub temp ,null 
+0548 20228556 branch p_mouse_matrix_ghost_key_l_fw ,zero 
+0549 6848c645 fetcht 1 ,mem_mbutton_gpio 
+054a 6fe0c647 fetch 1 ,mem_bk_button_gpio 
+054b 98467c00 isub temp ,null 
+054c 2022855f branch p_mouse_ghost_key_mbk_rfw ,zero 
 
 p_mouse_ghost_key_mfw_rbk:
-053c 204057fb call mouse_ghost_key_check_m_fw 
+054d 204057fb call mouse_ghost_key_check_m_fw 
 
 p_mouse_ghost_key_rbk:
-053d 20400553 call p_mouse_ghost_key_check_r_bk 
-053e 202057e5 branch mouse_ghost_key_check_next 
+054e 20400564 call p_mouse_ghost_key_check_r_bk 
+054f 202057e5 branch mouse_ghost_key_check_next 
 
 p_mouse_matrix_ghost_key_l_bk:
-053f 6848c645 fetcht 1 ,mem_mbutton_gpio 
-0540 6fe0c648 fetch 1 ,mem_fw_button_gpio 
-0541 98467c00 isub temp ,null 
-0542 2022d7d6 branch mouse_ghost_key_lbk_mfw ,zero 
+0550 6848c645 fetcht 1 ,mem_mbutton_gpio 
+0551 6fe0c648 fetch 1 ,mem_fw_button_gpio 
+0552 98467c00 isub temp ,null 
+0553 2022d7d6 branch mouse_ghost_key_lbk_mfw ,zero 
 
 p_mouse_ghost_key_lbk_rfw:
-0543 204057ef call mouse_ghost_key_check_l_bk 
-0544 2020054f branch p_mouse_ghost_key_rfw 
+0554 204057ef call mouse_ghost_key_check_l_bk 
+0555 20200560 branch p_mouse_ghost_key_rfw 
 
 p_mouse_matrix_ghost_key_l_fw:
-0545 6848c645 fetcht 1 ,mem_mbutton_gpio 
-0546 6fe0c647 fetch 1 ,mem_bk_button_gpio 
-0547 98467c00 isub temp ,null 
-0548 2022854b branch p_mouse_ghost_key_lfw_mbk ,zero 
+0556 6848c645 fetcht 1 ,mem_mbutton_gpio 
+0557 6fe0c647 fetch 1 ,mem_bk_button_gpio 
+0558 98467c00 isub temp ,null 
+0559 2022855c branch p_mouse_ghost_key_lfw_mbk ,zero 
 
 p_mouse_ghost_key_lfw_rbk:
-0549 20400555 call p_mouse_ghost_key_check_l_fw 
-054a 2020053d branch p_mouse_ghost_key_rbk 
+055a 20400566 call p_mouse_ghost_key_check_l_fw 
+055b 2020054e branch p_mouse_ghost_key_rbk 
 
 p_mouse_ghost_key_lfw_mbk:
-054b 20400555 call p_mouse_ghost_key_check_l_fw 
-054c 20400551 call p_mouse_ghost_key_check_m_bk 
-054d 202057e5 branch mouse_ghost_key_check_next 
+055c 20400566 call p_mouse_ghost_key_check_l_fw 
+055d 20400562 call p_mouse_ghost_key_check_m_bk 
+055e 202057e5 branch mouse_ghost_key_check_next 
 
 p_mouse_ghost_key_mbk_rfw:
-054e 20400551 call p_mouse_ghost_key_check_m_bk 
+055f 20400562 call p_mouse_ghost_key_check_m_bk 
 
 p_mouse_ghost_key_rfw:
-054f 20400557 call p_mouse_ghost_key_check_r_fw 
-0550 202057e5 branch mouse_ghost_key_check_next 
+0560 20400568 call p_mouse_ghost_key_check_r_fw 
+0561 202057e5 branch mouse_ghost_key_check_next 
 
 p_mouse_ghost_key_check_m_bk:
-0551 1a417e12 and regb ,mouse_m_bk_button ,pdata 
-0552 202057f3 branch mouse_ghost_key_check_m_bk + 1 
+0562 1a417e12 and regb ,mouse_m_bk_button ,pdata 
+0563 202057f3 branch mouse_ghost_key_check_m_bk + 1 
 
 p_mouse_ghost_key_check_r_bk:
-0553 1a417e0a and regb ,mouse_r_bk_button ,pdata 
-0554 202057f6 branch mouse_ghost_key_check_r_bk + 1 
+0564 1a417e0a and regb ,mouse_r_bk_button ,pdata 
+0565 202057f6 branch mouse_ghost_key_check_r_bk + 1 
 
 p_mouse_ghost_key_check_l_fw:
-0555 1a417e11 and regb ,mouse_l_fw_button ,pdata 
-0556 202057f9 branch mouse_ghost_key_check_l_fw + 1 
+0566 1a417e11 and regb ,mouse_l_fw_button ,pdata 
+0567 202057f9 branch mouse_ghost_key_check_l_fw + 1 
 
 p_mouse_ghost_key_check_r_fw:
-0557 1a417e12 and regb ,mouse_r_fw_button ,pdata 
-0558 202057ff branch mouse_ghost_key_check_r_fw + 1 
-
-p_mouse_device_led_off:
-0559 6fe0c666 fetch 1 ,mem_device_flag 
-055a c000055e beq mode_24g_device ,p_mouse_device_24g_led_off 
-055b c0008562 beq mode_bt_device1 ,p_mouse_device_bt1_led_off 
-055c c0010566 beq mode_bt_device2 ,p_mouse_device_bt2_led_off 
-055d 20600000 rtn 
-
-p_mouse_device_24g_led_off:
-055e 6848c65d fetcht 1 ,mem_mouse_1io2led_multi_24gled 
-055f 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-0560 c31061e5 bbit0 mouse_enable_1io2led ,mouse_led_off 
-0561 20206f0b branch gpio_set_analog 
-
-p_mouse_device_bt1_led_off:
-0562 6848c65e fetcht 1 ,mem_mouse_1io2led_multi_bt1led 
-0563 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-0564 c31061e5 bbit0 mouse_enable_1io2led ,mouse_led_off 
-0565 20206f0b branch gpio_set_analog 
-
-p_mouse_device_bt2_led_off:
-0566 6848c65f fetcht 1 ,mem_mouse_1io2led_multi_bt2led 
-0567 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-0568 c31061e5 bbit0 mouse_enable_1io2led ,mouse_led_off 
-0569 20206f0b branch gpio_set_analog 
+0568 1a417e12 and regb ,mouse_r_fw_button ,pdata 
+0569 202057ff branch mouse_ghost_key_check_r_fw + 1 
               org 0x2000
 
 start:
Index: output/ramcode.rom
===================================================================
--- /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/ramcode.rom	(revision 3320)
+++ /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/ramcode.rom	(working copy)
@@ -17,11 +17,12 @@
 c0360289
 c0370472
 c0378477
-c03984c6
+c03984d7
 c03a0239
-c03d0517
-c03f84a7
-c04084fc
+c03d0528
+c03f04a7
+c03f84b8
+c040850d
 c04203bc
 c0428407
 c043020e
@@ -32,11 +33,10 @@
 c0460313
 c0468379
 c047048f
-c04804e9
-c0498522
-c04a84bd
-c04b04d2
-c04e8559
+c04804fa
+c0498533
+c04a84ce
+c04b04e3
 c0628267
 c06a822d
 c06b0226
@@ -53,7 +53,7 @@
 c02681b0
 c048026a
 c049027e
-c04b04b4
+c04b04c5
 c04d00f6
 c04e8103
 c04f8296
@@ -546,7 +546,7 @@
 20405ab2
 24740000
 20405abc
-204004de
+204004ef
 20205b37
 18467cff
 20628000
@@ -567,7 +567,7 @@
 58000010
 67f08141
 202023e2
-204004b9
+204004ca
 704b1d00
 6848c654
 20406ef7
@@ -742,7 +742,7 @@
 20205daa
 6fe44713
 c4150000
-204004e9
+204004fa
 6fe0c666
 67e0ca06
 20600000
@@ -1188,7 +1188,24 @@
 6fe0c649
 20405946
 6848c649
-202004a7
+202004b8
+6fe0c73f
+245a5895
+da200000
+20405898
+204058a1
+204004ae
+2020588f
+6848c645
+20405946
+70497702
+6fe0c971
+1fe22600
+6848c645
+20405931
+67e0c971
+6848c645
+202055b5
 1a627e00
 67e0c978
 1fe3fe00
@@ -1205,7 +1222,7 @@
 204036b4
 24740000
 204036be
-204004b9
+204004ca
 2020361b
 58000000
 67e40016
@@ -1221,7 +1238,7 @@
 204059ed
 2020622b
 20405a92
-204004b9
+204004ca
 204056a9
 6fe0c64d
 20405943
@@ -1237,12 +1254,12 @@
 24740000
 6fe0c77c
 70477c00
-245a04e7
+245a04f8
 6fe44713
-c30b04dc
+c30b04ed
 6fe0c96c
 243a60b6
-204004de
+204004ef
 202060a2
 6fe0c659
 c1ff8000
@@ -1253,13 +1270,13 @@
 58000000
 67e24847
 20205a73
-204004b9
+204004ca
 20200258
 6fe44713
 c4150000
-c31f84f6
-204004f8
-204004f2
+c31f8507
+20400509
+20400503
 6848c65a
 20406ef3
 6848c65a
@@ -1268,7 +1285,7 @@
 20406ee6
 2420dec2
 20205ebe
-204004ee
+204004ff
 20405ebb
 6848c65a
 20406ef7
@@ -1277,11 +1294,11 @@
 20405958
 c018595f
 c018d9c6
-c02c0501
+c02c0512
 20205952
 204059e7
 6fe0c85a
-c02c8505
+c02c8516
 2020595f
 7049570b
 da604a0b
@@ -1289,11 +1306,11 @@
 6fe0c420
 c1800000
 6fe0c957
-c005850d
+c005851e
 202059f8
 20405a6d
 6fe0c659
-c07f8513
+c07f8524
 6848c659
 20406ee6
 24608000
@@ -1304,13 +1321,13 @@
 78547c00
 58000000
 67e34847
-20400508
+20400519
 58000089
 204069e4
 20405747
 20405612
 20405617
-20400525
+20400536
 2020560c
 6fe0c957
 c1058000
@@ -1321,7 +1338,7 @@
 6fe0c982
 243a585f
 20405888
-2040052d
+2040053e
 202057ad
 70497900
 70497a00
@@ -1330,34 +1347,34 @@
 6848c644
 6fe0c647
 98467c00
-2022853f
+20228550
 6fe0c648
 98467c00
-20228545
+20228556
 6848c645
 6fe0c647
 98467c00
-2022854e
+2022855f
 204057fb
-20400553
+20400564
 202057e5
 6848c645
 6fe0c648
 98467c00
 2022d7d6
 204057ef
-2020054f
+20200560
 6848c645
 6fe0c647
 98467c00
-2022854b
-20400555
-2020053d
-20400555
-20400551
+2022855c
+20400566
+2020054e
+20400566
+20400562
 202057e5
-20400551
-20400557
+20400562
+20400568
 202057e5
 1a417e12
 202057f3
@@ -1367,20 +1384,3 @@
 202057f9
 1a417e12
 202057ff
-6fe0c666
-c000055e
-c0008562
-c0010566
-20600000
-6848c65d
-6fe44713
-c31061e5
-20206f0b
-6848c65e
-6fe44713
-c31061e5
-20206f0b
-6848c65f
-6fe44713
-c31061e5
-20206f0b
Index: output/sched.rom
===================================================================
--- /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/sched.rom	(revision 3320)
+++ /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/output/sched.rom	(working copy)
@@ -14,11 +14,11 @@
 00   #mem_patch0c
 d7   #mem_patch0d
 18   #mem_patch0e
-84   #mem_patch0f
+c4   #mem_patch0f
 f2   #mem_patch10
 7d   #mem_patch11
 69   #mem_patch12
-20   #mem_patch13
+00   #mem_patch13
 00   #mem_patch14
 00   #mem_patch15
 00   #mem_patch16
@@ -117,7 +117,7 @@
 #bit4 MOUSE_ENABLE_LOW_FOR_LED
 #bit5 MOUSE_ENABLE_DPI_FOR_LED
 #bit6 MOUSE_ENABLE_DPI_LOW_FOR_LED
-1b
+02
 
 #mouse flag byte6 
 #bit0 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON
@@ -154,8 +154,8 @@
 
 mem_mouse_param_config:
 08 #mem_lbutton_gpio
-04 #mem_mbutton_gpio
-07 #mem_rbutton_gpio
+07 #mem_mbutton_gpio
+09 #mem_rbutton_gpio
 ff #mem_bk_button_gpio
 ff #mem_fw_button_gpio
 08 #mem_dpi_button_gpio
@@ -170,7 +170,7 @@
 ff #mem_whee_ta_data_gpio
 ff #mem_whee_tb_data_gpio
 ff #mem_matrix_public_gpio
-09 #mem_config_select_device_button_gpio
+07 #mem_config_select_device_button_gpio
 ff #mem_customer_key_gpio
 ff #mem_firebutton_gpio
 ff #mem_dpi_another_button_gpio
@@ -178,7 +178,7 @@
 ff #mem_device_switch_gpio
 05 #mem_mouse_reuse_2ice_gpio
 ff #mem_mouse_logo_led_gpio
-00 #mem_mouse_1io2led_multi_24gled
+84 #mem_mouse_1io2led_multi_24gled
 80 #mem_mouse_1io2led_multi_bt1led
 92 #mem_mouse_1io2led_multi_bt2led
 ff #mem_mouse_low_voltage_alarm_gpio
Index: program/patch.prog
===================================================================
--- /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/program/patch.prog	(revision 3320)
+++ /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/program/patch.prog	(working copy)
@@ -40,7 +40,7 @@
 	beq patch0e_7,p_mouse_adc_read_start
 endif
 	beq patch0f_2,p_mouse_motion
-	// beq patch0f_6,p_mouse_check_key_gpio
+	beq patch0f_6,p_mouse_check_key_gpio
 	beq patch0f_7,p_mouse_3io6key_check
 	beq patch10_1,p_mouse_init_sensor
 	beq patch10_4,p_mouse_buletooth_fast_conn_end
@@ -57,7 +57,7 @@
 	beq patch12_3,p_mouse_drawing_optima
 	beq patch12_5,p_mouse_24g_hibernate_set
 	beq patch12_6,p_mouse_24g_package_data
-	beq patch13_5,p_mouse_device_led_off
+	// beq patch13_5,p_mouse_device_led_off
 	// beq patch16_1,p_app_init
 	beq patch18_5,p_otp_read_data
 	beq patch1a_5,p_gpio_set_wake_by_current_state	
@@ -1780,27 +1780,27 @@
 	fetcht 1,mem_dpi_button_gpio
 	branch p_mouse_3io6key_check
 	
-// p_mouse_check_key_gpio:
-// 	fetch 1,mem_sensor_shutdown_flag
-// 	ncall mouse_check_key_gpio_once,blank
-// 	arg 0,rega
-// 	call mouse_check_lkey_gpio
-// 	call mouse_check_rkey_gpio
-// 	call mouse_check_mkey_gpio
-// 	// call p_mouse_check_mkey_gpio
-// 	branch mouse_check_key_gpio+7
-
-// p_mouse_check_mkey_gpio:
-// 	fetcht 1,mem_mbutton_gpio
-// 	call mouse_gpio_config_output_low
-// 	jam MOUSE_M_KEY,mem_mouse_key_temp
-// 	fetch 1,mem_mouse_mkey_press_status
-// 	copy pdata,regc
-// 	fetcht 1,mem_mbutton_gpio
-// 	call mouse_3io6key_check
-// 	store 1,mem_mouse_mkey_press_status
-// 	fetcht 1,mem_mbutton_gpio
-// 	branch mouse_gpio_config_input_pu
+p_mouse_check_key_gpio:
+	fetch 1,mem_sensor_shutdown_flag
+	ncall mouse_check_key_gpio_once,blank
+	arg 0,rega
+	call mouse_check_lkey_gpio
+	call mouse_check_rkey_gpio
+	// call mouse_check_mkey_gpio
+	call p_mouse_check_mkey_gpio
+	branch mouse_check_key_gpio+7
+
+p_mouse_check_mkey_gpio:
+	fetcht 1,mem_mbutton_gpio
+	call mouse_gpio_config_output_low
+	jam MOUSE_M_KEY,mem_mouse_key_temp
+	fetch 1,mem_mouse_mkey_press_status
+	copy pdata,regc
+	fetcht 1,mem_mbutton_gpio
+	call mouse_3io6key_check
+	store 1,mem_mouse_mkey_press_status
+	fetcht 1,mem_mbutton_gpio
+	branch mouse_gpio_config_input_pu
 	
 p_mouse_3io6key_check:
 	copy regc,pdata
@@ -2075,27 +2075,27 @@
 	and regb,MOUSE_R_FW_BUTTON,pdata
 	branch mouse_ghost_key_check_R_FW+1
 
-p_mouse_device_led_off:
-	fetch 1,mem_device_flag
-	beq MODE_24G_DEVICE,p_mouse_device_24g_led_off
-	beq MODE_BT_DEVICE1,p_mouse_device_bt1_led_off
-	beq MODE_BT_DEVICE2,p_mouse_device_bt2_led_off
-	rtn
-p_mouse_device_24g_led_off:
-	fetcht 1,mem_mouse_1io2led_multi_24gled
-	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	bbit0 MOUSE_ENABLE_1IO2LED,mouse_led_off
-	branch gpio_set_analog
-p_mouse_device_bt1_led_off:
-	fetcht 1,mem_mouse_1io2led_multi_bt1led
-	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	bbit0 MOUSE_ENABLE_1IO2LED,mouse_led_off
-	branch gpio_set_analog
-p_mouse_device_bt2_led_off:
-	fetcht 1,mem_mouse_1io2led_multi_bt2led
-	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	bbit0 MOUSE_ENABLE_1IO2LED,mouse_led_off
-	branch gpio_set_analog
+// p_mouse_device_led_off:
+// 	fetch 1,mem_device_flag
+// 	beq MODE_24G_DEVICE,p_mouse_device_24g_led_off
+// 	beq MODE_BT_DEVICE1,p_mouse_device_bt1_led_off
+// 	beq MODE_BT_DEVICE2,p_mouse_device_bt2_led_off
+// 	rtn
+// p_mouse_device_24g_led_off:
+// 	fetcht 1,mem_mouse_1io2led_multi_24gled
+// 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+// 	bbit0 MOUSE_ENABLE_1IO2LED,mouse_led_off
+// 	branch gpio_set_analog
+// p_mouse_device_bt1_led_off:
+// 	fetcht 1,mem_mouse_1io2led_multi_bt1led
+// 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+// 	bbit0 MOUSE_ENABLE_1IO2LED,mouse_led_off
+// 	branch gpio_set_analog
+// p_mouse_device_bt2_led_off:
+// 	fetcht 1,mem_mouse_1io2led_multi_bt2led
+// 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+// 	bbit0 MOUSE_ENABLE_1IO2LED,mouse_led_off
+// 	branch gpio_set_analog
 
 ifdef ADC_1121SB
 p_mouse_adc_read_start:
Index: sched/mouse.dat
===================================================================
--- /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/sched/mouse.dat	(revision 3320)
+++ /1121s/branch/mouse/YC_Project/PB_3mode_MJ-M5DM/sched/mouse.dat	(working copy)
@@ -50,7 +50,7 @@
 #bit4 MOUSE_ENABLE_LOW_FOR_LED
 #bit5 MOUSE_ENABLE_DPI_FOR_LED
 #bit6 MOUSE_ENABLE_DPI_LOW_FOR_LED
-1b
+02
 
 #mouse flag byte6 
 #bit0 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON
@@ -87,8 +87,8 @@
 
 mem_mouse_param_config:
 08 #mem_lbutton_gpio
-04 #mem_mbutton_gpio
-07 #mem_rbutton_gpio
+07 #mem_mbutton_gpio
+09 #mem_rbutton_gpio
 ff #mem_bk_button_gpio
 ff #mem_fw_button_gpio
 08 #mem_dpi_button_gpio
@@ -103,7 +103,7 @@
 ff #mem_whee_ta_data_gpio
 ff #mem_whee_tb_data_gpio
 ff #mem_matrix_public_gpio
-09 #mem_config_select_device_button_gpio
+07 #mem_config_select_device_button_gpio
 ff #mem_customer_key_gpio
 ff #mem_firebutton_gpio
 ff #mem_dpi_another_button_gpio
@@ -111,7 +111,7 @@
 ff #mem_device_switch_gpio
 05 #mem_mouse_reuse_2ice_gpio
 ff #mem_mouse_logo_led_gpio
-00 #mem_mouse_1io2led_multi_24gled
+84 #mem_mouse_1io2led_multi_24gled
 80 #mem_mouse_1io2led_multi_bt1led
 92 #mem_mouse_1io2led_multi_bt2led
 ff #mem_mouse_low_voltage_alarm_gpio
