if you peek at location $bfd000 in the word format you will get the bit set
in the 13th position if cd is not present. peek in the byte format and it
is the 5th databit. I have written my program in assem bler so I am not
totally familiar with the requirements of BASIC.