Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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