

K1 = surport1;
surport1.ID = ID;
unit surport1
{
	public const uint16 ID = 0;
	
	public bit D0_DIR;
	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 );
	}
}
K2 = surport2;
surport2.ID = ID;
unit surport2
{
	public const uint16 ID = 0;
	
	public bit D0_DIR;
	public bit D0_OUT;
	public my_bit bit D0_IN = #addr ID * 0x00010000 + 0x0001;
	
	memory my_bit { type = [ uint32] uint8; }
	uint8 get_uint8( uint32 addr )
	{
		return (uint8)(uint16)(uint)#.OS.REMO_ModuleRead( (int)addr );
	}
}
K3 = surport3;
surport3.ID = ID;
unit surport3
{
	public const uint16 ID = 0;
	
	public bit D0_DIR;
	public bit D0_OUT;
	public my_bit bit D0_IN = #addr ID * 0x00010000 + 0x0002;
	
	memory my_bit { type = [ uint32] uint8; }
	uint8 get_uint8( uint32 addr )
	{
		return (uint8)(uint16)(uint)#.OS.REMO_ModuleRead( (int)addr );
	}
}






