section 7 - Index of

section 7 - Index of section 7 - Index of

11.07.2015 Views

JSETJump If Bit SetJSETOperation:If S[n]=O, then xxxx-+PCelse PC+ 1-+PCAssembler Syntax:JSET #n,X:ea,xxxxIf S[n]=1 , then xxxx-+PCelse PC+1-+PCIf S[n]=1 , then xxxx-+PCelse PC+1-+PCIf S[n]=1 , then XXXX -+PCelse PC+ 1-+PCIf S[n]=1 , then xxxx-+PCelse PC+ 1-+PCIf S[n]=1 , then XXXX -+PCelse PC+1-+PCIf S[n]=1 , then xxxx-+PCelse PC+ 1-+PCIf S[n]=1 , then xxxx-+PCelse PC+ 1-+PCJSETJSETJSETJSETJSETJSETJSET#n,X:ea,xxxx#n,X:aa,xxxx#n,X:pp,xxxx#n,Y:ea,xxxx#n,Y:aa,xxxx#n,Y:pp,xxxx#n,S,xxxx-Description: 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 set. The bit tobe tested is selected by an immediate bit number from 0-23. If the specified memory bitis not set, 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 1/0 short addressing modes may also be used.

JSET Jump if Bit Set JSETRestrictions: A JSET instruction used within a DO loop cannot specify the loopaddress (LA) as its target.A JSET located at LA, LA-1, or LA-2 of a DO loop cannot specify the program controllerregisters SR, SP, SSH, SSL, LA, or LC as its target.JSET SSH or JSET SSL cannot follow an instruction that changes the SP.A JSET instruction cannot be repeated using the REP instruction.Example:JSET #12,X:«$FFF2,$4321;$4321 ~(PC) if bit 12 (SCI COD) is setExplanation of Example: In this example, program execution is transferred to theaddress P:$4321 if bit 12 (SCI COD) of the 16-bit read/write I/O register X:$FFF2 is aone. If the specified bit is not set, no jump is taken and the program counter (PC) is incrementedby 1.Condition Codes:I LF I DM I T I·· I 81 I 80 I 11~ MR15 14 13 12 11 10 9 8 7 6 5 4 3 2 o• ~ GGRNz I vFor destination operand A or B:S -Computed according to the definition. See Notes on page A-135.L - Set if data limiting has occurred. See Notes on page A-135.E - Not affectedU - Not affectedN - Not affectedZ - Not affectedV - Not affectedC - Not affectedFor other source operands:The condition codes are not affected.

JSET Jump if Bit Set JSETRestrictions: A JSET instruction used within a DO loop cannot specify the loopaddress (LA) as its target.A JSET located at LA, LA-1, or LA-2 <strong>of</strong> a DO loop cannot specify the program controllerregisters SR, SP, SSH, SSL, LA, or LC as its target.JSET SSH or JSET SSL cannot follow an instruction that changes the SP.A JSET instruction cannot be repeated using the REP instruction.Example:JSET #12,X:«$FFF2,$4321;$4321 ~(PC) if bit 12 (SCI COD) is setExplanation <strong>of</strong> Example: In this example, program execution is transferred to theaddress P:$4321 if bit 12 (SCI COD) <strong>of</strong> the 16-bit read/write I/O register X:$FFF2 is aone. If the specified bit is not set, no jump is taken and the program counter (PC) is incrementedby 1.Condition Codes:I LF I DM I T I·· I 81 I 80 I 11~ MR15 14 13 12 11 10 9 8 7 6 5 4 3 2 o• ~ GGRNz I vFor destination operand A or B:S -Computed according to the definition. See Notes on page A-135.L - Set if data limiting has occurred. See Notes on page A-135.E - Not affectedU - Not affectedN - Not affectedZ - Not affectedV - Not affectedC - Not affectedFor other source operands:The condition codes are not affected.

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

Saved successfully!

Ooh no, something went wrong!