home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
dos
/
tp_fast
/
version4
/
t_bit.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-11-14
|
547b
|
22 lines
uses crt,tpfast;
var wnum :word;
ch :char;
begin
textattr := 7;
clrscr;
repeat
gotoxy(1,1);
writeln('Enter a numeric number or 0 to quit .. ?');
gotoxy(43,1);
readln(wnum);
writeln;
writeln('Word entered ... ',wnum);
writeln('Word rotated left 1 ... ',rotatewordleft(wnum,1));
writeln('Word rotated right 1 bit ... ',rotatewordright(wnum,1));
writeln('Word converted to hex ... ',wordtohex(wnum));
until wnum = 0;
end.