Index: btkb/output/bt_program23.icode
===================================================================
--- /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/btkb/output/bt_program23.icode	(revision 970)
+++ /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/btkb/output/bt_program23.icode	(working copy)
@@ -1673,7 +1673,7 @@
  00001672  0x00000932 bne  0x000000ff , 0x000006fa 
  00001673  0x00000933 call  0x0000068e 
  00001674  0x00000934 call  0x000006a5 , 0x00000028 
- 00001675  0x00000935 call  0x00000769 , 0x00000028 
+ 00001675  0x00000935 call  0x00000764 , 0x00000028 
  00001676  0x00000937 jam  0x00000001 , 0x00004be6 
  00001677  0x00000938 rtn 
  00001678  0x0000093b disable  0x00000028 
@@ -1728,20 +1728,20 @@
  00001727  0x0000097e fetch  0x00000001 , 0x00004be7 
  00001728  0x0000097f arg  0x00000010 , 0x00000002 
  00001729  0x00000980 isub  0x00000002 , 0x0000003e 
- 00001730  0x00000981 branch  0x00000788 , 0x00000002 
+ 00001730  0x00000981 branch  0x00000783 , 0x00000002 
  00001731  0x00000982 fetch  0x00000001 , 0x00004be8 
  00001732  0x00000983 increase  0x00000001 , 0x0000003f 
  00001733  0x00000984 store  0x00000001 , 0x00004be8 
  00001734  0x00000985 nop  0x0000000a 
  00001735  0x00000986 bne  0x00000004 , 0x000006aa 
- 00001736  0x00000987 branch  0x00000788 
+ 00001736  0x00000987 branch  0x00000783 
  00001737  0x0000098b setarg  0x00000000 
  00001738  0x0000098c store  0x00000009 , 0x00000cd5 
  00001739  0x0000098d store  0x00000009 , 0x00004d57 
  00001740  0x0000098e rtn 
  00001741  0x0000099b branch  0x00000714 
  00001742  0x0000099e disable  0x0000002f 
- 00001743  0x0000099f call  0x000007e0 
+ 00001743  0x0000099f call  0x000007db 
  00001744  0x000009a0 nop  0x000004b0 
  00001745  0x000009a3 force  0x00000000 , 0x00000015 
  00001746  0x000009a4 fetch  0x00000004 , 0x00004c00 
@@ -1749,8 +1749,8 @@
  00001748  0x000009a6 fetcht  0x00000001 , 0x00000017 
  00001749  0x000009a7 call  0x00003a82 
  00001750  0x000009a8 call  0x00003a87 
- 00001751  0x000009a9 call  0x000007a0 
- 00001752  0x000009aa call  0x000007da , 0x0000002f 
+ 00001751  0x000009a9 call  0x0000079b 
+ 00001752  0x000009aa call  0x000007d5 , 0x0000002f 
  00001753  0x000009ab rtn 
  00001754  0x000009b3 jam  0x00000000 , 0x00004d45 
  00001755  0x000009b4 rtn 
@@ -1783,7 +1783,7 @@
  00001782  0x000009df jam  0x00000000 , 0x00004be0 
  00001783  0x000009e0 jam  0x0000004a , 0x00004be9 
  00001784  0x000009e1 fetch  0x00000004 , 0x00004beb 
- 00001785  0x000009e2 branch  0x0000075b 
+ 00001785  0x000009e2 branch  0x00000756 
  00001786  0x000009e5 call  0x000006f6 
  00001787  0x000009e6 fetch  0x00000001 , 0x00004be6 
  00001788  0x000009e7 beq  0x00000001 , 0x000034df 
@@ -1807,7 +1807,7 @@
  00001806  0x00000a01 arg  0x00000d37 , 0x00000011 
  00001807  0x00000a02 arg  0x00000007 , 0x00000002 
  00001808  0x00000a03 call  0x00000744 
- 00001809  0x00000a04 call  0x00000769 
+ 00001809  0x00000a04 call  0x00000764 
  00001810  0x00000a05 call  0x0000068c 
  00001811  0x00000a06 branch  0x000034df 
  00001812  0x00000a09 fetch  0x00000001 , 0x00004bef 
@@ -1824,11 +1824,11 @@
  00001823  0x00000a19 jam  0x00000031 , 0x00000b7d 
  00001824  0x00000a1a call  0x00007c27 
  00001825  0x00000a1b fetch  0x00000004 , 0x00000d19 
- 00001826  0x00000a1c call  0x0000075b 
+ 00001826  0x00000a1c call  0x00000756 
  00001827  0x00000a1d branch  0x000006b3 
  00001828  0x00000a21 set1  0x00000023 , 0x00000000 
- 00001829  0x00000a22 call  0x0000075c 
- 00001830  0x00000a23 call  0x00000788 
+ 00001829  0x00000a22 call  0x00000757 
+ 00001830  0x00000a23 call  0x00000783 
  00001831  0x00000a24 fetch  0x00000001 , 0x00004bef 
  00001832  0x00000a25 rtnne  0x000000ff 
  00001833  0x00000a26 call  0x00000736 
@@ -1852,11 +1852,11 @@
  00001851  0x00000a3d arg  0x00000006 , 0x00000002 
  00001852  0x00000a3e arg  0x00000d37 , 0x00000011 
  00001853  0x00000a3f call  0x00000744 
- 00001854  0x00000a40 branch  0x00000769 
+ 00001854  0x00000a40 branch  0x00000764 
  00001855  0x00000a43 fetch  0x00000002 , 0x00004c04 
  00001856  0x00000a44 increase  0x00000001 , 0x0000003f 
  00001857  0x00000a45 store  0x00000002 , 0x00004c04 
- 00001858  0x00000a46 call  0x00000788 
+ 00001858  0x00000a46 call  0x00000783 
  00001859  0x00000a47 branch  0x0000072c 
  00001860  0x00000a4b storet  0x00000001 , 0x00004be1 
  00001861  0x00000a4c copy  0x00000002 , 0x00000039 
@@ -1866,187 +1866,182 @@
  00001865  0x00000a53 fetch  0x00000001 , 0x00000cb4 
  00001866  0x00000a54 rshift3  0x0000003f , 0x0000003f 
  00001867  0x00000a55 store  0x00000001 , 0x00004bdf 
- 00001868  0x00000a57 increase  0x00000001 , 0x0000003f 
- 00001869  0x00000a58 arg  0x00000cb4 , 0x00000006 
- 00001870  0x00000a59 iadd  0x00000006 , 0x00000006 
- 00001871  0x00000a5a ifetch  0x00000003 , 0x00000006 
- 00001872  0x00000a5b store  0x00000003 , 0x00004c0b 
- 00001873  0x00000a5c rtn 
- 00001874  0x00000a5f fetcht  0x00000001 , 0x00004c3c 
- 00001875  0x00000a60 setarg  0x00004c2b 
- 00001876  0x00000a61 iadd  0x00000002 , 0x00000005 
- 00001877  0x00000a62 copy  0x00000011 , 0x0000003f 
- 00001878  0x00000a63 istore  0x00000001 , 0x00000005 
- 00001879  0x00000a64 increase  0x00000001 , 0x00000002 
- 00001880  0x00000a65 and_into  0x00000007 , 0x00000002 
- 00001881  0x00000a66 storet  0x00000001 , 0x00004c3c 
- 00001882  0x00000a67 rtn 
- 00001883  0x00000a7c store  0x00000004 , 0x00004c00 
- 00001884  0x00000a80 arg  0x00000000 , 0x00000011 
- 00001885  0x00000a81 arg  0x00000004 , 0x00000039 
- 00001886  0x00000a82 arg  0x00004c00 , 0x00000006 
- 00001887  0x00000a84 ifetch  0x00000001 , 0x00000006 
- 00001888  0x00000a85 iadd  0x00000011 , 0x00000011 
- 00001889  0x00000a86 loop  0x0000075f 
- 00001890  0x00000a87 copy  0x00000011 , 0x0000003f 
- 00001891  0x00000a88 store  0x00000002 , 0x00004c16 
- 00001892  0x00000a89 fetch  0x00000001 , 0x00004c16 
- 00001893  0x00000a8a fetcht  0x00000001 , 0x00004c17 
- 00001894  0x00000a8b iadd  0x00000002 , 0x0000003f 
- 00001895  0x00000a8c store  0x00000001 , 0x00004c18 
- 00001896  0x00000a8d rtn 
- 00001897  0x00000a92 fetch  0x00000001 , 0x00004be1 
- 00001898  0x00000a93 increase  0x00000002 , 0x0000003f 
- 00001899  0x00000a94 store  0x00000001 , 0x00004be3 
- 00001900  0x00000a96 fetch  0x00000001 , 0x00004be2 
- 00001901  0x00000a97 store  0x00000001 , 0x00000cf5 
- 00001902  0x00000a99 fetch  0x00000001 , 0x00004be1 
- 00001903  0x00000a9a lshift3  0x0000003f , 0x0000003f 
- 00001904  0x00000a9b fetcht  0x00000001 , 0x00004be0 
- 00001905  0x00000a9c and  0x00000002 , 0x00000003 , 0x00000002 
- 00001906  0x00000a9d lshift  0x00000002 , 0x00000002 
- 00001907  0x00000a9e ior  0x00000002 , 0x0000003f 
- 00001908  0x00000a9f fetcht  0x00000001 , 0x00004c0a 
- 00001909  0x00000aa0 iadd  0x00000002 , 0x0000003f 
- 00001910  0x00000aa1 istore  0x00000001 , 0x00000005 
- 00001911  0x00000aa3 fetch  0x00000001 , 0x00004bef 
- 00001912  0x00000aa4 bne  0x000000ff , 0x0000077b 
- 00001913  0x00000aa5 fetch  0x00000001 , 0x00004be2 
- 00001914  0x00000aa6 istore  0x00000001 , 0x00000005 
- 00001915  0x00000aa8 fetch  0x00000001 , 0x00004be1 
- 00001916  0x00000aa9 iforce  0x00000039 
- 00001917  0x00000aaa fetch  0x00000001 , 0x00004be2 
- 00001918  0x00000aab beq  0x00000001 , 0x00000786 
- 00001919  0x00000aac arg  0x00000cd5 , 0x00000006 
- 00001920  0x00000aad call  0x00007e45 
- 00001921  0x00000ab1 fetch  0x00000001 , 0x00000cd5 
- 00001922  0x00000ab2 beq  0x00000003 , 0x00000784 
- 00001923  0x00000ab3 rtn 
- 00001924  0x00000ab5 jam  0x00000002 , 0x00000cd5 
- 00001925  0x00000ab6 rtn 
- 00001926  0x00000aba arg  0x00000cd6 , 0x00000006 
- 00001927  0x00000abb branch  0x00007e45 
- 00001928  0x00000abe fetcht  0x00000001 , 0x00004bea 
- 00001929  0x00000abf call  0x0000078e 
- 00001930  0x00000ac0 increase  0x00000001 , 0x00000002 
- 00001931  0x00000ac1 and_into  0x00000003 , 0x00000002 
- 00001932  0x00000ac2 storet  0x00000001 , 0x00004bea 
- 00001933  0x00000ac3 rtn 
- 00001934  0x00000ac6 fetch  0x00000001 , 0x00004c00 
- 00001935  0x00000ac7 and_into  0x00000003 , 0x0000003f 
- 00001936  0x00000ac8 mul32  0x0000003f , 0x00000004 , 0x00000011 
- 00001937  0x00000ac9 setarg  0x00004bf0 
- 00001938  0x00000aca iadd  0x00000011 , 0x0000003f 
- 00001939  0x00000acb iadd  0x00000002 , 0x00000006 
- 00001940  0x00000acc ifetch  0x00000001 , 0x00000006 
- 00001941  0x00000acd store  0x00000001 , 0x00004be9 
- 00001942  0x00000ace rtn 
- 00001943  0x00000ad1 disable  0x00000009 
- 00001944  0x00000ad2 disable  0x00000007 
- 00001945  0x00000ad3 setarg  0x00555555 
- 00001946  0x00000ad4 iforce  0x0000000f 
- 00001947  0x00000ad5 fetch  0x00000001 , 0x00004be9 
- 00001948  0x00000ad6 reverse  0x0000003f , 0x00000002 
- 00001949  0x00000ad7 set1  0x00000001 , 0x00000002 
- 00001950  0x00000ad8 rshift  0x00000002 , 0x0000000e 
- 00001951  0x00000ad9 rtn 
- 00001952  0x00000adc call  0x00000797 
- 00001953  0x00000add enable  0x0000000d 
- 00001954  0x00000ade enable  0x00000021 
- 00001955  0x00000adf disable  0x00000020 
- 00001956  0x00000ae0 enable  0x00000010 
- 00001957  0x00000ae1 fetch  0x00000002 , 0x00004be4 
- 00001958  0x00000ae2 iforce  0x0000001b 
- 00001959  0x00000ae3 correlate  0x0000003e , 0x00000003 
- 00001960  0x00000ae4 nbranch  0x000007da , 0x00000018 
- 00001961  0x00000ae5 disable  0x0000000d 
- 00001962  0x00000ae6 enable  0x0000000b 
- 00001963  0x00000ae7 enable  0x00000007 
- 00001964  0x00000ae8 enable  0x00000009 
- 00001965  0x00000ae9 parse  0x00000003 , 0x00000000 , 0x00000008 
- 00001966  0x00000aea rshift3  0x0000000c , 0x0000003f 
- 00001967  0x00000aeb store  0x00000001 , 0x00004c19 
- 00001968  0x00000aec fetcht  0x00000001 , 0x00004c18 
- 00001969  0x00000aed isub  0x00000002 , 0x0000003e 
- 00001970  0x00000aee nbranch  0x000007da , 0x00000005 
- 00001971  0x00000aef parse  0x00000003 , 0x00000000 , 0x00000008 
- 00001972  0x00000af0 rshift3  0x0000000c , 0x0000003f 
- 00001973  0x00000af1 store  0x00000001 , 0x00000cb3 
- 00001974  0x00000af5 fetch  0x00000001 , 0x00000cb3 
- 00001975  0x00000af6 fetcht  0x00000001 , 0x00004be2 
- 00001976  0x00000af7 icompare  0x00000007 , 0x00000002 
- 00001977  0x00000af8 nbranch  0x000007da , 0x00000001 
- 00001978  0x00000afa parse  0x00000003 , 0x00000000 , 0x00000008 
- 00001979  0x00000afb rshift3  0x0000000c , 0x0000003f 
- 00001980  0x00000afc istore  0x00000001 , 0x00000005 
- 00001981  0x00000afd rshift3  0x0000003f , 0x0000003f 
- 00001982  0x00000afe and  0x0000003f , 0x0000001f , 0x00000039 
- 00001983  0x00000aff branch  0x000007c4 , 0x00000005 
- 00001984  0x00000b01 parse  0x00000003 , 0x00000000 , 0x00000008 
- 00001985  0x00000b02 rshift3  0x0000000c , 0x0000003f 
- 00001986  0x00000b03 istore  0x00000001 , 0x00000005 
- 00001987  0x00000b04 loop  0x000007c0 
- 00001988  0x00000b07 copy  0x00000005 , 0x00000011 
- 00001989  0x00000b08 parse  0x00000003 , 0x00000000 , 0x00000008 
- 00001990  0x00000b09 rshift3  0x0000000c , 0x0000003f 
- 00001991  0x00000b0a store  0x00000001 , 0x00004c2a 
- 00001992  0x00000b0b copy  0x00000011 , 0x00000005 
- 00001993  0x00000b0c parse  0x00000003 , 0x00000000 , 0x00000018 
- 00001994  0x00000b0d enable  0x00000010 
- 00001995  0x00000b0e arg  0x00000664 , 0x0000001b 
- 00001996  0x00000b0f rshift32  0x0000003f , 0x0000003f 
- 00001997  0x00000b10 rshift16  0x0000003f , 0x0000003f 
- 00001998  0x00000b11 istore  0x00000003 , 0x00000005 
- 00001999  0x00000b12 disable  0x0000000b 
- 00002000  0x00000b13 branch  0x000007da , 0x00000006 
- 00002001  0x00000b14 enable  0x0000002f 
- 00002002  0x00000b15 fetch  0x00000001 , 0x00000017 
- 00002003  0x00000b16 add  0x0000003f , 0x00000000 , 0x00000011 
- 00002004  0x00000b17 call  0x00003ab6 
- 00002005  0x00000b18 disable  0x0000000d 
- 00002006  0x00000b19 call  0x00003a7a 
- 00002007  0x00000b1a fetch  0x00000001 , 0x00004c2a 
- 00002008  0x00000b1b copy  0x0000003f , 0x00000011 
- 00002009  0x00000b1c branch  0x00000752 
- 00002010  0x00000b23 disable  0x0000001b 
- 00002011  0x00000b24 disable  0x0000000b 
- 00002012  0x00000b25 branch  0x0000375c 
- 00002013  0x00000b28 call  0x00003a7a 
- 00002014  0x00000b29 fetcht  0x00000001 , 0x00004be9 
- 00002015  0x00000b2a branch  0x00003a91 
- 00002016  0x00000b2d call  0x000053d2 
- 00002017  0x00000b2e fetch  0x00000004 , 0x00004c00 
- 00002018  0x00000b2f iforce  0x00000009 
- 00002019  0x00000b30 call  0x00000797 
- 00002020  0x00000b31 call  0x000007dd 
- 00002021  0x00000b32 set1  0x00000000 , 0x00000015 
- 00002022  0x00000b33 enable  0x0000001d 
- 00002023  0x00000b34 enable  0x00000020 
- 00002024  0x00000b35 disable  0x00000021 
- 00002025  0x00000b36 rshift16  0x00000009 , 0x0000003f 
- 00002026  0x00000b37 rshift8  0x0000003f , 0x0000003f 
- 00002027  0x00000b38 rshift4  0x0000003f , 0x0000003f 
- 00002028  0x00000b39 inject  0x00000003 , 0x00000028 
- 00002029  0x00000b3a disable  0x0000001d 
- 00002030  0x00000b3b enable  0x0000001b 
- 00002031  0x00000b3c enable  0x00000007 
- 00002032  0x00000b3d enable  0x00000009 
- 00002033  0x00000b3e fetch  0x00000001 , 0x00004c18 
- 00002034  0x00000b3f inject  0x00000003 , 0x00000008 
- 00002035  0x00000b40 fetch  0x00000001 , 0x00004be3 
- 00002036  0x00000b41 iforce  0x00000039 
- 00002037  0x00000b42 arg  0x00000cf5 , 0x00000006 
- 00002038  0x00000b44 ifetch  0x00000001 , 0x00000006 
- 00002039  0x00000b45 inject  0x00000003 , 0x00000008 
- 00002040  0x00000b46 loop  0x000007f6 
- 00002041  0x00000b47 enable  0x00000008 
- 00002042  0x00000b48 inject  0x00000003 , 0x00000018 
- 00002043  0x00000b49 disable  0x00000008 
- 00002044  0x00000b4a until  0x0000003e , 0x00000027 
- 00002045  0x00000b4b nop  0x00000064 
- 00002046  0x00000b4c disable  0x0000001d 
- 00002047  0x00000b4d disable  0x0000001b 
- 00002048  0x00000b4e branch  0x00003a7a 
+ 00001868  0x00000a5c rtn 
+ 00001869  0x00000a5f fetcht  0x00000001 , 0x00004c3c 
+ 00001870  0x00000a60 setarg  0x00004c2b 
+ 00001871  0x00000a61 iadd  0x00000002 , 0x00000005 
+ 00001872  0x00000a62 copy  0x00000011 , 0x0000003f 
+ 00001873  0x00000a63 istore  0x00000001 , 0x00000005 
+ 00001874  0x00000a64 increase  0x00000001 , 0x00000002 
+ 00001875  0x00000a65 and_into  0x00000007 , 0x00000002 
+ 00001876  0x00000a66 storet  0x00000001 , 0x00004c3c 
+ 00001877  0x00000a67 rtn 
+ 00001878  0x00000a7c store  0x00000004 , 0x00004c00 
+ 00001879  0x00000a80 arg  0x00000000 , 0x00000011 
+ 00001880  0x00000a81 arg  0x00000004 , 0x00000039 
+ 00001881  0x00000a82 arg  0x00004c00 , 0x00000006 
+ 00001882  0x00000a84 ifetch  0x00000001 , 0x00000006 
+ 00001883  0x00000a85 iadd  0x00000011 , 0x00000011 
+ 00001884  0x00000a86 loop  0x0000075a 
+ 00001885  0x00000a87 copy  0x00000011 , 0x0000003f 
+ 00001886  0x00000a88 store  0x00000002 , 0x00004c16 
+ 00001887  0x00000a89 fetch  0x00000001 , 0x00004c16 
+ 00001888  0x00000a8a fetcht  0x00000001 , 0x00004c17 
+ 00001889  0x00000a8b iadd  0x00000002 , 0x0000003f 
+ 00001890  0x00000a8c store  0x00000001 , 0x00004c18 
+ 00001891  0x00000a8d rtn 
+ 00001892  0x00000a92 fetch  0x00000001 , 0x00004be1 
+ 00001893  0x00000a93 increase  0x00000002 , 0x0000003f 
+ 00001894  0x00000a94 store  0x00000001 , 0x00004be3 
+ 00001895  0x00000a96 fetch  0x00000001 , 0x00004be2 
+ 00001896  0x00000a97 store  0x00000001 , 0x00000cf5 
+ 00001897  0x00000a99 fetch  0x00000001 , 0x00004be1 
+ 00001898  0x00000a9a lshift3  0x0000003f , 0x0000003f 
+ 00001899  0x00000a9b fetcht  0x00000001 , 0x00004be0 
+ 00001900  0x00000a9c and  0x00000002 , 0x00000003 , 0x00000002 
+ 00001901  0x00000a9d lshift  0x00000002 , 0x00000002 
+ 00001902  0x00000a9e ior  0x00000002 , 0x0000003f 
+ 00001903  0x00000a9f fetcht  0x00000001 , 0x00004c0a 
+ 00001904  0x00000aa0 iadd  0x00000002 , 0x0000003f 
+ 00001905  0x00000aa1 istore  0x00000001 , 0x00000005 
+ 00001906  0x00000aa3 fetch  0x00000001 , 0x00004bef 
+ 00001907  0x00000aa4 bne  0x000000ff , 0x00000776 
+ 00001908  0x00000aa5 fetch  0x00000001 , 0x00004be2 
+ 00001909  0x00000aa6 istore  0x00000001 , 0x00000005 
+ 00001910  0x00000aa8 fetch  0x00000001 , 0x00004be1 
+ 00001911  0x00000aa9 iforce  0x00000039 
+ 00001912  0x00000aaa fetch  0x00000001 , 0x00004be2 
+ 00001913  0x00000aab beq  0x00000001 , 0x00000781 
+ 00001914  0x00000aac arg  0x00000cd5 , 0x00000006 
+ 00001915  0x00000aad call  0x00007e45 
+ 00001916  0x00000ab1 fetch  0x00000001 , 0x00000cd5 
+ 00001917  0x00000ab2 beq  0x00000003 , 0x0000077f 
+ 00001918  0x00000ab3 rtn 
+ 00001919  0x00000ab5 jam  0x00000002 , 0x00000cd5 
+ 00001920  0x00000ab6 rtn 
+ 00001921  0x00000aba arg  0x00000cd6 , 0x00000006 
+ 00001922  0x00000abb branch  0x00007e45 
+ 00001923  0x00000abe fetcht  0x00000001 , 0x00004bea 
+ 00001924  0x00000abf call  0x00000789 
+ 00001925  0x00000ac0 increase  0x00000001 , 0x00000002 
+ 00001926  0x00000ac1 and_into  0x00000003 , 0x00000002 
+ 00001927  0x00000ac2 storet  0x00000001 , 0x00004bea 
+ 00001928  0x00000ac3 rtn 
+ 00001929  0x00000ac6 fetch  0x00000001 , 0x00004c00 
+ 00001930  0x00000ac7 and_into  0x00000003 , 0x0000003f 
+ 00001931  0x00000ac8 mul32  0x0000003f , 0x00000004 , 0x00000011 
+ 00001932  0x00000ac9 setarg  0x00004bf0 
+ 00001933  0x00000aca iadd  0x00000011 , 0x0000003f 
+ 00001934  0x00000acb iadd  0x00000002 , 0x00000006 
+ 00001935  0x00000acc ifetch  0x00000001 , 0x00000006 
+ 00001936  0x00000acd store  0x00000001 , 0x00004be9 
+ 00001937  0x00000ace rtn 
+ 00001938  0x00000ad1 disable  0x00000009 
+ 00001939  0x00000ad2 disable  0x00000007 
+ 00001940  0x00000ad3 setarg  0x00555555 
+ 00001941  0x00000ad4 iforce  0x0000000f 
+ 00001942  0x00000ad5 fetch  0x00000001 , 0x00004be9 
+ 00001943  0x00000ad6 reverse  0x0000003f , 0x00000002 
+ 00001944  0x00000ad7 set1  0x00000001 , 0x00000002 
+ 00001945  0x00000ad8 rshift  0x00000002 , 0x0000000e 
+ 00001946  0x00000ad9 rtn 
+ 00001947  0x00000adc call  0x00000792 
+ 00001948  0x00000add enable  0x0000000d 
+ 00001949  0x00000ade enable  0x00000021 
+ 00001950  0x00000adf disable  0x00000020 
+ 00001951  0x00000ae0 enable  0x00000010 
+ 00001952  0x00000ae1 fetch  0x00000002 , 0x00004be4 
+ 00001953  0x00000ae2 iforce  0x0000001b 
+ 00001954  0x00000ae3 correlate  0x0000003e , 0x00000003 
+ 00001955  0x00000ae4 nbranch  0x000007d5 , 0x00000018 
+ 00001956  0x00000ae5 disable  0x0000000d 
+ 00001957  0x00000ae6 enable  0x0000000b 
+ 00001958  0x00000ae7 enable  0x00000007 
+ 00001959  0x00000ae8 enable  0x00000009 
+ 00001960  0x00000ae9 parse  0x00000003 , 0x00000000 , 0x00000008 
+ 00001961  0x00000aea rshift3  0x0000000c , 0x0000003f 
+ 00001962  0x00000aeb store  0x00000001 , 0x00004c19 
+ 00001963  0x00000aec fetcht  0x00000001 , 0x00004c18 
+ 00001964  0x00000aed isub  0x00000002 , 0x0000003e 
+ 00001965  0x00000aee nbranch  0x000007d5 , 0x00000005 
+ 00001966  0x00000aef parse  0x00000003 , 0x00000000 , 0x00000008 
+ 00001967  0x00000af0 rshift3  0x0000000c , 0x0000003f 
+ 00001968  0x00000af1 store  0x00000001 , 0x00000cb3 
+ 00001969  0x00000af5 fetch  0x00000001 , 0x00000cb3 
+ 00001970  0x00000af6 fetcht  0x00000001 , 0x00004be2 
+ 00001971  0x00000af7 icompare  0x00000007 , 0x00000002 
+ 00001972  0x00000af8 nbranch  0x000007d5 , 0x00000001 
+ 00001973  0x00000afa parse  0x00000003 , 0x00000000 , 0x00000008 
+ 00001974  0x00000afb rshift3  0x0000000c , 0x0000003f 
+ 00001975  0x00000afc istore  0x00000001 , 0x00000005 
+ 00001976  0x00000afd rshift3  0x0000003f , 0x0000003f 
+ 00001977  0x00000afe and  0x0000003f , 0x0000001f , 0x00000039 
+ 00001978  0x00000aff branch  0x000007bf , 0x00000005 
+ 00001979  0x00000b01 parse  0x00000003 , 0x00000000 , 0x00000008 
+ 00001980  0x00000b02 rshift3  0x0000000c , 0x0000003f 
+ 00001981  0x00000b03 istore  0x00000001 , 0x00000005 
+ 00001982  0x00000b04 loop  0x000007bb 
+ 00001983  0x00000b07 copy  0x00000005 , 0x00000011 
+ 00001984  0x00000b08 parse  0x00000003 , 0x00000000 , 0x00000008 
+ 00001985  0x00000b09 rshift3  0x0000000c , 0x0000003f 
+ 00001986  0x00000b0a store  0x00000001 , 0x00004c2a 
+ 00001987  0x00000b0b copy  0x00000011 , 0x00000005 
+ 00001988  0x00000b0c parse  0x00000003 , 0x00000000 , 0x00000018 
+ 00001989  0x00000b0d enable  0x00000010 
+ 00001990  0x00000b0e arg  0x00000664 , 0x0000001b 
+ 00001991  0x00000b0f rshift32  0x0000003f , 0x0000003f 
+ 00001992  0x00000b10 rshift16  0x0000003f , 0x0000003f 
+ 00001993  0x00000b11 istore  0x00000003 , 0x00000005 
+ 00001994  0x00000b12 disable  0x0000000b 
+ 00001995  0x00000b13 branch  0x000007d5 , 0x00000006 
+ 00001996  0x00000b14 enable  0x0000002f 
+ 00001997  0x00000b15 fetch  0x00000001 , 0x00000017 
+ 00001998  0x00000b16 add  0x0000003f , 0x00000000 , 0x00000011 
+ 00001999  0x00000b17 call  0x00003ab6 
+ 00002000  0x00000b18 disable  0x0000000d 
+ 00002001  0x00000b19 call  0x00003a7a 
+ 00002002  0x00000b1a fetch  0x00000001 , 0x00004c2a 
+ 00002003  0x00000b1b copy  0x0000003f , 0x00000011 
+ 00002004  0x00000b1c branch  0x0000074d 
+ 00002005  0x00000b23 disable  0x0000001b 
+ 00002006  0x00000b24 disable  0x0000000b 
+ 00002007  0x00000b25 branch  0x0000375c 
+ 00002008  0x00000b28 call  0x00003a7a 
+ 00002009  0x00000b29 fetcht  0x00000001 , 0x00004be9 
+ 00002010  0x00000b2a branch  0x00003a91 
+ 00002011  0x00000b2d call  0x000053d2 
+ 00002012  0x00000b2e fetch  0x00000004 , 0x00004c00 
+ 00002013  0x00000b2f iforce  0x00000009 
+ 00002014  0x00000b30 call  0x00000792 
+ 00002015  0x00000b31 call  0x000007d8 
+ 00002016  0x00000b32 set1  0x00000000 , 0x00000015 
+ 00002017  0x00000b33 enable  0x0000001d 
+ 00002018  0x00000b34 enable  0x00000020 
+ 00002019  0x00000b35 disable  0x00000021 
+ 00002020  0x00000b36 rshift16  0x00000009 , 0x0000003f 
+ 00002021  0x00000b37 rshift8  0x0000003f , 0x0000003f 
+ 00002022  0x00000b38 rshift4  0x0000003f , 0x0000003f 
+ 00002023  0x00000b39 inject  0x00000003 , 0x00000028 
+ 00002024  0x00000b3a disable  0x0000001d 
+ 00002025  0x00000b3b enable  0x0000001b 
+ 00002026  0x00000b3c enable  0x00000007 
+ 00002027  0x00000b3d enable  0x00000009 
+ 00002028  0x00000b3e fetch  0x00000001 , 0x00004c18 
+ 00002029  0x00000b3f inject  0x00000003 , 0x00000008 
+ 00002030  0x00000b40 fetch  0x00000001 , 0x00004be3 
+ 00002031  0x00000b41 iforce  0x00000039 
+ 00002032  0x00000b42 arg  0x00000cf5 , 0x00000006 
+ 00002033  0x00000b44 ifetch  0x00000001 , 0x00000006 
+ 00002034  0x00000b45 inject  0x00000003 , 0x00000008 
+ 00002035  0x00000b46 loop  0x000007f1 
+ 00002036  0x00000b47 enable  0x00000008 
+ 00002037  0x00000b48 inject  0x00000003 , 0x00000018 
+ 00002038  0x00000b49 disable  0x00000008 
+ 00002039  0x00000b4a until  0x0000003e , 0x00000027 
+ 00002040  0x00000b4b nop  0x00000064 
+ 00002041  0x00000b4c disable  0x0000001d 
+ 00002042  0x00000b4d disable  0x0000001b 
+ 00002043  0x00000b4e branch  0x00003a7a 
  00012288  0x00000b5a call  0x00003c74 
  00012289  0x00000b5e set0  0x00000025 , 0x00000000 
  00012290  0x00000b5f bpatch  0x00000000 , 0x00004000 
Index: btkb/output/bt_program23.list
===================================================================
--- /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/btkb/output/bt_program23.list	(revision 970)
+++ /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/btkb/output/bt_program23.list	(working copy)
@@ -2184,207 +2184,202 @@
 0x749 002643 fetch 1 ,mem_24g_rxbuf + 1 
 0x74a 002644 rshift3 pdata ,pdata 
 0x74b 002645 store 1 ,mem_24g_rxdata_length 
-0x74c 002647 increase 1 ,pdata 
-0x74d 002648 arg mem_24g_rxbuf + 1 ,contr 
-0x74e 002649 iadd contr ,contr 
-0x74f 002650 ifetch 3 ,contr 
-0x750 002651 store 3 ,mem_24g_sta_crc 
-0x751 002652 rtn 
+0x74c 002652 rtn 
 :      002654 p_rssi_signal:
-0x752 002655 fetcht 1 ,mem_rssi_signal_index 
-0x753 002656 setarg mem_rssi_signal_buf 
-0x754 002657 iadd temp ,contw 
-0x755 002658 copy rega ,pdata 
-0x756 002659 istore 1 ,contw 
-0x757 002660 increase 1 ,temp 
-0x758 002661 and_into rssi_buf_len_signal ,temp 
-0x759 002662 storet 1 ,mem_rssi_signal_index 
-0x75a 002663 rtn 
+0x74d 002655 fetcht 1 ,mem_rssi_signal_index 
+0x74e 002656 setarg mem_rssi_signal_buf 
+0x74f 002657 iadd temp ,contw 
+0x750 002658 copy rega ,pdata 
+0x751 002659 istore 1 ,contw 
+0x752 002660 increase 1 ,temp 
+0x753 002661 and_into rssi_buf_len_signal ,temp 
+0x754 002662 storet 1 ,mem_rssi_signal_index 
+0x755 002663 rtn 
 :      002683 p_g24_update_addr_and_synccrc8:
-0x75b 002684 store 4 ,mem_24g_addr 
+0x756 002684 store 4 ,mem_24g_addr 
 :      002687 p_g24_syncword_crc8:
-0x75c 002688 arg 0 ,rega 
-0x75d 002689 arg 4 ,loopcnt 
-0x75e 002690 arg mem_24g_addr ,contr 
+0x757 002688 arg 0 ,rega 
+0x758 002689 arg 4 ,loopcnt 
+0x759 002690 arg mem_24g_addr ,contr 
 :      002691 p_g24_syncword_crc8_loop:
-0x75f 002692 ifetch 1 ,contr 
-0x760 002693 iadd rega ,rega 
-0x761 002694 loop p_g24_syncword_crc8_loop 
-0x762 002695 copy rega ,pdata 
-0x763 002696 store 2 ,mem_24g_syncword 
-0x764 002697 fetch 1 ,mem_24g_syncword 
-0x765 002698 fetcht 1 ,mem_24g_syncword + 1 
-0x766 002699 iadd temp ,pdata 
-0x767 002700 store 1 ,mem_24g_syncword_crc8 
-0x768 002701 rtn 
+0x75a 002692 ifetch 1 ,contr 
+0x75b 002693 iadd rega ,rega 
+0x75c 002694 loop p_g24_syncword_crc8_loop 
+0x75d 002695 copy rega ,pdata 
+0x75e 002696 store 2 ,mem_24g_syncword 
+0x75f 002697 fetch 1 ,mem_24g_syncword 
+0x760 002698 fetcht 1 ,mem_24g_syncword + 1 
+0x761 002699 iadd temp ,pdata 
+0x762 002700 store 1 ,mem_24g_syncword_crc8 
+0x763 002701 rtn 
 :      002704 p_g24_transmit_prep:
-0x769 002706 fetch 1 ,mem_24g_datalen 
-0x76a 002707 increase 2 ,pdata 
-0x76b 002708 store 1 ,mem_24g_txlen 
-0x76c 002710 fetch 1 ,mem_24g_data_type 
-0x76d 002711 store 1 ,mem_24g_txpayload 
-0x76e 002713 fetch 1 ,mem_24g_datalen 
-0x76f 002714 lshift3 pdata ,pdata 
-0x770 002715 fetcht 1 ,mem_24g_pid 
-0x771 002716 and temp ,0x03 ,temp 
-0x772 002717 lshift temp ,temp 
-0x773 002718 ior temp ,pdata 
-0x774 002719 fetcht 1 ,mem_24g_no_ack 
-0x775 002720 iadd temp ,pdata 
-0x776 002721 istore 1 ,contw 
-0x777 002723 fetch 1 ,mem_24g_pairing_sm 
-0x778 002724 bne state_24g_pairing_success ,p_g24_transmit_prep_pair 
-0x779 002725 fetch 1 ,mem_24g_data_type 
-0x77a 002726 istore 1 ,contw 
+0x764 002706 fetch 1 ,mem_24g_datalen 
+0x765 002707 increase 2 ,pdata 
+0x766 002708 store 1 ,mem_24g_txlen 
+0x767 002710 fetch 1 ,mem_24g_data_type 
+0x768 002711 store 1 ,mem_24g_txpayload 
+0x769 002713 fetch 1 ,mem_24g_datalen 
+0x76a 002714 lshift3 pdata ,pdata 
+0x76b 002715 fetcht 1 ,mem_24g_pid 
+0x76c 002716 and temp ,0x03 ,temp 
+0x76d 002717 lshift temp ,temp 
+0x76e 002718 ior temp ,pdata 
+0x76f 002719 fetcht 1 ,mem_24g_no_ack 
+0x770 002720 iadd temp ,pdata 
+0x771 002721 istore 1 ,contw 
+0x772 002723 fetch 1 ,mem_24g_pairing_sm 
+0x773 002724 bne state_24g_pairing_success ,p_g24_transmit_prep_pair 
+0x774 002725 fetch 1 ,mem_24g_data_type 
+0x775 002726 istore 1 ,contw 
 :      002727 p_g24_transmit_prep_pair:
-0x77b 002728 fetch 1 ,mem_24g_datalen 
-0x77c 002729 iforce loopcnt 
-0x77d 002730 fetch 1 ,mem_24g_data_type 
-0x77e 002731 beq 1 ,p_g24_transmit_prep_mouse 
-0x77f 002732 arg mem_24g_txbuf ,contr 
-0x780 002733 call memcpy 
-0x781 002737 fetch 1 ,mem_24g_txbuf 
-0x782 002738 beq 0x03 ,p_g24_multi_key_setup 
-0x783 002739 rtn 
+0x776 002728 fetch 1 ,mem_24g_datalen 
+0x777 002729 iforce loopcnt 
+0x778 002730 fetch 1 ,mem_24g_data_type 
+0x779 002731 beq 1 ,p_g24_transmit_prep_mouse 
+0x77a 002732 arg mem_24g_txbuf ,contr 
+0x77b 002733 call memcpy 
+0x77c 002737 fetch 1 ,mem_24g_txbuf 
+0x77d 002738 beq 0x03 ,p_g24_multi_key_setup 
+0x77e 002739 rtn 
 :      002740 p_g24_multi_key_setup:
-0x784 002741 jam 0x02 ,mem_24g_txbuf 
-0x785 002742 rtn 
+0x77f 002741 jam 0x02 ,mem_24g_txbuf 
+0x780 002742 rtn 
 :      002745 p_g24_transmit_prep_mouse:
-0x786 002746 arg mem_24g_txbuf + 1 ,contr 
-0x787 002747 branch memcpy 
+0x781 002746 arg mem_24g_txbuf + 1 ,contr 
+0x782 002747 branch memcpy 
 :      002749 p_g24_ch:
-0x788 002750 fetcht 1 ,mem_24g_current_ch_number 
-0x789 002751 call p_g24_ch_calc 
-0x78a 002752 increase 1 ,temp 
-0x78b 002753 and_into 3 ,temp 
-0x78c 002754 storet 1 ,mem_24g_current_ch_number 
-0x78d 002755 rtn 
+0x783 002750 fetcht 1 ,mem_24g_current_ch_number 
+0x784 002751 call p_g24_ch_calc 
+0x785 002752 increase 1 ,temp 
+0x786 002753 and_into 3 ,temp 
+0x787 002754 storet 1 ,mem_24g_current_ch_number 
+0x788 002755 rtn 
 :      002757 p_g24_ch_calc:
-0x78e 002758 fetch 1 ,mem_24g_addr 
-0x78f 002759 and_into 0x03 ,pdata 
-0x790 002760 mul32 pdata ,4 ,rega 
-0x791 002761 setarg mem_24g_ch_map1 
-0x792 002762 iadd rega ,pdata 
-0x793 002763 iadd temp ,contr 
-0x794 002764 ifetch 1 ,contr 
-0x795 002765 store 1 ,mem_24g_ch 
-0x796 002766 rtn 
+0x789 002758 fetch 1 ,mem_24g_addr 
+0x78a 002759 and_into 0x03 ,pdata 
+0x78b 002760 mul32 pdata ,4 ,rega 
+0x78c 002761 setarg mem_24g_ch_map1 
+0x78d 002762 iadd rega ,pdata 
+0x78e 002763 iadd temp ,contr 
+0x78f 002764 ifetch 1 ,contr 
+0x790 002765 store 1 ,mem_24g_ch 
+0x791 002766 rtn 
 :      002768 p_g24_prep:
-0x797 002769 disable enable_crc 
-0x798 002770 disable enable_white 
-0x799 002771 setarg 0x555555 
-0x79a 002772 iforce crc24_init 
-0x79b 002773 fetch 1 ,mem_24g_ch 
-0x79c 002774 reverse pdata ,temp 
-0x79d 002775 set1 1 ,temp 
-0x79e 002776 rshift temp ,white_init 
-0x79f 002777 rtn 
+0x792 002769 disable enable_crc 
+0x793 002770 disable enable_white 
+0x794 002771 setarg 0x555555 
+0x795 002772 iforce crc24_init 
+0x796 002773 fetch 1 ,mem_24g_ch 
+0x797 002774 reverse pdata ,temp 
+0x798 002775 set1 1 ,temp 
+0x799 002776 rshift temp ,white_init 
+0x79a 002777 rtn 
 :      002779 p_g24_receive_rxon:
-0x7a0 002780 call p_g24_prep 
-0x7a1 002781 enable decode_fec0 
-0x7a2 002782 enable is_rx 
-0x7a3 002783 disable is_tx 
-0x7a4 002784 enable swfine 
-0x7a5 002785 fetch 2 ,mem_24g_rx_window 
-0x7a6 002786 iforce stop_watch 
-0x7a7 002787 correlate null ,timeout 
-0x7a8 002788 nbranch p_g24_sync_timeout ,sync 
-0x7a9 002789 disable decode_fec0 
-0x7aa 002790 enable decode_fec1 
-0x7ab 002791 enable enable_white 
-0x7ac 002792 enable enable_crc 
-0x7ad 002793 parse demod ,bucket ,8 
-0x7ae 002794 rshift3 pwindow ,pdata 
-0x7af 002795 store 1 ,mem_24g_get_syncword_crc8 
-0x7b0 002796 fetcht 1 ,mem_24g_syncword_crc8 
-0x7b1 002797 isub temp ,null 
-0x7b2 002798 nbranch p_g24_end_of_packet ,zero 
-0x7b3 002799 parse demod ,bucket ,8 
-0x7b4 002800 rshift3 pwindow ,pdata 
-0x7b5 002801 store 1 ,mem_24g_rxbuf 
-0x7b6 002805 fetch 1 ,mem_24g_rxbuf 
-0x7b7 002806 fetcht 1 ,mem_24g_data_type 
-0x7b8 002807 icompare bits_data ,temp 
-0x7b9 002808 nbranch p_g24_end_of_packet ,true 
+0x79b 002780 call p_g24_prep 
+0x79c 002781 enable decode_fec0 
+0x79d 002782 enable is_rx 
+0x79e 002783 disable is_tx 
+0x79f 002784 enable swfine 
+0x7a0 002785 fetch 2 ,mem_24g_rx_window 
+0x7a1 002786 iforce stop_watch 
+0x7a2 002787 correlate null ,timeout 
+0x7a3 002788 nbranch p_g24_sync_timeout ,sync 
+0x7a4 002789 disable decode_fec0 
+0x7a5 002790 enable decode_fec1 
+0x7a6 002791 enable enable_white 
+0x7a7 002792 enable enable_crc 
+0x7a8 002793 parse demod ,bucket ,8 
+0x7a9 002794 rshift3 pwindow ,pdata 
+0x7aa 002795 store 1 ,mem_24g_get_syncword_crc8 
+0x7ab 002796 fetcht 1 ,mem_24g_syncword_crc8 
+0x7ac 002797 isub temp ,null 
+0x7ad 002798 nbranch p_g24_end_of_packet ,zero 
+0x7ae 002799 parse demod ,bucket ,8 
+0x7af 002800 rshift3 pwindow ,pdata 
+0x7b0 002801 store 1 ,mem_24g_rxbuf 
+0x7b1 002805 fetch 1 ,mem_24g_rxbuf 
+0x7b2 002806 fetcht 1 ,mem_24g_data_type 
+0x7b3 002807 icompare bits_data ,temp 
+0x7b4 002808 nbranch p_g24_end_of_packet ,true 
 :      002809 p_g24_receive_skip:
-0x7ba 002810 parse demod ,bucket ,8 
-0x7bb 002811 rshift3 pwindow ,pdata 
-0x7bc 002812 istore 1 ,contw 
-0x7bd 002813 rshift3 pdata ,pdata 
-0x7be 002814 and pdata ,0x1f ,loopcnt 
-0x7bf 002815 branch p_g24rx_nopayload ,zero 
+0x7b5 002810 parse demod ,bucket ,8 
+0x7b6 002811 rshift3 pwindow ,pdata 
+0x7b7 002812 istore 1 ,contw 
+0x7b8 002813 rshift3 pdata ,pdata 
+0x7b9 002814 and pdata ,0x1f ,loopcnt 
+0x7ba 002815 branch p_g24rx_nopayload ,zero 
 :      002816 p_g24rx_loop:
-0x7c0 002817 parse demod ,bucket ,8 
-0x7c1 002818 rshift3 pwindow ,pdata 
-0x7c2 002819 istore 1 ,contw 
-0x7c3 002820 loop p_g24rx_loop 
+0x7bb 002817 parse demod ,bucket ,8 
+0x7bc 002818 rshift3 pwindow ,pdata 
+0x7bd 002819 istore 1 ,contw 
+0x7be 002820 loop p_g24rx_loop 
 :      002821 p_g24rx_nopayload:
-0x7c4 002823 copy contw ,rega 
-0x7c5 002824 parse demod ,bucket ,8 
-0x7c6 002825 rshift3 pwindow ,pdata 
-0x7c7 002826 store 1 ,mem_rssi_hex_received 
-0x7c8 002827 copy rega ,contw 
-0x7c9 002828 parse demod ,bucket ,24 
-0x7ca 002829 enable swfine 
-0x7cb 002830 arg param_sifs ,stop_watch 
-0x7cc 002831 rshift32 pdata ,pdata 
-0x7cd 002832 rshift16 pdata ,pdata 
-0x7ce 002833 istore 3 ,contw 
-0x7cf 002834 disable decode_fec1 
-0x7d0 002835 branch p_g24_end_of_packet ,crc_failed 
-0x7d1 002836 enable user3 
-0x7d2 002837 fetch 1 ,mem_last_freq 
-0x7d3 002838 add pdata ,0 ,rega 
-0x7d4 002839 call rf_write_freq 
-0x7d5 002840 disable decode_fec0 
-0x7d6 002841 call set_sync_on 
-0x7d7 002842 fetch 1 ,mem_rssi_hex_received 
-0x7d8 002843 copy pdata ,rega 
-0x7d9 002844 branch p_rssi_signal 
+0x7bf 002823 copy contw ,rega 
+0x7c0 002824 parse demod ,bucket ,8 
+0x7c1 002825 rshift3 pwindow ,pdata 
+0x7c2 002826 store 1 ,mem_rssi_hex_received 
+0x7c3 002827 copy rega ,contw 
+0x7c4 002828 parse demod ,bucket ,24 
+0x7c5 002829 enable swfine 
+0x7c6 002830 arg param_sifs ,stop_watch 
+0x7c7 002831 rshift32 pdata ,pdata 
+0x7c8 002832 rshift16 pdata ,pdata 
+0x7c9 002833 istore 3 ,contw 
+0x7ca 002834 disable decode_fec1 
+0x7cb 002835 branch p_g24_end_of_packet ,crc_failed 
+0x7cc 002836 enable user3 
+0x7cd 002837 fetch 1 ,mem_last_freq 
+0x7ce 002838 add pdata ,0 ,rega 
+0x7cf 002839 call rf_write_freq 
+0x7d0 002840 disable decode_fec0 
+0x7d1 002841 call set_sync_on 
+0x7d2 002842 fetch 1 ,mem_rssi_hex_received 
+0x7d3 002843 copy pdata ,rega 
+0x7d4 002844 branch p_rssi_signal 
 :      002847 p_g24_sync_timeout:
 :      002850 p_g24_end_of_packet:
-0x7da 002851 disable encode_fec1 
-0x7db 002852 disable decode_fec1 
-0x7dc 002853 branch end_of_packet 
+0x7d5 002851 disable encode_fec1 
+0x7d6 002852 disable decode_fec1 
+0x7d7 002853 branch end_of_packet 
 :      002855 p_g24_set_freq_tx:
-0x7dd 002856 call set_sync_on 
-0x7de 002857 fetcht 1 ,mem_24g_ch 
-0x7df 002858 branch set_freq_tx 
+0x7d8 002856 call set_sync_on 
+0x7d9 002857 fetcht 1 ,mem_24g_ch 
+0x7da 002858 branch set_freq_tx 
 :      002860 p_g24_transmit:
-0x7e0 002861 call le_enable 
-0x7e1 002862 fetch 4 ,mem_24g_addr 
-0x7e2 002863 iforce access 
-0x7e3 002864 call p_g24_prep 
-0x7e4 002865 call p_g24_set_freq_tx 
-0x7e5 002866 set1 txgfsk ,radio_ctrl 
-0x7e6 002867 enable encode_fec0 
-0x7e7 002868 enable is_tx 
-0x7e8 002869 disable is_rx 
-0x7e9 002870 rshift16 access ,pdata 
-0x7ea 002871 rshift8 pdata ,pdata 
-0x7eb 002872 rshift4 pdata ,pdata 
-0x7ec 002873 inject mod ,40 
-0x7ed 002874 disable encode_fec0 
-0x7ee 002875 enable encode_fec1 
-0x7ef 002876 enable enable_white 
-0x7f0 002877 enable enable_crc 
-0x7f1 002878 fetch 1 ,mem_24g_syncword_crc8 
-0x7f2 002879 inject mod ,8 
-0x7f3 002880 fetch 1 ,mem_24g_txlen 
-0x7f4 002881 iforce loopcnt 
-0x7f5 002882 arg mem_24g_txpayload ,contr 
+0x7db 002861 call le_enable 
+0x7dc 002862 fetch 4 ,mem_24g_addr 
+0x7dd 002863 iforce access 
+0x7de 002864 call p_g24_prep 
+0x7df 002865 call p_g24_set_freq_tx 
+0x7e0 002866 set1 txgfsk ,radio_ctrl 
+0x7e1 002867 enable encode_fec0 
+0x7e2 002868 enable is_tx 
+0x7e3 002869 disable is_rx 
+0x7e4 002870 rshift16 access ,pdata 
+0x7e5 002871 rshift8 pdata ,pdata 
+0x7e6 002872 rshift4 pdata ,pdata 
+0x7e7 002873 inject mod ,40 
+0x7e8 002874 disable encode_fec0 
+0x7e9 002875 enable encode_fec1 
+0x7ea 002876 enable enable_white 
+0x7eb 002877 enable enable_crc 
+0x7ec 002878 fetch 1 ,mem_24g_syncword_crc8 
+0x7ed 002879 inject mod ,8 
+0x7ee 002880 fetch 1 ,mem_24g_txlen 
+0x7ef 002881 iforce loopcnt 
+0x7f0 002882 arg mem_24g_txpayload ,contr 
 :      002883 p_g24tr_loop:
-0x7f6 002884 ifetch 1 ,contr 
-0x7f7 002885 inject mod ,8 
-0x7f8 002886 loop p_g24tr_loop 
-0x7f9 002887 enable enable_parity 
-0x7fa 002888 inject mod ,24 
-0x7fb 002889 disable enable_parity 
-0x7fc 002890 until null ,tx_clear 
-0x7fd 002891 nop 100 
-0x7fe 002892 disable encode_fec0 
-0x7ff 002893 disable encode_fec1 
-0x800 002894 branch set_sync_on 
+0x7f1 002884 ifetch 1 ,contr 
+0x7f2 002885 inject mod ,8 
+0x7f3 002886 loop p_g24tr_loop 
+0x7f4 002887 enable enable_parity 
+0x7f5 002888 inject mod ,24 
+0x7f6 002889 disable enable_parity 
+0x7f7 002890 until null ,tx_clear 
+0x7f8 002891 nop 100 
+0x7f9 002892 disable encode_fec0 
+0x7fa 002893 disable encode_fec1 
+0x7fb 002894 branch set_sync_on 
               org 0x3000
 :      002905 start:
 0x3000 002906 call lpmstate 
Index: btkb/output/bt_program23.meta
===================================================================
--- /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/btkb/output/bt_program23.meta	(revision 970)
+++ /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/btkb/output/bt_program23.meta	(working copy)
@@ -2644,11 +2644,11 @@
 	rshift3 pdata,pdata
 	store 1,mem_24g_rxdata_length
 //get crc
-	increase 1,pdata
+	/*increase 1,pdata
 	arg mem_24g_rxbuf+1,contr
 	iadd contr,contr
 	ifetch 3,contr
-	store 3,mem_24g_sta_crc
+	store 3,mem_24g_sta_crc*/
 	rtn
 
 p_rssi_signal:
Index: btkb/output/bt_program23.rom
===================================================================
--- /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/btkb/output/bt_program23.rom	(revision 970)
+++ /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/btkb/output/bt_program23.rom	(working copy)
@@ -1673,7 +1673,7 @@
 11000000111111111000011011111010
 00100000010000000000011010001110
 00100000010101000000011010100101
-00100000010101000000011101101001
+00100000010101000000011101100100
 01110000010010111110011000000001
 00100000011000000000000000000000
 01111000010101000111110000000000
@@ -1728,20 +1728,20 @@
 01101000000000001100101111100111
 11011000010000000000000000010000
 10011000010001100111110000000000
-00100000001000010000011110001000
+00100000001000010000011110000011
 01101000000000001100101111101000
 00011111111000001111111000000001
 01100000000000001100101111101000
 00100000000000000000000000001010
 11000000100000100000011010101010
-00100000001000000000011110001000
+00100000001000000000011110000011
 01011000000000000000000000000000
 01100000000001001000110011010101
 01100000000001001100110101010111
 00100000011000000000000000000000
 00100000001000000000011100010100
 01111000010101111111110000000000
-00100000010000000000011111100000
+00100000010000000000011111011011
 00100000000000000000010010110000
 00011000000000000010101000000000
 01101000000000100100110000000000
@@ -1749,8 +1749,8 @@
 01101000000010001000000000010111
 00100000010000000011101010000010
 00100000010000000011101010000111
-00100000010000000000011110100000
-00100000010101111000011111011010
+00100000010000000000011110011011
+00100000010101111000011111010101
 00100000011000000000000000000000
 01110000010011010100010100000000
 00100000011000000000000000000000
@@ -1783,7 +1783,7 @@
 01110000010010111110000000000000
 01110000010010111110100101001010
 01101000000000100100101111101011
-00100000001000000000011101011011
+00100000001000000000011101010110
 00100000010000000000011011110110
 01101000000000001100101111100110
 11000000000000001011010011011111
@@ -1807,7 +1807,7 @@
 11011010001000000000110100110111
 11011000010000000000000000000111
 00100000010000000000011101000100
-00100000010000000000011101101001
+00100000010000000000011101100100
 00100000010000000000011010001100
 00100000001000000011010011011111
 01101000000000001100101111101111
@@ -1824,11 +1824,11 @@
 01110000000010110111110100110001
 00100000010000000111110000100111
 01101000000000100000110100011001
-00100000010000000000011101011011
+00100000010000000000011101010110
 00100000001000000000011010110011
 01111001001000000000000000100011
-00100000010000000000011101011100
-00100000010000000000011110001000
+00100000010000000000011101010111
+00100000010000000000011110000011
 01101000000000001100101111101111
 11000001111111111000000000000000
 00100000010000000000011100110110
@@ -1852,11 +1852,11 @@
 11011000010000000000000000000110
 11011010001000000000110100110111
 00100000010000000000011101000100
-00100000001000000000011101101001
+00100000001000000000011101100100
 01101000000000010100110000000100
 00011111111000001111111000000001
 01100000000000010100110000000100
-00100000010000000000011110001000
+00100000010000000000011110000011
 00100000001000000000011100101100
 01100000000010001100101111100001
 00011000010000100111001000000000
@@ -1866,11 +1866,6 @@
 01101000000000001000110010110100
 00011111111010010111111000000000
 01100000000000001100101111011111
-00011111111000001111111000000001
-11011000110000000000110010110100
-10011000110000001000110000000000
-11101000110000011000000000000000
-01100000000000011100110000001011
 00100000011000000000000000000000
 01101000000010001100110000111100
 01011000000000000100110000101011
@@ -1887,7 +1882,7 @@
 11011000110000000100110000000000
 11101000110000001000000000000000
 10011010001000001010001000000000
-11000010000000000000011101011111
+11000010000000000000011101011010
 00011010001000100111111000000000
 01100000000000010100110000010110
 01101000000000001100110000010110
@@ -1910,24 +1905,24 @@
 10011000010000001111111000000000
 11100000101000001000000000000000
 01101000000000001100101111101111
-11000000111111111000011101111011
+11000000111111111000011101110110
 01101000000000001100101111100010
 11100000101000001000000000000000
 01101000000000001100101111100001
 10011000000000000111001000000000
 01101000000000001100101111100010
-11000000000000001000011110000110
+11000000000000001000011110000001
 11011000110000000000110011010101
 00100000010000000111111001000101
 01101000000000001000110011010101
-11000000000000011000011110000100
+11000000000000011000011101111111
 00100000011000000000000000000000
 01110000000011001101010100000010
 00100000011000000000000000000000
 11011000110000000000110011010110
 00100000001000000111111001000101
 01101000000010001100101111101010
-00100000010000000000011110001110
+00100000010000000000011110001001
 00011000010000001000010000000001
 00011000010000010000010000000011
 01100000000010001100101111101010
@@ -1950,7 +1945,7 @@
 01111001001000000000010000000001
 00011000010000110001110000000000
 00100000011000000000000000000000
-00100000010000000000011110010111
+00100000010000000000011110010010
 01111000001001101111110000000000
 01111000001100001111110000000000
 01111000010100000111110000000000
@@ -1958,7 +1953,7 @@
 01101000000000010100101111100100
 10011000000000000011011000000000
 00110111110000011000010000000000
-00100100001011000000011111011010
+00100100001011000000011111010101
 01111000010001101111110000000000
 01111000001001011111110000000000
 01111000001000111111110000000000
@@ -1968,24 +1963,24 @@
 01100000000000001100110000011001
 01101000000010001100110000011000
 10011000010001100111110000000000
-00100100001000101000011111011010
+00100100001000101000011111010101
 00001001100000000000000000001000
 00011001100010010111111000000000
 01100000000000001000110010110011
 01101000000000001000110010110011
 01101000000010001100101111100010
 10101000010000000000111000000000
-00100100001000001000011111011010
+00100100001000001000011111010101
 00001001100000000000000000001000
 00011001100010010111111000000000
 11100000101000001000000000000000
 00011111111010010111111000000000
 00011111111000010111001000011111
-00100000001000101000011111000100
+00100000001000101000011110111111
 00001001100000000000000000001000
 00011001100010010111111000000000
 11100000101000001000000000000000
-11000010000000000000011111000000
+11000010000000000000011110111011
 00011000101000100010001000000000
 00001001100000000000000000001000
 00011001100010010111111000000000
@@ -1998,7 +1993,7 @@
 00011111111100010111111000000000
 11100000101000011000000000000000
 01111000010001011111110000000000
-00100000001000110000011111011010
+00100000001000110000011111010101
 01111000001101111111110000000000
 01101000000000001000000000010111
 00011111111000001010001000000000
@@ -2007,7 +2002,7 @@
 00100000010000000011101001111010
 01101000000000001100110000101010
 00011111111000100010001000000000
-00100000001000000000011101010010
+00100000001000000000011101001101
 01111000010011011111110000000000
 01111000010001011111110000000000
 00100000001000000011011101011100
@@ -2017,8 +2012,8 @@
 00100000010000000101001111010010
 01101000000000100100110000000000
 10011000000000000001001000000000
-00100000010000000000011110010111
-00100000010000000000011111011101
+00100000010000000000011110010010
+00100000010000000000011111011000
 01111001001000000010101000000000
 01111000001011101111110000000000
 01111000001100000111110000000000
@@ -2038,7 +2033,7 @@
 11011000110000000000110011110101
 11101000110000001000000000000000
 00001000000000001000011000001000
-11000010000000000000011111110110
+11000010000000000000011111110001
 01111000001001000111110000000000
 00001000000000001000011000011000
 01111000010001000111110000000000
@@ -12286,6 +12281,11 @@
                                 
                                 
                                 
+                                
+                                
+                                
+                                
+                                
 00100000010000000011110001110100
 01111001001111111000000000100101
 01000100100000000100000000000000
Index: btkb/output/eeprom.dat
===================================================================
--- /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/btkb/output/eeprom.dat	(revision 970)
+++ /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/btkb/output/eeprom.dat	(working copy)
@@ -2,8 +2,8 @@
 02
 aa
 55
-06
-20
+f2
+1f
 c5
 12
 80
@@ -6707,7 +6707,7 @@
 20
 54
 07
-69
+64
 70
 4b
 e6
@@ -6927,7 +6927,7 @@
 20
 21
 07
-88
+83
 68
 00
 cb
@@ -6951,7 +6951,7 @@
 20
 20
 07
-88
+83
 58
 00
 00
@@ -6979,7 +6979,7 @@
 20
 40
 07
-e0
+db
 20
 00
 04
@@ -7011,11 +7011,11 @@
 20
 40
 07
-a0
+9b
 20
 57
 87
-da
+d5
 20
 60
 00
@@ -7147,7 +7147,7 @@
 20
 20
 07
-5b
+56
 20
 40
 06
@@ -7243,7 +7243,7 @@
 20
 40
 07
-69
+64
 20
 40
 06
@@ -7311,7 +7311,7 @@
 20
 40
 07
-5b
+56
 20
 20
 06
@@ -7323,11 +7323,11 @@
 20
 40
 07
-5c
+57
 20
 40
 07
-88
+83
 68
 00
 cb
@@ -7423,7 +7423,7 @@
 20
 20
 07
-69
+64
 68
 01
 4c
@@ -7439,7 +7439,7 @@
 20
 40
 07
-88
+83
 20
 20
 07
@@ -7476,26 +7476,6 @@
 00
 cb
 df
-1f
-e0
-fe
-01
-d8
-c0
-0c
-b4
-98
-c0
-8c
-00
-e8
-c1
-80
-00
-60
-01
-cc
-0b
 20
 60
 00
@@ -7563,7 +7543,7 @@
 c2
 00
 07
-5f
+5a
 1a
 22
 7e
@@ -7655,7 +7635,7 @@
 c0
 ff
 87
-7b
+76
 68
 00
 cb
@@ -7679,7 +7659,7 @@
 c0
 00
 87
-86
+81
 d8
 c0
 0c
@@ -7695,7 +7675,7 @@
 c0
 01
 87
-84
+7f
 20
 60
 00
@@ -7723,7 +7703,7 @@
 20
 40
 07
-8e
+89
 18
 40
 84
@@ -7815,7 +7795,7 @@
 20
 40
 07
-97
+92
 78
 26
 fc
@@ -7847,7 +7827,7 @@
 24
 2c
 07
-da
+d5
 78
 46
 fc
@@ -7887,7 +7867,7 @@
 24
 22
 87
-da
+d5
 09
 80
 00
@@ -7915,7 +7895,7 @@
 24
 20
 87
-da
+d5
 09
 80
 00
@@ -7939,7 +7919,7 @@
 20
 22
 87
-c4
+bf
 09
 80
 00
@@ -7955,7 +7935,7 @@
 c2
 00
 07
-c0
+bb
 18
 a2
 22
@@ -8007,7 +7987,7 @@
 20
 23
 07
-da
+d5
 78
 37
 fc
@@ -8043,7 +8023,7 @@
 20
 20
 07
-52
+4d
 78
 4d
 fc
@@ -8083,11 +8063,11 @@
 20
 40
 07
-97
+92
 20
 40
 07
-dd
+d8
 79
 20
 2a
@@ -8167,7 +8147,7 @@
 c2
 00
 07
-f6
+f1
 78
 24
 7c
@@ -8200,8 +8180,8 @@
 20
 3a
 7a
-b0
-16
+79
+34
 aa
 55
 40
@@ -10287,5 +10267,5 @@
 55
 ab
 b2
-55
-48
+1c
+b4
Index: btkb/output/program.lis
===================================================================
--- /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/btkb/output/program.lis	(revision 970)
+++ /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/btkb/output/program.lis	(working copy)
@@ -2233,7 +2233,7 @@
 0688 c0ff86fa bne state_24g_pairing_success ,p_g24_pairing_sm 
 0689 2040068e call p_g24_package_data 
 068a 205406a5 call p_g24_get_package_data ,user 
-068b 20540769 call p_g24_transmit_prep ,user 
+068b 20540764 call p_g24_transmit_prep ,user 
 
 p_g24_txdata_enable_tx:
 068c 704be601 jam ensure_on_24g ,mem_24g_ensure 
@@ -2312,13 +2312,13 @@
 06bf 6800cbe7 fetch 1 ,mem_24g_get_ack_fail 
 06c0 d8400010 arg 16 ,temp 
 06c1 98467c00 isub temp ,null 
-06c2 20210788 branch p_g24_ch ,positive 
+06c2 20210783 branch p_g24_ch ,positive 
 06c3 6800cbe8 fetch 1 ,mem_24g_retry 
 06c4 1fe0fe01 increase 1 ,pdata 
 06c5 6000cbe8 store 1 ,mem_24g_retry 
 06c6 2000000a nop 10 
 06c7 c08206aa bne retry_24g ,p_g24_transmit_loop 
-06c8 20200788 branch p_g24_ch 
+06c8 20200783 branch p_g24_ch 
 
 p_g24_clear_txbuf:
 06c9 58000000 setarg 0 
@@ -2331,7 +2331,7 @@
 
 p_g24_transmit_receive_ack:
 06ce 7857fc00 disable user3 
-06cf 204007e0 call p_g24_transmit 
+06cf 204007db call p_g24_transmit 
 06d0 200004b0 nop 1200 
 06d1 18002a00 force 0 ,radio_ctrl 
 06d2 68024c00 fetch 4 ,mem_24g_addr 
@@ -2339,8 +2339,8 @@
 06d4 68088017 fetcht 1 ,mem_last_freq 
 06d5 20403a82 call set_freq_rx 
 06d6 20403a87 call rf_rx_enable 
-06d7 204007a0 call p_g24_receive_rxon 
-06d8 205787da call p_g24_end_of_packet ,user3 
+06d7 2040079b call p_g24_receive_rxon 
+06d8 205787d5 call p_g24_end_of_packet ,user3 
 06d9 20600000 rtn 
 
 p_g24_tx_paring_retry:
@@ -2385,7 +2385,7 @@
 06f6 704be000 jam 0 ,mem_24g_pid 
 06f7 704be94a jam g24_pair_ch ,mem_24g_ch 
 06f8 68024beb fetch 4 ,mem_24g_paring_addr 
-06f9 2020075b branch p_g24_update_addr_and_synccrc8 
+06f9 20200756 branch p_g24_update_addr_and_synccrc8 
 
 p_g24_pairing_sm:
 06fa 204006f6 call p_g24_pair_init 
@@ -2419,7 +2419,7 @@
 070e da200d37 arg mem_24g_common_temp ,rega 
 070f d8400007 arg 7 ,temp 
 0710 20400744 call p_g24_put_data_in_buff 
-0711 20400769 call p_g24_transmit_prep 
+0711 20400764 call p_g24_transmit_prep 
 0712 2040068c call p_g24_txdata_enable_tx 
 0713 202034df branch enable_user 
 
@@ -2444,13 +2444,13 @@
 071f 700b7d31 jam bt_evt_24g_pairing_complete ,mem_fifo_temp 
 0720 20407c27 call ui_ipc_send_event 
 0721 68020d19 fetch 4 ,mem_24g_rxpayload + 2 
-0722 2040075b call p_g24_update_addr_and_synccrc8 
+0722 20400756 call p_g24_update_addr_and_synccrc8 
 0723 202006b3 branch p_g24_transmit_abandon 
 
 p_g24_start_24g_mode:
 0724 79200023 set1 mark_24g ,mark 
-0725 2040075c call p_g24_syncword_crc8 
-0726 20400788 call p_g24_ch 
+0725 20400757 call p_g24_syncword_crc8 
+0726 20400783 call p_g24_ch 
 0727 6800cbef fetch 1 ,mem_24g_pairing_sm 
 0728 c1ff8000 rtnne state_24g_pairing_success 
 0729 20400736 call p_g24_tx_attemp_data_prep 
@@ -2480,13 +2480,13 @@
 073b d8400006 arg 6 ,temp 
 073c da200d37 arg mem_24g_common_temp ,rega 
 073d 20400744 call p_g24_put_data_in_buff 
-073e 20200769 branch p_g24_transmit_prep 
+073e 20200764 branch p_g24_transmit_prep 
 
 p_g24_attemp_txdata_retry:
 073f 68014c04 fetch 2 ,mem_24g_check_dongle_times 
 0740 1fe0fe01 increase 1 ,pdata 
 0741 60014c04 store 2 ,mem_24g_check_dongle_times 
-0742 20400788 call p_g24_ch 
+0742 20400783 call p_g24_ch 
 0743 2020072c branch p_g24_tx_attemp_dongle_loop 
 
 p_g24_put_data_in_buff:
@@ -2500,227 +2500,222 @@
 0749 68008cb4 fetch 1 ,mem_24g_rxbuf + 1 
 074a 1fe97e00 rshift3 pdata ,pdata 
 074b 6000cbdf store 1 ,mem_24g_rxdata_length 
-074c 1fe0fe01 increase 1 ,pdata 
-074d d8c00cb4 arg mem_24g_rxbuf + 1 ,contr 
-074e 98c08c00 iadd contr ,contr 
-074f e8c18000 ifetch 3 ,contr 
-0750 6001cc0b store 3 ,mem_24g_sta_crc 
-0751 20600000 rtn 
+074c 20600000 rtn 
 
 p_rssi_signal:
-0752 6808cc3c fetcht 1 ,mem_rssi_signal_index 
-0753 58004c2b setarg mem_rssi_signal_buf 
-0754 98408a00 iadd temp ,contw 
-0755 1a227e00 copy rega ,pdata 
-0756 e0a08000 istore 1 ,contw 
-0757 18408401 increase 1 ,temp 
-0758 18410407 and_into rssi_buf_len_signal ,temp 
-0759 6008cc3c storet 1 ,mem_rssi_signal_index 
-075a 20600000 rtn 
+074d 6808cc3c fetcht 1 ,mem_rssi_signal_index 
+074e 58004c2b setarg mem_rssi_signal_buf 
+074f 98408a00 iadd temp ,contw 
+0750 1a227e00 copy rega ,pdata 
+0751 e0a08000 istore 1 ,contw 
+0752 18408401 increase 1 ,temp 
+0753 18410407 and_into rssi_buf_len_signal ,temp 
+0754 6008cc3c storet 1 ,mem_rssi_signal_index 
+0755 20600000 rtn 
 
 p_g24_update_addr_and_synccrc8:
-075b 60024c00 store 4 ,mem_24g_addr 
+0756 60024c00 store 4 ,mem_24g_addr 
 
 p_g24_syncword_crc8:
-075c da200000 arg 0 ,rega 
-075d df200004 arg 4 ,loopcnt 
-075e d8c04c00 arg mem_24g_addr ,contr 
+0757 da200000 arg 0 ,rega 
+0758 df200004 arg 4 ,loopcnt 
+0759 d8c04c00 arg mem_24g_addr ,contr 
 
 p_g24_syncword_crc8_loop:
-075f e8c08000 ifetch 1 ,contr 
-0760 9a20a200 iadd rega ,rega 
-0761 c200075f loop p_g24_syncword_crc8_loop 
-0762 1a227e00 copy rega ,pdata 
-0763 60014c16 store 2 ,mem_24g_syncword 
-0764 6800cc16 fetch 1 ,mem_24g_syncword 
-0765 6808cc17 fetcht 1 ,mem_24g_syncword + 1 
-0766 9840fe00 iadd temp ,pdata 
-0767 6000cc18 store 1 ,mem_24g_syncword_crc8 
-0768 20600000 rtn 
+075a e8c08000 ifetch 1 ,contr 
+075b 9a20a200 iadd rega ,rega 
+075c c200075a loop p_g24_syncword_crc8_loop 
+075d 1a227e00 copy rega ,pdata 
+075e 60014c16 store 2 ,mem_24g_syncword 
+075f 6800cc16 fetch 1 ,mem_24g_syncword 
+0760 6808cc17 fetcht 1 ,mem_24g_syncword + 1 
+0761 9840fe00 iadd temp ,pdata 
+0762 6000cc18 store 1 ,mem_24g_syncword_crc8 
+0763 20600000 rtn 
 
 p_g24_transmit_prep:
+0764 6800cbe1 fetch 1 ,mem_24g_datalen 
+0765 1fe0fe02 increase 2 ,pdata 
+0766 6000cbe3 store 1 ,mem_24g_txlen 
+0767 6800cbe2 fetch 1 ,mem_24g_data_type 
+0768 60008cf5 store 1 ,mem_24g_txpayload 
 0769 6800cbe1 fetch 1 ,mem_24g_datalen 
-076a 1fe0fe02 increase 2 ,pdata 
-076b 6000cbe3 store 1 ,mem_24g_txlen 
-076c 6800cbe2 fetch 1 ,mem_24g_data_type 
-076d 60008cf5 store 1 ,mem_24g_txpayload 
-076e 6800cbe1 fetch 1 ,mem_24g_datalen 
-076f 1fe9fe00 lshift3 pdata ,pdata 
-0770 6808cbe0 fetcht 1 ,mem_24g_pid 
-0771 18410403 and temp ,0x03 ,temp 
-0772 18438400 lshift temp ,temp 
-0773 9841fe00 ior temp ,pdata 
-0774 6808cc0a fetcht 1 ,mem_24g_no_ack 
-0775 9840fe00 iadd temp ,pdata 
-0776 e0a08000 istore 1 ,contw 
-0777 6800cbef fetch 1 ,mem_24g_pairing_sm 
-0778 c0ff877b bne state_24g_pairing_success ,p_g24_transmit_prep_pair 
-0779 6800cbe2 fetch 1 ,mem_24g_data_type 
-077a e0a08000 istore 1 ,contw 
+076a 1fe9fe00 lshift3 pdata ,pdata 
+076b 6808cbe0 fetcht 1 ,mem_24g_pid 
+076c 18410403 and temp ,0x03 ,temp 
+076d 18438400 lshift temp ,temp 
+076e 9841fe00 ior temp ,pdata 
+076f 6808cc0a fetcht 1 ,mem_24g_no_ack 
+0770 9840fe00 iadd temp ,pdata 
+0771 e0a08000 istore 1 ,contw 
+0772 6800cbef fetch 1 ,mem_24g_pairing_sm 
+0773 c0ff8776 bne state_24g_pairing_success ,p_g24_transmit_prep_pair 
+0774 6800cbe2 fetch 1 ,mem_24g_data_type 
+0775 e0a08000 istore 1 ,contw 
 
 p_g24_transmit_prep_pair:
-077b 6800cbe1 fetch 1 ,mem_24g_datalen 
-077c 98007200 iforce loopcnt 
-077d 6800cbe2 fetch 1 ,mem_24g_data_type 
-077e c0008786 beq 1 ,p_g24_transmit_prep_mouse 
-077f d8c00cd5 arg mem_24g_txbuf ,contr 
-0780 20407e45 call memcpy 
-0781 68008cd5 fetch 1 ,mem_24g_txbuf 
-0782 c0018784 beq 0x03 ,p_g24_multi_key_setup 
-0783 20600000 rtn 
+0776 6800cbe1 fetch 1 ,mem_24g_datalen 
+0777 98007200 iforce loopcnt 
+0778 6800cbe2 fetch 1 ,mem_24g_data_type 
+0779 c0008781 beq 1 ,p_g24_transmit_prep_mouse 
+077a d8c00cd5 arg mem_24g_txbuf ,contr 
+077b 20407e45 call memcpy 
+077c 68008cd5 fetch 1 ,mem_24g_txbuf 
+077d c001877f beq 0x03 ,p_g24_multi_key_setup 
+077e 20600000 rtn 
 
 p_g24_multi_key_setup:
-0784 700cd502 jam 0x02 ,mem_24g_txbuf 
-0785 20600000 rtn 
+077f 700cd502 jam 0x02 ,mem_24g_txbuf 
+0780 20600000 rtn 
 
 p_g24_transmit_prep_mouse:
-0786 d8c00cd6 arg mem_24g_txbuf + 1 ,contr 
-0787 20207e45 branch memcpy 
+0781 d8c00cd6 arg mem_24g_txbuf + 1 ,contr 
+0782 20207e45 branch memcpy 
 
 p_g24_ch:
-0788 6808cbea fetcht 1 ,mem_24g_current_ch_number 
-0789 2040078e call p_g24_ch_calc 
-078a 18408401 increase 1 ,temp 
-078b 18410403 and_into 3 ,temp 
-078c 6008cbea storet 1 ,mem_24g_current_ch_number 
-078d 20600000 rtn 
+0783 6808cbea fetcht 1 ,mem_24g_current_ch_number 
+0784 20400789 call p_g24_ch_calc 
+0785 18408401 increase 1 ,temp 
+0786 18410403 and_into 3 ,temp 
+0787 6008cbea storet 1 ,mem_24g_current_ch_number 
+0788 20600000 rtn 
 
 p_g24_ch_calc:
-078e 6800cc00 fetch 1 ,mem_24g_addr 
-078f 1fe17e03 and_into 0x03 ,pdata 
-0790 1fefa204 mul32 pdata ,4 ,rega 
-0791 58004bf0 setarg mem_24g_ch_map1 
-0792 9a20fe00 iadd rega ,pdata 
-0793 98408c00 iadd temp ,contr 
-0794 e8c08000 ifetch 1 ,contr 
-0795 6000cbe9 store 1 ,mem_24g_ch 
-0796 20600000 rtn 
+0789 6800cc00 fetch 1 ,mem_24g_addr 
+078a 1fe17e03 and_into 0x03 ,pdata 
+078b 1fefa204 mul32 pdata ,4 ,rega 
+078c 58004bf0 setarg mem_24g_ch_map1 
+078d 9a20fe00 iadd rega ,pdata 
+078e 98408c00 iadd temp ,contr 
+078f e8c08000 ifetch 1 ,contr 
+0790 6000cbe9 store 1 ,mem_24g_ch 
+0791 20600000 rtn 
 
 p_g24_prep:
-0797 7844fc00 disable enable_crc 
-0798 7843fc00 disable enable_white 
-0799 58555555 setarg 0x555555 
-079a 98001e00 iforce crc24_init 
-079b 6800cbe9 fetch 1 ,mem_24g_ch 
-079c 1fed8400 reverse pdata ,temp 
-079d 79200401 set1 1 ,temp 
-079e 18431c00 rshift temp ,white_init 
-079f 20600000 rtn 
+0792 7844fc00 disable enable_crc 
+0793 7843fc00 disable enable_white 
+0794 58555555 setarg 0x555555 
+0795 98001e00 iforce crc24_init 
+0796 6800cbe9 fetch 1 ,mem_24g_ch 
+0797 1fed8400 reverse pdata ,temp 
+0798 79200401 set1 1 ,temp 
+0799 18431c00 rshift temp ,white_init 
+079a 20600000 rtn 
 
 p_g24_receive_rxon:
-07a0 20400797 call p_g24_prep 
-07a1 7826fc00 enable decode_fec0 
-07a2 7830fc00 enable is_rx 
-07a3 78507c00 disable is_tx 
-07a4 78287c00 enable swfine 
-07a5 68014be4 fetch 2 ,mem_24g_rx_window 
-07a6 98003600 iforce stop_watch 
-07a7 37c18400 correlate null ,timeout 
-07a8 242c07da nbranch p_g24_sync_timeout ,sync 
-07a9 7846fc00 disable decode_fec0 
-07aa 7825fc00 enable decode_fec1 
-07ab 7823fc00 enable enable_white 
-07ac 7824fc00 enable enable_crc 
-07ad 09800008 parse demod ,bucket ,8 
-07ae 19897e00 rshift3 pwindow ,pdata 
-07af 6000cc19 store 1 ,mem_24g_get_syncword_crc8 
-07b0 6808cc18 fetcht 1 ,mem_24g_syncword_crc8 
-07b1 98467c00 isub temp ,null 
-07b2 242287da nbranch p_g24_end_of_packet ,zero 
-07b3 09800008 parse demod ,bucket ,8 
-07b4 19897e00 rshift3 pwindow ,pdata 
-07b5 60008cb3 store 1 ,mem_24g_rxbuf 
-07b6 68008cb3 fetch 1 ,mem_24g_rxbuf 
-07b7 6808cbe2 fetcht 1 ,mem_24g_data_type 
-07b8 a8400e00 icompare bits_data ,temp 
-07b9 242087da nbranch p_g24_end_of_packet ,true 
+079b 20400792 call p_g24_prep 
+079c 7826fc00 enable decode_fec0 
+079d 7830fc00 enable is_rx 
+079e 78507c00 disable is_tx 
+079f 78287c00 enable swfine 
+07a0 68014be4 fetch 2 ,mem_24g_rx_window 
+07a1 98003600 iforce stop_watch 
+07a2 37c18400 correlate null ,timeout 
+07a3 242c07d5 nbranch p_g24_sync_timeout ,sync 
+07a4 7846fc00 disable decode_fec0 
+07a5 7825fc00 enable decode_fec1 
+07a6 7823fc00 enable enable_white 
+07a7 7824fc00 enable enable_crc 
+07a8 09800008 parse demod ,bucket ,8 
+07a9 19897e00 rshift3 pwindow ,pdata 
+07aa 6000cc19 store 1 ,mem_24g_get_syncword_crc8 
+07ab 6808cc18 fetcht 1 ,mem_24g_syncword_crc8 
+07ac 98467c00 isub temp ,null 
+07ad 242287d5 nbranch p_g24_end_of_packet ,zero 
+07ae 09800008 parse demod ,bucket ,8 
+07af 19897e00 rshift3 pwindow ,pdata 
+07b0 60008cb3 store 1 ,mem_24g_rxbuf 
+07b1 68008cb3 fetch 1 ,mem_24g_rxbuf 
+07b2 6808cbe2 fetcht 1 ,mem_24g_data_type 
+07b3 a8400e00 icompare bits_data ,temp 
+07b4 242087d5 nbranch p_g24_end_of_packet ,true 
 
 p_g24_receive_skip:
-07ba 09800008 parse demod ,bucket ,8 
-07bb 19897e00 rshift3 pwindow ,pdata 
-07bc e0a08000 istore 1 ,contw 
-07bd 1fe97e00 rshift3 pdata ,pdata 
-07be 1fe1721f and pdata ,0x1f ,loopcnt 
-07bf 202287c4 branch p_g24rx_nopayload ,zero 
+07b5 09800008 parse demod ,bucket ,8 
+07b6 19897e00 rshift3 pwindow ,pdata 
+07b7 e0a08000 istore 1 ,contw 
+07b8 1fe97e00 rshift3 pdata ,pdata 
+07b9 1fe1721f and pdata ,0x1f ,loopcnt 
+07ba 202287bf branch p_g24rx_nopayload ,zero 
 
 p_g24rx_loop:
-07c0 09800008 parse demod ,bucket ,8 
-07c1 19897e00 rshift3 pwindow ,pdata 
-07c2 e0a08000 istore 1 ,contw 
-07c3 c20007c0 loop p_g24rx_loop 
+07bb 09800008 parse demod ,bucket ,8 
+07bc 19897e00 rshift3 pwindow ,pdata 
+07bd e0a08000 istore 1 ,contw 
+07be c20007bb loop p_g24rx_loop 
 
 p_g24rx_nopayload:
-07c4 18a22200 copy contw ,rega 
-07c5 09800008 parse demod ,bucket ,8 
-07c6 19897e00 rshift3 pwindow ,pdata 
-07c7 6000cc2a store 1 ,mem_rssi_hex_received 
-07c8 1a220a00 copy rega ,contw 
-07c9 09800018 parse demod ,bucket ,24 
-07ca 78287c00 enable swfine 
-07cb db600664 arg param_sifs ,stop_watch 
-07cc 1fef7e00 rshift32 pdata ,pdata 
-07cd 1ff17e00 rshift16 pdata ,pdata 
-07ce e0a18000 istore 3 ,contw 
-07cf 7845fc00 disable decode_fec1 
-07d0 202307da branch p_g24_end_of_packet ,crc_failed 
-07d1 7837fc00 enable user3 
-07d2 68008017 fetch 1 ,mem_last_freq 
-07d3 1fe0a200 add pdata ,0 ,rega 
-07d4 20403ab6 call rf_write_freq 
-07d5 7846fc00 disable decode_fec0 
-07d6 20403a7a call set_sync_on 
-07d7 6800cc2a fetch 1 ,mem_rssi_hex_received 
-07d8 1fe22200 copy pdata ,rega 
-07d9 20200752 branch p_rssi_signal 
+07bf 18a22200 copy contw ,rega 
+07c0 09800008 parse demod ,bucket ,8 
+07c1 19897e00 rshift3 pwindow ,pdata 
+07c2 6000cc2a store 1 ,mem_rssi_hex_received 
+07c3 1a220a00 copy rega ,contw 
+07c4 09800018 parse demod ,bucket ,24 
+07c5 78287c00 enable swfine 
+07c6 db600664 arg param_sifs ,stop_watch 
+07c7 1fef7e00 rshift32 pdata ,pdata 
+07c8 1ff17e00 rshift16 pdata ,pdata 
+07c9 e0a18000 istore 3 ,contw 
+07ca 7845fc00 disable decode_fec1 
+07cb 202307d5 branch p_g24_end_of_packet ,crc_failed 
+07cc 7837fc00 enable user3 
+07cd 68008017 fetch 1 ,mem_last_freq 
+07ce 1fe0a200 add pdata ,0 ,rega 
+07cf 20403ab6 call rf_write_freq 
+07d0 7846fc00 disable decode_fec0 
+07d1 20403a7a call set_sync_on 
+07d2 6800cc2a fetch 1 ,mem_rssi_hex_received 
+07d3 1fe22200 copy pdata ,rega 
+07d4 2020074d branch p_rssi_signal 
 
 p_g24_sync_timeout:
 
 p_g24_end_of_packet:
-07da 784dfc00 disable encode_fec1 
-07db 7845fc00 disable decode_fec1 
-07dc 2020375c branch end_of_packet 
+07d5 784dfc00 disable encode_fec1 
+07d6 7845fc00 disable decode_fec1 
+07d7 2020375c branch end_of_packet 
 
 p_g24_set_freq_tx:
-07dd 20403a7a call set_sync_on 
-07de 6808cbe9 fetcht 1 ,mem_24g_ch 
-07df 20203a91 branch set_freq_tx 
+07d8 20403a7a call set_sync_on 
+07d9 6808cbe9 fetcht 1 ,mem_24g_ch 
+07da 20203a91 branch set_freq_tx 
 
 p_g24_transmit:
-07e0 204053d2 call le_enable 
-07e1 68024c00 fetch 4 ,mem_24g_addr 
-07e2 98001200 iforce access 
-07e3 20400797 call p_g24_prep 
-07e4 204007dd call p_g24_set_freq_tx 
-07e5 79202a00 set1 txgfsk ,radio_ctrl 
-07e6 782efc00 enable encode_fec0 
-07e7 78307c00 enable is_tx 
-07e8 7850fc00 disable is_rx 
-07e9 19317e00 rshift16 access ,pdata 
-07ea 1fecfe00 rshift8 pdata ,pdata 
-07eb 1ff1fe00 rshift4 pdata ,pdata 
-07ec 08008628 inject mod ,40 
-07ed 784efc00 disable encode_fec0 
-07ee 782dfc00 enable encode_fec1 
-07ef 7823fc00 enable enable_white 
-07f0 7824fc00 enable enable_crc 
-07f1 6800cc18 fetch 1 ,mem_24g_syncword_crc8 
-07f2 08008608 inject mod ,8 
-07f3 6800cbe3 fetch 1 ,mem_24g_txlen 
-07f4 98007200 iforce loopcnt 
-07f5 d8c00cf5 arg mem_24g_txpayload ,contr 
+07db 204053d2 call le_enable 
+07dc 68024c00 fetch 4 ,mem_24g_addr 
+07dd 98001200 iforce access 
+07de 20400792 call p_g24_prep 
+07df 204007d8 call p_g24_set_freq_tx 
+07e0 79202a00 set1 txgfsk ,radio_ctrl 
+07e1 782efc00 enable encode_fec0 
+07e2 78307c00 enable is_tx 
+07e3 7850fc00 disable is_rx 
+07e4 19317e00 rshift16 access ,pdata 
+07e5 1fecfe00 rshift8 pdata ,pdata 
+07e6 1ff1fe00 rshift4 pdata ,pdata 
+07e7 08008628 inject mod ,40 
+07e8 784efc00 disable encode_fec0 
+07e9 782dfc00 enable encode_fec1 
+07ea 7823fc00 enable enable_white 
+07eb 7824fc00 enable enable_crc 
+07ec 6800cc18 fetch 1 ,mem_24g_syncword_crc8 
+07ed 08008608 inject mod ,8 
+07ee 6800cbe3 fetch 1 ,mem_24g_txlen 
+07ef 98007200 iforce loopcnt 
+07f0 d8c00cf5 arg mem_24g_txpayload ,contr 
 
 p_g24tr_loop:
-07f6 e8c08000 ifetch 1 ,contr 
-07f7 08008608 inject mod ,8 
-07f8 c20007f6 loop p_g24tr_loop 
-07f9 78247c00 enable enable_parity 
-07fa 08008618 inject mod ,24 
-07fb 78447c00 disable enable_parity 
-07fc 37d38200 until null ,tx_clear 
-07fd 20000064 nop 100 
-07fe 784efc00 disable encode_fec0 
-07ff 784dfc00 disable encode_fec1 
-0800 20203a7a branch set_sync_on 
+07f1 e8c08000 ifetch 1 ,contr 
+07f2 08008608 inject mod ,8 
+07f3 c20007f1 loop p_g24tr_loop 
+07f4 78247c00 enable enable_parity 
+07f5 08008618 inject mod ,24 
+07f6 78447c00 disable enable_parity 
+07f7 37d38200 until null ,tx_clear 
+07f8 20000064 nop 100 
+07f9 784efc00 disable encode_fec0 
+07fa 784dfc00 disable encode_fec1 
+07fb 20203a7a branch set_sync_on 
               org 0x3000
 
 start:
Index: btkb/output/ramcode.rom
===================================================================
--- /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/btkb/output/ramcode.rom	(revision 970)
+++ /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/btkb/output/ramcode.rom	(working copy)
@@ -1673,7 +1673,7 @@
 c0ff86fa
 2040068e
 205406a5
-20540769
+20540764
 704be601
 20600000
 78547c00
@@ -1728,20 +1728,20 @@
 6800cbe7
 d8400010
 98467c00
-20210788
+20210783
 6800cbe8
 1fe0fe01
 6000cbe8
 2000000a
 c08206aa
-20200788
+20200783
 58000000
 60048cd5
 6004cd57
 20600000
 20200714
 7857fc00
-204007e0
+204007db
 200004b0
 18002a00
 68024c00
@@ -1749,8 +1749,8 @@
 68088017
 20403a82
 20403a87
-204007a0
-205787da
+2040079b
+205787d5
 20600000
 704d4500
 20600000
@@ -1783,7 +1783,7 @@
 704be000
 704be94a
 68024beb
-2020075b
+20200756
 204006f6
 6800cbe6
 c000b4df
@@ -1807,7 +1807,7 @@
 da200d37
 d8400007
 20400744
-20400769
+20400764
 2040068c
 202034df
 6800cbef
@@ -1824,11 +1824,11 @@
 700b7d31
 20407c27
 68020d19
-2040075b
+20400756
 202006b3
 79200023
-2040075c
-20400788
+20400757
+20400783
 6800cbef
 c1ff8000
 20400736
@@ -1852,11 +1852,11 @@
 d8400006
 da200d37
 20400744
-20200769
+20200764
 68014c04
 1fe0fe01
 60014c04
-20400788
+20400783
 2020072c
 6008cbe1
 18427200
@@ -1866,11 +1866,6 @@
 68008cb4
 1fe97e00
 6000cbdf
-1fe0fe01
-d8c00cb4
-98c08c00
-e8c18000
-6001cc0b
 20600000
 6808cc3c
 58004c2b
@@ -1887,7 +1882,7 @@
 d8c04c00
 e8c08000
 9a20a200
-c200075f
+c200075a
 1a227e00
 60014c16
 6800cc16
@@ -1910,24 +1905,24 @@
 9840fe00
 e0a08000
 6800cbef
-c0ff877b
+c0ff8776
 6800cbe2
 e0a08000
 6800cbe1
 98007200
 6800cbe2
-c0008786
+c0008781
 d8c00cd5
 20407e45
 68008cd5
-c0018784
+c001877f
 20600000
 700cd502
 20600000
 d8c00cd6
 20207e45
 6808cbea
-2040078e
+20400789
 18408401
 18410403
 6008cbea
@@ -1950,7 +1945,7 @@
 79200401
 18431c00
 20600000
-20400797
+20400792
 7826fc00
 7830fc00
 78507c00
@@ -1958,7 +1953,7 @@
 68014be4
 98003600
 37c18400
-242c07da
+242c07d5
 7846fc00
 7825fc00
 7823fc00
@@ -1968,24 +1963,24 @@
 6000cc19
 6808cc18
 98467c00
-242287da
+242287d5
 09800008
 19897e00
 60008cb3
 68008cb3
 6808cbe2
 a8400e00
-242087da
+242087d5
 09800008
 19897e00
 e0a08000
 1fe97e00
 1fe1721f
-202287c4
+202287bf
 09800008
 19897e00
 e0a08000
-c20007c0
+c20007bb
 18a22200
 09800008
 19897e00
@@ -1998,7 +1993,7 @@
 1ff17e00
 e0a18000
 7845fc00
-202307da
+202307d5
 7837fc00
 68008017
 1fe0a200
@@ -2007,7 +2002,7 @@
 20403a7a
 6800cc2a
 1fe22200
-20200752
+2020074d
 784dfc00
 7845fc00
 2020375c
@@ -2017,8 +2012,8 @@
 204053d2
 68024c00
 98001200
-20400797
-204007dd
+20400792
+204007d8
 79202a00
 782efc00
 78307c00
@@ -2038,7 +2033,7 @@
 d8c00cf5
 e8c08000
 08008608
-c20007f6
+c20007f1
 78247c00
 08008618
 78447c00
Index: btkb/program/patch.prog
===================================================================
--- /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/btkb/program/patch.prog	(revision 970)
+++ /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/btkb/program/patch.prog	(working copy)
@@ -2947,11 +2947,11 @@
 	rshift3 pdata,pdata
 	store 1,mem_24g_rxdata_length
 //get crc
-	increase 1,pdata
+	/*increase 1,pdata
 	arg mem_24g_rxbuf+1,contr
 	iadd contr,contr
 	ifetch 3,contr
-	store 3,mem_24g_sta_crc
+	store 3,mem_24g_sta_crc*/
 	rtn
 
 p_rssi_signal:
Index: c51/Makefile
===================================================================
--- /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/c51/Makefile	(revision 970)
+++ /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/c51/Makefile	(working copy)
@@ -8,7 +8,7 @@
 
 
 OUTDIR = output
-ROOT_PATH =D:\Jesson\download\KEIL
+ROOT_PATH =D:\Xu\software
 
 UTIL_PATH = ..\rom\util
 
Index: c51/output/FW
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: c51/output/FW.COD
===================================================================
--- /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/c51/output/FW.COD	(revision 970)
+++ /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/c51/output/FW.COD	(working copy)
@@ -1,4 +1,4 @@
-LX51 LINKER/LOCATER V4.66.97.0                                                          07/10/2024  14:43:00  PAGE 1
+LX51 LINKER/LOCATER V4.66.97.0                                                          07/23/2024  16:33:09  PAGE 1
 
 
 
Index: c51/output/FW.HTM
===================================================================
--- /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/c51/output/FW.HTM	(revision 970)
+++ /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/c51/output/FW.HTM	(working copy)
@@ -25,7 +25,7 @@
 
 <p class="TinyT">
 Created from: <b>LX51 LINKER/LOCATER V4.66.97.0</b><br>
-Creation time: <b>07/10/2024  14:43:00</b><p>
+Creation time: <b>07/23/2024  16:33:09</b><p>
 
 <hr>
 
Index: c51/output/FW.MAP
===================================================================
--- /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/c51/output/FW.MAP	(revision 970)
+++ /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/c51/output/FW.MAP	(working copy)
@@ -1,12 +1,11 @@
-LX51 LINKER/LOCATER V4.66.97.0                                                          07/10/2024  14:43:00  PAGE 1
+LX51 LINKER/LOCATER V4.66.97.0                                                          07/23/2024  16:33:09  PAGE 1
 
 
 LX51 LINKER/LOCATER V4.66.97.0, INVOKED BY:
-D:\JESSON\DOWNLOAD\KEIL\C51\BIN\LX51.EXE OUTPUT/BLUETOOTH.OBJ, OUTPUT/GLOBAL_VARIABLE.OBJ, OUTPUT/KB_PROCESS.OBJ, OUTPUT
->> /KEYSCAN.OBJ, OUTPUT/LED.OBJ, OUTPUT/SYS.OBJ, OUTPUT/ADC.OBJ, OUTPUT/RAM.OBJ, OUTPUT/..\PATCH\IPC.OBJ, OUTPUT/..\PATC
->> H\UTILITIES.OBJ, OUTPUT/..\PATCH\GPIO.OBJ, OUTPUT/..\PATCH\IIC.OBJ TO OUTPUT\FW CLASSES (XDATA (X:0X4DD0-X:0X4F40), C
->> ODE (C:0-C:0XFFFF), DATA (D:0X10-0X7F), IDATA (I:0X80-0XCF)) SEGMENTS (?STACK (D:0XD0)) NOOVERLAY PAGELENGTH (60000) 
->> CODE
+D:\XU\SOFTWARE\C51\BIN\LX51.EXE OUTPUT/BLUETOOTH.OBJ, OUTPUT/GLOBAL_VARIABLE.OBJ, OUTPUT/KB_PROCESS.OBJ, OUTPUT/KEYSCAN.
+>> OBJ, OUTPUT/LED.OBJ, OUTPUT/SYS.OBJ, OUTPUT/ADC.OBJ, OUTPUT/RAM.OBJ, OUTPUT/..\PATCH\IPC.OBJ, OUTPUT/..\PATCH\UTILITI
+>> ES.OBJ, OUTPUT/..\PATCH\GPIO.OBJ, OUTPUT/..\PATCH\IIC.OBJ TO OUTPUT\FW CLASSES (XDATA (X:0X4DD0-X:0X4F40), CODE (C:0-
+>> C:0XFFFF), DATA (D:0X10-0X7F), IDATA (I:0X80-0XCF)) SEGMENTS (?STACK (D:0XD0)) NOOVERLAY PAGELENGTH (60000) CODE
 
 
 CPU MODE:     8051 MODE
@@ -38,47 +37,47 @@
          COMMENT TYPE 0: C51 V9.00
   OUTPUT/..\PATCH\IIC.OBJ (IIC)
          COMMENT TYPE 0: C51 V9.00
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51FPL.LIB (?C?FPADD)
+  D:\XU\SOFTWARE\C51\LIB\C51FPL.LIB (?C?FPADD)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51FPL.LIB (?C?FPMUL)
+  D:\XU\SOFTWARE\C51\LIB\C51FPL.LIB (?C?FPMUL)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51FPL.LIB (?C?FCAST)
+  D:\XU\SOFTWARE\C51\LIB\C51FPL.LIB (?C?FCAST)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51FPL.LIB (?C?CASTF)
+  D:\XU\SOFTWARE\C51\LIB\C51FPL.LIB (?C?CASTF)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51FPL.LIB (?C?FPGETOPN)
+  D:\XU\SOFTWARE\C51\LIB\C51FPL.LIB (?C?FPGETOPN)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51L.LIB (?C_STARTUP)
+  D:\XU\SOFTWARE\C51\LIB\C51L.LIB (?C_STARTUP)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51L.LIB (?C?COPY)
+  D:\XU\SOFTWARE\C51\LIB\C51L.LIB (?C?COPY)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51L.LIB (?C?CLDPTR)
+  D:\XU\SOFTWARE\C51\LIB\C51L.LIB (?C?CLDPTR)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51L.LIB (?C?CLDOPTR)
+  D:\XU\SOFTWARE\C51\LIB\C51L.LIB (?C?CLDOPTR)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51L.LIB (?C?CSTPTR)
+  D:\XU\SOFTWARE\C51\LIB\C51L.LIB (?C?CSTPTR)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51L.LIB (?C?IILDX)
+  D:\XU\SOFTWARE\C51\LIB\C51L.LIB (?C?IILDX)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51L.LIB (?C?ILDIX)
+  D:\XU\SOFTWARE\C51\LIB\C51L.LIB (?C?ILDIX)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51L.LIB (?C?LMUL)
+  D:\XU\SOFTWARE\C51\LIB\C51L.LIB (?C?LMUL)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51L.LIB (?C?ULDIV)
+  D:\XU\SOFTWARE\C51\LIB\C51L.LIB (?C?ULDIV)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51L.LIB (?C?LNEG)
+  D:\XU\SOFTWARE\C51\LIB\C51L.LIB (?C?LNEG)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51L.LIB (?C?ULCMP)
+  D:\XU\SOFTWARE\C51\LIB\C51L.LIB (?C?ULCMP)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51L.LIB (?C?LSTXDATA)
+  D:\XU\SOFTWARE\C51\LIB\C51L.LIB (?C?LSTXDATA)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51L.LIB (?C?LSTKXDATA)
+  D:\XU\SOFTWARE\C51\LIB\C51L.LIB (?C?LSTKXDATA)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51L.LIB (?C?CCASE)
+  D:\XU\SOFTWARE\C51\LIB\C51L.LIB (?C?CCASE)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51L.LIB (?C?ICALL)
+  D:\XU\SOFTWARE\C51\LIB\C51L.LIB (?C?ICALL)
          COMMENT TYPE 1: A51 / ASM51 Assembler
-  D:\JESSON\DOWNLOAD\KEIL\C51\LIB\C51L.LIB (?C_INIT)
+  D:\XU\SOFTWARE\C51\LIB\C51L.LIB (?C_INIT)
          COMMENT TYPE 1: A51 / ASM51 Assembler
 
 
Index: c51/output/FW.SBR
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: c51/output/eeprom.dat
===================================================================
--- /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/c51/output/eeprom.dat	(revision 970)
+++ /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/c51/output/eeprom.dat	(working copy)
@@ -2,8 +2,8 @@
 02
 aa
 55
-06
-20
+f2
+1f
 c5
 12
 80
@@ -6707,7 +6707,7 @@
 20
 54
 07
-69
+64
 70
 4b
 e6
@@ -6927,7 +6927,7 @@
 20
 21
 07
-88
+83
 68
 00
 cb
@@ -6951,7 +6951,7 @@
 20
 20
 07
-88
+83
 58
 00
 00
@@ -6979,7 +6979,7 @@
 20
 40
 07
-e0
+db
 20
 00
 04
@@ -7011,11 +7011,11 @@
 20
 40
 07
-a0
+9b
 20
 57
 87
-da
+d5
 20
 60
 00
@@ -7147,7 +7147,7 @@
 20
 20
 07
-5b
+56
 20
 40
 06
@@ -7243,7 +7243,7 @@
 20
 40
 07
-69
+64
 20
 40
 06
@@ -7311,7 +7311,7 @@
 20
 40
 07
-5b
+56
 20
 20
 06
@@ -7323,11 +7323,11 @@
 20
 40
 07
-5c
+57
 20
 40
 07
-88
+83
 68
 00
 cb
@@ -7423,7 +7423,7 @@
 20
 20
 07
-69
+64
 68
 01
 4c
@@ -7439,7 +7439,7 @@
 20
 40
 07
-88
+83
 20
 20
 07
@@ -7476,26 +7476,6 @@
 00
 cb
 df
-1f
-e0
-fe
-01
-d8
-c0
-0c
-b4
-98
-c0
-8c
-00
-e8
-c1
-80
-00
-60
-01
-cc
-0b
 20
 60
 00
@@ -7563,7 +7543,7 @@
 c2
 00
 07
-5f
+5a
 1a
 22
 7e
@@ -7655,7 +7635,7 @@
 c0
 ff
 87
-7b
+76
 68
 00
 cb
@@ -7679,7 +7659,7 @@
 c0
 00
 87
-86
+81
 d8
 c0
 0c
@@ -7695,7 +7675,7 @@
 c0
 01
 87
-84
+7f
 20
 60
 00
@@ -7723,7 +7703,7 @@
 20
 40
 07
-8e
+89
 18
 40
 84
@@ -7815,7 +7795,7 @@
 20
 40
 07
-97
+92
 78
 26
 fc
@@ -7847,7 +7827,7 @@
 24
 2c
 07
-da
+d5
 78
 46
 fc
@@ -7887,7 +7867,7 @@
 24
 22
 87
-da
+d5
 09
 80
 00
@@ -7915,7 +7895,7 @@
 24
 20
 87
-da
+d5
 09
 80
 00
@@ -7939,7 +7919,7 @@
 20
 22
 87
-c4
+bf
 09
 80
 00
@@ -7955,7 +7935,7 @@
 c2
 00
 07
-c0
+bb
 18
 a2
 22
@@ -8007,7 +7987,7 @@
 20
 23
 07
-da
+d5
 78
 37
 fc
@@ -8043,7 +8023,7 @@
 20
 20
 07
-52
+4d
 78
 4d
 fc
@@ -8083,11 +8063,11 @@
 20
 40
 07
-97
+92
 20
 40
 07
-dd
+d8
 79
 20
 2a
@@ -8167,7 +8147,7 @@
 c2
 00
 07
-f6
+f1
 78
 24
 7c
@@ -8200,8 +8180,8 @@
 20
 3a
 7a
-b0
-16
+79
+34
 aa
 55
 1f
@@ -25420,8 +25400,8 @@
 6c
 59
 50
-2a
-4d
+3f
+87
 ff
 ff
 ff
@@ -32764,5 +32744,25 @@
 ff
 ff
 ff
-4e
-11
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+e0
+6e
Index: c51/output/ramcode.rom
===================================================================
--- /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/c51/output/ramcode.rom	(revision 970)
+++ /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/c51/output/ramcode.rom	(working copy)
@@ -1673,7 +1673,7 @@
 c0ff86fa
 2040068e
 205406a5
-20540769
+20540764
 704be601
 20600000
 78547c00
@@ -1728,20 +1728,20 @@
 6800cbe7
 d8400010
 98467c00
-20210788
+20210783
 6800cbe8
 1fe0fe01
 6000cbe8
 2000000a
 c08206aa
-20200788
+20200783
 58000000
 60048cd5
 6004cd57
 20600000
 20200714
 7857fc00
-204007e0
+204007db
 200004b0
 18002a00
 68024c00
@@ -1749,8 +1749,8 @@
 68088017
 20403a82
 20403a87
-204007a0
-205787da
+2040079b
+205787d5
 20600000
 704d4500
 20600000
@@ -1783,7 +1783,7 @@
 704be000
 704be94a
 68024beb
-2020075b
+20200756
 204006f6
 6800cbe6
 c000b4df
@@ -1807,7 +1807,7 @@
 da200d37
 d8400007
 20400744
-20400769
+20400764
 2040068c
 202034df
 6800cbef
@@ -1824,11 +1824,11 @@
 700b7d31
 20407c27
 68020d19
-2040075b
+20400756
 202006b3
 79200023
-2040075c
-20400788
+20400757
+20400783
 6800cbef
 c1ff8000
 20400736
@@ -1852,11 +1852,11 @@
 d8400006
 da200d37
 20400744
-20200769
+20200764
 68014c04
 1fe0fe01
 60014c04
-20400788
+20400783
 2020072c
 6008cbe1
 18427200
@@ -1866,11 +1866,6 @@
 68008cb4
 1fe97e00
 6000cbdf
-1fe0fe01
-d8c00cb4
-98c08c00
-e8c18000
-6001cc0b
 20600000
 6808cc3c
 58004c2b
@@ -1887,7 +1882,7 @@
 d8c04c00
 e8c08000
 9a20a200
-c200075f
+c200075a
 1a227e00
 60014c16
 6800cc16
@@ -1910,24 +1905,24 @@
 9840fe00
 e0a08000
 6800cbef
-c0ff877b
+c0ff8776
 6800cbe2
 e0a08000
 6800cbe1
 98007200
 6800cbe2
-c0008786
+c0008781
 d8c00cd5
 20407e45
 68008cd5
-c0018784
+c001877f
 20600000
 700cd502
 20600000
 d8c00cd6
 20207e45
 6808cbea
-2040078e
+20400789
 18408401
 18410403
 6008cbea
@@ -1950,7 +1945,7 @@
 79200401
 18431c00
 20600000
-20400797
+20400792
 7826fc00
 7830fc00
 78507c00
@@ -1958,7 +1953,7 @@
 68014be4
 98003600
 37c18400
-242c07da
+242c07d5
 7846fc00
 7825fc00
 7823fc00
@@ -1968,24 +1963,24 @@
 6000cc19
 6808cc18
 98467c00
-242287da
+242287d5
 09800008
 19897e00
 60008cb3
 68008cb3
 6808cbe2
 a8400e00
-242087da
+242087d5
 09800008
 19897e00
 e0a08000
 1fe97e00
 1fe1721f
-202287c4
+202287bf
 09800008
 19897e00
 e0a08000
-c20007c0
+c20007bb
 18a22200
 09800008
 19897e00
@@ -1998,7 +1993,7 @@
 1ff17e00
 e0a18000
 7845fc00
-202307da
+202307d5
 7837fc00
 68008017
 1fe0a200
@@ -2007,7 +2002,7 @@
 20403a7a
 6800cc2a
 1fe22200
-20200752
+2020074d
 784dfc00
 7845fc00
 2020375c
@@ -2017,8 +2012,8 @@
 204053d2
 68024c00
 98001200
-20400797
-204007dd
+20400792
+204007d8
 79202a00
 782efc00
 78307c00
@@ -2038,7 +2033,7 @@
 d8c00cf5
 e8c08000
 08008608
-c20007f6
+c20007f1
 78247c00
 08008618
 78447c00
Index: c51/patch/adc.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: c51/patch/bluetooth.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: c51/patch/global_variable.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: c51/patch/kb_process.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: c51/patch/keyscan.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: c51/patch/led.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: c51/patch/ram.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: c51/patch/ramcode.rom
===================================================================
--- /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/c51/patch/ramcode.rom	(revision 970)
+++ /YDN_KB_Project/YDN_BT_90_3mode_PBswitch_ch_GAN/c51/patch/ramcode.rom	(working copy)
@@ -1673,7 +1673,7 @@
 c0ff86fa
 2040068e
 205406a5
-20540769
+20540764
 704be601
 20600000
 78547c00
@@ -1728,20 +1728,20 @@
 6800cbe7
 d8400010
 98467c00
-20210788
+20210783
 6800cbe8
 1fe0fe01
 6000cbe8
 2000000a
 c08206aa
-20200788
+20200783
 58000000
 60048cd5
 6004cd57
 20600000
 20200714
 7857fc00
-204007e0
+204007db
 200004b0
 18002a00
 68024c00
@@ -1749,8 +1749,8 @@
 68088017
 20403a82
 20403a87
-204007a0
-205787da
+2040079b
+205787d5
 20600000
 704d4500
 20600000
@@ -1783,7 +1783,7 @@
 704be000
 704be94a
 68024beb
-2020075b
+20200756
 204006f6
 6800cbe6
 c000b4df
@@ -1807,7 +1807,7 @@
 da200d37
 d8400007
 20400744
-20400769
+20400764
 2040068c
 202034df
 6800cbef
@@ -1824,11 +1824,11 @@
 700b7d31
 20407c27
 68020d19
-2040075b
+20400756
 202006b3
 79200023
-2040075c
-20400788
+20400757
+20400783
 6800cbef
 c1ff8000
 20400736
@@ -1852,11 +1852,11 @@
 d8400006
 da200d37
 20400744
-20200769
+20200764
 68014c04
 1fe0fe01
 60014c04
-20400788
+20400783
 2020072c
 6008cbe1
 18427200
@@ -1866,11 +1866,6 @@
 68008cb4
 1fe97e00
 6000cbdf
-1fe0fe01
-d8c00cb4
-98c08c00
-e8c18000
-6001cc0b
 20600000
 6808cc3c
 58004c2b
@@ -1887,7 +1882,7 @@
 d8c04c00
 e8c08000
 9a20a200
-c200075f
+c200075a
 1a227e00
 60014c16
 6800cc16
@@ -1910,24 +1905,24 @@
 9840fe00
 e0a08000
 6800cbef
-c0ff877b
+c0ff8776
 6800cbe2
 e0a08000
 6800cbe1
 98007200
 6800cbe2
-c0008786
+c0008781
 d8c00cd5
 20407e45
 68008cd5
-c0018784
+c001877f
 20600000
 700cd502
 20600000
 d8c00cd6
 20207e45
 6808cbea
-2040078e
+20400789
 18408401
 18410403
 6008cbea
@@ -1950,7 +1945,7 @@
 79200401
 18431c00
 20600000
-20400797
+20400792
 7826fc00
 7830fc00
 78507c00
@@ -1958,7 +1953,7 @@
 68014be4
 98003600
 37c18400
-242c07da
+242c07d5
 7846fc00
 7825fc00
 7823fc00
@@ -1968,24 +1963,24 @@
 6000cc19
 6808cc18
 98467c00
-242287da
+242287d5
 09800008
 19897e00
 60008cb3
 68008cb3
 6808cbe2
 a8400e00
-242087da
+242087d5
 09800008
 19897e00
 e0a08000
 1fe97e00
 1fe1721f
-202287c4
+202287bf
 09800008
 19897e00
 e0a08000
-c20007c0
+c20007bb
 18a22200
 09800008
 19897e00
@@ -1998,7 +1993,7 @@
 1ff17e00
 e0a18000
 7845fc00
-202307da
+202307d5
 7837fc00
 68008017
 1fe0a200
@@ -2007,7 +2002,7 @@
 20403a7a
 6800cc2a
 1fe22200
-20200752
+2020074d
 784dfc00
 7845fc00
 2020375c
@@ -2017,8 +2012,8 @@
 204053d2
 68024c00
 98001200
-20400797
-204007dd
+20400792
+204007d8
 79202a00
 782efc00
 78307c00
@@ -2038,7 +2033,7 @@
 d8c00cf5
 e8c08000
 08008608
-c20007f6
+c20007f1
 78247c00
 08008618
 78447c00
Index: c51/patch/sys.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
