00001 #include <p18cxxx.h>
00002 typedef unsigned char uint8;
00003
00004
00005 uint8 blep(uint8 adat,
00006 uint8 lepes) {
00007 while (lepes) {
00008 adat = adat << 1;
00009 lepes--;
00010 }
00011 return(adat);
00012 }
00013
00014 void main(void){
00015 uint8 i, j, k;
00016 i=0x24;
00017 j = 2;
00018 k = blep(i, j);
00019 }