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.

DO Start Hardware Loop DOInstruction Format:DO S, exprOpcode:23 20 19 16 15 8 7 0o 0 0 01 0 1 1 o 11 1 D DID D D DID 0 0 01 0 o 0 0ABSOLUTE ADDRESS EXTENSIONInstruction Fields:S=6-bit Source operand = 000000,expr=16-bit Absolute Address in 24-bit extension wordSSource D D D D D D S/L Source D D D D D DXO 0 0 0 1 0 0 no SR 1 1 1 0 0 1X1 0 0 0 1 0 1 no OMR 1 1 1 0 1 0YO 0 0 0 1 1 0 no SP* 1 1 1 0 1 1Y1 0 0 0 1 1 1 no SSL** 1 1 1 1 0 1AO 0 0 1 0 0 0 no LA 1 1 1 1 1 0BO 0 0 1 0 0 1 no LC 1 1 1 1 1 1A2 0 0 1 0 1 0 no RO-R7 0 1 0 r r rB2 0 0 1 1 0 0 no NO-N7 0 1 1 n n nA1 0 0 1 1 0 1 no MO-M7 1 0 0 m m mA 0 0 1 1 1 0 yes [see Notes on page A-97]B 0 0 1 1 1 1 yes [see Notes on page A-97]where rrr=Rn registerwhere nnn=Nn registerwhere mmm=Mn register-*For DO SP, expr The actual value that will be loaded into the loop counter (LC) isthe value <strong>of</strong> the stack pointer (SP) before the execution <strong>of</strong> theDO instruction, incremented by 1.Thus, if SP=3, the execution <strong>of</strong> the DO SP,expr instruction will load the loopcounter (LC) with the value LC=4.**For DO SSL, expr The loop counter (LC) will be loaded with its previous valuewhich was saved on the stack by the DO instruction itself.

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

Saved successfully!

Ooh no, something went wrong!