Try-
SecOnes var byte 'should be NIBBLE?
Seconds var byte
SecOnes = Seconds & $0f
Or-
SecOnes var byte 'should be NIBBLE?
SecOnes = SecOnes & $0f
Try-
SecOnes var byte 'should be NIBBLE?
Seconds var byte
SecOnes = Seconds & $0f
Or-
SecOnes var byte 'should be NIBBLE?
SecOnes = SecOnes & $0f
I forgot to add that there already is a SECONDS variable, and it still has the error. Why does it say $0f ???
This should not return any errors.
Of course the result will be unknown since none of the variables are initialized, but itCode:SecOnes var byte Seconds var byte SecOnes = Seconds & $0f
definitely should not return an error.
Because a value of $0F (%00001111) ANDed with another 8-bit value will return allWhy does it say $0f ???
0's in the upper 4-bits of the result MASKing the upper 4-bits out.
Thank you, Bruce for the explanation. I now understand how it works. I failed to explain that I'm trying to "add-on" (within the Main portion of my program) to DT's Elapsed_INT-18. That's why I said the Seconds variable was already declared. So, when I declare it again, I get the redefinition error. I'll try adding the SecOnes stuff to HIS program!
Bookmarks