Hallo!
Also ich poste hier mal die ersten Lens-ROM Werte für:
MAF APO 1.4x Konverter Version 1
MAF 200/2.8 HS APO G (Lens-Rom ML00X)
MAF 300/2.8 HS APO G (Lens-Rom ML00X)
MAF 24/2.8
MAF 50/2.8 Macro mit Werten bei jeder Macrostellung inkl. unendl
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F
maf_14xAPO
FF FF FF 07 12 11 EF 07 07 00 FF EF FF FF 8A 1F F4 FF FF FF FF FF FF FF FF FF 00 FC FF FF 2D 65
maf_200f28_150cm_ML00X
81 20 58 00 19 00 1E 58 24 00 FB 1A EF 00 00 64 F3 C3 00 00 3B 01 F1 2D 49 A3 00 00 32 00 09 66
maf_200f28_150cm_FS_ML00X
81 20 58 00 19 00 1E 58 24 04 FA 1A EF 00 00 64 F3 C3 00 00 3B 01 F1 2D 49 A3 00 00 32 00 09 66
maf_200f28_unendl_ML00X
81 20 58 00 19 00 1E 58 24 00 FB 1A FE 00 00 6A F3 C3 00 00 3B 01 F1 2D 49 A3 00 00 32 00 09 66
maf_200f28_undendl_FS_ML00X
81 20 58 00 19 00 1E 58 24 04 FA 1A FE 00 00 6A F3 C3 00 00 3B 01 F1 2D 49 A3 00 00 32 00 09 66
maf_300f28_150cm_ML00X
81 20 58 00 18 FF 2E 61 23 84 FB 19 0A 00 00 6F E9 D6 00 00 42 01 ED 2D 29 A2 00 00 35 00 E1 65
maf_300f28_150cm_FS_ML00X
81 20 58 00 18 FF 2E 61 23 04 FA 19 0A 00 00 6F E9 D6 00 00 42 01 ED 2D 29 A2 00 00 35 00 E1 65
maf_300f28_unendl_ML00X
81 20 58 00 18 FF 2E 61 23 80 FB 19 0A 00 00 6F E9 D6 00 00 42 01 ED 2D 29 A2 00 00 35 00 E1 65
maf_300f28_unendl_FS_ML00X
81 20 58 00 18 FF 2E 61 23 00 FA 19 0A 00 00 6F E9 D6 00 00 42 01 ED 2D 29 A2 00 00 35 00 E1 65
maf_24f28
80 20 50 00 18 11 21 28 23 00 FB 41 F8 00 00 48 ED 88 00 00 00 00 00 00 00 00 00 00 00 00 3D 64
maf_50f28_1z1
80 20 58 00 19 11 11 39 31 00 FB 3C 09 00 00 97 00 98 00 00 00 00 00 00 00 00 00 00 00 00 29 64
maf_50f28_3z1
80 20 58 00 19 11 11 39 31 00 FB 31 09 00 00 74 00 98 00 00 00 00 00 00 00 00 00 00 00 00 29 64
maf_50f28_4z1
80 20 58 00 19 11 11 39 31 00 FB 30 09 00 00 68 00 98 00 00 00 00 00 00 00 00 00 00 00 00 29 64
maf_50f28_9z1
80 20 58 00 19 11 11 39 31 00 FB 2F 09 00 00 5E 00 98 00 00 00 00 00 00 00 00 00 00 00 00 29 64
maf_50f28_unend
80 20 58 00 19 11 11 39 31 00 FB 2F 09 00 00 4E 00 98 00 00 00 00 00 00 00 00 00 00 00 00 29 64
Und hier ist das Perl-Programm mit dem ich die Konvertierung mache (es handelt sich dabei um eine
etwas modifizierte Version des Perl-Programmes von Vasim):
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/perl
dump_lensrom(shift);
sub dump_lensrom {
local($file, $offset, $w, $lens, $bytes, $out, $outfile, $offset);
$file = shift;
$offset = shift;
print "$fname"."\n";
$w = rindex($file,".bin");
$lens = substr($file,0,$w);
$outfile = $lens . "_lensrom.hex";
$offset = 30 if (!$offset);
open(IN, $file) | print "Fehler";
binmode(IN);
read(IN, $bytes, 128);
close(IN);
$out = ();
open(OUT, "> lensrom.hex");
print OUT "$lens\n";
for ($i = 0; $i < 128; $i++) {
push @out, bintodec(sprintf("%08b", ord(substr($bytes, $i, 1))));
}
for ($i = $offset; $i < 128; $i++) {
print OUT "\n" if (($i - $offset) % 32 == 0);
print OUT sprintf("%02X ", $out[$i]);
print "\n" if (($i - $offset) % 32 == 0);
print sprintf("%02X ", $out[$i]);
}
print OUT "\n";
print "\n";
close(OUT);
rename("lensrom.hex", $outfile);
}
sub bintodec {
return unpack("N", pack("b32", substr("0" x 32 . shift, -32)));
}
Rest folgt.
Gruß, Wolfram