i think i am going to try this tomorrow....





keyvalue = portB & $0F 'bitwise 00001111
trisB.7 = 0
XXXXXXXXXXXXXX
trisB.7 = 1



on a side note, i was namely trying to emit sound on the "sound" command... since it can only be done on portB, and so i tried to dot he sound command, and it worked. on the plus side as well, the speaker is grounded so it was a convienient "pull-down"