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.

TST Test Accumulator TSTOperation:Assembler Syntax:, s-o (parallel move) TST S (parallel move)Description: Compare the specified source accumulator S with zero and set the conditioncodes accordingly. No result is stored although the condition codes are updated.Example:TST A #$345678,B ;set CCR bits for value in A, update BBefore ExecutionAI~--------------~$01 :020304:000000 A~I ____After Execution$0_1_:02_0_30_4:_00_00_00 __ ~CCR 1-1__________ $0_3_00 __----'CCRI~ __________ $0_33_0 __ ~Explanation <strong>of</strong> Example: Prior to execution, the 56-bit A accumulator contains thevalue $01 :020304:000000, and the 16-bit condition code register contains the value$0300. The execution <strong>of</strong> the TST A instruction compares the value in the A register withzero and updates the condition code register accordingly. The contents <strong>of</strong> the A accumulatorare not affected.Condition Codes:15 14 13 12 11 -10 9 8 7 6 5 4 3 2 0I LF I OM I T I ** I 81 I 80 I 11 I 10 I 8 I LIE I U N I z I v I : I.... MR ....... CCR _.-S -L -E -U -N -Z -V -Computed according to the definition in A.5 CONDITION CODE COMPUTATIONSet if data limiting has occurred during parallel moveSet if the signed integer portion <strong>of</strong> A or B result is in useSet if A or B result is unnormalizedSet if bit 55 <strong>of</strong> A or B result is setSet if A or B result equals zeroAlways clearedNote: The definitions <strong>of</strong> the E and U bits vary according to the scaling mode being used.Refer to Section A.5 CONDITION CODE COMPUTATION for complete details.

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

Saved successfully!

Ooh no, something went wrong!