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.

ENDDO End Current DO Loop ENDDOExplanation <strong>of</strong> Example: This example illustrates the use <strong>of</strong> the ENDDO instruction toterminate the current DO loop. The value <strong>of</strong> the loop counter (LC) is compared with thevalue in the Y1 register to determine if execution <strong>of</strong> the DO loop should continue. Notethat the ENDDO instruction updates certain program controller registers but does notautomatically jump past the end <strong>of</strong> the DO loop. Thus, if this action is desired, a JMPinstruction (i.e., JMP NEXT as previously shown) must be included after the ENDDOinstruction to transfer program control to the first instruction past the end <strong>of</strong> the DO loop.Condition Codes:15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0I"F I DM I T I ** I 81 I 80 I " I 10 I 8 I l I E I U N I zOpcode:23 16 15 8 7 o10 0 0 0 0 0 0 o 10 0 0 0 0 0 0 0 11 o 0 0 1 1 0 01Instruction Fields:NoneTiming: 2 oscillator clock cyclesMemory: 1 program word

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

Saved successfully!

Ooh no, something went wrong!