mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-14 03:30:17 +01:00
14 lines
193 B
Perl
14 lines
193 B
Perl
|
#!/usr/local/bin/perl -w
|
||
|
while(<STDIN>)
|
||
|
{
|
||
|
if(/^#/)
|
||
|
{
|
||
|
print $_;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
($a, $b, $c,$d) = /^(....)(.)(..)(.*)$/;
|
||
|
print "0x" . $c . $b . "0x" . $a . $d . "\n";
|
||
|
}
|
||
|
}
|