Vous êtes sur la page 1sur 1

7/7/2015

JumpandBranchInstructions

JumpandBranchInstructions
Theprogrammecontrolinstructionsallowtheflowoftheprogrammetochange.Achangein
flowoftenoccurswhendecisionsaremade.Programmecontrolflowisaffectedbytwotypesof
instructions,UnconditionalandConditional.
TheUnconditionalinstructionsinthe6800microprocessorareJump,JumptoSubroutine,
BranchAlwaysandBranchtoSubroutine.
TheConditionalinstructionsinthe6800microprocessorarealltheBranchinstructionsexcept
theBranchAlwaysinstruction.Theconditionalinstructionsdecisionisbasedontheconditionof
theflagbit(s)intheConditionCodeRegister(CCR).Ifabranchtestis'true'thenthebranchwill
occur,otherwisethenextinstructionisimplemented.
TheBranchinstructionshaveanOffsetassociatedwhichisaSignednumberwhichis
added/subtractedtotheProgramCounter(PC)toprovideabranchrangefrom128to+127
steps,fromtheaddressoftheNEXTinstructiontobeimplemented.
UsingtheRelativeaddressmodethebranchinstructionallowstheprogrammecodetobere
locatable.
TheJumpinstructionisnotrelocatablebutcanbeusedtoaccessanyaddresswithinthe64k
($0000to$FFFF)memoryrange.ItoperatesintheIndexedorExtendedaddressmodes.

http://www.electronics.dit.ie/staff/tscarff/6800/jump_branch/jump_branch.htm

1/1

Vous aimerez peut-être aussi