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.

X:R X Memory and Register Data Move X:RClass II Example:MAC XO,YO,A 8,X:(R1)+ XO,8;multiply XO and YO and accumulate .in A;move 8 to X memory location pointed to;by R1 and postincrement R1;move XO to 8Before ExecutionAfter ExecutionXO I $400000 XO I $400000YO I $600000 YO I $600000AI$00:000000:000000 AI$00:300000:000000BI$FF:7FFFFF:000000 BI$00:400000:000000X:$1234 I $000000 X:$1234 I $800000R1IIII $1234 R1 I $1235-Explanation <strong>of</strong> the Class II Example: Prior to execution, the 24-bit registers XO and YOcontain $400000 and $600000, respectively. The 56-bit accumulators A and 8 containthe values $00:000000:000000 and $FF:7FFFFF:000000, respectively. The 24-bit Xmemory location X:$1234 contains the value $000000, and the 16-bit R1 register containsthe value $1234. Execution <strong>of</strong> the parallel move portion <strong>of</strong> the instruction(8,X:(R1 )+XO,8).JT1oves the 24-bit limited value <strong>of</strong> 8 ($800000) into the X:$1234 memorylocation and the ,.)(0 register ($400000) into accumulator 81 ($400000), sign extends 81into 82 ($00), and zero fills 80 ($000000). It also increments R1 to $1235.

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

Saved successfully!

Ooh no, something went wrong!