11.07.2015 Views

section 7 - Index of

section 7 - Index of

section 7 - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

BCHG Bit Test and Change BCHGExplanation <strong>of</strong> Example: Prior to execution, the 24-bit X location X:$FFE2 (lID port Bdata direction register) contains the value $000000. The execution ~f the BCHG#$7,X:«$FFE2 instruction tests the state <strong>of</strong> the 7th bit in X:$FFE2, sets the carry bit Caccordingly, and then complements the 7th bit in X:$FFE2.Condition Codes:I LF I OM I T 1·* I 81 I 80 I 11~ MR15 14 13 12 11 10 9 87654321 0CCR Condition Codes:For destination operand SR:C - Changed if bit 0 is specified. Not affected otherwise.V - Changed if bit 1 is specified. Not affected otherwise.Z - Changed if bit 2 Is specified. Not affected otherwise.N - Changed if bit 3 is specified. Not affected otherwise.U - Changed if bit 4 is specified. Not affected otherwise.E - Changed if bit 5 is specified. Not affected otherwise.L - Changed if bit 6 is specified. Not affected otherwise.S - Changed if bit 7 is specified. Not affected otherwise.For destination operand A or B:S -Computed according to the definition. See Notes on page A-47.L - Set if data limiting has occurred. See Notes on page A-47.E - Not affectedU - Not affectedN - Not affectedZ - Not affectedV - Not affectedC - Set if bit tested is set. Cleared otherwise.

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

Saved successfully!

Ooh no, something went wrong!