View Full Version : instructions (computer)
how is "branch" instruction different from "jump"?
Thanks in advance.
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
matejhowell
Jan14-06, 07:31 PM
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
ya, we use 68HC12. Thanks for the explanations.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.