d short moveright(unsigned short value, int n)\r(\runsigned short z ;\rz=(value>>n)|(value<<(16-n));\rreturn(z);\r)\runsigned short moveleft(unsigned short value, int n)\r{\runsigned short z ;\rz=(value<<n)|(value>>(16-n));\rreturn(z);.\r//T\r@A8cl4_6.c,Hüý:BD/þÿ 0@P`p\r?\r????P“\r!"”\r#include<stdio. h>\rvoid main()\r{\runsigned short getbits(unsigned short);\runsigned short int a;\rprintf ("input an octal number:z);\rscanf (%o”, &a);\rprintf ("result:%o\n”, getbits(a));\r)\runsigned short getbits(unsigned short value)\r{\runsigned short int z;\rz=value&0100000;\rif (z==0100000)\rz=~value+l;\relse\rz=value;\rreturn (z);\r)\r//--------------------------------------------------------\rI l \rli-