#include "RCX_RTE.h"

#define port7_addr  0xffbe
#define port7       *((volatile byte *) port7_addr)
#define Prgm        ! ( port7 & ( 1 << 7 ) )
#define msCount     100


void delay(int16 ms) 
{
  int16 i;
  while( ms > 0){
     for(i=0; i<msCount; i++);
     ms--;
 
  }
}
  
void Walk() 
{

 while( ! Prgm ){
   lcd_show_icon(LCD_WALKING);
   delay(1000);
   lcd_show_icon(LCD_STANDING);   
   delay(1000);
 }
 RCX_Reset();
}

void _start(void) 
{ 
  Walk();
}       
