Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Instructions (computer)

  1. Jan 13, 2006 #1
    how is "branch" instruction different from "jump"?

    Thanks in advance.
  2. jcsd
  3. Jan 13, 2006 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    A branch instruction is conditional. If some condition is met, program flow jumps to some other location. If the condition is not met, the next instruction is executed instead.

    A jump, on the other hand, is not conditional.

    - Warren
  4. Jan 14, 2006 #3
    It also sometimes has to do with language you are programming. I believed in 68HC11 code, a jump is for an absolute position, and a branch is relative. Check out the BRA and the JMP commands.

    From what I have seen, it is more loose than an absolute definition.

    -- MLH
  5. Jan 15, 2006 #4
    ya, we use 68HC12. Thanks for the explanations.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook