repo.or.cz
/
xloong.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add support store ddr param in flash.
[xloong.git]
/
zloader
/
c2bin
blob
fa6d740f36275b27a7cf1cd745ec203d7406af43
1
#!/usr/bin/perl -w
2
open
F
,
$ARGV
[
0
];
3
undef
$/;
4
my
$str
=<
F
>;
5
open
D
,
qq
(>
$ARGV
[
1
]);
6
while
(
$str
=~
/(0x[0-9a-f]+)[,}]/g
)
7
{
8
print
D
pack
(
"C"
,
hex
(
$1
));
9
}
10
close
D
;
11