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.

R:Y Register and Y Memory Data Move R:YClass II Example:MAC XO,YO,A YO,B B,Y:(R1)+Before ExecutionXO I $400000;multiply XO and YO and accumulate in A;move B to Y memory location pointed to;by R1 and postincrement R1;move YO to BAfter Executionxo I $400000YO I $600000YO I $600000AI$00:000000:000000AI$00:300000:000000BI$00:800000:000000BI$00:600000:000000Y:$1234 I $000000Y:$1234 I$7FFFFFR1I$1234R1 I $1235Explanation <strong>of</strong> the Class II Example: Prior to execution, the 24-bit registers, XO andYO, contain $400000 and $600000, respectively. The 56-bit accumulators A and B containthe values $00:000000:000000 and $00:800000:000000 (+1.0000), respectively.The 24-bit Y memory location Y:$1234 contains the value $000000, and the 16-bit R1register contains the value $1234. Execution <strong>of</strong> the parallel move portion <strong>of</strong> the instruction(yO,B B,Y:(R1)+) moves the YO register ($600000) into accumulator B1 ($600000),sign extends B1 into B2 ($00), and zero fills BO ($000000). It also moves the 24-bit limitedvalue <strong>of</strong> B ($7FFFFF) into the Y:$1234 memory location and increments R1 to$1235.

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

Saved successfully!

Ooh no, something went wrong!