public static ReadHandlerPtr dsw_r0 = new ReadHandlerPtr() { public int handler(int offset)
	{
		/* Hi 4 bits = DSWA Hi 4 bits */
		/* Lo 4 bits = DSWB Hi 4 bits */
		int r = readinputport( 0 );
		r &= 0xf0;
		r |= ( readinputport( 1 ) >> 4 ) & 0x0f;
		return ~r; /* Active Low */
	} }