section 7 - Index of

section 7 - Index of section 7 - Index of

11.07.2015 Views

C (Carry Bit)Set if a carry is generated out of the MS bit of the A or B result ofan addition or if a borrow is generated out of the MS bit of the Aor B result of a subtraction. The carry or borrow is generated outof bit 55 of the A or B result. Cleared otherwise.Table A-5 shows how each condition code bit is affected by each instruction. Exceptionsto the standard definitions given above are indicated by a number or a "?". Consult thecorresponding note for the special definition that applies in each particular case.Although many of the instructions allow optional parallel moves, Table A-5 applies whenthere are no parallel moves associated with an instruction. With this restriction, thestates of the condition code bits are determined only by the execution of the instructionitself. However, the Sand L bits may be determined differently than shown in the tablewhen a parallel move is associated with the instruction. When using an optional parallelmove, refer to the individual instruction's detailed description in Section A.7 to see howthe Sand L bits are determined.-

Table A-5 Condition Code Computations for Instructions (No Parallel Move)Mnemonic S L E U N Z V C Notes Mnemonic S L E U N Z V C NotesABS - ,/ ,/ ,/ ,/ ,/ ,/- LSR - - - - 1 9 1 11ADC - ,/ ,/ ,/ ,/ ,/ ,/ ,/ LUA - - - - - - - -ADD - ,/ ,/ ,/ ,/ ,/ ,/ ,/ MAC - ,/ ,/ ,/ ,/ ,/ ,/ -ADDL - ,/ ,/ ,/ ,/ ,/ 2 ,/ MACR - ,/ ,/ ,/ ,/ ,/ ,/ -ADDR -,/ ,/ ,/ ,/ ,/ ,/ ,/ MOVE ,/ ,/ - - - - - -AND - - - - 8 9 1 - MOVEC ? ? ? ? ? ? ? ? 13ANDI ? ? ? ? ? ? ? ? 3 MOVEM ? ? ? ? ? ? ? ? 13ASL - ,/ ,/ ,/ ,/ ,/ 2 4 MOVEP ? ? ? ? ? ? ? ? 13ASR - - ,/ ,/ ,/ ,/ 1 5 MPY - - ,/ ,/ ,/ ,/ 1 -BCHG ? ? ? ? ? ? ? ? 14 MPYR - - ,/ ,/ ,/ ,/ 1 -BCLR ? ? ? ? ? ? ? ? 14 NEG - ,/ ,/ ,/ ,/ ,/ ,/ -BSET ? ? ? ? ? ? ? ? 14 NOP - - - - - - - -BTST ? ? - - - - - ? 14 NORM - ,/ ,/ ,/ ,/ ,/ 2 -CLR - - ,/ ,/ ,/ ,/ 1 - NOT - - - - 8 9 1 -CMP - ,/ ,/ ,/ ,/ ,/ ,/ ,/ OR - - - - 8 9 1 -CMPM - ,/ ,/ ,/ ,/ ,/ ,/ ,/ ORI ? ? ? ? ? ? ? ? 6DEBUG - - - - - - - - REP ,/ ,/ - - - - - -DEBUGec - - - - - - - - RESET - - - - - - - -DEC - ,/ ,/ ,/ ,/ ,/ ,/ ,/ RND - ,/ ,/ ,/ ,/ ,/ ,/ -DIV - ,/ - - - - 2 7 ROL - - - - 8 9 1 10DO ,/ ,/ - - - - - - ROR - - - - 8 9 1 11ENDDO - - - - - - - - RTI ? ? ? ? ? ? ? ? 12EOR - - - - 8 9 1 - RTS - - - - - - - -ILLEGAL - - - - - - - - SBC - ,/ ,/ ,/ ,/ ,/ ,/ ,/INC - ,/ ,/ ,/ ,/ ,/ ,/ ,/ STOP - - - - - - - -Jcc - - - - - - - - SUB - ,/ ,/ ,/ ,/ ,/ ,/ ,/JCLR ? ? - - - - - - 14 SUBL - ,/ ,/ ,/ ,/ ,/ 2 ,/JMP - - - - - - - - SUBR - ,/ ,/ ,/ ,/ ,/ ,/ ,/JScc - - - - - - - - SWI - - - - - - - -JSCLR ? ? - - - - - - 14 Tee - - - - - - - -JSET ? ? - - - - - - 14 TFR - - - - - - - -JSR - - - - - - - - TST - - ,/ ,/ ,/ ,/ 1 -JSSET ? ? - - - - - - 14 WAIT - - - - - - - -LSL - - - - 8 9 1 10where: ,/ Set according to the standard definition of the operation- Not affected by the operation? or' Set according to a special definition (refer to the following notes) and can be a 0 or 1-

Table A-5 Condition Code Computations for Instructions (No Parallel Move)Mnemonic S L E U N Z V C Notes Mnemonic S L E U N Z V C NotesABS - ,/ ,/ ,/ ,/ ,/ ,/- LSR - - - - 1 9 1 11ADC - ,/ ,/ ,/ ,/ ,/ ,/ ,/ LUA - - - - - - - -ADD - ,/ ,/ ,/ ,/ ,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CLR ? ? - - - - - - 14 SUBL - ,/ ,/ ,/ ,/ ,/ 2 ,/JMP - - - - - - - - SUBR - ,/ ,/ ,/ ,/ ,/ ,/ ,/JScc - - - - - - - - SWI - - - - - - - -JSCLR ? ? - - - - - - 14 Tee - - - - - - - -JSET ? ? - - - - - - 14 TFR - - - - - - - -JSR - - - - - - - - TST - - ,/ ,/ ,/ ,/ 1 -JSSET ? ? - - - - - - 14 WAIT - - - - - - - -LSL - - - - 8 9 1 10where: ,/ Set according to the standard definition <strong>of</strong> the operation- Not affected by the operation? or' Set according to a special definition (refer to the following notes) and can be a 0 or 1-

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

Saved successfully!

Ooh no, something went wrong!