langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
11
Task/Bitwise-IO/PL-I/bitwise-io.pli
Normal file
11
Task/Bitwise-IO/PL-I/bitwise-io.pli
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
declare onebit bit(1) aligned, bs bit (1000) varying aligned;
|
||||
on endfile (sysin) go to ending;
|
||||
bs = ''b;
|
||||
do forever;
|
||||
get edit (onebit) (F(1));
|
||||
bs = bs || onebit;
|
||||
end;
|
||||
ending:
|
||||
bs = bs || copy('0'b, mod(length(bs), 8) );
|
||||
/* pad length to a multiple of 8 */
|
||||
put edit (bs) (b);
|
||||
Loading…
Add table
Add a link
Reference in a new issue