BCD to Hex – How do I perform a shift Left/Right using PBC (Noob question)


Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Mar 2008
    Posts
    3

    Default BCD to Hex – How do I perform a shift Left/Right using PBC (Noob question)

    Hello All,

    Could some one help a noob with a a very quick problem with using Pic Basic.
    I am trying to perform a conversion from BCD to Hex for a DS1307 Real Time Clock, using 16F84A

    I understand how to perform the conversion, my problem is that the Pic Basic Compiler does not support the simple Shift Left (<<4) / Right (>>4) function that is available in PBP.

    I presume I will have to perform this function using ASM, but am having trouble getting it to work correctly. All a need to do is shift the value store in B0 four (4) places to the right.

    Can anyone help me…..Please !
    Last edited by Biatparto; - 6th March 2008 at 02:06.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts