Okay, I think I figured this out myself.

Port 0 and 1 also are comparitor ports. I added <b>poke $19,00000111</b> to the beginning of the program and now it works perfectly. From the chip data sheet I decided that this command would turn off that feature and I hoped that with it off, the new default would become general I/O ports.

I am beginning to love this <b>poke</b> command!

But this does raise another question in my mind. How does one know what is default for a port and what isn't? If I read the data sheet all the I/O functions are listed first on the pin call out as well as each pin description. To me that suggest they are the default, but apparently not. Trial and error to discover the results seem odd.

Bart