annotate frbl/reconst/serial.c @ 334:ea1e950c849f

frbl/reconst/serial.c: 0x288 static function reconstructed
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 07 Mar 2020 02:26:59 +0000
parents f8a4a330d0e6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
328
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 #include "main/sys_types.h"
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 #include "serial.h"
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 #include "convert.h"
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 static const SYS_UWORD32 S0_expect[7] = {6, 0, 0, 'H', 'D', 'R', 0x1B};
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 static const SYS_UWORD32 S7_expect[6] = {5, 0, 0, 0, 0, 0xFA};
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 static const SYS_UWORD32 uart_base[2] = {0xFFFF5800, 0xFFFF5000};
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 static SYS_UWORD32 bss_0;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 static SYS_UWORD8 bss_4;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 static SYS_UWORD8 bss_5;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 static SYS_UWORD8 bss_6;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 static SYS_UWORD8 bss_7;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 static SYS_UWORD8 bss_8;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 static SYS_UWORD32 bss_0xc;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 static SYS_UWORD8 bss_0x10;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 static SYS_UWORD16 bss_0x12;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 static SYS_UWORD32
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 static_func_0x0(SYS_UWORD8 arg1, SYS_UWORD32 *arg2, SYS_UWORD32 *arg3,
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 SYS_UWORD16 *arg4)
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 {
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 SYS_UWORD32 retval;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26 bss_5 += arg1;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 if (bss_6) {
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 bss_0x12 += arg1;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 *arg4 = bss_0x12;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30 *arg2 = 0;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 retval = 0;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32 } else {
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33 *arg3 += 2;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 bss_0x12 = arg1 << 8;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35 retval = 1;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
36 }
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
37 bss_6 = ~bss_6 & 1;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
38 bss_0x10--;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
39 if (bss_0x10 == 0)
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
40 bss_0xc = 6;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
41 return retval;
0029db632547 frbl/reconst/serial.c: first static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
42 }
329
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
43
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
44 static SYS_UWORD32
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
45 static_func_0x7a(SYS_UWORD8 arg1, SYS_UWORD32 *arg2)
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
46 {
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
47 SYS_UWORD32 retval = 1;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
48
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
49 if (!bss_7) {
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
50 if (arg1 == 'S') {
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
51 bss_7 = 1;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
52 } else {
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
53 *arg2 = 1;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
54 retval = 0;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
55 }
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
56 } else {
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
57 bss_7 = 0;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
58 if (arg1 == '0') {
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
59 if (bss_4) {
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
60 *arg2 = 1;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
61 bss_4 = 0;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
62 retval = 0;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
63 } else {
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
64 bss_0xc = 2;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
65 bss_8 = 0;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
66 }
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
67 } else if (arg1 == '3') {
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
68 if (!bss_4) {
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
69 *arg2 = 1;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
70 retval = 0;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
71 } else {
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
72 bss_0xc = 4;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
73 bss_8 = 0;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
74 }
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
75 } else if (arg1 == '7') {
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
76 if (!bss_4) {
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
77 *arg2 = 1;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
78 retval = 0;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
79 } else {
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
80 bss_0xc = 3;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
81 bss_8 = 0;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
82 }
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
83 } else {
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
84 *arg2 = 1;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
85 bss_4 = 0;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
86 retval = 0;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
87 }
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
88 }
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
89 return retval;
63d3afd14523 frbl/reconst/serial.c: 0x7a static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
90 }
330
30cbf540e045 frbl/reconst/serial.c: 0x126 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 329
diff changeset
91
30cbf540e045 frbl/reconst/serial.c: 0x126 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 329
diff changeset
92 static SYS_UWORD32
30cbf540e045 frbl/reconst/serial.c: 0x126 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 329
diff changeset
93 static_func_0x126(SYS_UWORD8 arg1, SYS_UWORD32 *arg2)
30cbf540e045 frbl/reconst/serial.c: 0x126 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 329
diff changeset
94 {
30cbf540e045 frbl/reconst/serial.c: 0x126 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 329
diff changeset
95 SYS_UWORD32 retval = 1;
30cbf540e045 frbl/reconst/serial.c: 0x126 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 329
diff changeset
96
30cbf540e045 frbl/reconst/serial.c: 0x126 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 329
diff changeset
97 if (arg1 == S0_expect[bss_8]) {
30cbf540e045 frbl/reconst/serial.c: 0x126 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 329
diff changeset
98 bss_8++;
30cbf540e045 frbl/reconst/serial.c: 0x126 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 329
diff changeset
99 if (bss_8 == 7) {
30cbf540e045 frbl/reconst/serial.c: 0x126 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 329
diff changeset
100 bss_0xc = 1;
30cbf540e045 frbl/reconst/serial.c: 0x126 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 329
diff changeset
101 bss_4 = 1;
30cbf540e045 frbl/reconst/serial.c: 0x126 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 329
diff changeset
102 }
30cbf540e045 frbl/reconst/serial.c: 0x126 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 329
diff changeset
103 } else {
30cbf540e045 frbl/reconst/serial.c: 0x126 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 329
diff changeset
104 *arg2 = 1;
30cbf540e045 frbl/reconst/serial.c: 0x126 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 329
diff changeset
105 bss_0xc = 1;
30cbf540e045 frbl/reconst/serial.c: 0x126 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 329
diff changeset
106 retval = 0;
30cbf540e045 frbl/reconst/serial.c: 0x126 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 329
diff changeset
107 }
30cbf540e045 frbl/reconst/serial.c: 0x126 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 329
diff changeset
108 return retval;
30cbf540e045 frbl/reconst/serial.c: 0x126 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 329
diff changeset
109 }
331
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
110
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
111 static SYS_UWORD32
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
112 static_func_0x176(SYS_UWORD8 arg1, SYS_UWORD32 *arg2)
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
113 {
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
114 SYS_UWORD32 retval = 1;
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
115
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
116 if (arg1 == S7_expect[bss_8]) {
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
117 bss_8++;
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
118 if (bss_8 == 6) {
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
119 *arg2 = 2;
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
120 bss_0xc = 1;
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
121 bss_4 = 0;
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
122 retval = 0;
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
123 }
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
124 } else {
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
125 *arg2 = 1;
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
126 bss_0xc = 1;
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
127 bss_4 = 0;
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
128 retval = 0;
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
129 }
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
130 return retval;
8fb86f7b4395 frbl/reconst/serial.c: 0x176 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
131 }
332
e5db9a45e596 frbl/reconst/serial.c: 0x1d4 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 331
diff changeset
132
e5db9a45e596 frbl/reconst/serial.c: 0x1d4 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 331
diff changeset
133 static void
e5db9a45e596 frbl/reconst/serial.c: 0x1d4 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 331
diff changeset
134 static_func_0x1d4(SYS_UWORD8 arg)
e5db9a45e596 frbl/reconst/serial.c: 0x1d4 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 331
diff changeset
135 {
e5db9a45e596 frbl/reconst/serial.c: 0x1d4 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 331
diff changeset
136 bss_0x10 = arg - 1;
e5db9a45e596 frbl/reconst/serial.c: 0x1d4 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 331
diff changeset
137 bss_5 = arg;
e5db9a45e596 frbl/reconst/serial.c: 0x1d4 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 331
diff changeset
138 bss_8 = 0;
e5db9a45e596 frbl/reconst/serial.c: 0x1d4 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 331
diff changeset
139 bss_0 = 0;
e5db9a45e596 frbl/reconst/serial.c: 0x1d4 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 331
diff changeset
140 bss_0xc = 5;
e5db9a45e596 frbl/reconst/serial.c: 0x1d4 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 331
diff changeset
141 }
333
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
142
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
143 static SYS_UWORD32
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
144 static_func_0x200(SYS_UWORD8 arg1, SYS_UWORD32 *arg2, SYS_UWORD32 *arg3)
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
145 {
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
146 SYS_UWORD32 retval = 1;
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
147
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
148 bss_0x10--;
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
149 if (bss_0x10) {
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
150 bss_5 += arg1;
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
151 bss_8++;
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
152 bss_0 += arg1 << ((4 - bss_8) * 8);
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
153 if (bss_8 == 4) {
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
154 *arg3 = bss_0 - 2;
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
155 bss_0xc = 0;
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
156 bss_6 = 0;
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
157 bss_8 = 0;
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
158 }
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
159 } else {
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
160 *arg2 = 1;
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
161 bss_0xc = 1;
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
162 bss_4 = 0;
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
163 retval = 0;
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
164 }
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
165 return retval;
f8a4a330d0e6 frbl/reconst/serial.c: 0x200 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
166 }
334
ea1e950c849f frbl/reconst/serial.c: 0x288 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 333
diff changeset
167
ea1e950c849f frbl/reconst/serial.c: 0x288 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 333
diff changeset
168 static SYS_UWORD32
ea1e950c849f frbl/reconst/serial.c: 0x288 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 333
diff changeset
169 static_func_0x288(SYS_UWORD8 arg1, SYS_UWORD32 *arg2)
ea1e950c849f frbl/reconst/serial.c: 0x288 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 333
diff changeset
170 {
ea1e950c849f frbl/reconst/serial.c: 0x288 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 333
diff changeset
171 SYS_UWORD32 retval = 1;
ea1e950c849f frbl/reconst/serial.c: 0x288 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 333
diff changeset
172
ea1e950c849f frbl/reconst/serial.c: 0x288 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 333
diff changeset
173 bss_0xc = 1;
ea1e950c849f frbl/reconst/serial.c: 0x288 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 333
diff changeset
174 if (bss_5 != (~arg1 & 0xFF)) {
ea1e950c849f frbl/reconst/serial.c: 0x288 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 333
diff changeset
175 *arg2 = 1;
ea1e950c849f frbl/reconst/serial.c: 0x288 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 333
diff changeset
176 bss_4 = 0;
ea1e950c849f frbl/reconst/serial.c: 0x288 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 333
diff changeset
177 retval = 0;
ea1e950c849f frbl/reconst/serial.c: 0x288 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 333
diff changeset
178 }
ea1e950c849f frbl/reconst/serial.c: 0x288 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 333
diff changeset
179 return retval;
ea1e950c849f frbl/reconst/serial.c: 0x288 static function reconstructed
Mychaela Falconia <falcon@freecalypso.org>
parents: 333
diff changeset
180 }