

	//[i] function_void pinMode int32 int32;
	void pinMode( int32 p, int32 m )
	{
		bit b;
		if( m != 0 ) {
			b = 1;
		}
		else {
			b = 0;
		}
		switch( p ) {
			== 0: D0.D0_DIR = b; break;
			== 1: D1.D0_DIR = b; break;
			== 2: D2.D0_DIR = b; break;
			== 3: D3.D0_DIR = b; break;
			== 4: D4.D0_DIR = b; break;
			== 5: D5.D0_DIR = b; break;
			== 6: D6.D0_DIR = b; break;
			== 7: D7.D0_DIR = b; break;
			== 8: D8.D0_DIR = b; break;
			== 9: D9.D0_DIR = b; break;
			== 10: D10.D0_DIR = b; break;
			== 11: D11.D0_DIR = b; break;
			== 12: D12.D0_DIR = b; break;
			== 13: D13.D0_DIR = b; break;
			== 14: A0.D0_DIR = b; break;
			== 15: A1.D0_DIR = b; break;
			== 16: A2.D0_DIR = b; break;
			== 17: A3.D0_DIR = b; break;
			== 18: A4.D0_DIR = b; break;
			== 19: A5.D0_DIR = b; break;
			default: break;
		}
	}
	//[i] function_void digitalWrite int32 int32;
	void digitalWrite( int32 p, int32 d )
	{
		bit b;
		if( d != 0 ) {
			b = 1;
		}
		else {
			b = 0;
		}
		switch( p ) {
			== 0: D0.D0_OUT = b; break;
			== 1: D1.D0_OUT = b; break;
			== 2: D2.D0_OUT = b; break;
			== 3: D3.D0_OUT = b; break;
			== 4: D4.D0_OUT = b; break;
			== 5: D5.D0_OUT = b; break;
			== 6: D6.D0_OUT = b; break;
			== 7: D7.D0_OUT = b; break;
			== 8: D8.D0_OUT = b; break;
			== 9: D9.D0_OUT = b; break;
			== 10: D10.D0_OUT = b; break;
			== 11: D11.D0_OUT = b; break;
			== 12: D12.D0_OUT = b; break;
			== 13: D13.D0_OUT = b; break;
			== 14: A0.D0_OUT = b; break;
			== 15: A1.D0_OUT = b; break;
			== 16: A2.D0_OUT = b; break;
			== 17: A3.D0_OUT = b; break;
			== 18: A4.D0_OUT = b; break;
			== 19: A5.D0_OUT = b; break;
			default: break;
		}
	}
	//[i] function_int32 digitalRead int32;
	int32 digitalRead( int32 p )
	{
		bit b;
		switch( p ) {
			== 0: b = D0.D0_IN; break;
			== 1: b = D1.D0_IN; break;
			== 2: b = D2.D0_IN; break;
			== 3: b = D3.D0_IN; break;
			== 4: b = D4.D0_IN; break;
			== 5: b = D5.D0_IN; break;
			== 6: b = D6.D0_IN; break;
			== 7: b = D7.D0_IN; break;
			== 8: b = D8.D0_IN; break;
			== 9: b = D9.D0_IN; break;
			== 10: b = D10.D0_IN; break;
			== 11: b = D11.D0_IN; break;
			== 12: b = D12.D0_IN; break;
			== 13: b = D13.D0_IN; break;
			== 14: b = A0.D0_IN; break;
			== 15: b = A1.D0_IN; break;
			== 16: b = A2.D0_IN; break;
			== 17: b = A3.D0_IN; break;
			== 18: b = A4.D0_IN; break;
			== 19: b = A5.D0_IN; break;
			default: break;
		}
		if( b == 0 ) {
			return 0;
		}
		else {
			return 1;
		}
	}
	
	
	#include "mio_$run$.txt"