annotate compal/boot/c123-boot.disasm @ 402:1b83d07576bf

compal/boot/c123-boot.disasm: missed vector branch at 0x1c
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 15 Jan 2023 00:06:59 +0000
parents 5377f91aea97
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1 ; The bootloader version analyzed here is almost exactly the same as the one
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2 ; contained in the special R87.2.1.03.{m0,map} firmware version; the only diffs
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
3 ; are the 4 magic words at 0x20 (not present in the symbolic reference version)
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
4 ; and the different stack address in the 0x964 word.
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
5 ;
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
6 ; The present disassembly analysis has been annotated with symbolic information
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
7 ; from R87.2.1.03.map, making it our best available analysis of Compal's flash
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
8 ; bootloader.
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
9
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
10 RESET entry and exception vectors:
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
11 0: ea000225 b 0x89c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
12 4: ea000825 b 0x20a0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
13 8: ea000825 b 0x20a4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
14 c: ea000825 b 0x20a8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
15 10: ea000825 b 0x20ac
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
16 14: ea000825 b 0x20b0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
17 18: ea000825 b 0x20b4
402
1b83d07576bf compal/boot/c123-boot.disasm: missed vector branch at 0x1c
Mychaela Falconia <falcon@freecalypso.org>
parents: 400
diff changeset
18 1c: ea000825 b 0x20b8
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
19
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
20 ; magic words, vary by version
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
21 20: 44aa338a
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
22 24: 44aa338b
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
23 28: 44aa33b8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
24 2c: 44aa33b9
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
25
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
26 <30-7FF: all FFs>
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
27
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
28 ; .boot_id output section, comes from ver_boot.obj .const section,
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
29 ; 0x18 bytes, has these data symbols:
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
30
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
31 _ver_boot = 0x800
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
32 _loader_ver = 0x810
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
33 _SWVCM = 0x814
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
34
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
35 00000800: 42 4F 4F 54 2E 39 30 2E 30 34 00 00 00 00 00 00 BOOT.90.04......
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
36 00000810: 31 30 30 33 01 01 00 00 FF FF FF FF FF FF FF FF 1003............
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
37 00000820: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
38
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
39 ; everything up to 0x958 is the same as in the C139 version
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
40
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
41 ; serial.obj .const section
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
42 830: 00000006
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
43 834: 00000000
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
44 838: 00000000
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
45 83c: 00000048
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
46 840: 00000044
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
47 844: 00000052
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
48 848: 0000001b
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
49 84c: 00000005
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
50 850: 00000000
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
51 854: 00000000
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
52 858: 00000000
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
53 85c: 00000000
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
54 860: 000000fa
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
55 864: ffff5800
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
56 868: ffff5000
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
57
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
58 ; bootloader.obj .text section
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
59 86c: fffffb00
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
60 870: 02a102a1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
61 874: 028302a1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
62 878: 00c00281
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
63 87c: 002a0040
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
64 880: 00000040
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
65 884: fffffd00
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
66 888: ffff9800
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
67 88c: fffffb10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
68 890: ffffff08
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
69 894: 20061081
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
70 898: 00000800
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
71
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
72 ; RESET entry point
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
73 _INT_Bootloader_Start:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
74 89c: e51f1020 ldr r1, =0xfffffd00 ; via 0x884
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
75 8a0: e1d120b2 ldrh r2, [r1, #2]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
76 8a4: e51f002c ldr r0, =0x40 ; via 0x880
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
77 8a8: e1800002 orr r0, r0, r2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
78 8ac: e1c100b2 strh r0, [r1, #2]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
79 8b0: e51f1030 ldr r1, =0xffff9800 ; via 0x888
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
80 8b4: e15f22b6 ldrh r2, =0x2006 ; via 0x896
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
81 8b8: e1c120b0 strh r2, [r1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
82 8bc: e5912000 ldr r2, [r1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
83 8c0: e2022001 and r2, r2, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
84 8c4: e3520001 cmp r2, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
85 8c8: 0afffffb beq 0x8bc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
86 8cc: e51f1050 ldr r1, =0xfffffd00 ; via 0x884
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
87 8d0: e15f24b4 ldrh r2, =0x1081 ; via 0x894
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
88 8d4: e1c120b0 strh r2, [r1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
89 8d8: e51f1054 ldr r1, =0xfffffb10 ; via 0x88c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
90 8dc: e15f24bc ldrh r2, =0x800 ; via 0x898
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
91 8e0: e1d100b0 ldrh r0, [r1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
92 8e4: e1800002 orr r0, r0, r2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
93 8e8: e1c100b0 strh r0, [r1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
94 8ec: e51f1064 ldr r1, =0xffffff08 ; via 0x890
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
95 8f0: e15f25be ldrh r2, =0x0 ; via 0x89a
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
96 8f4: e1c120b0 strh r2, [r1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
97 8f8: e51f1094 ldr r1, =0xfffffb00 ; via 0x86c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
98 8fc: e15f29b4 ldrh r2, =0x2a1 ; via 0x870
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
99 900: e1c120b0 strh r2, [r1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
100 904: e15f29ba ldrh r2, =0x2a1 ; via 0x872
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
101 908: e1c120b2 strh r2, [r1, #2]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
102 90c: e15f2ab0 ldrh r2, =0x2a1 ; via 0x874
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
103 910: e1c120b4 strh r2, [r1, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
104 914: e15f2ab6 ldrh r2, =0x283 ; via 0x876
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
105 918: e1c120b6 strh r2, [r1, #6]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
106 91c: e15f2abc ldrh r2, =0x281 ; via 0x878
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
107 920: e1c120ba strh r2, [r1, #10] ; 0xa
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
108 924: e15f2bb2 ldrh r2, =0xc0 ; via 0x87a
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
109 928: e1c120bc strh r2, [r1, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
110 92c: e15f2bb8 ldrh r2, =0x40 ; via 0x87c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
111 930: e1c120b8 strh r2, [r1, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
112 934: e15f2bbe ldrh r2, =0x2a ; via 0x87e
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
113 938: e1c120be strh r2, [r1, #14] ; 0xe
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
114 93c: e59f0020 ldr r0, =0x83e424 ; via 0x964
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
115 940: e3a01b01 mov r1, #1024 ; 0x400
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
116 944: e2411004 sub r1, r1, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
117 948: e0802001 add r2, r0, r1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
118 94c: e3c22003 bic r2, r2, #3
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
119 950: e1a0d002 mov sp, r2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
120 ; business logic
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
121 954: e92d100f stmdb sp!, {r0, r1, r2, r3, r12}
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
122 958: eb00051e bl 0x1dd8 ; _sta_select_application
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
123 95c: e8bd100f ldmia sp!, {r0, r1, r2, r3, r12}
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
124 960: ea0005e4 b 0x20f8 ; _INT_Initialize
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
125
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
126 ; stack address, varies by version
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
127 964: 0083e424
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
128
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
129 ; start.obj .text section
159
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
130 ; 0x968 routine same as in the C139 version
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
131 968: 4961 ldr r1, =0xfffffa08 ; via 0xaf0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
132 96a: 4862 ldr r0, =0xffff ; via 0xaf4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
133 96c: 8008 strh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
134 96e: 4862 ldr r0, =0xfffffa0a ; via 0xaf8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
135 970: 211f mov r1, #31 ; 0x1f
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
136 972: 8001 strh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
137 974: 4861 ldr r0, =0xfffff804 ; via 0xafc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
138 976: 21f5 mov r1, #245 ; 0xf5
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
139 978: 8001 strh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
140 97a: 21a0 mov r1, #160 ; 0xa0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
141 97c: 8001 strh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
142 97e: 4860 ldr r0, =0xffff9800 ; via 0xb00
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
143 980: 4960 ldr r1, =0x2002 ; via 0xb04
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
144 982: 8001 strh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
145 984: 485e ldr r0, =0xffff9800 ; via 0xb00
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
146 986: 8800 ldrh r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
147 988: 0840 lsr r0, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
148 98a: d2fb bcs 0x984
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
149 98c: 495e ldr r1, =0xfffffd00 ; via 0xb08
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
150 98e: 485f ldr r0, =0x1001 ; via 0xb0c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
151 990: 8008 strh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
152 992: 46f7 mov pc, lr
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
153
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
154 994: b500 push {lr}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
155 996: b0ff sub sp, #508 ; 0x1fc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
156 998: b0ca sub sp, #296 ; 0x128
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
157 99a: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
158 99c: 9001 str r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
159 99e: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
160 9a0: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
161 9a2: d14e bne 0xa42
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
162 9a4: a846 add r0, sp, #280 ; 0x118
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
163 9a6: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
164 9a8: f001 f842 bl 0x1a30
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
165 9ac: a9c8 add r1, sp, #800 ; 0x320
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
166 9ae: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
167 9b0: a846 add r0, sp, #280 ; 0x118
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
168 9b2: a902 add r1, sp, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
169 9b4: f000 fb00 bl 0xfb8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
170 9b8: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
171 9ba: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
172 9bc: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
173 9be: d01b beq 0x9f8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
174 9c0: a924 add r1, sp, #144 ; 0x90
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
175 9c2: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
176 9c4: 7a00 ldrb r0, [r0, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
177 9c6: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
178 9c8: 2191 mov r1, #145 ; 0x91
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
179 9ca: 466a mov r2, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
180 9cc: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
181 9ce: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
182 9d0: 5488 strb r0, [r1, r2]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
183 9d2: e01b b 0xa0c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
184 9d4: a802 add r0, sp, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
185 9d6: a924 add r1, sp, #144 ; 0x90
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
186 9d8: f000 fddc bl 0x1594
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
187 9dc: e016 b 0xa0c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
188 9de: a802 add r0, sp, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
189 9e0: a924 add r1, sp, #144 ; 0x90
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
190 9e2: aac8 add r2, sp, #800 ; 0x320
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
191 9e4: 7812 ldrb r2, [r2, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
192 9e6: f000 fde9 bl 0x15bc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
193 9ea: e00f b 0xa0c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
194 9ec: a802 add r0, sp, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
195 9ee: a924 add r1, sp, #144 ; 0x90
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
196 9f0: f000 fe1b bl 0x162a
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
197 9f4: 90c7 str r0, [sp, #796] ; 0x31c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
198 9f6: e009 b 0xa0c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
199 9f8: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
200 9fa: 7a00 ldrb r0, [r0, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
201 9fc: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
202 9fe: d0e9 beq 0x9d4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
203 a00: 3809 sub r0, #9
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
204 a02: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
205 a04: d0eb beq 0x9de
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
206 a06: 3801 sub r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
207 a08: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
208 a0a: d0ef beq 0x9ec
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
209 a0c: a824 add r0, sp, #144 ; 0x90
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
210 a0e: a986 add r1, sp, #536 ; 0x218
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
211 a10: f000 fbb5 bl 0x117e
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
212 a14: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
213 a16: d111 bne 0xa3c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
214 a18: a886 add r0, sp, #536 ; 0x218
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
215 a1a: a9c8 add r1, sp, #800 ; 0x320
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
216 a1c: 7809 ldrb r1, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
217 a1e: f000 ffdc bl 0x19da
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
218 a22: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
219 a24: d00a beq 0xa3c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
220 a26: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
221 a28: 7a00 ldrb r0, [r0, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
222 a2a: 280a cmp r0, #10 ; 0xa
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
223 a2c: d106 bne 0xa3c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
224 a2e: a8c8 add r0, sp, #800 ; 0x320
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
225 a30: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
226 a32: f001 f92d bl 0x1c90
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
227 a36: 98c7 ldr r0, [sp, #796] ; 0x31c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
228 a38: f000 fabc bl 0xfb4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
229 a3c: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
230 a3e: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
231 a40: d0b0 beq 0x9a4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
232 a42: b07f add sp, #508 ; 0x1fc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
233 a44: b04a add sp, #296 ; 0x128
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
234 a46: bd00 pop {pc}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
235
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
236 a48: b500 push {lr}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
237 a4a: b0ff sub sp, #508 ; 0x1fc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
238 a4c: b0c8 sub sp, #288 ; 0x120
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
239 a4e: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
240 a50: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
241 a52: a846 add r0, sp, #280 ; 0x118
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
242 a54: 2101 mov r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
243 a56: f000 ffeb bl 0x1a30
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
244 a5a: a9c6 add r1, sp, #792 ; 0x318
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
245 a5c: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
246 a5e: a8c6 add r0, sp, #792 ; 0x318
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
247 a60: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
248 a62: 28ff cmp r0, #255 ; 0xff
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
249 a64: d031 beq 0xaca
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
250 a66: a846 add r0, sp, #280 ; 0x118
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
251 a68: a902 add r1, sp, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
252 a6a: f000 faa5 bl 0xfb8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
253 a6e: 9001 str r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
254 a70: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
255 a72: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
256 a74: d014 beq 0xaa0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
257 a76: a924 add r1, sp, #144 ; 0x90
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
258 a78: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
259 a7a: 7a00 ldrb r0, [r0, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
260 a7c: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
261 a7e: 2291 mov r2, #145 ; 0x91
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
262 a80: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
263 a82: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
264 a84: 7909 ldrb r1, [r1, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
265 a86: 5411 strb r1, [r2, r0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
266 a88: a824 add r0, sp, #144 ; 0x90
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
267 a8a: a986 add r1, sp, #536 ; 0x218
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
268 a8c: f000 fb77 bl 0x117e
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
269 a90: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
270 a92: d11a bne 0xaca
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
271 a94: a886 add r0, sp, #536 ; 0x218
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
272 a96: a9c6 add r1, sp, #792 ; 0x318
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
273 a98: 7809 ldrb r1, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
274 a9a: f000 ff9e bl 0x19da
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
275 a9e: e014 b 0xaca
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
276 aa0: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
277 aa2: 7a00 ldrb r0, [r0, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
278 aa4: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
279 aa6: d110 bne 0xaca
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
280 aa8: a802 add r0, sp, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
281 aaa: a924 add r1, sp, #144 ; 0x90
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
282 aac: f000 fd72 bl 0x1594
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
283 ab0: a824 add r0, sp, #144 ; 0x90
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
284 ab2: a986 add r1, sp, #536 ; 0x218
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
285 ab4: f000 fb63 bl 0x117e
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
286 ab8: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
287 aba: d104 bne 0xac6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
288 abc: a886 add r0, sp, #536 ; 0x218
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
289 abe: a9c6 add r1, sp, #792 ; 0x318
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
290 ac0: 7809 ldrb r1, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
291 ac2: f000 ff8a bl 0x19da
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
292 ac6: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
293 ac8: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
294 aca: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
295 acc: b07f add sp, #508 ; 0x1fc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
296 ace: b048 add sp, #288 ; 0x120
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
297 ad0: bd00 pop {pc}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
298
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
299 ; Main entry routine at the same location as in the C139 version
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
300 $sta_select_application:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
301 ad2: b500 push {lr}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
302 ad4: b082 sub sp, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
303 ad6: f7ff ff47 bl 0x968
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
304 ada: f001 f881 bl 0x1be0 ; $ser_initialize_serial_link
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
305 ade: f000 fd47 bl 0x1570 ; $con_initialize_conversion
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
306 ae2: f000 f81f bl 0xb24 ; $fluid_bootloader
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
307 ae6: f000 f940 bl 0xd6a ; $FTM_Tool_check
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
308 aea: b002 add sp, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
309 aec: bd00 pop {pc}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
310 aee: 46c0 nop (mov r8, r8)
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
311
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
312 af0: fffffa08
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
313 af4: 0000ffff
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
314 af8: fffffa0a
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
315 afc: fffff804
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
316 b00: ffff9800
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
317 b04: 00002002
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
318 b08: fffffd00
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
319 b0c: 00001001
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
320
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
321 ; boot.obj .text section
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
322 b10: e3a0d502 mov sp, #8388608 ; 0x800000
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
323 b14: e28dd802 add sp, sp, #131072 ; 0x20000
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
324 b18: e28fe005 add lr, pc, #5
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
325 b1c: e12fff1e bx lr
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
326 b20: e1a00000 mov r0, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
327
159
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
328 ; 0xb24 function appears to be the same as in the C139 version,
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
329 ; but calls 0xed4 instead of 0xf2c.
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
330 $fluid_bootloader:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
331 b24: b500 push {lr}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
332 b26: b082 sub sp, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
333 b28: 49e8 ldr r1, =0x83ff00 ; via 0xecc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
334 b2a: 48e9 ldr r0, =0xffff5800 ; via 0xed0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
335 b2c: 6008 str r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
336 b2e: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
337 b30: 2102 mov r1, #2
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
338 b32: f000 f9cf bl 0xed4 ; $uart_init
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
339 b36: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
340 b38: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
341 b3a: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
342 b3c: 2005 mov r0, #5
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
343 b3e: 0300 lsl r0, r0, #12
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
344 b40: 4281 cmp r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
345 b42: d207 bcs 0xb54
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
346 b44: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
347 b46: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
348 b48: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
349 b4a: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
350 b4c: 2005 mov r0, #5
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
351 b4e: 0300 lsl r0, r0, #12
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
352 b50: 4281 cmp r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
353 b52: d3f7 bcc 0xb44
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
354 b54: f000 f82a bl 0xbac ; $SeekMsg
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
355 b58: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
356 b5a: 2107 mov r1, #7
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
357 b5c: f000 f9ba bl 0xed4 ; $uart_init
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
358 b60: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
359 b62: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
360 b64: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
361 b66: 2005 mov r0, #5
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
362 b68: 0300 lsl r0, r0, #12
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
363 b6a: 4281 cmp r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
364 b6c: d207 bcs 0xb7e
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
365 b6e: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
366 b70: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
367 b72: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
368 b74: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
369 b76: 2005 mov r0, #5
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
370 b78: 0300 lsl r0, r0, #12
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
371 b7a: 4281 cmp r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
372 b7c: d3f7 bcc 0xb6e
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
373 b7e: f000 f815 bl 0xbac ; $SeekMsg
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
374 b82: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
375 b84: 9001 str r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
376 b86: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
377 b88: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
378 b8a: 2005 mov r0, #5
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
379 b8c: 0400 lsl r0, r0, #16
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
380 b8e: 4281 cmp r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
381 b90: d20a bcs 0xba8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
382 b92: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
383 b94: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
384 b96: 9001 str r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
385 b98: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
386 b9a: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
387 b9c: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
388 b9e: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
389 ba0: 2005 mov r0, #5
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
390 ba2: 0400 lsl r0, r0, #16
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
391 ba4: 4281 cmp r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
392 ba6: d3f4 bcc 0xb92
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
393 ba8: b002 add sp, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
394 baa: bd00 pop {pc}
159
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
395
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
396 ; serial download protocol
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
397 $SeekMsg:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
398 bac: b500 push {lr}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
399 bae: b086 sub sp, #24 ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
400 bb0: 48f3 ldr r0, =0x800100 ; via 0xf80
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
401 bb2: 9005 str r0, [sp, #20] ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
402 bb4: 201b mov r0, #27 ; 0x1b
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
403 bb6: f000 f935 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
404 bba: 20f6 mov r0, #246 ; 0xf6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
405 bbc: f000 f932 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
406 bc0: 2002 mov r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
407 bc2: f000 f92f bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
408 bc6: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
409 bc8: f000 f92c bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
410 bcc: 2041 mov r0, #65 ; 0x41
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
411 bce: f000 f929 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
412 bd2: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
413 bd4: f000 f926 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
414 bd8: 2040 mov r0, #64 ; 0x40
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
415 bda: f000 f923 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
416 bde: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
417 be0: 0300 lsl r0, r0, #12
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
418 be2: f000 f937 bl 0xe54
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
419 be6: 281b cmp r0, #27 ; 0x1b
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
420 be8: d000 beq 0xbec
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
421 bea: e0bc b 0xd66
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
422 bec: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
423 bee: 0300 lsl r0, r0, #12
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
424 bf0: f000 f930 bl 0xe54
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
425 bf4: 28f6 cmp r0, #246 ; 0xf6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
426 bf6: d000 beq 0xbfa
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
427 bf8: e0b5 b 0xd66
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
428 bfa: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
429 bfc: 0300 lsl r0, r0, #12
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
430 bfe: f000 f929 bl 0xe54
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
431 c02: 2802 cmp r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
432 c04: d000 beq 0xc08
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
433 c06: e0ae b 0xd66
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
434 c08: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
435 c0a: 0300 lsl r0, r0, #12
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
436 c0c: f000 f922 bl 0xe54
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
437 c10: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
438 c12: d000 beq 0xc16
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
439 c14: e0a7 b 0xd66
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
440 c16: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
441 c18: 0300 lsl r0, r0, #12
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
442 c1a: f000 f91b bl 0xe54
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
443 c1e: 2852 cmp r0, #82 ; 0x52
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
444 c20: d000 beq 0xc24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
445 c22: e0a0 b 0xd66
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
446 c24: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
447 c26: 0300 lsl r0, r0, #12
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
448 c28: f000 f914 bl 0xe54
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
449 c2c: 2801 cmp r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
450 c2e: d000 beq 0xc32
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
451 c30: e099 b 0xd66
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
452 c32: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
453 c34: 0300 lsl r0, r0, #12
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
454 c36: f000 f90d bl 0xe54
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
455 c3a: 2853 cmp r0, #83 ; 0x53
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
456 c3c: d000 beq 0xc40
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
457 c3e: e092 b 0xd66
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
458 c40: 201b mov r0, #27 ; 0x1b
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
459 c42: f000 f8ef bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
460 c46: 20f6 mov r0, #246 ; 0xf6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
461 c48: f000 f8ec bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
462 c4c: 2002 mov r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
463 c4e: f000 f8e9 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
464 c52: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
465 c54: f000 f8e6 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
466 c58: 2041 mov r0, #65 ; 0x41
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
467 c5a: f000 f8e3 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
468 c5e: 2002 mov r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
469 c60: f000 f8e0 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
470 c64: 2043 mov r0, #67 ; 0x43
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
471 c66: f000 f8dd bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
472 c6a: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
473 c6c: 0300 lsl r0, r0, #12
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
474 c6e: f000 f8f1 bl 0xe54
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
475 c72: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
476 c74: 7208 strb r0, [r1, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
477 c76: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
478 c78: 2102 mov r1, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
479 c7a: 7441 strb r1, [r0, #17] ; 0x11
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
480 c7c: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
481 c7e: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
482 c80: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
483 c82: 2802 cmp r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
484 c84: d216 bcs 0xcb4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
485 c86: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
486 c88: 0300 lsl r0, r0, #12
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
487 c8a: f000 f8e3 bl 0xe54
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
488 c8e: 466a mov r2, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
489 c90: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
490 c92: 1a51 sub r1, r2, r1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
491 c94: 7348 strb r0, [r1, #13] ; 0xd
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
492 c96: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
493 c98: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
494 c9a: 1a40 sub r0, r0, r1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
495 c9c: 7b40 ldrb r0, [r0, #13] ; 0xd
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
496 c9e: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
497 ca0: 7c49 ldrb r1, [r1, #17] ; 0x11
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
498 ca2: 4048 eor r0, r1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
499 ca4: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
500 ca6: 7448 strb r0, [r1, #17] ; 0x11
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
501 ca8: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
502 caa: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
503 cac: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
504 cae: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
505 cb0: 2802 cmp r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
506 cb2: d3e8 bcc 0xc86
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
507 cb4: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
508 cb6: 8980 ldrh r0, [r0, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
509 cb8: 466a mov r2, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
510 cba: 1e41 sub r1, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
511 cbc: 8191 strh r1, [r2, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
512 cbe: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
513 cc0: d016 beq 0xcf0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
514 cc2: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
515 cc4: 0300 lsl r0, r0, #12
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
516 cc6: f000 f8c5 bl 0xe54
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
517 cca: 9905 ldr r1, [sp, #20] ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
518 ccc: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
519 cce: 9805 ldr r0, [sp, #20] ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
520 cd0: 7801 ldrb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
521 cd2: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
522 cd4: 7c40 ldrb r0, [r0, #17] ; 0x11
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
523 cd6: 4041 eor r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
524 cd8: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
525 cda: 7441 strb r1, [r0, #17] ; 0x11
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
526 cdc: 9805 ldr r0, [sp, #20] ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
527 cde: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
528 ce0: 9005 str r0, [sp, #20] ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
529 ce2: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
530 ce4: 8982 ldrh r2, [r0, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
531 ce6: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
532 ce8: 1e50 sub r0, r2, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
533 cea: 8188 strh r0, [r1, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
534 cec: 2a00 cmp r2, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
535 cee: d1e8 bne 0xcc2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
536 cf0: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
537 cf2: 0300 lsl r0, r0, #12
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
538 cf4: f000 f8ae bl 0xe54
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
539 cf8: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
540 cfa: 7408 strb r0, [r1, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
541 cfc: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
542 cfe: 7c01 ldrb r1, [r0, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
543 d00: 7c40 ldrb r0, [r0, #17] ; 0x11
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
544 d02: 4281 cmp r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
545 d04: d015 beq 0xd32
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
546 d06: 201b mov r0, #27 ; 0x1b
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
547 d08: f000 f88c bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
548 d0c: 20f6 mov r0, #246 ; 0xf6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
549 d0e: f000 f889 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
550 d12: 2002 mov r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
551 d14: f000 f886 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
552 d18: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
553 d1a: f000 f883 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
554 d1e: 2045 mov r0, #69 ; 0x45
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
555 d20: f000 f880 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
556 d24: 2053 mov r0, #83 ; 0x53
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
557 d26: f000 f87d bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
558 d2a: 2016 mov r0, #22 ; 0x16
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
559 d2c: f000 f87a bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
560 d30: e019 b 0xd66
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
561 d32: 201b mov r0, #27 ; 0x1b
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
562 d34: f000 f876 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
563 d38: 20f6 mov r0, #246 ; 0xf6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
564 d3a: f000 f873 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
565 d3e: 2002 mov r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
566 d40: f000 f870 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
567 d44: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
568 d46: f000 f86d bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
569 d4a: 2041 mov r0, #65 ; 0x41
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
570 d4c: f000 f86a bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
571 d50: 2003 mov r0, #3
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
572 d52: f000 f867 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
573 d56: 2042 mov r0, #66 ; 0x42
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
574 d58: f000 f864 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
575 d5c: 485b ldr r0, =0x83ff00 ; via 0xecc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
576 d5e: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
577 d60: 498f ldr r1, =0x800100 ; via 0xfa0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
578 d62: f000 f85e bl 0xe22
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
579 d66: b006 add sp, #24 ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
580 d68: bd00 pop {pc}
159
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
581
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
582 $FTM_Tool_check:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
583 d6a: b500 push {lr}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
584 d6c: b081 sub sp, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
585 d6e: 2066 mov r0, #102 ; 0x66
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
586 d70: f000 f858 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
587 d74: 2074 mov r0, #116 ; 0x74
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
588 d76: f000 f855 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
589 d7a: 206d mov r0, #109 ; 0x6d
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
590 d7c: f000 f852 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
591 d80: 2074 mov r0, #116 ; 0x74
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
592 d82: f000 f84f bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
593 d86: 206f mov r0, #111 ; 0x6f
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
594 d88: f000 f84c bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
595 d8c: 206f mov r0, #111 ; 0x6f
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
596 d8e: f000 f849 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
597 d92: 206c mov r0, #108 ; 0x6c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
598 d94: f000 f846 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
599 d98: 4982 ldr r1, =0x83ff80 ; via 0xfa4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
600 d9a: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
601 d9c: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
602 d9e: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
603 da0: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
604 da2: 0c00 lsr r0, r0, #16
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
605 da4: d105 bne 0xdb2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
606 da6: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
607 da8: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
608 daa: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
609 dac: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
610 dae: 0c00 lsr r0, r0, #16
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
611 db0: d0f9 beq 0xda6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
612 db2: 2007 mov r0, #7
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
613 db4: 0400 lsl r0, r0, #16
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
614 db6: f000 f84d bl 0xe54
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
615 dba: 2879 cmp r0, #121 ; 0x79
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
616 dbc: d10e bne 0xddc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
617 dbe: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
618 dc0: 0300 lsl r0, r0, #12
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
619 dc2: f000 f847 bl 0xe54
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
620 dc6: 2865 cmp r0, #101 ; 0x65
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
621 dc8: d108 bne 0xddc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
622 dca: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
623 dcc: 0300 lsl r0, r0, #12
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
624 dce: f000 f841 bl 0xe54
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
625 dd2: 2873 cmp r0, #115 ; 0x73
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
626 dd4: d102 bne 0xddc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
627 dd6: 4873 ldr r0, =0x83ff80 ; via 0xfa4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
628 dd8: 2101 mov r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
629 dda: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
630 ddc: f000 f8cc bl 0xf78
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
631 de0: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
632 de2: d00d beq 0xe00
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
633 de4: 206d mov r0, #109 ; 0x6d
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
634 de6: f000 f81d bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
635 dea: 206f mov r0, #111 ; 0x6f
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
636 dec: f000 f81a bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
637 df0: 2064 mov r0, #100 ; 0x64
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
638 df2: f000 f817 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
639 df6: 2065 mov r0, #101 ; 0x65
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
640 df8: f000 f814 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
641 dfc: 206d mov r0, #109 ; 0x6d
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
642 dfe: e00c b 0xe1a
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
643 e00: 2065 mov r0, #101 ; 0x65
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
644 e02: f000 f80f bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
645 e06: 2072 mov r0, #114 ; 0x72
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
646 e08: f000 f80c bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
647 e0c: 2072 mov r0, #114 ; 0x72
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
648 e0e: f000 f809 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
649 e12: 206f mov r0, #111 ; 0x6f
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
650 e14: f000 f806 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
651 e18: 2072 mov r0, #114 ; 0x72
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
652 e1a: f000 f803 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
653 e1e: b001 add sp, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
654 e20: bd00 pop {pc}
159
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
655
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
656 ; corresponds to 0xe76 in the C139 version
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
657 $jump:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
658 e22: 4708 bx r1
159
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
659
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
660 ; UART character output routine, corresponds to 0xe78 in the C139 version
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
661 e24: b081 sub sp, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
662 e26: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
663 e28: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
664 e2a: 4828 ldr r0, =0x83ff00 ; via 0xecc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
665 e2c: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
666 e2e: 7940 ldrb r0, [r0, #5]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
667 e30: 0980 lsr r0, r0, #6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
668 e32: d3fa bcc 0xe2a
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
669 e34: 4825 ldr r0, =0x83ff00 ; via 0xecc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
670 e36: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
671 e38: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
672 e3a: 7809 ldrb r1, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
673 e3c: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
674 e3e: b001 add sp, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
675 e40: 46f7 mov pc, lr
159
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
676
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
677 $getchar:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
678 e42: 4822 ldr r0, =0x83ff00 ; via 0xecc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
679 e44: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
680 e46: 7940 ldrb r0, [r0, #5]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
681 e48: 0840 lsr r0, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
682 e4a: d3fa bcc 0xe42
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
683 e4c: 481f ldr r0, =0x83ff00 ; via 0xecc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
684 e4e: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
685 e50: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
686 e52: 4770 bx lr
159
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
687
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
688 ; should correspond to 0xea8 in the C139 version
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
689 $getchar_timeout:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
690 e54: b083 sub sp, #12 ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
691 e56: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
692 e58: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
693 e5a: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
694 e5c: 481b ldr r0, =0x83ff00 ; via 0xecc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
695 e5e: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
696 e60: 7940 ldrb r0, [r0, #5]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
697 e62: 0840 lsr r0, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
698 e64: d20c bcs 0xe80
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
699 e66: 9802 ldr r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
700 e68: 3801 sub r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
701 e6a: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
702 e6c: 9802 ldr r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
703 e6e: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
704 e70: d101 bne 0xe76
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
705 e72: 20ff mov r0, #255 ; 0xff
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
706 e74: e007 b 0xe86
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
707 e76: 4815 ldr r0, =0x83ff00 ; via 0xecc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
708 e78: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
709 e7a: 7940 ldrb r0, [r0, #5]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
710 e7c: 0840 lsr r0, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
711 e7e: d3f2 bcc 0xe66
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
712 e80: 4812 ldr r0, =0x83ff00 ; via 0xecc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
713 e82: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
714 e84: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
715 e86: b003 add sp, #12 ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
716 e88: 4770 bx lr
159
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
717
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
718 $UartTimeout:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
719 e8a: b081 sub sp, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
720 e8c: e001 b 0xe92
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
721 e8e: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
722 e90: 3801 sub r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
723 e92: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
724 e94: 480d ldr r0, =0x83ff00 ; via 0xecc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
725 e96: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
726 e98: 7940 ldrb r0, [r0, #5]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
727 e9a: 0840 lsr r0, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
728 e9c: d202 bcs 0xea4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
729 e9e: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
730 ea0: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
731 ea2: dcf4 bgt 0xe8e
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
732 ea4: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
733 ea6: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
734 ea8: dd01 ble 0xeae
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
735 eaa: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
736 eac: e000 b 0xeb0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
737 eae: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
738 eb0: b001 add sp, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
739 eb2: 4770 bx lr
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
740
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
741 $hardware_init:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
742 eb4: b082 sub sp, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
743 eb6: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
744 eb8: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
745 eba: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
746 ebc: 7188 strb r0, [r1, #6]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
747 ebe: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
748 ec0: 4839 ldr r0, =0xfffef000 ; via 0xfa8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
749 ec2: 8800 ldrh r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
750 ec4: 8008 strh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
751 ec6: b002 add sp, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
752 ec8: 4770 bx lr
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
753 eca: 46c0 nop (mov r8, r8)
159
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
754
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
755 ecc: 0083ff00
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
756 ed0: ffff5800
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
757
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
758 ; should be the same as 0xf2c in the C139 version
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
759 $uart_init:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
760 ed4: b081 sub sp, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
761 ed6: 466a mov r2, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
762 ed8: 7051 strb r1, [r2, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
763 eda: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
764 edc: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
765 ede: 4933 ldr r1, =0xffff6000 ; via 0xfac
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
766 ee0: 2002 mov r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
767 ee2: 880a ldrh r2, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
768 ee4: 4310 orr r0, r2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
769 ee6: 8008 strh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
770 ee8: 4830 ldr r0, =0xffff6000 ; via 0xfac
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
771 eea: 8801 ldrh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
772 eec: 0849 lsr r1, r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
773 eee: 0049 lsl r1, r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
774 ef0: 8001 strh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
775 ef2: 492e ldr r1, =0xffff6000 ; via 0xfac
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
776 ef4: 8808 ldrh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
777 ef6: 2202 mov r2, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
778 ef8: 4390 bic r0, r2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
779 efa: 8008 strh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
780 efc: 482c ldr r0, =0x83ff00 ; via 0xfb0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
781 efe: 6801 ldr r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
782 f00: 2007 mov r0, #7
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
783 f02: 7208 strb r0, [r1, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
784 f04: 482a ldr r0, =0x83ff00 ; via 0xfb0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
785 f06: 6801 ldr r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
786 f08: 20bf mov r0, #191 ; 0xbf
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
787 f0a: 70c8 strb r0, [r1, #3]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
788 f0c: 4828 ldr r0, =0x83ff00 ; via 0xfb0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
789 f0e: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
790 f10: 1c80 add r0, r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
791 f12: 2110 mov r1, #16 ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
792 f14: 8802 ldrh r2, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
793 f16: 4311 orr r1, r2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
794 f18: 8001 strh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
795 f1a: 4825 ldr r0, =0x83ff00 ; via 0xfb0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
796 f1c: 6801 ldr r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
797 f1e: 2080 mov r0, #128 ; 0x80
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
798 f20: 70c8 strb r0, [r1, #3]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
799 f22: 4823 ldr r0, =0x83ff00 ; via 0xfb0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
800 f24: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
801 f26: 2107 mov r1, #7
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
802 f28: 7081 strb r1, [r0, #2]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
803 f2a: 4821 ldr r0, =0x83ff00 ; via 0xfb0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
804 f2c: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
805 f2e: 21bf mov r1, #191 ; 0xbf
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
806 f30: 70c1 strb r1, [r0, #3]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
807 f32: 481f ldr r0, =0x83ff00 ; via 0xfb0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
808 f34: 6801 ldr r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
809 f36: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
810 f38: 7840 ldrb r0, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
811 f3a: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
812 f3c: 481c ldr r0, =0x83ff00 ; via 0xfb0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
813 f3e: 6801 ldr r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
814 f40: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
815 f42: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
816 f44: 7048 strb r0, [r1, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
817 f46: 481a ldr r0, =0x83ff00 ; via 0xfb0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
818 f48: 6801 ldr r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
819 f4a: 2003 mov r0, #3
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
820 f4c: 70c8 strb r0, [r1, #3]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
821 f4e: 4818 ldr r0, =0x83ff00 ; via 0xfb0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
822 f50: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
823 f52: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
824 f54: 7201 strb r1, [r0, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
825 f56: 4816 ldr r0, =0x83ff00 ; via 0xfb0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
826 f58: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
827 f5a: 7940 ldrb r0, [r0, #5]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
828 f5c: 0840 lsr r0, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
829 f5e: d309 bcc 0xf74
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
830 f60: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
831 f62: 4813 ldr r0, =0x83ff00 ; via 0xfb0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
832 f64: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
833 f66: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
834 f68: 7088 strb r0, [r1, #2]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
835 f6a: 4811 ldr r0, =0x83ff00 ; via 0xfb0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
836 f6c: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
837 f6e: 7940 ldrb r0, [r0, #5]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
838 f70: 0840 lsr r0, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
839 f72: d2f5 bcs 0xf60
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
840 f74: b001 add sp, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
841 f76: 4770 bx lr
159
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
842
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
843 $CheckFTMtoolMode:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
844 f78: 480a ldr r0, =0x83ff80 ; via 0xfa4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
845 f7a: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
846 f7c: 4770 bx lr
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
847 f7e: 46c0 nop (mov r8, r8)
159
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
848
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
849 f80: 00800100
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
850
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
851 $putchar__:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
852 f84: b500 push {lr}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
853 f86: b081 sub sp, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
854 f88: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
855 f8a: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
856 f8c: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
857 f8e: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
858 f90: f7ff ff48 bl 0xe24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
859 f94: b001 add sp, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
860 f96: bd00 pop {pc}
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
861
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
862 $getchar__:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
863 f98: b500 push {lr}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
864 f9a: f7ff ff52 bl 0xe42
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
865 f9e: bd00 pop {pc}
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
866
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
867 fa0: 00800100
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
868 fa4: 0083ff80
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
869 fa8: fffef000
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
870 fac: ffff6000
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
871 fb0: 0083ff00
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
872
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
873 ; branch_in_RAM.obj .text section
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
874 $Branch_in_RAM:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
875 fb4: 4700 bx r0
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
876 fb6: 0000
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
877
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
878 ; command.obj .text section
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
879 $com_analyze_request:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
880 fb8: b08c sub sp, #48 ; 0x30
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
881 fba: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
882 fbc: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
883 fbe: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
884 fc0: 9003 str r0, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
885 fc2: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
886 fc4: 7801 ldrb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
887 fc6: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
888 fc8: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
889 fca: 9105 str r1, [sp, #20] ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
890 fcc: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
891 fce: 7801 ldrb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
892 fd0: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
893 fd2: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
894 fd4: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
895 fd6: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
896 fd8: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
897 fda: 9004 str r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
898 fdc: e0a8 b 0x1130
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
899 fde: 9804 ldr r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
900 fe0: 3002 add r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
901 fe2: 9004 str r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
902 fe4: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
903 fe6: 7801 ldrb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
904 fe8: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
905 fea: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
906 fec: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
907 fee: 8441 strh r1, [r0, #34] ; 0x22
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
908 ff0: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
909 ff2: 7801 ldrb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
910 ff4: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
911 ff6: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
912 ff8: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
913 ffa: 8401 strh r1, [r0, #32] ; 0x20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
914 ffc: 8c00 ldrh r0, [r0, #32] ; 0x20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
915 ffe: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
916 1000: 8c49 ldrh r1, [r1, #34] ; 0x22
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
917 1002: 0209 lsl r1, r1, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
918 1004: 1840 add r0, r0, r1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
919 1006: 9901 ldr r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
920 1008: 8088 strh r0, [r1, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
921 100a: 9804 ldr r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
922 100c: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
923 100e: 9004 str r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
924 1010: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
925 1012: 7801 ldrb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
926 1014: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
927 1016: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
928 1018: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
929 101a: 7601 strb r1, [r0, #24] ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
930 101c: 9901 ldr r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
931 101e: 7e00 ldrb r0, [r0, #24] ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
932 1020: 7188 strb r0, [r1, #6]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
933 1022: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
934 1024: 7e00 ldrb r0, [r0, #24] ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
935 1026: 2840 cmp r0, #64 ; 0x40
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
936 1028: dc00 bgt 0x102c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
937 102a: e09f b 0x116c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
938 102c: 2004 mov r0, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
939 102e: 9003 str r0, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
940 1030: e09c b 0x116c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
941 1032: 9804 ldr r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
942 1034: 3002 add r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
943 1036: 9004 str r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
944 1038: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
945 103a: 7801 ldrb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
946 103c: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
947 103e: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
948 1040: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
949 1042: 8441 strh r1, [r0, #34] ; 0x22
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
950 1044: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
951 1046: 7801 ldrb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
952 1048: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
953 104a: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
954 104c: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
955 104e: 8401 strh r1, [r0, #32] ; 0x20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
956 1050: 8c00 ldrh r0, [r0, #32] ; 0x20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
957 1052: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
958 1054: 8c49 ldrh r1, [r1, #34] ; 0x22
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
959 1056: 0209 lsl r1, r1, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
960 1058: 1841 add r1, r0, r1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
961 105a: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
962 105c: 8081 strh r1, [r0, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
963 105e: 9804 ldr r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
964 1060: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
965 1062: 9004 str r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
966 1064: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
967 1066: 7801 ldrb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
968 1068: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
969 106a: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
970 106c: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
971 106e: 7601 strb r1, [r0, #24] ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
972 1070: 9901 ldr r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
973 1072: 7e00 ldrb r0, [r0, #24] ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
974 1074: 7188 strb r0, [r1, #6]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
975 1076: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
976 1078: 7e00 ldrb r0, [r0, #24] ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
977 107a: 2840 cmp r0, #64 ; 0x40
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
978 107c: dcd6 bgt 0x102c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
979 107e: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
980 1080: 3008 add r0, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
981 1082: 9007 str r0, [sp, #28] ; 0x1c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
982 1084: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
983 1086: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
984 1088: 9902 ldr r1, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
985 108a: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
986 108c: 7e00 ldrb r0, [r0, #24] ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
987 108e: 4281 cmp r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
988 1090: da6c bge 0x116c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
989 1092: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
990 1094: 7801 ldrb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
991 1096: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
992 1098: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
993 109a: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
994 109c: 84c1 strh r1, [r0, #38] ; 0x26
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
995 109e: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
996 10a0: 7801 ldrb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
997 10a2: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
998 10a4: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
999 10a6: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1000 10a8: 8481 strh r1, [r0, #36] ; 0x24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1001 10aa: 9807 ldr r0, [sp, #28] ; 0x1c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1002 10ac: 1c81 add r1, r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1003 10ae: 9107 str r1, [sp, #28] ; 0x1c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1004 10b0: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1005 10b2: 8c89 ldrh r1, [r1, #36] ; 0x24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1006 10b4: 466a mov r2, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1007 10b6: 8cd2 ldrh r2, [r2, #38] ; 0x26
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1008 10b8: 0212 lsl r2, r2, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1009 10ba: 1889 add r1, r1, r2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1010 10bc: 8001 strh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1011 10be: 9804 ldr r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1012 10c0: 3002 add r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1013 10c2: 9004 str r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1014 10c4: 9802 ldr r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1015 10c6: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1016 10c8: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1017 10ca: 9902 ldr r1, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1018 10cc: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1019 10ce: 7e00 ldrb r0, [r0, #24] ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1020 10d0: 4281 cmp r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1021 10d2: dbde blt 0x1092
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1022 10d4: e04a b 0x116c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1023 10d6: 9804 ldr r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1024 10d8: 3002 add r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1025 10da: 9004 str r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1026 10dc: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1027 10de: 7801 ldrb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1028 10e0: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1029 10e2: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1030 10e4: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1031 10e6: 8501 strh r1, [r0, #40] ; 0x28
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1032 10e8: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1033 10ea: 7801 ldrb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1034 10ec: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1035 10ee: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1036 10f0: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1037 10f2: 8541 strh r1, [r0, #42] ; 0x2a
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1038 10f4: 8d41 ldrh r1, [r0, #42] ; 0x2a
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1039 10f6: 8d00 ldrh r0, [r0, #40] ; 0x28
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1040 10f8: 0200 lsl r0, r0, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1041 10fa: 1809 add r1, r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1042 10fc: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1043 10fe: 8081 strh r1, [r0, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1044 1100: 9804 ldr r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1045 1102: 3002 add r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1046 1104: 9004 str r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1047 1106: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1048 1108: 7801 ldrb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1049 110a: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1050 110c: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1051 110e: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1052 1110: 8581 strh r1, [r0, #44] ; 0x2c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1053 1112: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1054 1114: 7801 ldrb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1055 1116: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1056 1118: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1057 111a: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1058 111c: 85c1 strh r1, [r0, #46] ; 0x2e
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1059 111e: 8dc1 ldrh r1, [r0, #46] ; 0x2e
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1060 1120: 8d80 ldrh r0, [r0, #44] ; 0x2c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1061 1122: 0200 lsl r0, r0, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1062 1124: 1808 add r0, r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1063 1126: 9901 ldr r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1064 1128: 80c8 strh r0, [r1, #6]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1065 112a: e01f b 0x116c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1066 112c: 2008 mov r0, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1067 112e: e77e b 0x102e
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1068 1130: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1069 1132: 7801 ldrb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1070 1134: 290a cmp r1, #10 ; 0xa
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1071 1136: d8f9 bhi 0x112c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1072 1138: a001 add r0, pc, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1073 113a: 0089 lsl r1, r1, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1074 113c: 5840 ldr r0, [r0, r1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1075 113e: 4687 mov pc, r0
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1076
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1077 1140: 0000116c
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1078 1144: 0000116c
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1079 1148: 0000116c
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1080 114c: 0000116c
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1081 1150: 0000116c
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1082 1154: 0000116c
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1083 1158: 0000116c
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1084 115c: 00000fde
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1085 1160: 00001032
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1086 1164: 0000116c
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1087 1168: 000010d6
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1088
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1089 116c: 9905 ldr r1, [sp, #20] ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1090 116e: 9804 ldr r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1091 1170: 4281 cmp r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1092 1172: d001 beq 0x1178
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1093 1174: 2004 mov r0, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1094 1176: 9003 str r0, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1095 1178: 9803 ldr r0, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1096 117a: b00c add sp, #48 ; 0x30
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1097 117c: 4770 bx lr
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1098
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1099 $com_build_confirmation:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1100 117e: b089 sub sp, #36 ; 0x24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1101 1180: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1102 1182: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1103 1184: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1104 1186: 9003 str r0, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1105 1188: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1106 118a: 1c41 add r1, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1107 118c: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1108 118e: 9005 str r0, [sp, #20] ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1109 1190: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1110 1192: 1c41 add r1, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1111 1194: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1112 1196: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1113 1198: 7809 ldrb r1, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1114 119a: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1115 119c: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1116 119e: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1117 11a0: 7408 strb r0, [r1, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1118 11a2: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1119 11a4: 1c41 add r1, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1120 11a6: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1121 11a8: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1122 11aa: 7849 ldrb r1, [r1, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1123 11ac: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1124 11ae: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1125 11b0: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1126 11b2: 7c00 ldrb r0, [r0, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1127 11b4: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1128 11b6: 7408 strb r0, [r1, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1129 11b8: e0e4 b 0x1384
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1130 11ba: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1131 11bc: 7840 ldrb r0, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1132 11be: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1133 11c0: d000 beq 0x11c4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1134 11c2: e0fd b 0x13c0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1135 11c4: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1136 11c6: 1c41 add r1, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1137 11c8: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1138 11ca: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1139 11cc: 7909 ldrb r1, [r1, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1140 11ce: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1141 11d0: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1142 11d2: 1c41 add r1, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1143 11d4: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1144 11d6: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1145 11d8: 7949 ldrb r1, [r1, #5]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1146 11da: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1147 11dc: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1148 11de: 1c41 add r1, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1149 11e0: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1150 11e2: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1151 11e4: 7989 ldrb r1, [r1, #6]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1152 11e6: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1153 11e8: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1154 11ea: 7c00 ldrb r0, [r0, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1155 11ec: 3003 add r0, #3
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1156 11ee: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1157 11f0: 7408 strb r0, [r1, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1158 11f2: e0e5 b 0x13c0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1159 11f4: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1160 11f6: 7840 ldrb r0, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1161 11f8: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1162 11fa: d000 beq 0x11fe
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1163 11fc: e0e0 b 0x13c0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1164 11fe: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1165 1200: 1c41 add r1, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1166 1202: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1167 1204: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1168 1206: 7909 ldrb r1, [r1, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1169 1208: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1170 120a: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1171 120c: 7c00 ldrb r0, [r0, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1172 120e: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1173 1210: e7ed b 0x11ee
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1174 1212: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1175 1214: 7840 ldrb r0, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1176 1216: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1177 1218: d000 beq 0x121c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1178 121a: e0d1 b 0x13c0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1179 121c: e7ef b 0x11fe
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1180 121e: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1181 1220: 7840 ldrb r0, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1182 1222: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1183 1224: d000 beq 0x1228
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1184 1226: e0cb b 0x13c0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1185 1228: e7e9 b 0x11fe
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1186 122a: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1187 122c: 7840 ldrb r0, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1188 122e: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1189 1230: d000 beq 0x1234
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1190 1232: e0c5 b 0x13c0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1191 1234: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1192 1236: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1193 1238: 8880 ldrh r0, [r0, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1194 123a: 8408 strh r0, [r1, #32] ; 0x20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1195 123c: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1196 123e: 1c41 add r1, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1197 1240: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1198 1242: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1199 1244: 8c09 ldrh r1, [r1, #32] ; 0x20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1200 1246: 0409 lsl r1, r1, #16
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1201 1248: 0e09 lsr r1, r1, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1202 124a: 0209 lsl r1, r1, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1203 124c: 1209 asr r1, r1, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1204 124e: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1205 1250: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1206 1252: 1c41 add r1, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1207 1254: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1208 1256: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1209 1258: 8c09 ldrh r1, [r1, #32] ; 0x20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1210 125a: 0609 lsl r1, r1, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1211 125c: 0e09 lsr r1, r1, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1212 125e: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1213 1260: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1214 1262: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1215 1264: 88c0 ldrh r0, [r0, #6]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1216 1266: 8408 strh r0, [r1, #32] ; 0x20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1217 1268: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1218 126a: 1c41 add r1, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1219 126c: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1220 126e: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1221 1270: 8c09 ldrh r1, [r1, #32] ; 0x20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1222 1272: 0409 lsl r1, r1, #16
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1223 1274: 0e09 lsr r1, r1, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1224 1276: 0209 lsl r1, r1, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1225 1278: 1209 asr r1, r1, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1226 127a: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1227 127c: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1228 127e: 1c41 add r1, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1229 1280: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1230 1282: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1231 1284: 8c09 ldrh r1, [r1, #32] ; 0x20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1232 1286: 0609 lsl r1, r1, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1233 1288: 0e09 lsr r1, r1, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1234 128a: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1235 128c: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1236 128e: 7c00 ldrb r0, [r0, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1237 1290: 3004 add r0, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1238 1292: e7ac b 0x11ee
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1239 1294: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1240 1296: 7840 ldrb r0, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1241 1298: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1242 129a: d000 beq 0x129e
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1243 129c: e090 b 0x13c0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1244 129e: e7ae b 0x11fe
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1245 12a0: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1246 12a2: 7840 ldrb r0, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1247 12a4: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1248 12a6: d000 beq 0x12aa
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1249 12a8: e08a b 0x13c0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1250 12aa: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1251 12ac: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1252 12ae: 7c00 ldrb r0, [r0, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1253 12b0: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1254 12b2: 7408 strb r0, [r1, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1255 12b4: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1256 12b6: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1257 12b8: 7909 ldrb r1, [r1, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1258 12ba: 7601 strb r1, [r0, #24] ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1259 12bc: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1260 12be: 1c41 add r1, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1261 12c0: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1262 12c2: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1263 12c4: 7e09 ldrb r1, [r1, #24] ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1264 12c6: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1265 12c8: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1266 12ca: 7e00 ldrb r0, [r0, #24] ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1267 12cc: 2840 cmp r0, #64 ; 0x40
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1268 12ce: dd01 ble 0x12d4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1269 12d0: 2004 mov r0, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1270 12d2: e055 b 0x1380
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1271 12d4: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1272 12d6: 3006 add r0, #6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1273 12d8: 9007 str r0, [sp, #28] ; 0x1c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1274 12da: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1275 12dc: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1276 12de: 9902 ldr r1, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1277 12e0: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1278 12e2: 7e00 ldrb r0, [r0, #24] ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1279 12e4: 4281 cmp r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1280 12e6: da6b bge 0x13c0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1281 12e8: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1282 12ea: 1c41 add r1, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1283 12ec: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1284 12ee: 9907 ldr r1, [sp, #28] ; 0x1c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1285 12f0: 8809 ldrh r1, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1286 12f2: 0409 lsl r1, r1, #16
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1287 12f4: 0e09 lsr r1, r1, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1288 12f6: 0209 lsl r1, r1, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1289 12f8: 1209 asr r1, r1, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1290 12fa: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1291 12fc: 9807 ldr r0, [sp, #28] ; 0x1c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1292 12fe: 8801 ldrh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1293 1300: 3002 add r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1294 1302: 9007 str r0, [sp, #28] ; 0x1c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1295 1304: 0608 lsl r0, r1, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1296 1306: 0e01 lsr r1, r0, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1297 1308: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1298 130a: 1c42 add r2, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1299 130c: 9201 str r2, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1300 130e: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1301 1310: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1302 1312: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1303 1314: 7c00 ldrb r0, [r0, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1304 1316: 3002 add r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1305 1318: 7408 strb r0, [r1, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1306 131a: 9802 ldr r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1307 131c: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1308 131e: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1309 1320: 9902 ldr r1, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1310 1322: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1311 1324: 7e00 ldrb r0, [r0, #24] ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1312 1326: 4281 cmp r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1313 1328: dbde blt 0x12e8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1314 132a: e049 b 0x13c0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1315 132c: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1316 132e: 7840 ldrb r0, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1317 1330: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1318 1332: d145 bne 0x13c0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1319 1334: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1320 1336: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1321 1338: 8880 ldrh r0, [r0, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1322 133a: 8408 strh r0, [r1, #32] ; 0x20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1323 133c: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1324 133e: 1c41 add r1, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1325 1340: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1326 1342: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1327 1344: 8c09 ldrh r1, [r1, #32] ; 0x20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1328 1346: 0409 lsl r1, r1, #16
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1329 1348: 0e09 lsr r1, r1, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1330 134a: 0209 lsl r1, r1, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1331 134c: 1209 asr r1, r1, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1332 134e: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1333 1350: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1334 1352: 1c41 add r1, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1335 1354: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1336 1356: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1337 1358: 8c09 ldrh r1, [r1, #32] ; 0x20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1338 135a: 0609 lsl r1, r1, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1339 135c: 0e09 lsr r1, r1, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1340 135e: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1341 1360: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1342 1362: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1343 1364: 88c9 ldrh r1, [r1, #6]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1344 1366: 8401 strh r1, [r0, #32] ; 0x20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1345 1368: 9901 ldr r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1346 136a: 1c48 add r0, r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1347 136c: 9001 str r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1348 136e: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1349 1370: 8c00 ldrh r0, [r0, #32] ; 0x20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1350 1372: 0400 lsl r0, r0, #16
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1351 1374: 0e00 lsr r0, r0, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1352 1376: 0200 lsl r0, r0, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1353 1378: 1200 asr r0, r0, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1354 137a: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1355 137c: e77e b 0x127c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1356 137e: 2008 mov r0, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1357 1380: 9003 str r0, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1358 1382: e01d b 0x13c0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1359 1384: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1360 1386: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1361 1388: 280a cmp r0, #10 ; 0xa
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1362 138a: d8f8 bhi 0x137e
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1363 138c: a101 add r1, pc, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1364 138e: 0080 lsl r0, r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1365 1390: 5808 ldr r0, [r1, r0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1366 1392: 4687 mov pc, r0
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1367
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1368 1394: 000011ba
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1369 1398: 000011f4
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1370 139c: 00001212
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1371 13a0: 0000121e
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1372 13a4: 000013c0
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1373 13a8: 0000122a
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1374 13ac: 00001294
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1375 13b0: 000012a0
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1376 13b4: 000013c0
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1377 13b8: 0000132c
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1378 13bc: 000013c0
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1379
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1380 13c0: 9805 ldr r0, [sp, #20] ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1381 13c2: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1382 13c4: 7c09 ldrb r1, [r1, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1383 13c6: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1384 13c8: 9803 ldr r0, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1385 13ca: b009 add sp, #36 ; 0x24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1386 13cc: 4770 bx lr
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1387 13ce: 0000
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1388
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1389 ; convert.obj .text section
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1390 $con_get_command_from_string:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1391 13d0: b500 push {lr}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1392 13d2: b083 sub sp, #12 ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1393 13d4: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1394 13d6: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1395 13d8: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1396 13da: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1397 13dc: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1398 13de: e073 b 0x14c8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1399 13e0: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1400 13e2: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1401 13e4: 28aa cmp r0, #170 ; 0xaa
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1402 13e6: d106 bne 0x13f6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1403 13e8: 4965 ldr r1, =0x83ff10 ; via 0x1580
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1404 13ea: 4865 ldr r0, =0x83ff10 ; via 0x1580
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1405 13ec: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1406 13ee: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1407 13f0: 07c0 lsl r0, r0, #31
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1408 13f2: 0fc0 lsr r0, r0, #31
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1409 13f4: e013 b 0x141e
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1410 13f6: 4862 ldr r0, =0x83ff10 ; via 0x1580
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1411 13f8: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1412 13fa: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1413 13fc: d06b beq 0x14d6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1414 13fe: 4961 ldr r1, =0x83ff04 ; via 0x1584
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1415 1400: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1416 1402: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1417 1404: 6008 str r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1418 1406: 4960 ldr r1, =0x83ff0e ; via 0x1588
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1419 1408: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1420 140a: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1421 140c: 495f ldr r1, =0x83ff0c ; via 0x158c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1422 140e: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1423 1410: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1424 1412: 8008 strh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1425 1414: 495a ldr r1, =0x83ff10 ; via 0x1580
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1426 1416: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1427 1418: 6008 str r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1428 141a: 495d ldr r1, =0x83ff08 ; via 0x1590
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1429 141c: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1430 141e: 6008 str r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1431 1420: e059 b 0x14d6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1432 1422: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1433 1424: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1434 1426: 28aa cmp r0, #170 ; 0xaa
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1435 1428: d113 bne 0x1452
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1436 142a: 4855 ldr r0, =0x83ff10 ; via 0x1580
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1437 142c: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1438 142e: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1439 1430: d00b beq 0x144a
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1440 1432: 4954 ldr r1, =0x83ff04 ; via 0x1584
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1441 1434: 6808 ldr r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1442 1436: 1c42 add r2, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1443 1438: 600a str r2, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1444 143a: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1445 143c: 7809 ldrb r1, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1446 143e: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1447 1440: 4951 ldr r1, =0x83ff0e ; via 0x1588
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1448 1442: 7808 ldrb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1449 1444: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1450 1446: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1451 1448: e013 b 0x1472
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1452 144a: 2101 mov r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1453 144c: 484c ldr r0, =0x83ff10 ; via 0x1580
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1454 144e: 6001 str r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1455 1450: e01c b 0x148c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1456 1452: 484b ldr r0, =0x83ff10 ; via 0x1580
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1457 1454: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1458 1456: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1459 1458: d00d beq 0x1476
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1460 145a: 494a ldr r1, =0x83ff04 ; via 0x1584
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1461 145c: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1462 145e: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1463 1460: 6008 str r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1464 1462: 4849 ldr r0, =0x83ff0e ; via 0x1588
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1465 1464: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1466 1466: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1467 1468: 4948 ldr r1, =0x83ff0c ; via 0x158c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1468 146a: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1469 146c: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1470 146e: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1471 1470: 8008 strh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1472 1472: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1473 1474: e7ea b 0x144c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1474 1476: 4843 ldr r0, =0x83ff04 ; via 0x1584
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1475 1478: 6801 ldr r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1476 147a: 1c4a add r2, r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1477 147c: 6002 str r2, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1478 147e: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1479 1480: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1480 1482: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1481 1484: 4940 ldr r1, =0x83ff0e ; via 0x1588
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1482 1486: 7808 ldrb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1483 1488: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1484 148a: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1485 148c: 483f ldr r0, =0x83ff0c ; via 0x158c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1486 148e: 8801 ldrh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1487 1490: 3901 sub r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1488 1492: 8001 strh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1489 1494: 483d ldr r0, =0x83ff0c ; via 0x158c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1490 1496: 8800 ldrh r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1491 1498: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1492 149a: d11c bne 0x14d6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1493 149c: 9901 ldr r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1494 149e: 483a ldr r0, =0x83ff0e ; via 0x1588
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1495 14a0: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1496 14a2: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1497 14a4: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1498 14a6: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1499 14a8: 4839 ldr r0, =0x83ff08 ; via 0x1590
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1500 14aa: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1501 14ac: 6001 str r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1502 14ae: 4834 ldr r0, =0x83ff10 ; via 0x1580
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1503 14b0: 6001 str r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1504 14b2: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1505 14b4: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1506 14b6: 2801 cmp r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1507 14b8: d10d bne 0x14d6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1508 14ba: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1509 14bc: 7840 ldrb r0, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1510 14be: 28dd cmp r0, #221 ; 0xdd
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1511 14c0: d109 bne 0x14d6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1512 14c2: f7ff fb2f bl 0xb24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1513 14c6: e006 b 0x14d6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1514 14c8: 4831 ldr r0, =0x83ff08 ; via 0x1590
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1515 14ca: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1516 14cc: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1517 14ce: d087 beq 0x13e0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1518 14d0: 3801 sub r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1519 14d2: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1520 14d4: d0a5 beq 0x1422
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1521 14d6: 9802 ldr r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1522 14d8: b003 add sp, #12 ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1523 14da: bd00 pop {pc}
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1524
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1525 $con_build_string_from_command:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1526 14dc: b086 sub sp, #24 ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1527 14de: 9202 str r2, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1528 14e0: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1529 14e2: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1530 14e4: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1531 14e6: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1532 14e8: 9004 str r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1533 14ea: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1534 14ec: 1c41 add r1, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1535 14ee: 9100 str r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1536 14f0: 9005 str r0, [sp, #20] ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1537 14f2: 9901 ldr r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1538 14f4: 20aa mov r0, #170 ; 0xaa
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1539 14f6: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1540 14f8: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1541 14fa: 3002 add r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1542 14fc: 9001 str r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1543 14fe: 9902 ldr r1, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1544 1500: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1545 1502: 8008 strh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1546 1504: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1547 1506: 8188 strh r0, [r1, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1548 1508: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1549 150a: 8981 ldrh r1, [r0, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1550 150c: 9805 ldr r0, [sp, #20] ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1551 150e: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1552 1510: 4281 cmp r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1553 1512: da23 bge 0x155c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1554 1514: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1555 1516: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1556 1518: 28aa cmp r0, #170 ; 0xaa
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1557 151a: d108 bne 0x152e
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1558 151c: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1559 151e: 1c41 add r1, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1560 1520: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1561 1522: 21aa mov r1, #170 ; 0xaa
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1562 1524: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1563 1526: 9902 ldr r1, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1564 1528: 8808 ldrh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1565 152a: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1566 152c: 8008 strh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1567 152e: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1568 1530: 7801 ldrb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1569 1532: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1570 1534: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1571 1536: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1572 1538: 1c42 add r2, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1573 153a: 9201 str r2, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1574 153c: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1575 153e: 9902 ldr r1, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1576 1540: 8808 ldrh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1577 1542: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1578 1544: 8008 strh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1579 1546: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1580 1548: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1581 154a: 8980 ldrh r0, [r0, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1582 154c: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1583 154e: 8188 strh r0, [r1, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1584 1550: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1585 1552: 8980 ldrh r0, [r0, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1586 1554: 9905 ldr r1, [sp, #20] ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1587 1556: 7809 ldrb r1, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1588 1558: 4288 cmp r0, r1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1589 155a: dbdb blt 0x1514
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1590 155c: 9904 ldr r1, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1591 155e: 9802 ldr r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1592 1560: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1593 1562: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1594 1564: 9902 ldr r1, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1595 1566: 8808 ldrh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1596 1568: 3002 add r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1597 156a: 8008 strh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1598 156c: b006 add sp, #24 ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1599 156e: 4770 bx lr
159
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
1600
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
1601 ; same as 0x15c8 in the C139 version
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1602 $con_initialize_conversion:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1603 1570: 4907 ldr r1, =0x83ff08 ; via 0x1590
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1604 1572: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1605 1574: 6008 str r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1606 1576: 4802 ldr r0, =0x83ff10 ; via 0x1580
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1607 1578: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1608 157a: 6001 str r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1609 157c: 4770 bx lr
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1610 157e: 46c0 nop (mov r8, r8)
159
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
1611
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
1612 1580: 0083ff10
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
1613 1584: 0083ff04
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
1614 1588: 0083ff0e
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
1615 158c: 0083ff0c
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
1616 1590: 0083ff08
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
1617
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1618 ; optboot.obj .text section
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1619 $opt_get_monitor_id:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1620 1594: b082 sub sp, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1621 1596: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1622 1598: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1623 159a: 9901 ldr r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1624 159c: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1625 159e: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1626 15a0: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1627 15a2: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1628 15a4: 7041 strb r1, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1629 15a6: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1630 15a8: 2102 mov r1, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1631 15aa: 7101 strb r1, [r0, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1632 15ac: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1633 15ae: 2106 mov r1, #6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1634 15b0: 7141 strb r1, [r0, #5]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1635 15b2: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1636 15b4: 2102 mov r1, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1637 15b6: 7181 strb r1, [r0, #6]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1638 15b8: b002 add sp, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1639 15ba: 4770 bx lr
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1640
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1641 $opt_load_application:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1642 15bc: b500 push {lr}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1643 15be: b084 sub sp, #16 ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1644 15c0: 466b mov r3, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1645 15c2: 721a strb r2, [r3, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1646 15c4: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1647 15c6: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1648 15c8: 9901 ldr r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1649 15ca: 2009 mov r0, #9
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1650 15cc: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1651 15ce: e015 b 0x15fc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1652 15d0: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1653 15d2: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1654 15d4: 7041 strb r1, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1655 15d6: 9901 ldr r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1656 15d8: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1657 15da: 8940 ldrh r0, [r0, #10] ; 0xa
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1658 15dc: 8088 strh r0, [r1, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1659 15de: 9901 ldr r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1660 15e0: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1661 15e2: 8980 ldrh r0, [r0, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1662 15e4: 80c8 strh r0, [r1, #6]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1663 15e6: e01e b 0x1626
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1664 15e8: 2101 mov r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1665 15ea: e004 b 0x15f6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1666 15ec: 2103 mov r1, #3
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1667 15ee: e002 b 0x15f6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1668 15f0: 2105 mov r1, #5
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1669 15f2: e000 b 0x15f6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1670 15f4: 2106 mov r1, #6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1671 15f6: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1672 15f8: 7041 strb r1, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1673 15fa: e014 b 0x1626
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1674 15fc: 200a mov r0, #10 ; 0xa
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1675 15fe: 4468 add r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1676 1600: a903 add r1, sp, #12 ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1677 1602: 466a mov r2, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1678 1604: 7a12 ldrb r2, [r2, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1679 1606: f000 fb71 bl 0x1cec
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1680 160a: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1681 160c: d0e0 beq 0x15d0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1682 160e: 3801 sub r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1683 1610: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1684 1612: d0e9 beq 0x15e8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1685 1614: 3801 sub r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1686 1616: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1687 1618: d0e8 beq 0x15ec
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1688 161a: 3801 sub r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1689 161c: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1690 161e: d0e7 beq 0x15f0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1691 1620: 3801 sub r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1692 1622: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1693 1624: d0e6 beq 0x15f4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1694 1626: b004 add sp, #16 ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1695 1628: bd00 pop {pc}
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1696
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1697 $opt_get_running_address:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1698 162a: b084 sub sp, #16 ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1699 162c: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1700 162e: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1701 1630: 9901 ldr r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1702 1632: 200a mov r0, #10 ; 0xa
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1703 1634: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1704 1636: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1705 1638: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1706 163a: 7041 strb r1, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1707 163c: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1708 163e: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1709 1640: 8880 ldrh r0, [r0, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1710 1642: 8108 strh r0, [r1, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1711 1644: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1712 1646: 88c0 ldrh r0, [r0, #6]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1713 1648: 8148 strh r0, [r1, #10] ; 0xa
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1714 164a: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1715 164c: 8941 ldrh r1, [r0, #10] ; 0xa
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1716 164e: 8900 ldrh r0, [r0, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1717 1650: 0400 lsl r0, r0, #16
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1718 1652: 1808 add r0, r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1719 1654: 9003 str r0, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1720 1656: 9803 ldr r0, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1721 1658: b004 add sp, #16 ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1722 165a: 4770 bx lr
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1723
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1724 ; serial.obj .text section
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1725 165c: b085 sub sp, #20 ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1726 165e: 9303 str r3, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1727 1660: 9202 str r2, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1728 1662: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1729 1664: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1730 1666: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1731 1668: 48ea ldr r0, =0x83ff19 ; via 0x1a14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1732 166a: 7809 ldrb r1, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1733 166c: 7802 ldrb r2, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1734 166e: 1889 add r1, r1, r2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1735 1670: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1736 1672: 48e9 ldr r0, =0x83ff1a ; via 0x1a18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1737 1674: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1738 1676: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1739 1678: d00e beq 0x1698
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1740 167a: 48e8 ldr r0, =0x83ff26 ; via 0x1a1c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1741 167c: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1742 167e: 780a ldrb r2, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1743 1680: 8801 ldrh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1744 1682: 1851 add r1, r2, r1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1745 1684: 8001 strh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1746 1686: 9903 ldr r1, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1747 1688: 48e4 ldr r0, =0x83ff26 ; via 0x1a1c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1748 168a: 8800 ldrh r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1749 168c: 8008 strh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1750 168e: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1751 1690: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1752 1692: 6001 str r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1753 1694: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1754 1696: e009 b 0x16ac
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1755 1698: 9902 ldr r1, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1756 169a: 6808 ldr r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1757 169c: 3002 add r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1758 169e: 6008 str r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1759 16a0: 49de ldr r1, =0x83ff26 ; via 0x1a1c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1760 16a2: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1761 16a4: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1762 16a6: 0200 lsl r0, r0, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1763 16a8: 8008 strh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1764 16aa: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1765 16ac: 9004 str r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1766 16ae: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1767 16b0: 49d9 ldr r1, =0x83ff1a ; via 0x1a18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1768 16b2: 7809 ldrb r1, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1769 16b4: 4388 bic r0, r1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1770 16b6: 49d8 ldr r1, =0x83ff1a ; via 0x1a18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1771 16b8: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1772 16ba: 48d9 ldr r0, =0x83ff24 ; via 0x1a20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1773 16bc: 7801 ldrb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1774 16be: 3901 sub r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1775 16c0: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1776 16c2: 48d7 ldr r0, =0x83ff24 ; via 0x1a20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1777 16c4: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1778 16c6: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1779 16c8: d102 bne 0x16d0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1780 16ca: 48d6 ldr r0, =0x83ff20 ; via 0x1a24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1781 16cc: 2106 mov r1, #6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1782 16ce: 6001 str r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1783 16d0: 9804 ldr r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1784 16d2: b005 add sp, #20 ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1785 16d4: 46f7 mov pc, lr
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1786
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1787 16d6: b083 sub sp, #12 ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1788 16d8: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1789 16da: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1790 16dc: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1791 16de: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1792 16e0: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1793 16e2: 48d1 ldr r0, =0x83ff1b ; via 0x1a28
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1794 16e4: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1795 16e6: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1796 16e8: d10a bne 0x1700
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1797 16ea: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1798 16ec: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1799 16ee: 2853 cmp r0, #83 ; 0x53
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1800 16f0: d102 bne 0x16f8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1801 16f2: 48cd ldr r0, =0x83ff1b ; via 0x1a28
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1802 16f4: 2101 mov r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1803 16f6: e01a b 0x172e
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1804 16f8: 2101 mov r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1805 16fa: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1806 16fc: 6001 str r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1807 16fe: e03b b 0x1778
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1808 1700: 49c9 ldr r1, =0x83ff1b ; via 0x1a28
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1809 1702: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1810 1704: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1811 1706: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1812 1708: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1813 170a: 2830 cmp r0, #48 ; 0x30
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1814 170c: d111 bne 0x1732
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1815 170e: 48c7 ldr r0, =0x83ff18 ; via 0x1a2c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1816 1710: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1817 1712: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1818 1714: d006 beq 0x1724
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1819 1716: 9901 ldr r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1820 1718: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1821 171a: 6008 str r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1822 171c: 49c3 ldr r1, =0x83ff18 ; via 0x1a2c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1823 171e: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1824 1720: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1825 1722: e02a b 0x177a
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1826 1724: 48bf ldr r0, =0x83ff20 ; via 0x1a24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1827 1726: 2102 mov r1, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1828 1728: 6001 str r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1829 172a: 48ef ldr r0, =0x83ff1c ; via 0x1ae8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1830 172c: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1831 172e: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1832 1730: e024 b 0x177c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1833 1732: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1834 1734: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1835 1736: 2833 cmp r0, #51 ; 0x33
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1836 1738: d105 bne 0x1746
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1837 173a: 48bc ldr r0, =0x83ff18 ; via 0x1a2c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1838 173c: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1839 173e: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1840 1740: d0da beq 0x16f8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1841 1742: 2004 mov r0, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1842 1744: e00c b 0x1760
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1843 1746: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1844 1748: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1845 174a: 2837 cmp r0, #55 ; 0x37
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1846 174c: d10e bne 0x176c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1847 174e: 48b7 ldr r0, =0x83ff18 ; via 0x1a2c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1848 1750: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1849 1752: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1850 1754: d103 bne 0x175e
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1851 1756: 9901 ldr r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1852 1758: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1853 175a: 6008 str r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1854 175c: e00c b 0x1778
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1855 175e: 2003 mov r0, #3
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1856 1760: 49b0 ldr r1, =0x83ff20 ; via 0x1a24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1857 1762: 6008 str r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1858 1764: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1859 1766: 49e0 ldr r1, =0x83ff1c ; via 0x1ae8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1860 1768: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1861 176a: e007 b 0x177c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1862 176c: 9901 ldr r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1863 176e: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1864 1770: 6008 str r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1865 1772: 48ae ldr r0, =0x83ff18 ; via 0x1a2c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1866 1774: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1867 1776: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1868 1778: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1869 177a: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1870 177c: 9802 ldr r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1871 177e: b003 add sp, #12 ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1872 1780: 46f7 mov pc, lr
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1873
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1874 1782: b083 sub sp, #12 ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1875 1784: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1876 1786: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1877 1788: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1878 178a: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1879 178c: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1880 178e: 49d7 ldr r1, =0x830 ; via 0x1aec
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1881 1790: 48d5 ldr r0, =0x83ff1c ; via 0x1ae8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1882 1792: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1883 1794: 0080 lsl r0, r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1884 1796: 5808 ldr r0, [r1, r0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1885 1798: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1886 179a: 7809 ldrb r1, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1887 179c: 4281 cmp r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1888 179e: d10d bne 0x17bc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1889 17a0: 49d1 ldr r1, =0x83ff1c ; via 0x1ae8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1890 17a2: 7808 ldrb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1891 17a4: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1892 17a6: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1893 17a8: 48cf ldr r0, =0x83ff1c ; via 0x1ae8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1894 17aa: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1895 17ac: 2807 cmp r0, #7
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1896 17ae: d10d bne 0x17cc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1897 17b0: 489c ldr r0, =0x83ff20 ; via 0x1a24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1898 17b2: 2101 mov r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1899 17b4: 6001 str r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1900 17b6: 489d ldr r0, =0x83ff18 ; via 0x1a2c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1901 17b8: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1902 17ba: e007 b 0x17cc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1903 17bc: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1904 17be: 2101 mov r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1905 17c0: 6001 str r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1906 17c2: 4998 ldr r1, =0x83ff20 ; via 0x1a24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1907 17c4: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1908 17c6: 6008 str r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1909 17c8: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1910 17ca: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1911 17cc: 9802 ldr r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1912 17ce: b003 add sp, #12 ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1913 17d0: 46f7 mov pc, lr
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1914
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1915 17d2: b083 sub sp, #12 ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1916 17d4: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1917 17d6: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1918 17d8: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1919 17da: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1920 17dc: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1921 17de: 49c4 ldr r1, =0x84c ; via 0x1af0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1922 17e0: 48c1 ldr r0, =0x83ff1c ; via 0x1ae8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1923 17e2: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1924 17e4: 0080 lsl r0, r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1925 17e6: 5808 ldr r0, [r1, r0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1926 17e8: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1927 17ea: 7809 ldrb r1, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1928 17ec: 4281 cmp r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1929 17ee: d112 bne 0x1816
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1930 17f0: 49bd ldr r1, =0x83ff1c ; via 0x1ae8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1931 17f2: 7808 ldrb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1932 17f4: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1933 17f6: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1934 17f8: 48bb ldr r0, =0x83ff1c ; via 0x1ae8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1935 17fa: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1936 17fc: 2806 cmp r0, #6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1937 17fe: d114 bne 0x182a
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1938 1800: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1939 1802: 2102 mov r1, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1940 1804: 6001 str r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1941 1806: 4887 ldr r0, =0x83ff20 ; via 0x1a24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1942 1808: 2101 mov r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1943 180a: 6001 str r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1944 180c: 4887 ldr r0, =0x83ff18 ; via 0x1a2c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1945 180e: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1946 1810: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1947 1812: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1948 1814: e008 b 0x1828
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1949 1816: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1950 1818: 2101 mov r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1951 181a: 6001 str r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1952 181c: 4981 ldr r1, =0x83ff20 ; via 0x1a24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1953 181e: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1954 1820: 6008 str r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1955 1822: 4982 ldr r1, =0x83ff18 ; via 0x1a2c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1956 1824: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1957 1826: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1958 1828: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1959 182a: 9802 ldr r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1960 182c: b003 add sp, #12 ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1961 182e: 46f7 mov pc, lr
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1962
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1963 1830: b081 sub sp, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1964 1832: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1965 1834: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1966 1836: 497a ldr r1, =0x83ff24 ; via 0x1a20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1967 1838: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1968 183a: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1969 183c: 3801 sub r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1970 183e: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1971 1840: 4874 ldr r0, =0x83ff19 ; via 0x1a14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1972 1842: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1973 1844: 7809 ldrb r1, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1974 1846: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1975 1848: 48a7 ldr r0, =0x83ff1c ; via 0x1ae8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1976 184a: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1977 184c: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1978 184e: 48e3 ldr r0, =0x83ff14 ; via 0x1bdc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1979 1850: 6001 str r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1980 1852: 4874 ldr r0, =0x83ff20 ; via 0x1a24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1981 1854: 2105 mov r1, #5
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1982 1856: 6001 str r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1983 1858: b001 add sp, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1984 185a: 46f7 mov pc, lr
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
1985
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1986 185c: b084 sub sp, #16 ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1987 185e: 9202 str r2, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1988 1860: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1989 1862: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1990 1864: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1991 1866: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1992 1868: 9003 str r0, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1993 186a: 496d ldr r1, =0x83ff24 ; via 0x1a20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1994 186c: 7808 ldrb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1995 186e: 3801 sub r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1996 1870: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1997 1872: 486b ldr r0, =0x83ff24 ; via 0x1a20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1998 1874: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1999 1876: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2000 1878: d026 beq 0x18c8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2001 187a: 4866 ldr r0, =0x83ff19 ; via 0x1a14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2002 187c: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2003 187e: 780a ldrb r2, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2004 1880: 7801 ldrb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2005 1882: 1851 add r1, r2, r1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2006 1884: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2007 1886: 4998 ldr r1, =0x83ff1c ; via 0x1ae8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2008 1888: 7808 ldrb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2009 188a: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2010 188c: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2011 188e: 49d3 ldr r1, =0x83ff14 ; via 0x1bdc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2012 1890: 2204 mov r2, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2013 1892: 4895 ldr r0, =0x83ff1c ; via 0x1ae8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2014 1894: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2015 1896: 1a10 sub r0, r2, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2016 1898: 00c2 lsl r2, r0, #3
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2017 189a: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2018 189c: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2019 189e: 4090 lsl r0, r2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2020 18a0: 680a ldr r2, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2021 18a2: 1880 add r0, r0, r2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2022 18a4: 6008 str r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2023 18a6: 4890 ldr r0, =0x83ff1c ; via 0x1ae8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2024 18a8: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2025 18aa: 2804 cmp r0, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2026 18ac: d117 bne 0x18de
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2027 18ae: 9902 ldr r1, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2028 18b0: 48ca ldr r0, =0x83ff14 ; via 0x1bdc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2029 18b2: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2030 18b4: 3802 sub r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2031 18b6: 6008 str r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2032 18b8: 485a ldr r0, =0x83ff20 ; via 0x1a24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2033 18ba: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2034 18bc: 6001 str r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2035 18be: 4856 ldr r0, =0x83ff1a ; via 0x1a18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2036 18c0: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2037 18c2: 4889 ldr r0, =0x83ff1c ; via 0x1ae8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2038 18c4: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2039 18c6: e00a b 0x18de
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2040 18c8: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2041 18ca: 2101 mov r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2042 18cc: 6001 str r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2043 18ce: 4955 ldr r1, =0x83ff20 ; via 0x1a24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2044 18d0: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2045 18d2: 6008 str r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2046 18d4: 4855 ldr r0, =0x83ff18 ; via 0x1a2c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2047 18d6: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2048 18d8: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2049 18da: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2050 18dc: 9003 str r0, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2051 18de: 9803 ldr r0, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2052 18e0: b004 add sp, #16 ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2053 18e2: 46f7 mov pc, lr
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2054
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2055 18e4: b083 sub sp, #12 ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2056 18e6: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2057 18e8: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2058 18ea: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2059 18ec: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2060 18ee: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2061 18f0: 494c ldr r1, =0x83ff20 ; via 0x1a24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2062 18f2: 6008 str r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2063 18f4: 20ff mov r0, #255 ; 0xff
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2064 18f6: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2065 18f8: 7809 ldrb r1, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2066 18fa: 4388 bic r0, r1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2067 18fc: 4945 ldr r1, =0x83ff19 ; via 0x1a14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2068 18fe: 7809 ldrb r1, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2069 1900: 4281 cmp r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2070 1902: d007 beq 0x1914
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2071 1904: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2072 1906: 2101 mov r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2073 1908: 6001 str r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2074 190a: 4848 ldr r0, =0x83ff18 ; via 0x1a2c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2075 190c: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2076 190e: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2077 1910: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2078 1912: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2079 1914: 9802 ldr r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2080 1916: b003 add sp, #12 ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2081 1918: 46f7 mov pc, lr
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2082
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2083 191a: b085 sub sp, #20 ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2084 191c: 466b mov r3, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2085 191e: 719a strb r2, [r3, #6]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2086 1920: 466a mov r2, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2087 1922: 8091 strh r1, [r2, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2088 1924: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2089 1926: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2090 1928: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2091 192a: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2092 192c: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2093 192e: 8880 ldrh r0, [r0, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2094 1930: 8208 strh r0, [r1, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2095 1932: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2096 1934: 8a00 ldrh r0, [r0, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2097 1936: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2098 1938: d01e beq 0x1978
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2099 193a: 49e3 ldr r1, =0x864 ; via 0x1cc8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2100 193c: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2101 193e: 7980 ldrb r0, [r0, #6]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2102 1940: 0080 lsl r0, r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2103 1942: 5808 ldr r0, [r1, r0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2104 1944: 7941 ldrb r1, [r0, #5]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2105 1946: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2106 1948: 7301 strb r1, [r0, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2107 194a: 7b00 ldrb r0, [r0, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2108 194c: 0980 lsr r0, r0, #6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2109 194e: d3f4 bcc 0x193a
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2110 1950: 49dd ldr r1, =0x864 ; via 0x1cc8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2111 1952: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2112 1954: 7980 ldrb r0, [r0, #6]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2113 1956: 0080 lsl r0, r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2114 1958: 5809 ldr r1, [r1, r0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2115 195a: 9802 ldr r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2116 195c: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2117 195e: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2118 1960: 9802 ldr r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2119 1962: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2120 1964: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2121 1966: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2122 1968: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2123 196a: 8a00 ldrh r0, [r0, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2124 196c: 3801 sub r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2125 196e: 8208 strh r0, [r1, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2126 1970: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2127 1972: 8a00 ldrh r0, [r0, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2128 1974: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2129 1976: d1e0 bne 0x193a
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2130 1978: b005 add sp, #20 ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2131 197a: 46f7 mov pc, lr
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2132
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2133 $ser_wait_no_activity:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2134 197c: b082 sub sp, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2135 197e: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2136 1980: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2137 1982: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2138 1984: 8088 strh r0, [r1, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2139 1986: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2140 1988: 8881 ldrh r1, [r0, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2141 198a: 20ff mov r0, #255 ; 0xff
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2142 198c: 30f5 add r0, #245 ; 0xf5
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2143 198e: 4281 cmp r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2144 1990: da21 bge 0x19d6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2145 1992: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2146 1994: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2147 1996: 8880 ldrh r0, [r0, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2148 1998: 3001 add r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2149 199a: 8088 strh r0, [r1, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2150 199c: 48ca ldr r0, =0x864 ; via 0x1cc8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2151 199e: 7809 ldrb r1, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2152 19a0: 0089 lsl r1, r1, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2153 19a2: 5840 ldr r0, [r0, r1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2154 19a4: 7940 ldrb r0, [r0, #5]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2155 19a6: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2156 19a8: 7048 strb r0, [r1, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2157 19aa: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2158 19ac: 7840 ldrb r0, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2159 19ae: 0840 lsr r0, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2160 19b0: d30b bcc 0x19ca
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2161 19b2: 49c5 ldr r1, =0x864 ; via 0x1cc8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2162 19b4: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2163 19b6: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2164 19b8: 0080 lsl r0, r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2165 19ba: 5808 ldr r0, [r1, r0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2166 19bc: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2167 19be: 0600 lsl r0, r0, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2168 19c0: 0e00 lsr r0, r0, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2169 19c2: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2170 19c4: 7088 strb r0, [r1, #2]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2171 19c6: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2172 19c8: 8088 strh r0, [r1, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2173 19ca: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2174 19cc: 8881 ldrh r1, [r0, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2175 19ce: 20ff mov r0, #255 ; 0xff
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2176 19d0: 30f5 add r0, #245 ; 0xf5
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2177 19d2: 4281 cmp r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2178 19d4: dbdd blt 0x1992
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2179 19d6: b002 add sp, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2180 19d8: 4770 bx lr
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2181
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2182 $ser_send_command:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2183 19da: b500 push {lr}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2184 19dc: b08c sub sp, #48 ; 0x30
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2185 19de: 466a mov r2, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2186 19e0: 7111 strb r1, [r2, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2187 19e2: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2188 19e4: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2189 19e6: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2190 19e8: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2191 19ea: a904 add r1, sp, #16 ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2192 19ec: aa03 add r2, sp, #12 ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2193 19ee: f7ff fd75 bl 0x14dc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2194 19f2: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2195 19f4: 8980 ldrh r0, [r0, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2196 19f6: 2820 cmp r0, #32 ; 0x20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2197 19f8: dd02 ble 0x1a00
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2198 19fa: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2199 19fc: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2200 19fe: e006 b 0x1a0e
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2201 1a00: a804 add r0, sp, #16 ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2202 1a02: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2203 1a04: 8989 ldrh r1, [r1, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2204 1a06: 466a mov r2, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2205 1a08: 7912 ldrb r2, [r2, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2206 1a0a: f7ff ff86 bl 0x191a
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2207 1a0e: 9802 ldr r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2208 1a10: b00c add sp, #48 ; 0x30
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2209 1a12: bd00 pop {pc}
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2210
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2211 1a14: 0083ff19
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2212 1a18: 0083ff1a
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2213 1a1c: 0083ff26
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2214 1a20: 0083ff24
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2215 1a24: 0083ff20
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2216 1a28: 0083ff1b
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2217 1a2c: 0083ff18
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2218
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2219 $ser_receive_command:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2220 1a30: b500 push {lr}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2221 1a32: b084 sub sp, #16 ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2222 1a34: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2223 1a36: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2224 1a38: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2225 1a3a: 20ff mov r0, #255 ; 0xff
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2226 1a3c: 7308 strb r0, [r1, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2227 1a3e: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2228 1a40: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2229 1a42: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2230 1a44: 48a1 ldr r0, =0xffff5805 ; via 0x1ccc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2231 1a46: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2232 1a48: 7348 strb r0, [r1, #13] ; 0xd
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2233 1a4a: 48a1 ldr r0, =0xffff5005 ; via 0x1cd0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2234 1a4c: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2235 1a4e: 7388 strb r0, [r1, #14] ; 0xe
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2236 1a50: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2237 1a52: 7b40 ldrb r0, [r0, #13] ; 0xd
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2238 1a54: 0840 lsr r0, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2239 1a56: d206 bcs 0x1a66
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2240 1a58: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2241 1a5a: 7b80 ldrb r0, [r0, #14] ; 0xe
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2242 1a5c: 0840 lsr r0, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2243 1a5e: d202 bcs 0x1a66
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2244 1a60: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2245 1a62: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2246 1a64: d0ed beq 0x1a42
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2247 1a66: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2248 1a68: 7b40 ldrb r0, [r0, #13] ; 0xd
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2249 1a6a: 0840 lsr r0, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2250 1a6c: d316 bcc 0x1a9c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2251 1a6e: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2252 1a70: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2253 1a72: 7308 strb r0, [r1, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2254 1a74: 4994 ldr r1, =0x864 ; via 0x1cc8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2255 1a76: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2256 1a78: 7b00 ldrb r0, [r0, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2257 1a7a: 0080 lsl r0, r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2258 1a7c: 5808 ldr r0, [r1, r0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2259 1a7e: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2260 1a80: 0600 lsl r0, r0, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2261 1a82: 0e00 lsr r0, r0, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2262 1a84: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2263 1a86: 73c8 strb r0, [r1, #15] ; 0xf
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2264 1a88: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2265 1a8a: 7bc0 ldrb r0, [r0, #15] ; 0xf
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2266 1a8c: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2267 1a8e: f7ff fc9f bl 0x13d0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2268 1a92: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2269 1a94: 9802 ldr r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2270 1a96: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2271 1a98: d11c bne 0x1ad4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2272 1a9a: e018 b 0x1ace
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2273 1a9c: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2274 1a9e: 7b80 ldrb r0, [r0, #14] ; 0xe
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2275 1aa0: 0840 lsr r0, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2276 1aa2: d317 bcc 0x1ad4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2277 1aa4: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2278 1aa6: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2279 1aa8: 7308 strb r0, [r1, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2280 1aaa: 4987 ldr r1, =0x864 ; via 0x1cc8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2281 1aac: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2282 1aae: 7b00 ldrb r0, [r0, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2283 1ab0: 0080 lsl r0, r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2284 1ab2: 5808 ldr r0, [r1, r0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2285 1ab4: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2286 1ab6: 0600 lsl r0, r0, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2287 1ab8: 0e01 lsr r1, r0, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2288 1aba: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2289 1abc: 73c1 strb r1, [r0, #15] ; 0xf
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2290 1abe: 7bc0 ldrb r0, [r0, #15] ; 0xf
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2291 1ac0: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2292 1ac2: f7ff fc85 bl 0x13d0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2293 1ac6: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2294 1ac8: 9802 ldr r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2295 1aca: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2296 1acc: d102 bne 0x1ad4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2297 1ace: 20ff mov r0, #255 ; 0xff
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2298 1ad0: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2299 1ad2: 7308 strb r0, [r1, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2300 1ad4: 9802 ldr r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2301 1ad6: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2302 1ad8: d102 bne 0x1ae0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2303 1ada: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2304 1adc: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2305 1ade: d0b0 beq 0x1a42
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2306 1ae0: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2307 1ae2: 7b00 ldrb r0, [r0, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2308 1ae4: b004 add sp, #16 ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2309 1ae6: bd00 pop {pc}
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2310
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2311 1ae8: 0083ff1c
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2312 1aec: 00000830
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2313 1af0: 0000084c
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2314
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2315 $ser_receive_data_for_flash:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2316 1af4: b500 push {lr}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2317 1af6: b086 sub sp, #24 ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2318 1af8: 466b mov r3, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2319 1afa: 721a strb r2, [r3, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2320 1afc: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2321 1afe: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2322 1b00: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2323 1b02: 9004 str r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2324 1b04: 9804 ldr r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2325 1b06: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2326 1b08: d05b beq 0x1bc2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2327 1b0a: 496f ldr r1, =0x864 ; via 0x1cc8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2328 1b0c: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2329 1b0e: 7a00 ldrb r0, [r0, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2330 1b10: 0080 lsl r0, r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2331 1b12: 5808 ldr r0, [r1, r0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2332 1b14: 7941 ldrb r1, [r0, #5]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2333 1b16: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2334 1b18: 7301 strb r1, [r0, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2335 1b1a: 7b00 ldrb r0, [r0, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2336 1b1c: 0840 lsr r0, r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2337 1b1e: d3f4 bcc 0x1b0a
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2338 1b20: 4969 ldr r1, =0x864 ; via 0x1cc8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2339 1b22: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2340 1b24: 7a00 ldrb r0, [r0, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2341 1b26: 0080 lsl r0, r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2342 1b28: 5808 ldr r0, [r1, r0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2343 1b2a: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2344 1b2c: 0600 lsl r0, r0, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2345 1b2e: 0e01 lsr r1, r0, #24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2346 1b30: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2347 1b32: 7341 strb r1, [r0, #13] ; 0xd
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2348 1b34: e02c b 0x1b90
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2349 1b36: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2350 1b38: 7b40 ldrb r0, [r0, #13] ; 0xd
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2351 1b3a: a905 add r1, sp, #20 ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2352 1b3c: 9a00 ldr r2, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2353 1b3e: 9b01 ldr r3, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2354 1b40: f7ff fd8c bl 0x165c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2355 1b44: 9004 str r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2356 1b46: e039 b 0x1bbc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2357 1b48: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2358 1b4a: 7b40 ldrb r0, [r0, #13] ; 0xd
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2359 1b4c: a905 add r1, sp, #20 ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2360 1b4e: f7ff fdc2 bl 0x16d6
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2361 1b52: e7f7 b 0x1b44
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2362 1b54: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2363 1b56: 7b40 ldrb r0, [r0, #13] ; 0xd
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2364 1b58: a905 add r1, sp, #20 ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2365 1b5a: f7ff fe12 bl 0x1782
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2366 1b5e: e7f1 b 0x1b44
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2367 1b60: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2368 1b62: 7b40 ldrb r0, [r0, #13] ; 0xd
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2369 1b64: a905 add r1, sp, #20 ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2370 1b66: f7ff fe34 bl 0x17d2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2371 1b6a: e7eb b 0x1b44
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2372 1b6c: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2373 1b6e: 7b40 ldrb r0, [r0, #13] ; 0xd
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2374 1b70: f7ff fe5e bl 0x1830
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2375 1b74: e022 b 0x1bbc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2376 1b76: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2377 1b78: 7b40 ldrb r0, [r0, #13] ; 0xd
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2378 1b7a: a905 add r1, sp, #20 ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2379 1b7c: 9a00 ldr r2, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2380 1b7e: f7ff fe6d bl 0x185c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2381 1b82: e7df b 0x1b44
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2382 1b84: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2383 1b86: 7b40 ldrb r0, [r0, #13] ; 0xd
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2384 1b88: a905 add r1, sp, #20 ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2385 1b8a: f7ff feab bl 0x18e4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2386 1b8e: e7d9 b 0x1b44
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2387 1b90: 4850 ldr r0, =0x83ff20 ; via 0x1cd4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2388 1b92: 6800 ldr r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2389 1b94: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2390 1b96: d0ce beq 0x1b36
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2391 1b98: 3801 sub r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2392 1b9a: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2393 1b9c: d0d4 beq 0x1b48
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2394 1b9e: 3801 sub r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2395 1ba0: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2396 1ba2: d0d7 beq 0x1b54
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2397 1ba4: 3801 sub r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2398 1ba6: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2399 1ba8: d0da beq 0x1b60
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2400 1baa: 3801 sub r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2401 1bac: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2402 1bae: d0dd beq 0x1b6c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2403 1bb0: 3801 sub r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2404 1bb2: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2405 1bb4: d0df beq 0x1b76
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2406 1bb6: 3801 sub r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2407 1bb8: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2408 1bba: d0e3 beq 0x1b84
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2409 1bbc: 9804 ldr r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2410 1bbe: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2411 1bc0: d1a3 bne 0x1b0a
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2412 1bc2: 9805 ldr r0, [sp, #20] ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2413 1bc4: b006 add sp, #24 ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2414 1bc6: bd00 pop {pc}
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2415
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2416 $ser_initialize_flash_data_detection:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2417 1bc8: 4942 ldr r1, =0x83ff20 ; via 0x1cd4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2418 1bca: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2419 1bcc: 6008 str r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2420 1bce: 4842 ldr r0, =0x83ff1b ; via 0x1cd8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2421 1bd0: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2422 1bd2: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2423 1bd4: 4841 ldr r0, =0x83ff18 ; via 0x1cdc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2424 1bd6: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2425 1bd8: 4770 bx lr
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2426 1bda: 46c0 nop (mov r8, r8)
159
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
2427
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
2428 1bdc: 0083ff14
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
2429
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
2430 ; hoping this routine will be the same as 0x1c38 in the C139 version
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
2431 ; same length, looks the same on inspection
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2432 $ser_initialize_serial_link:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2433 1be0: b081 sub sp, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2434 1be2: 483f ldr r0, =0xffff5800 ; via 0x1ce0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2435 1be4: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2436 1be6: 493f ldr r1, =0xffff6000 ; via 0x1ce4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2437 1be8: 2002 mov r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2438 1bea: 880a ldrh r2, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2439 1bec: 4310 orr r0, r2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2440 1bee: 8008 strh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2441 1bf0: 483c ldr r0, =0xffff6000 ; via 0x1ce4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2442 1bf2: 8801 ldrh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2443 1bf4: 0849 lsr r1, r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2444 1bf6: 0049 lsl r1, r1, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2445 1bf8: 8001 strh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2446 1bfa: 493a ldr r1, =0xffff6000 ; via 0x1ce4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2447 1bfc: 8808 ldrh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2448 1bfe: 2202 mov r2, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2449 1c00: 4390 bic r0, r2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2450 1c02: 8008 strh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2451 1c04: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2452 1c06: 2007 mov r0, #7
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2453 1c08: 7208 strb r0, [r1, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2454 1c0a: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2455 1c0c: 20bf mov r0, #191 ; 0xbf
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2456 1c0e: 70c8 strb r0, [r1, #3]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2457 1c10: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2458 1c12: 1c81 add r1, r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2459 1c14: 2010 mov r0, #16 ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2460 1c16: 880a ldrh r2, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2461 1c18: 4310 orr r0, r2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2462 1c1a: 8008 strh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2463 1c1c: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2464 1c1e: 2180 mov r1, #128 ; 0x80
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2465 1c20: 70c1 strb r1, [r0, #3]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2466 1c22: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2467 1c24: 2107 mov r1, #7
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2468 1c26: 7081 strb r1, [r0, #2]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2469 1c28: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2470 1c2a: 21bf mov r1, #191 ; 0xbf
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2471 1c2c: 70c1 strb r1, [r0, #3]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2472 1c2e: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2473 1c30: 2107 mov r1, #7
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2474 1c32: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2475 1c34: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2476 1c36: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2477 1c38: 7041 strb r1, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2478 1c3a: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2479 1c3c: 2103 mov r1, #3
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2480 1c3e: 70c1 strb r1, [r0, #3]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2481 1c40: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2482 1c42: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2483 1c44: 7201 strb r1, [r0, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2484 1c46: 4828 ldr r0, =0xffff5000 ; via 0x1ce8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2485 1c48: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2486 1c4a: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2487 1c4c: 2107 mov r1, #7
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2488 1c4e: 7201 strb r1, [r0, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2489 1c50: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2490 1c52: 20bf mov r0, #191 ; 0xbf
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2491 1c54: 70c8 strb r0, [r1, #3]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2492 1c56: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2493 1c58: 1c80 add r0, r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2494 1c5a: 2110 mov r1, #16 ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2495 1c5c: 8802 ldrh r2, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2496 1c5e: 4311 orr r1, r2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2497 1c60: 8001 strh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2498 1c62: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2499 1c64: 2180 mov r1, #128 ; 0x80
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2500 1c66: 70c1 strb r1, [r0, #3]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2501 1c68: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2502 1c6a: 2107 mov r1, #7
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2503 1c6c: 7081 strb r1, [r0, #2]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2504 1c6e: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2505 1c70: 21bf mov r1, #191 ; 0xbf
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2506 1c72: 70c1 strb r1, [r0, #3]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2507 1c74: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2508 1c76: 2107 mov r1, #7
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2509 1c78: 7001 strb r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2510 1c7a: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2511 1c7c: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2512 1c7e: 7041 strb r1, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2513 1c80: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2514 1c82: 2003 mov r0, #3
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2515 1c84: 70c8 strb r0, [r1, #3]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2516 1c86: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2517 1c88: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2518 1c8a: 7201 strb r1, [r0, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2519 1c8c: b001 add sp, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2520 1c8e: 4770 bx lr
159
7c198e6716e4 C123 bootloader re complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
2521
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2522 $ser_wait_last_character_sent:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2523 1c90: b081 sub sp, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2524 1c92: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2525 1c94: 7008 strb r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2526 1c96: 490c ldr r1, =0x864 ; via 0x1cc8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2527 1c98: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2528 1c9a: 7800 ldrb r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2529 1c9c: 0080 lsl r0, r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2530 1c9e: 5808 ldr r0, [r1, r0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2531 1ca0: 7941 ldrb r1, [r0, #5]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2532 1ca2: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2533 1ca4: 7041 strb r1, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2534 1ca6: 7840 ldrb r0, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2535 1ca8: 09c0 lsr r0, r0, #7
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2536 1caa: d20b bcs 0x1cc4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2537 1cac: 4806 ldr r0, =0x864 ; via 0x1cc8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2538 1cae: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2539 1cb0: 7809 ldrb r1, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2540 1cb2: 0089 lsl r1, r1, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2541 1cb4: 5840 ldr r0, [r0, r1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2542 1cb6: 7940 ldrb r0, [r0, #5]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2543 1cb8: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2544 1cba: 7048 strb r0, [r1, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2545 1cbc: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2546 1cbe: 7840 ldrb r0, [r0, #1]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2547 1cc0: 09c0 lsr r0, r0, #7
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2548 1cc2: d3f3 bcc 0x1cac
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2549 1cc4: b001 add sp, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2550 1cc6: 4770 bx lr
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2551
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2552 1cc8: 00000864
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2553 1ccc: ffff5805
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2554 1cd0: ffff5005
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2555 1cd4: 0083ff20
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2556 1cd8: 0083ff1b
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2557 1cdc: 0083ff18
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2558 1ce0: ffff5800
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2559 1ce4: ffff6000
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2560 1ce8: ffff5000
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2561
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2562 ; cmdboot.obj .text section
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2563 $cmd_load_application:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2564 1cec: b500 push {lr}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2565 1cee: b087 sub sp, #28 ; 0x1c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2566 1cf0: 466b mov r3, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2567 1cf2: 721a strb r2, [r3, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2568 1cf4: 9101 str r1, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2569 1cf6: 9000 str r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2570 1cf8: 9900 ldr r1, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2571 1cfa: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2572 1cfc: 8008 strh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2573 1cfe: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2574 1d00: 2100 mov r1, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2575 1d02: 8001 strh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2576 1d04: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2577 1d06: 9003 str r0, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2578 1d08: f7ff ff5e bl 0x1bc8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2579 1d0c: a805 add r0, sp, #20 ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2580 1d0e: a906 add r1, sp, #24 ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2581 1d10: 466a mov r2, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2582 1d12: 7a12 ldrb r2, [r2, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2583 1d14: f7ff feee bl 0x1af4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2584 1d18: 9004 str r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2585 1d1a: 9804 ldr r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2586 1d1c: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2587 1d1e: d11f bne 0x1d60
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2588 1d20: 9803 ldr r0, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2589 1d22: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2590 1d24: d11c bne 0x1d60
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2591 1d26: 9800 ldr r0, [sp, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2592 1d28: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2593 1d2a: 8b0a ldrh r2, [r1, #24] ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2594 1d2c: 8801 ldrh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2595 1d2e: 1851 add r1, r2, r1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2596 1d30: 8001 strh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2597 1d32: 9905 ldr r1, [sp, #20] ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2598 1d34: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2599 1d36: 8b00 ldrh r0, [r0, #24] ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2600 1d38: 8008 strh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2601 1d3a: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2602 1d3c: 9905 ldr r1, [sp, #20] ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2603 1d3e: 8809 ldrh r1, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2604 1d40: 8802 ldrh r2, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2605 1d42: 1889 add r1, r1, r2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2606 1d44: 8001 strh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2607 1d46: a805 add r0, sp, #20 ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2608 1d48: a906 add r1, sp, #24 ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2609 1d4a: 466a mov r2, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2610 1d4c: 7a12 ldrb r2, [r2, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2611 1d4e: f7ff fed1 bl 0x1af4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2612 1d52: 9004 str r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2613 1d54: 9804 ldr r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2614 1d56: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2615 1d58: d102 bne 0x1d60
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2616 1d5a: 9803 ldr r0, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2617 1d5c: 2800 cmp r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2618 1d5e: d0e2 beq 0x1d26
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2619 1d60: 9804 ldr r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2620 1d62: 2801 cmp r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2621 1d64: d101 bne 0x1d6a
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2622 1d66: 2004 mov r0, #4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2623 1d68: 9003 str r0, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2624 1d6a: 9803 ldr r0, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2625 1d6c: b007 add sp, #28 ; 0x1c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2626 1d6e: bd00 pop {pc}
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2627
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2628 $cmd_check_application_in_flash:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2629 1d70: b089 sub sp, #36 ; 0x24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2630 1d72: 201a mov r0, #26 ; 0x1a
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2631 1d74: 9005 str r0, [sp, #20] ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2632 1d76: 2018 mov r0, #24 ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2633 1d78: 9006 str r0, [sp, #24] ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2634 1d7a: 2000 mov r0, #0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2635 1d7c: 9008 str r0, [sp, #32] ; 0x20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2636 1d7e: 4669 mov r1, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2637 1d80: 9805 ldr r0, [sp, #20] ; 0x14
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2638 1d82: 8800 ldrh r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2639 1d84: 8008 strh r0, [r1, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2640 1d86: 9806 ldr r0, [sp, #24] ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2641 1d88: 8800 ldrh r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2642 1d8a: 8048 strh r0, [r1, #2]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2643 1d8c: 4668 mov r0, sp
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2644 1d8e: 8841 ldrh r1, [r0, #2]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2645 1d90: 8800 ldrh r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2646 1d92: 0400 lsl r0, r0, #16
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2647 1d94: 1808 add r0, r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2648 1d96: 9001 str r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2649 1d98: 9801 ldr r0, [sp, #4]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2650 1d9a: 0200 lsl r0, r0, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2651 1d9c: 0a00 lsr r0, r0, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2652 1d9e: 0080 lsl r0, r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2653 1da0: 3008 add r0, #8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2654 1da2: 9007 str r0, [sp, #28] ; 0x1c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2655 1da4: 9807 ldr r0, [sp, #28] ; 0x1c
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2656 1da6: 3018 add r0, #24 ; 0x18
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2657 1da8: 9002 str r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2658 1daa: 9802 ldr r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2659 1dac: 9004 str r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2660 1dae: 9802 ldr r0, [sp, #8]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2661 1db0: 3002 add r0, #2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2662 1db2: 9003 str r0, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2663 1db4: 9803 ldr r0, [sp, #12] ; 0xc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2664 1db6: 8801 ldrh r1, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2665 1db8: 4806 ldr r0, =0xffff ; via 0x1dd4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2666 1dba: 4281 cmp r1, r0
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2667 1dbc: d104 bne 0x1dc8
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2668 1dbe: 9804 ldr r0, [sp, #16] ; 0x10
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2669 1dc0: 8800 ldrh r0, [r0, #0]
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2670 1dc2: 4904 ldr r1, =0xffff ; via 0x1dd4
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2671 1dc4: 4288 cmp r0, r1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2672 1dc6: d001 beq 0x1dcc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2673 1dc8: 2001 mov r0, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2674 1dca: 9008 str r0, [sp, #32] ; 0x20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2675 1dcc: 9808 ldr r0, [sp, #32] ; 0x20
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2676 1dce: b009 add sp, #36 ; 0x24
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2677 1dd0: 4770 bx lr
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2678 1dd2: 46c0 nop (mov r8, r8)
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2679
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2680 1dd4: 0000ffff
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2681
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2682 ; start.obj .text:v$3 section
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2683 ; ARM->Thumb call veneer around 0xad2 routine
400
5377f91aea97 compal/boot/c123-boot.disasm: annotate with symbols
Mychaela Falconia <falcon@freecalypso.org>
parents: 399
diff changeset
2684 _sta_select_application:
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2685 1dd8: e92d4000 stmdb sp!, {lr}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2686 1ddc: e28fe001 add lr, pc, #1
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2687 1de0: e12fff1e bx lr
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2688 1de4: f7fe fe75 bl 0xad2
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2689 1de8: 4778 bx pc
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2690 1dea: 46c0 nop (mov r8, r8)
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2691 1dec: e8bd8000 ldmia sp!, {pc}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2692
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2693 <1DF0-1EFF: all FFs>
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2694
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2695 1f00: 00000001
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2696
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2697 <1F04-end: all FFs>