
PORT = surport;

surport.ID = ID;
unit surport
{
	public const uint16 ID = 0;
	
	public bit D0_DIR;
	public bit D0_PUL;
	public bit D0_OUT;
	public my_bit bit D0_IN = #addr ID * 0x00010000 + 0x0000;
	
	
	
	memory my_bit { type = [ uint32] uint8; }
	uint8 get_uint8( uint32 addr )
	{
		return (uint8)(uint16)(uint)#.OS.REMO_ModuleRead( (int)addr );
	}
}


