text: #include "parm.h"
  #include "utils.h"
  #include "math.h"
  
  void run()
  {
  	BEGIN();
  
  	int a, b;
  
  	PUTCHAR('A','=');
  	a = READINT();
  	PUTCHAR('\n');
  
  	PUTCHAR('B','=');
  	b = READINT();
  	PUTCHAR('\n');
  
  	PUTCHAR('+','-','*','/','%','&','|','^');
  
  	int choice;
  read:
  	choice = READKEY();
  
  	switch(choice) 
  	{
  	case '+':
  		RES = a + b;
  		break;
  	case '-':
  		RES = a - b;
  		break;
  	case '*':
  		RES = a * b;
  		break;
  	case '/':
  		RES = DIV(a, b);
  		break;
  	case '%':
  		RES = MOD(a, b);
  		break;
  	case '&':
  		RES = a & b;
  		break;
  	case '|':
  		RES = a | b;
  		break;
  	case '^':
  		RES = a ^ b;
  		break;
  	default:
  		goto read;
  	}
  
  	PUTCHAR('\n','R','=');
  	PRINTRES_SIGN();
  
  	WAITKEY();
  
  	RESET();
  }
  