PDA

View Full Version : instructions (computer)


EvLer
Jan13-06, 09:09 AM
how is "branch" instruction different from "jump"?

Thanks in advance.

chroot
Jan13-06, 01:03 PM
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

EvLer
Jan15-06, 11:29 AM
ya, we use 68HC12. Thanks for the explanations.