11.07.2015 Views

section 7 - Index of

section 7 - Index of

section 7 - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

sec Subtract Long with Carry secExplanation <strong>of</strong> Example: This example illustrates long-word double-precision (96-bit)subtraction using the SBe instruction. Prior to execution <strong>of</strong> the SUB and SBe instructions,the 96-bit value $000000:000001 :800000:000000 is loaded into the Y and X registers(X:y) , respectively. The other double-precision 96-bit value$000000:000003:000000:000000 is loaded into the B and A accumulators (B:A), respectively.Since the 48-bit value loaded into the A accumulator is automatically signextended to 56 bits and the other 48-bit long-word operand is internally sign extended to56 bits during instruction execution, the carry bit will be set correctly after the execution<strong>of</strong> the SUB X,A instruction. The SBe Y,B instruction then produces the correct MS 56-bitresult. The actual 96-bit result is stored in memory using the A10 and B10 operands(instead <strong>of</strong> A and B) because shifting and limiting is not desired.

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

Saved successfully!

Ooh no, something went wrong!