11.07.2015 Views

section 7 - Index of

section 7 - Index of

section 7 - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

MOVEM Move Program Memory MOVEMExample:MOVEM P:(R5+N5), LC:move P :(R5+N5) into the loop counter (LC)Before ExecutionAfter ExecutionP:(R5 + N5) L-I ___ $_00_0_11_6 __----' P:(R5 + N5) 1 ......___$_00_0_116 ___--'~I ......____$O_OO_O ___ ~LC I$0116~-----------~Explanation <strong>of</strong> Example: Prior to execution, the 16-bit loop counter (LC) register containsthe value $0000, and the 24-bit program (P) memory location P:(R5+N5) containsthe value $000116. The execution <strong>of</strong> the MOVEM P:(R5+N5), LC instruction moves the16 LS bits <strong>of</strong> the 24-bit program (P) memory location P:(R5+N5) into the 16-bit LC register.Condition Codes:I LF I DM I T I ** I 81 I 80 I 11I 10 I s I L I E I u15 14 13 12 11 10 9 8 7 6 5 4.... MR ~ lilli( CCR3 2N I z°For D=SR operand:S - Set according to bit 7 <strong>of</strong> the source operandL.- Set according to bit 6 <strong>of</strong> the source operandE - Set according to bit 5 <strong>of</strong> the source operandU - Set according to bit 4 <strong>of</strong> the source operandN - Set according to bit 3 <strong>of</strong> the source operandZ - Set according to bit 2 <strong>of</strong> the source operandV - Set according to bit 1 <strong>of</strong> the source operandC - Set according to bit 0 <strong>of</strong> the source operand-For D*SR operand:S - Computed according to the definition in A.5 CONDITION CODE COMPUTATIONL - Set if data limiting has occurred during the move

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

Saved successfully!

Ooh no, something went wrong!