comparison dsample-fw-disasm @ 265:d15f701b1434

dsample-fw-disasm: beginning to locate tpudrv10 code
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 18 Jan 2018 08:03:03 +0000
parents e4a596bbb2bf
children bb46e9f67cd5
comparison
equal deleted inserted replaced
264:e4a596bbb2bf 265:d15f701b1434
712 250496: 4689 mov r9, r1 712 250496: 4689 mov r9, r1
713 250498: 4692 mov r10, r2 713 250498: 4692 mov r10, r2
714 25049a: 469b mov r11, r3 714 25049a: 469b mov r11, r3
715 25049c: bdf0 pop {r4, r5, r6, r7, pc} 715 25049c: bdf0 pop {r4, r5, r6, r7, pc}
716 716
717 IRAM code flash address = 0x20508
718 IRAM code run start address = 0x800004
719 IRAM code run end address = 0x81944c
720
721 Run address = load address + 0x7DFAFC
722
717 $INC_Initialize: 723 $INC_Initialize:
718 254654: b530 push {r4, r5, lr} 724 254654: b530 push {r4, r5, lr}
719 254656: 1c05 add r5, r0, #0 725 254656: 1c05 add r5, r0, #0
720 254658: 4c13 ldr r4, =0x1079150 ; via 0x2546a8 726 254658: 4c13 ldr r4, =0x1079150 ; via 0x2546a8
721 25465a: 2001 mov r0, #1 727 25465a: 2001 mov r0, #1
830 255784: e12fff1e bx lr 836 255784: e12fff1e bx lr
831 255788: f785 ff10 bl 0x1db5ac 837 255788: f785 ff10 bl 0x1db5ac
832 25578c: 4778 bx pc 838 25578c: 4778 bx pc
833 25578e: 46c0 nop (mov r8, r8) 839 25578e: 46c0 nop (mov r8, r8)
834 255790: e8bd8000 ldmia sp!, {pc} 840 255790: e8bd8000 ldmia sp!, {pc}
841
842 ; $Cust_Init_Layer1 call trampoline
843 2566f8: b082 sub sp, #8
844 2566fa: 9400 str r4, [sp, #0]
845 2566fc: 4c01 ldr r4, =0x803bf8 ; via 0x256704
846 2566fe: 9401 str r4, [sp, #4]
847 256700: bd10 pop {r4, pc}
848 256702: 0000
849
850 IRAM code:
851
852 $Cust_get_pwr_data:
853 803b5c: b5f0 push {r4, r5, r6, r7, lr}
854 803b5e: 4642 mov r2, r8
855 803b60: b404 push {r2}
856 803b62: 1c0e add r6, r1, #0
857 803b64: 1c05 add r5, r0, #0
858 803b66: 1c30 add r0, r6, #0
859 803b68: f7ff ff66 bl 0x803a38 ; $Cust_is_band_high
860 803b6c: 1c04 add r4, r0, #0
861 803b6e: 1c30 add r0, r6, #0
862 803b70: f00e fa45 bl 0x811ffe ; $Convert_l1_radio_freq
863 803b74: 0400 lsl r0, r0, #16
864 803b76: 0c06 lsr r6, r0, #16
865 803b78: 20dd mov r0, #221 ; 0xdd
866 803b7a: 0080 lsl r0, r0, #2
867 803b7c: 4360 mul r0, r4
868 803b7e: 4680 mov r8, r0
869 803b80: 20dd mov r0, #221 ; 0xdd
870 803b82: 4360 mul r0, r4
871 803b84: 1828 add r0, r5, r0
872 803b86: 0080 lsl r0, r0, #2
873 803b88: 4b9e ldr r3, =0x83a2f0 ; via 0x803e04
874 803b8a: 1819 add r1, r3, r0
875 803b8c: 315c add r1, #92 ; 0x5c
876 803b8e: 8809 ldrh r1, [r1, #0]
877 803b90: 468c mov r12, r1
878 803b92: 499e ldr r1, =0x83a34f ; via 0x803e0c
879 803b94: 5c08 ldrb r0, [r1, r0]
880 803b96: 0141 lsl r1, r0, #5
881 803b98: 4640 mov r0, r8
882 803b9a: 1845 add r5, r0, r1
883 803b9c: 2400 mov r4, #0
884 803b9e: e002 b 0x803ba6
885 803ba0: 1c60 add r0, r4, #1
886 803ba2: 0400 lsl r0, r0, #16
887 803ba4: 0c04 lsr r4, r0, #16
888 803ba6: 00a2 lsl r2, r4, #2
889 803ba8: 18a8 add r0, r5, r2
890 803baa: 1819 add r1, r3, r0
891 803bac: 31dc add r1, #220 ; 0xdc
892 803bae: 2702 mov r7, #2
893 803bb0: 1950 add r0, r2, r5
894 803bb2: 181a add r2, r3, r0
895 803bb4: 20dc mov r0, #220 ; 0xdc
896 803bb6: 5a80 ldrh r0, [r0, r2]
897 803bb8: 4286 cmp r6, r0
898 803bba: dcf1 bgt 0x803ba0
899 803bbc: 5e79 ldrsh r1, [r7, r1]
900 803bbe: 4660 mov r0, r12
901 803bc0: 4341 mul r1, r0
902 803bc2: 09c8 lsr r0, r1, #7
903 803bc4: 0400 lsl r0, r0, #16
904 803bc6: 0c00 lsr r0, r0, #16
905 803bc8: 4684 mov r12, r0
906 803bca: 4640 mov r0, r8
907 803bcc: 18c0 add r0, r0, r3
908 803bce: 21d7 mov r1, #215 ; 0xd7
909 803bd0: 0089 lsl r1, r1, #2
910 803bd2: 1808 add r0, r1, r0
911 803bd4: 4a8a ldr r2, =0x83a2da ; via 0x803e00
912 803bd6: 2100 mov r1, #0
913 803bd8: 5e51 ldrsh r1, [r2, r1]
914 803bda: e000 b 0x803bde
915 803bdc: 3004 add r0, #4
916 803bde: 2200 mov r2, #0
917 803be0: 5e82 ldrsh r2, [r0, r2]
918 803be2: 4291 cmp r1, r2
919 803be4: dcfa bgt 0x803bdc
920 803be6: 2102 mov r1, #2
921 803be8: 5e09 ldrsh r1, [r1, r0]
922 803bea: 4660 mov r0, r12
923 803bec: 1808 add r0, r1, r0
924 803bee: 0400 lsl r0, r0, #16
925 803bf0: 0c00 lsr r0, r0, #16
926 803bf2: bc04 pop {r2}
927 803bf4: 4690 mov r8, r2
928 803bf6: bdf0 pop {r4, r5, r6, r7, pc}
929
930 $Cust_Init_Layer1:
931 803bf8: b500 push {lr}
932 803bfa: b084 sub sp, #16 ; 0x10
933 803bfc: 4669 mov r1, sp
934 803bfe: 2006 mov r0, #6
935 803c00: 7008 strb r0, [r1, #0]
936 803c02: 4668 mov r0, sp
937 803c04: 2101 mov r1, #1
938 803c06: 7101 strb r1, [r0, #4]
939 803c08: 2000 mov r0, #0
940 803c0a: 4669 mov r1, sp
941 803c0c: 70c8 strb r0, [r1, #3]
942 803c0e: 7208 strb r0, [r1, #8]
943 803c10: 487f ldr r0, =0x5ff ; via 0x803e10
944 803c12: 9003 str r0, [sp, #12] ; 0xc
945 803c14: 2001 mov r0, #1
946 803c16: 80c8 strh r0, [r1, #6]
947 803c18: 4668 mov r0, sp
948 803c1a: f03b f9bb bl 0x83ef94 ; $l1_initialize
949 803c1e: 480b ldr r0, =0x839ea8 ; via 0x803c4c
950 803c20: 21ff mov r1, #255 ; 0xff
951 803c22: 319d add r1, #157 ; 0x9d
952 803c24: 2200 mov r2, #0
953 803c26: f000 f868 bl 0x803cfa
954 803c2a: 487a ldr r0, =0x83a09c ; via 0x803e14
955 803c2c: 2124 mov r1, #36 ; 0x24
956 803c2e: 2201 mov r2, #1
957 803c30: f000 f863 bl 0x803cfa
958 803c34: b004 add sp, #16 ; 0x10
959 803c36: bd00 pop {pc}
960
961 $Convert_l1_radio_freq:
962 811ffe: b081 sub sp, #4
963 812000: 4669 mov r1, sp
964 812002: 8008 strh r0, [r1, #0]
965 812004: e06c b 0x8120e0
966 812006: 4668 mov r0, sp
967 812008: 8800 ldrh r0, [r0, #0]
968 81200a: e083 b 0x812114
969 81200c: 4668 mov r0, sp
970 81200e: 8801 ldrh r1, [r0, #0]
971 812010: 4849 ldr r0, =0x83cdc0 ; via 0x812138
972 812012: 6800 ldr r0, [r0, #0]
973 812014: 4281 cmp r1, r0
974 812016: d202 bcs 0x81201e
975 812018: 4668 mov r0, sp
976 81201a: 8800 ldrh r0, [r0, #0]
977 81201c: e07a b 0x812114
978 81201e: 4668 mov r0, sp
979 812020: 8800 ldrh r0, [r0, #0]
980 812022: 4945 ldr r1, =0x83cdc0 ; via 0x812138
981 812024: 6809 ldr r1, [r1, #0]
982 812026: 1a41 sub r1, r0, r1
983 812028: 2001 mov r0, #1
984 81202a: 0240 lsl r0, r0, #9
985 81202c: 1840 add r0, r0, r1
986 81202e: 0400 lsl r0, r0, #16
987 812030: 0c00 lsr r0, r0, #16
988 812032: e06f b 0x812114
989 812034: 4668 mov r0, sp
990 812036: 8801 ldrh r1, [r0, #0]
991 812038: 483f ldr r0, =0x83cdc0 ; via 0x812138
992 81203a: 6800 ldr r0, [r0, #0]
993 81203c: 4281 cmp r1, r0
994 81203e: d213 bcs 0x812068
995 812040: 4668 mov r0, sp
996 812042: 8800 ldrh r0, [r0, #0]
997 812044: 287c cmp r0, #124 ; 0x7c
998 812046: dc02 bgt 0x81204e
999 812048: 4668 mov r0, sp
1000 81204a: 8800 ldrh r0, [r0, #0]
1001 81204c: e062 b 0x812114
1002 81204e: 4668 mov r0, sp
1003 812050: 8800 ldrh r0, [r0, #0]
1004 812052: 28ae cmp r0, #174 ; 0xae
1005 812054: da06 bge 0x812064
1006 812056: 4939 ldr r1, =0x352 ; via 0x81213c
1007 812058: 4668 mov r0, sp
1008 81205a: 8800 ldrh r0, [r0, #0]
1009 81205c: 1808 add r0, r1, r0
1010 81205e: 0400 lsl r0, r0, #16
1011 812060: 0c00 lsr r0, r0, #16
1012 812062: e057 b 0x812114
1013 812064: 2000 mov r0, #0
1014 812066: e055 b 0x812114
1015 812068: 4668 mov r0, sp
1016 81206a: 8801 ldrh r1, [r0, #0]
1017 81206c: 4832 ldr r0, =0x83cdc0 ; via 0x812138
1018 81206e: 6800 ldr r0, [r0, #0]
1019 812070: 1a09 sub r1, r1, r0
1020 812072: 2001 mov r0, #1
1021 812074: 0240 lsl r0, r0, #9
1022 812076: 1840 add r0, r0, r1
1023 812078: 0400 lsl r0, r0, #16
1024 81207a: 0c00 lsr r0, r0, #16
1025 81207c: e04a b 0x812114
1026 81207e: 4668 mov r0, sp
1027 812080: 8800 ldrh r0, [r0, #0]
1028 812082: 287c cmp r0, #124 ; 0x7c
1029 812084: dc02 bgt 0x81208c
1030 812086: 4668 mov r0, sp
1031 812088: 8800 ldrh r0, [r0, #0]
1032 81208a: e043 b 0x812114
1033 81208c: 4668 mov r0, sp
1034 81208e: 8800 ldrh r0, [r0, #0]
1035 812090: 28ae cmp r0, #174 ; 0xae
1036 812092: da06 bge 0x8120a2
1037 812094: 4929 ldr r1, =0x352 ; via 0x81213c
1038 812096: 4668 mov r0, sp
1039 812098: 8800 ldrh r0, [r0, #0]
1040 81209a: 1808 add r0, r1, r0
1041 81209c: 0400 lsl r0, r0, #16
1042 81209e: 0c00 lsr r0, r0, #16
1043 8120a0: e038 b 0x812114
1044 8120a2: 2000 mov r0, #0
1045 8120a4: e036 b 0x812114
1046 8120a6: 4668 mov r0, sp
1047 8120a8: 8800 ldrh r0, [r0, #0]
1048 8120aa: 4923 ldr r1, =0x83cdc0 ; via 0x812138
1049 8120ac: 6809 ldr r1, [r1, #0]
1050 8120ae: 4288 cmp r0, r1
1051 8120b0: d208 bcs 0x8120c4
1052 8120b2: 4668 mov r0, sp
1053 8120b4: 8801 ldrh r1, [r0, #0]
1054 8120b6: 4822 ldr r0, =0x83cdbc ; via 0x812140
1055 8120b8: 6800 ldr r0, [r0, #0]
1056 8120ba: 1a08 sub r0, r1, r0
1057 8120bc: 3080 add r0, #128 ; 0x80
1058 8120be: 0400 lsl r0, r0, #16
1059 8120c0: 0c00 lsr r0, r0, #16
1060 8120c2: e027 b 0x812114
1061 8120c4: 4668 mov r0, sp
1062 8120c6: 8801 ldrh r1, [r0, #0]
1063 8120c8: 481b ldr r0, =0x83cdc0 ; via 0x812138
1064 8120ca: 6800 ldr r0, [r0, #0]
1065 8120cc: 1a08 sub r0, r1, r0
1066 8120ce: 2101 mov r1, #1
1067 8120d0: 0249 lsl r1, r1, #9
1068 8120d2: 1808 add r0, r1, r0
1069 8120d4: 0400 lsl r0, r0, #16
1070 8120d6: 0c00 lsr r0, r0, #16
1071 8120d8: e01c b 0x812114
1072 8120da: 4668 mov r0, sp
1073 8120dc: 8800 ldrh r0, [r0, #0]
1074 8120de: e019 b 0x812114
1075 8120e0: 4818 ldr r0, =0x83cdb4 ; via 0x812144
1076 8120e2: 7800 ldrb r0, [r0, #0]
1077 8120e4: 1e40 sub r0, r0, #1
1078 8120e6: 2807 cmp r0, #7
1079 8120e8: d8f7 bhi 0x8120da
1080 8120ea: a102 add r1, pc, #8
1081 8120ec: 0080 lsl r0, r0, #2
1082 8120ee: 5808 ldr r0, [r1, r0]
1083 8120f0: 4687 mov pc, r0
1084 8120f2: 46c0 nop (mov r8, r8)
1085
1086 8120f4: 00812006
1087 8120f8: 0081207e
1088 8120fc: 00812006
1089 812100: 00812006
1090 812104: 0081200c
1091 812108: 00812034
1092 81210c: 00812006
1093 812110: 008120a6
1094
1095 812114: b001 add sp, #4
1096 812116: 4770 bx lr