section 7 - Index of
section 7 - Index of section 7 - Index of
JccJump ConditionallyJccOperation:If cc, then Oxxx -+PCelse PC+ 1 -+PCIf cc, then ea -+PCelse PC+ 1 -+PCAssem bier Syntax:Jcc xxxJcc xxxDescription: Jump to the location in program memory given by the instruction's effectiveaddress if the specified condition is true. If the specified condition is false, the programcounter (PC) is incremented and the effective address is ignored. However, the addressregister specified in the effective address field is always updated independently of thespecified condition. All memory alterable addressing modes may be used for the effectiveaddress. A Fast Short Jump addressing mode may also be used. The 12-bit data iszero extended to form the effective address. See Section A.9 for restrictions. The term"cc" may specify the following conditions:CC (HS)CS (LO)ECEQESGEGTLCLELSLTMINENRPLNN"cc" Mnemonic- carry clear (higher or same)- carry set (lower)- extension clear- equal- extension set- greater than or equal- greater than-limit clear- less than or equal-limit set-less than- minus- not equal- normalized-plus- not normalizedwhereIT denotes the logical complement of U,+ denotes the logical OR operator,• denotes the logical AND operator, andEe denotes the logical Exclusive OR operatorConditionC=OC=1E=OZ=1E=1NEe V=OZ+(N Ee V)=OL=OZ+(N EE> V)=1L=1N E9 V=1N=1Z=OZ+(UeE)=1N=OZ+(ITeE)=0
Jcc Jump Conditionally JccRestrictions: A Jcc instruction used within a DO loop cannot begin at the address LAwithin that DO loop.A Jcc instruction cannot be repeated using the REP Instruction.Example:JNN - (R4);jump to P:(R4) -1 if not normalizedExplanation of Example: In this example, program execution is transferred to theaddress P:(R4)-1 if the result is not normalized. Note that the contents of address registerR4 are predecremented by 1, and the resulting address is then loaded into the programcounter (PC) if the specified condition is true. If the specified condition is not true,no jump is taken, and the program counter is incremented by one.Condition Codes:15 14 13 12 11 10 9 8 7 6 5 4I LF I OM I T I" I 81 I 80 I 11 I 10 I 8 I L E I uThe condition codes are not affected by this instruction.Instruction Format:Jcc xxxeeR3 2 oN I z I vOpcode:23 16 15 8 710 0 0 0 1 1 1 ole e e e a a a alaoa a a a a a al-
- Page 295 and 296: BClR Bit Test and Clear BClRNotes:
- Page 297 and 298: BSET Bit Test and Set BSETExplanati
- Page 299 and 300: BSETBit Test and SetBSETInstruction
- Page 301 and 302: BSETBit Test and SetBSETInstruction
- Page 303 and 304: BSET Bit Test and Set BSETNotes: If
- Page 305 and 306: BTSTBit TestBTSTCondition Codes:115
- Page 307 and 308: 8TSTBit Test8TSTInstruction Format:
- Page 309 and 310: 8TSTBit Test8TSTInstruction Format:
- Page 311 and 312: CLRClear AccumulatorCLRInstruction
- Page 313 and 314: CMP Compare CMPCondition Codes:15 1
- Page 315 and 316: CMPM Compare Magnitude CMPMConditio
- Page 317 and 318: DEBUGEnter Debug ModeDEBUGOpcode:23
- Page 319 and 320: DEBUGcc Enter Debug Mode Conditiona
- Page 321 and 322: DEC Decrement by One DECInstruction
- Page 323 and 324: DIV Divide Interation DIVThe DIV in
- Page 325 and 326: DIV Divide Interation DIVNote that
- Page 327 and 328: DIVInstruction Format:DIV S,DDivide
- Page 329 and 330: DO Start Hardware Loop DOexecuted 6
- Page 331 and 332: DOStart Hardware LoopDOAt LAOther R
- Page 333 and 334: DOStart Hardware LoopDOInstruction
- Page 335 and 336: DOStart Hardware LoopDOInstruction
- Page 337 and 338: DO Start Hardware Loop DONotes: If
- Page 339 and 340: ENDDO End Current DO Loop ENDDOExpl
- Page 341 and 342: EOR Logical Exclusive OR EORInstruc
- Page 343 and 344: ILLEGALIllegal Instruction Interrup
- Page 345: INC Increment by One INCInstruction
- Page 349 and 350: JccJump ConditionallyJccEffectiveAd
- Page 351 and 352: JCLR Jump If Bit Clear JCLRRestrict
- Page 353 and 354: JCLRJump If Bit ClearJCLRInstructio
- Page 355 and 356: JCLR Jump If Bit Clear JCLRInstruct
- Page 357 and 358: JMPJumpJMPInstruction Fields:xxx=12
- Page 359 and 360: JSccJump to Subroutine Conditionall
- Page 361 and 362: JScc Jump to Subroutine Conditional
- Page 363 and 364: JSCLR Jump to Subroutine if Bit Cle
- Page 365 and 366: JSCLRJump to Subroutine If Bit Clea
- Page 367 and 368: JSCLRJump to Subroutine If Bit Clea
- Page 369 and 370: JSCLR Jump to Subroutine If Bit Cle
- Page 371 and 372: JSET Jump if Bit Set JSETRestrictio
- Page 373 and 374: JSETJump if Bit SetJSETInstruction
- Page 375 and 376: JSET Jump If Bit Set JSETInstructio
- Page 377 and 378: JSR Jump to Subroutine JSRInstructi
- Page 379 and 380: JSSET Jump to Subroutine if Bit Set
- Page 381 and 382: JSSETJump to Subroutine if Bit SetJ
- Page 383 and 384: JSSET Jump to Subroutine if Bit Set
- Page 385 and 386: LSL Logical Shift Left LSLCondition
- Page 387 and 388: LSR Logical Shift Right LSRConditio
- Page 389 and 390: LUALoad Updated AddressLUACondition
- Page 391 and 392: MAC Signed Multiply-Accumulate MACC
- Page 393 and 394: MACSigned Multiply-AccumulateMACTim
- Page 395 and 396: MACR Signed Multiply-Accumulate and
Jcc Jump Conditionally JccRestrictions: A Jcc instruction used within a DO loop cannot begin at the address LAwithin that DO loop.A Jcc instruction cannot be repeated using the REP Instruction.Example:JNN - (R4);jump to P:(R4) -1 if not normalizedExplanation <strong>of</strong> Example: In this example, program execution is transferred to theaddress P:(R4)-1 if the result is not normalized. Note that the contents <strong>of</strong> address registerR4 are predecremented by 1, and the resulting address is then loaded into the programcounter (PC) if the specified condition is true. If the specified condition is not true,no jump is taken, and the program counter is incremented by one.Condition Codes:15 14 13 12 11 10 9 8 7 6 5 4I LF I OM I T I" I 81 I 80 I 11 I 10 I 8 I L E I uThe condition codes are not affected by this instruction.Instruction Format:Jcc xxxeeR3 2 oN I z I vOpcode:23 16 15 8 710 0 0 0 1 1 1 ole e e e a a a alaoa a a a a a al-