You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
165 B
11 lines
165 B
20 years ago
|
|
||
|
$_ = join("", <>);
|
||
|
|
||
|
s/(0x[0-9a-f]{2})/sprintf("0x%.2x",ord(pack("b8",unpack("B8",chr(hex($1))))))/gei;
|
||
|
|
||
|
s/^ / .byte /gm;
|
||
|
s/[,};]+$//gm;
|
||
|
s/^static.*//gm;
|
||
|
|
||
|
print $_;
|