public int getValue() {
		int status = 0;
		status |= (negative ? 0x80 : 0);
		status |= (overflow ? 0x40 : 0);
		status |= (direct_page ? 0x20 : 0);
		status |= (break_flag ? 0x10 : 0);
		status |= (half_carry ? 0x8 : 0);
		status |= (indirect_master ? 0x4 : 0);
		status |= (zero ? 0x2 : 0);
		status |= (carry ? 0x1 : 0);
		
		return status;
	}