section 7 - Index of

section 7 - Index of section 7 - Index of

11.07.2015 Views

JCLR Jump If Bit Clear JCLROperation:Assembler Syntax:If S[n]=O, then xxxx-+PC JCLR #n,X:ea,xxxxelse PC+ 1-+PCIf S[n]=O, then XXXX -+PC JCLR #n,X:aa,xxxxelse PC+ 1 -+PCIf S[n]=O, then XXXX -+PC JCLR #n,X:pp,xxxxelse PC+ 1 -+PCIf S[n]=O, then XXXX -+PC JCLR #n,Y:ea,xxxxelse PC+ 1 -+PCIf S[n]=O, then XXXX -+PC JCLR #n,Y:aa,xxxxelse PC+ 1 -+PCIf S[n]=O, then XXXX -+PC JCLR #n,Y:pp,xxxxelse PC+ 1 -+PCIf S[n]=O, then XXXX -+PC JCLR #n,S,xxxxelse PC+ 1 -+PCDescription: Jump to the 16-bit absolute address in program memory specified in theinstruction's 24-bit extension word if the nth bit of the source operand S is clear. The bit tobe tested is selected by an immediate bit number from 0-23. If the specified memory bitis not clear, the program counter (PC) is incremented and the absolute address in theextension word is ignored. However, the address register specified in the effectiveaddress field is always updated independently of the state of the nth bit. All address registerindirect addressing modes may be used to reference the source operand S. AbsoluteShort and I/O Short addressing modes may also be used.-

JCLR Jump If Bit Clear JCLRRestrictions: A JCLR instruction cannot be repeated using the REP instruction.A JCLR located at LA, LA-1, or LA-2 of the DO loop cannot specify the program controllerregisters SR, SP, SSH, SSL, LA, or LC as its target.JCLR SSH or JCLR SSL cannot follow an instruction that changes the SP.Example:JCLR #$5,X:«$FFF1 ,$1234;go to P:$1234 if bit 5 in SCI SSR is clearExplanation of Example: In this example, program execution is transferred to theaddress P:$1234 if bit 5 (PE) of the a-bit read-only X memory location X:$FFF1 (1/0 SCIinterface status register) is a zero. If the specified bit is not clear, no jump is taken, andthe program counter (PC) is incremented by one.Condition Codes:15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0I LF I OM I T I" I 51 I SO I 11 I 10 I 5 I LIE I u I N I z v I ~ I.~ MR ...... CCR -.For destination operand A or 8:S -Computed according to the definition. See Notes on page A-115.L - Set if data limiting has occurred. See Notes on page A-115.E - Not affectedU - Not affectedN - Not affectedZ - Not affectedV - Not affectedC - Not affectedFor other source operands:The condition codes are not affected.

JCLR Jump If Bit Clear JCLROperation:Assembler Syntax:If S[n]=O, then xxxx-+PC JCLR #n,X:ea,xxxxelse PC+ 1-+PCIf S[n]=O, then XXXX -+PC JCLR #n,X:aa,xxxxelse PC+ 1 -+PCIf S[n]=O, then XXXX -+PC JCLR #n,X:pp,xxxxelse PC+ 1 -+PCIf S[n]=O, then XXXX -+PC JCLR #n,Y:ea,xxxxelse PC+ 1 -+PCIf S[n]=O, then XXXX -+PC JCLR #n,Y:aa,xxxxelse PC+ 1 -+PCIf S[n]=O, then XXXX -+PC JCLR #n,Y:pp,xxxxelse PC+ 1 -+PCIf S[n]=O, then XXXX -+PC JCLR #n,S,xxxxelse PC+ 1 -+PCDescription: Jump to the 16-bit absolute address in program memory specified in theinstruction's 24-bit extension word if the nth bit <strong>of</strong> the source operand S is clear. The bit tobe tested is selected by an immediate bit number from 0-23. If the specified memory bitis not clear, the program counter (PC) is incremented and the absolute address in theextension word is ignored. However, the address register specified in the effectiveaddress field is always updated independently <strong>of</strong> the state <strong>of</strong> the nth bit. All address registerindirect addressing modes may be used to reference the source operand S. AbsoluteShort and I/O Short addressing modes may also be used.-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!