
	D = test;
	test.ID = ID;
	unit test
	{
		public const uint16 ID = 0;
		memory my_bit { type = [ uint32] uint8; }
		
		bit D0_DIR;
		my_bit bit D0_OUT = #addr ID * 0x00010000 + 0x0002;
		uint8 d;
		
		void set_uint8( uint32 addr, uint8 b )
		{
			d = b;
			if( b == 0 ) {
				b = 80;
			}
			else {
				b = 0;
			}
			int32 vol = 255;
			#.OS.REMO_ModuleWrite( (int)addr, vol * 256 + (int)b );
		}
		uint8 get_uint8( uint32 addr )
		{
			return d;
		}
	}
	
	