Gavan Fantom
14 years ago
commit
936619ba59
2 changed files with 1689 additions and 0 deletions
@ -0,0 +1,18 @@
|
||||
#!/usr/pkg/bin/perl |
||||
|
||||
binmode STDIN; |
||||
binmode STDOUT; |
||||
|
||||
while (1) |
||||
{ |
||||
my $byte = getc; |
||||
last unless defined($byte); |
||||
$byte = ord($byte); |
||||
$a = $byte & 0x08; |
||||
$b = $byte & 0x10; |
||||
$byte = $byte & 0xe7; |
||||
$byte = $byte | 0x08 if ($b); |
||||
$byte = $byte | 0x10 if ($a); |
||||
printf "%c", $byte; |
||||
} |
||||
|
Loading…
Reference in new issue