comparison compal/c139-boot.disasm @ 99:3bd695d9b2b4

C139 boot re: C140 differences noted
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 31 Mar 2014 01:05:44 +0000
parents 3c420895f68f
children ec90136f07a6
comparison
equal deleted inserted replaced
98:8eaa265ee292 99:3bd695d9b2b4
11 ; some magic words? 11 ; some magic words?
12 20: 444efc57 12 20: 444efc57
13 24: 444efc58 13 24: 444efc58
14 28: 444efc86 14 28: 444efc86
15 2c: 444efc87 15 2c: 444efc87
16 ; different in the C140 specimen:
17 20: 44b1b707
18 24: 44b1b708
19 28: 44b1b735
20 2c: 44b1b736
16 21
17 <30-7FF: all FFs> 22 <30-7FF: all FFs>
18 23
19 00000800: 42 4F 4F 54 2E 39 30 2E 30 34 00 00 00 00 00 00 BOOT.90.04...... 24 00000800: 42 4F 4F 54 2E 39 30 2E 30 34 00 00 00 00 00 00 BOOT.90.04......
20 00000810: 31 30 30 33 01 01 00 00 FF FF FF FF FF FF FF FF 1003............ 25 00000810: 31 30 30 33 01 01 00 00 FF FF FF FF FF FF FF FF 1003............
49 896: 2006 54 896: 2006
50 898: 0800 55 898: 0800
51 89a: 0000 56 89a: 0000
52 57
53 ; RESET entry point 58 ; RESET entry point
54 89c: e51f1020 ldr r1, [pc, #-32] ; 0x884 =0xfffffd00 59 89c: e51f1020 ldr r1, =0xfffffd00 ; via 0x884
55 8a0: e1d120b2 ldrh r2, [r1, #2] 60 8a0: e1d120b2 ldrh r2, [r1, #2]
56 8a4: e51f002c ldr r0, [pc, #-44] ; 0x880 =0x00000040 61 8a4: e51f002c ldr r0, =0x40 ; via 0x880
57 8a8: e1800002 orr r0, r0, r2 62 8a8: e1800002 orr r0, r0, r2
58 8ac: e1c100b2 strh r0, [r1, #2] 63 8ac: e1c100b2 strh r0, [r1, #2]
59 8b0: e51f1030 ldr r1, [pc, #-48] ; 0x888 =0xffff9800 64 8b0: e51f1030 ldr r1, =0xffff9800 ; via 0x888
60 8b4: e15f22b6 ldrh r2, [pc, #-38] ; 0x896 =0x2006 65 8b4: e15f22b6 ldrh r2, =0x2006 ; via 0x896
61 8b8: e1c120b0 strh r2, [r1] 66 8b8: e1c120b0 strh r2, [r1]
62 8bc: e5912000 ldr r2, [r1] 67 8bc: e5912000 ldr r2, [r1]
63 8c0: e2022001 and r2, r2, #1 ; 0x1 68 8c0: e2022001 and r2, r2, #1
64 8c4: e3520001 cmp r2, #1 ; 0x1 69 8c4: e3520001 cmp r2, #1
65 8c8: 0afffffb beq 0x8bc 70 8c8: 0afffffb beq 0x8bc
66 8cc: e51f1050 ldr r1, [pc, #-80] ; 0x884 =0xfffffd00 71 8cc: e51f1050 ldr r1, =0xfffffd00 ; via 0x884
67 8d0: e15f24b4 ldrh r2, [pc, #-68] ; 0x894 =0x1081 72 8d0: e15f24b4 ldrh r2, =0x1081 ; via 0x894
68 8d4: e1c120b0 strh r2, [r1] 73 8d4: e1c120b0 strh r2, [r1]
69 8d8: e51f1054 ldr r1, [pc, #-84] ; 0x88c =0xfffffb10 74 8d8: e51f1054 ldr r1, =0xfffffb10 ; via 0x88c
70 8dc: e15f24bc ldrh r2, [pc, #-76] ; 0x898 =0x898 75 8dc: e15f24bc ldrh r2, =0x800 ; via 0x898
71 8e0: e1d100b0 ldrh r0, [r1] 76 8e0: e1d100b0 ldrh r0, [r1]
72 8e4: e1800002 orr r0, r0, r2 77 8e4: e1800002 orr r0, r0, r2
73 8e8: e1c100b0 strh r0, [r1] 78 8e8: e1c100b0 strh r0, [r1]
74 8ec: e51f1064 ldr r1, [pc, #-100] ; 0x890 79 8ec: e51f1064 ldr r1, =0xffffff08 ; via 0x890
75 8f0: e15f25be ldrh r2, [pc, #-94] ; 0x89a 80 8f0: e15f25be ldrh r2, =0x0 ; via 0x89a
76 8f4: e1c120b0 strh r2, [r1] 81 8f4: e1c120b0 strh r2, [r1]
77 8f8: e51f1094 ldr r1, [pc, #-148] ; 0x86c 82 8f8: e51f1094 ldr r1, =0xfffffb00 ; via 0x86c
78 8fc: e15f29b4 ldrh r2, [pc, #-148] ; 0x870 83 8fc: e15f29b4 ldrh r2, =0x2a1 ; via 0x870
79 900: e1c120b0 strh r2, [r1] 84 900: e1c120b0 strh r2, [r1]
80 904: e15f29ba ldrh r2, [pc, #-154] ; 0x872 85 904: e15f29ba ldrh r2, =0x2a1 ; via 0x872
81 908: e1c120b2 strh r2, [r1, #2] 86 908: e1c120b2 strh r2, [r1, #2]
82 90c: e15f2ab0 ldrh r2, [pc, #-160] ; 0x874 87 90c: e15f2ab0 ldrh r2, =0x2a1 ; via 0x874
83 910: e1c120b4 strh r2, [r1, #4] 88 910: e1c120b4 strh r2, [r1, #4]
84 914: e15f2ab6 ldrh r2, [pc, #-166] ; 0x876 89 914: e15f2ab6 ldrh r2, =0x283 ; via 0x876
85 918: e1c120b6 strh r2, [r1, #6] 90 918: e1c120b6 strh r2, [r1, #6]
86 91c: e15f2abc ldrh r2, [pc, #-172] ; 0x878 91 91c: e15f2abc ldrh r2, =0x281 ; via 0x878
87 920: e1c120ba strh r2, [r1, #10] 92 920: e1c120ba strh r2, [r1, #10] ; 0xa
88 924: e15f2bb2 ldrh r2, [pc, #-178] ; 0x87a 93 924: e15f2bb2 ldrh r2, =0xc0 ; via 0x87a
89 928: e1c120bc strh r2, [r1, #12] 94 928: e1c120bc strh r2, [r1, #12] ; 0xc
90 92c: e15f2bb8 ldrh r2, [pc, #-184] ; 0x87c 95 92c: e15f2bb8 ldrh r2, =0x40 ; via 0x87c
91 930: e1c120b8 strh r2, [r1, #8] 96 930: e1c120b8 strh r2, [r1, #8]
92 934: e15f2bbe ldrh r2, [pc, #-190] ; 0x87e 97 934: e15f2bbe ldrh r2, =0x2a ; via 0x87e
93 938: e1c120be strh r2, [r1, #14] 98 938: e1c120be strh r2, [r1, #14] ; 0xe
94 93c: e59f0020 ldr r0, [pc, #32] ; 0x964 99 93c: e59f0020 ldr r0, =0x83e574 ; via 0x964
95 940: e3a01b01 mov r1, #1024 ; 0x400 100 940: e3a01b01 mov r1, #1024 ; 0x400
96 944: e2411004 sub r1, r1, #4 ; 0x4 101 944: e2411004 sub r1, r1, #4
97 948: e0802001 add r2, r0, r1 102 948: e0802001 add r2, r0, r1
98 94c: e3c22003 bic r2, r2, #3 ; 0x3 103 94c: e3c22003 bic r2, r2, #3
99 950: e1a0d002 mov sp, r2 104 950: e1a0d002 mov sp, r2
100 954: e92d100f stmdb sp!, {r0, r1, r2, r3, r12} 105 954: e92d100f stmdb sp!, {r0, r1, r2, r3, r12}
101 958: eb000534 bl 0x1e30 106 958: eb000534 bl 0x1e30
102 95c: e8bd100f ldmia sp!, {r0, r1, r2, r3, r12} 107 95c: e8bd100f ldmia sp!, {r0, r1, r2, r3, r12}
103 960: ea0005e4 b 0x20f8 108 960: ea0005e4 b 0x20f8
104 109
110 ; C139 specimen:
105 964: 0083e574 111 964: 0083e574
112 ; different in the C140 specimen:
113 964: 0083e55c
106 114
107 <968-1E2F: not yet analyzed> 115 <968-1E2F: not yet analyzed>
108 116
109 1e30: e92d4000 stmdb sp!, {lr} 117 1e30: e92d4000 stmdb sp!, {lr}
110 1e34: e28fe001 add lr, pc, #1 ; 0x1 118 1e34: e28fe001 add lr, pc, #1 ; 0x1