annotate compal/c139-boot.disasm @ 85:3c420895f68f

compal boot ROM re: minor progress
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 27 Mar 2014 19:34:07 +0000
parents 8b15a0969c9e
children 3bd695d9b2b4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
84
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1 RESET entry and exception vectors:
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2 0: ea000225 b 0x89c
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
3 4: ea000825 b 0x20a0
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
4 8: ea000825 b 0x20a4
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
5 c: ea000825 b 0x20a8
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
6 10: ea000825 b 0x20ac
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
7 14: ea000825 b 0x20b0
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
8 18: ea000825 b 0x20b4
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
9 1c: ea000825 b 0x20b8
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
10
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
11 ; some magic words?
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
12 20: 444efc57
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
13 24: 444efc58
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
14 28: 444efc86
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
15 2c: 444efc87
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
16
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
17 <30-7FF: all FFs>
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
18
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
19 00000800: 42 4F 4F 54 2E 39 30 2E 30 34 00 00 00 00 00 00 BOOT.90.04......
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
20 00000810: 31 30 30 33 01 01 00 00 FF FF FF FF FF FF FF FF 1003............
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
21 00000820: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
22
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
23 830: 00000006
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
24 ...
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
25 83c: 00000048
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
26 840: 00000044
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
27 844: 00000052
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
28 848: 0000001b
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
29 84c: 00000005
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
30 ...
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
31 860: 000000fa
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
32 864: ffff5800
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
33 868: ffff5000
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
34 86c: fffffb00
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
35 870: 02a1
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
36 872: 02a1
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
37 874: 02a1
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
38 876: 0283
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
39 878: 0281
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
40 87a: 00c0
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
41 87c: 0040
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
42 87e: 002a
85
3c420895f68f compal boot ROM re: minor progress
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 84
diff changeset
43 880: 00000040
84
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
44 884: fffffd00
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
45 888: ffff9800
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
46 88c: fffffb10
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
47 890: ffffff08
85
3c420895f68f compal boot ROM re: minor progress
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 84
diff changeset
48 894: 1081
3c420895f68f compal boot ROM re: minor progress
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 84
diff changeset
49 896: 2006
3c420895f68f compal boot ROM re: minor progress
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 84
diff changeset
50 898: 0800
3c420895f68f compal boot ROM re: minor progress
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 84
diff changeset
51 89a: 0000
84
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
52
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
53 ; RESET entry point
85
3c420895f68f compal boot ROM re: minor progress
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 84
diff changeset
54 89c: e51f1020 ldr r1, [pc, #-32] ; 0x884 =0xfffffd00
84
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
55 8a0: e1d120b2 ldrh r2, [r1, #2]
85
3c420895f68f compal boot ROM re: minor progress
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 84
diff changeset
56 8a4: e51f002c ldr r0, [pc, #-44] ; 0x880 =0x00000040
84
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
57 8a8: e1800002 orr r0, r0, r2
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
58 8ac: e1c100b2 strh r0, [r1, #2]
85
3c420895f68f compal boot ROM re: minor progress
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 84
diff changeset
59 8b0: e51f1030 ldr r1, [pc, #-48] ; 0x888 =0xffff9800
3c420895f68f compal boot ROM re: minor progress
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 84
diff changeset
60 8b4: e15f22b6 ldrh r2, [pc, #-38] ; 0x896 =0x2006
84
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
61 8b8: e1c120b0 strh r2, [r1]
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
62 8bc: e5912000 ldr r2, [r1]
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
63 8c0: e2022001 and r2, r2, #1 ; 0x1
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
64 8c4: e3520001 cmp r2, #1 ; 0x1
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
65 8c8: 0afffffb beq 0x8bc
85
3c420895f68f compal boot ROM re: minor progress
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 84
diff changeset
66 8cc: e51f1050 ldr r1, [pc, #-80] ; 0x884 =0xfffffd00
3c420895f68f compal boot ROM re: minor progress
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 84
diff changeset
67 8d0: e15f24b4 ldrh r2, [pc, #-68] ; 0x894 =0x1081
84
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
68 8d4: e1c120b0 strh r2, [r1]
85
3c420895f68f compal boot ROM re: minor progress
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 84
diff changeset
69 8d8: e51f1054 ldr r1, [pc, #-84] ; 0x88c =0xfffffb10
3c420895f68f compal boot ROM re: minor progress
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 84
diff changeset
70 8dc: e15f24bc ldrh r2, [pc, #-76] ; 0x898 =0x898
84
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
71 8e0: e1d100b0 ldrh r0, [r1]
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
72 8e4: e1800002 orr r0, r0, r2
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
73 8e8: e1c100b0 strh r0, [r1]
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
74 8ec: e51f1064 ldr r1, [pc, #-100] ; 0x890
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
75 8f0: e15f25be ldrh r2, [pc, #-94] ; 0x89a
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
76 8f4: e1c120b0 strh r2, [r1]
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
77 8f8: e51f1094 ldr r1, [pc, #-148] ; 0x86c
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
78 8fc: e15f29b4 ldrh r2, [pc, #-148] ; 0x870
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
79 900: e1c120b0 strh r2, [r1]
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
80 904: e15f29ba ldrh r2, [pc, #-154] ; 0x872
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
81 908: e1c120b2 strh r2, [r1, #2]
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
82 90c: e15f2ab0 ldrh r2, [pc, #-160] ; 0x874
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
83 910: e1c120b4 strh r2, [r1, #4]
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
84 914: e15f2ab6 ldrh r2, [pc, #-166] ; 0x876
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
85 918: e1c120b6 strh r2, [r1, #6]
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
86 91c: e15f2abc ldrh r2, [pc, #-172] ; 0x878
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
87 920: e1c120ba strh r2, [r1, #10]
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
88 924: e15f2bb2 ldrh r2, [pc, #-178] ; 0x87a
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
89 928: e1c120bc strh r2, [r1, #12]
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
90 92c: e15f2bb8 ldrh r2, [pc, #-184] ; 0x87c
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
91 930: e1c120b8 strh r2, [r1, #8]
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
92 934: e15f2bbe ldrh r2, [pc, #-190] ; 0x87e
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
93 938: e1c120be strh r2, [r1, #14]
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
94 93c: e59f0020 ldr r0, [pc, #32] ; 0x964
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
95 940: e3a01b01 mov r1, #1024 ; 0x400
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
96 944: e2411004 sub r1, r1, #4 ; 0x4
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
97 948: e0802001 add r2, r0, r1
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
98 94c: e3c22003 bic r2, r2, #3 ; 0x3
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
99 950: e1a0d002 mov sp, r2
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
100 954: e92d100f stmdb sp!, {r0, r1, r2, r3, r12}
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
101 958: eb000534 bl 0x1e30
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
102 95c: e8bd100f ldmia sp!, {r0, r1, r2, r3, r12}
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
103 960: ea0005e4 b 0x20f8
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
104
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
105 964: 0083e574
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
106
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
107 <968-1E2F: not yet analyzed>
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
108
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
109 1e30: e92d4000 stmdb sp!, {lr}
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
110 1e34: e28fe001 add lr, pc, #1 ; 0x1
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
111 1e38: e12fff1e bx lr
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
112 1e3c: fe49f7fe bl 0xad2
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
113 1e40: 4778 bx pc
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
114 1e42: 46c0 nop (mov r8, r8)
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
115 1e44: e8bd8000 ldmia sp!, {pc}
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
116
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
117 <1E48-1EFF: all FFs>
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
118
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
119 1f00: 00000001
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
120
8b15a0969c9e beginning of C139 boot ROM re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
121 <1F04-end: all FFs>