I have the reference manual for the MC9S08QB and this does not include OSCOPT0, OSCOPT1 or OSCSC. The available registers are ICSC1, ICSC2, ICSTRM and ICSSC. The clock source select is the top two bits of ICSC1.
I am using the internal clock
ICSC2 = 0x47;
ICSC1 = 0x07; // Internal clock
What I am asking is, are PTB7 and PTB6 available to use as ports as long as the external clock has not been selected or is there another set-up to be done apart from the data direction and pull-ups? Remember, PTB0-3 and PTB5 work. (PTB4 is an output and has not been tested).