Today I tried to apply the function wd_decode_track() but it pulled too many functions and dependencies from different files. I haven't been able to piece it all together yet.The fact is that I work in Windows in Visual C 2008 and some moments are too complicated for me. But I will keep trying.
I would like to understand - if I use the function mfm_decode_track_deltas from mfm_decoder.c and then save result fwrite(current_track_words, current_track_words_ndx, 4, fp); can I see some human-readable characters in it (for ex. MBR ot boot-sector messages)? Or due to the fact that there is no complete detailed parsing of the format, I should not see any human-readable string patterns there and I need to try to implement a full cycle of parsing the track with wd_decode_track() or other special decoder?
Because now I see just random values in the results and I can’t pick out a single human-readable word from them. At the same time, if I use the MFM decoder program from pdp11gy site, then I sometimes find fragments of words or whole words.
PS: I tried to build a histogram, this is what happened:
0, 0
1, 0
2, 0
3, 0
4, 0
5, 0
6, 0
7, 0
8, 0
9, 0
10, 0
11, 1
12, 0
13, 0
14, 0
15, 0
16, 0
17, 0
18, 2
19, 3
20, 4
21, 4
22, 5546
23, 38989
24, 19756
25, 3120
26, 37
27, 3
28, 4
29, 1
30, 1
31, 4
32, 5
33, 130
34, 9183
35, 26793
36, 12576
37, 501
38, 1
39, 1
40, 0
41, 0
42, 1
43, 1
44, 2
45, 0
46, 17
47, 1858
48, 5916
49, 1799
50, 80
51, 0
52, 0
53, 0
54, 0
55, 4
56, 2
57, 0
58, 0
59, 1
60, 1
61, 0
62, 3
63, 4
64, 2
65, 3
66, 0
67, 0
68, 0
69, 2
70, 0
71, 3
72, 1
73, 2
74, 2
75, 0
76, 1
77, 0
78, 0
79, 0
80, 0
81, 0
82, 2
83, 0
84, 0
85, 0
86, 0
87, 0
88, 0
89, 0
90, 0
91, 0
92, 0
93, 0
94, 0
95, 0
96, 0
97, 0
98, 0
99, 0
Primary transition period 186 ns, should be around 200
First two transition periods 186, 281 ns
PS2: Also i fixing my stupied error in define, it was
#define MAX_DELTAS 131072-4700
Became:
#define MAX_DELTAS (131072L-4700L)
Because of this, I sent only 131072-(4700*2) bytes to the host instead of (131072-4700)*2.
пятница, 25 ноября 2022 г. в 20:51:27 UTC+3, tronix286: