section 7 - Index of

section 7 - Index of section 7 - Index of

11.07.2015 Views

LSR Logical Shift Right LSROperation:47 24O~ I -----I.~ I ~ C (parallel move)Assembler Syntax:LSR D (parallel move)Description: Logically shift bits 47-24 of the destination operand D one bit to the rightand store the result in the destination accumulator. Prior to instruction execution, bit 24 ofD is shifted into the carry bit C, and a zero is shifted into bit 47 of the destination accumulatorD. This instruction is a 24-bit operation. The remaining bits of the destination operandD are not affected.Example:LSR A 1 A 1, N4 ;shift A 1 one bit to the right, set up N4Before ExecutionA ~I ___ $3_7:_44_44_45_:8_28_1_80 __ ~SRI ~ ______ $_03_00_~After ExecutionA 1'--_$_37_:2_22_22_2:_82_81_80_---'SR~I ________ $0_3_01_---'Explanation of Example: Prior to execution, the 56-bit A accumulator contains thevalue $37:444445:828180. The execution of the LSR A instruction shifts the 24-bit valuein the A1 register one bit to the right and stores the result back in the A1 register.

LSR Logical Shift Right LSRCondition Codes:15 14 13 12 11 10 9 8 7 6 5 4 3 2 0I: IOMI T 1**J:, I S0 '1111~I.. s I LIE I UceRN I z v 1:.1S - Computed according to the definition in A.S CONDITION CODE COMPUTATIONL - Set if data limiting has occurred during parallel moveN - Always clearedZ- Set if bits 47-24 of A or B result are zeroV - Always clearedC - Set if bit 24 of A or B was set prior to Instruction executionInstruction Format:LSR DOpcode:23 8 7DATA BUS MOVE FIELD I 0 0OPTIONAL EFFECTIVE ADDRESS EXTENSION4 3Old 0oInstruction Fields:DdADB 1Timing: 2+mv oscillator clock cyclesMemory: 1 +mv program words

LSR Logical Shift Right LSROperation:47 24O~ I -----I.~ I ~ C (parallel move)Assembler Syntax:LSR D (parallel move)Description: Logically shift bits 47-24 <strong>of</strong> the destination operand D one bit to the rightand store the result in the destination accumulator. Prior to instruction execution, bit 24 <strong>of</strong>D is shifted into the carry bit C, and a zero is shifted into bit 47 <strong>of</strong> the destination accumulatorD. This instruction is a 24-bit operation. The remaining bits <strong>of</strong> the destination operandD are not affected.Example:LSR A 1 A 1, N4 ;shift A 1 one bit to the right, set up N4Before ExecutionA ~I ___ $3_7:_44_44_45_:8_28_1_80 __ ~SRI ~ ______ $_03_00_~After ExecutionA 1'--_$_37_:2_22_22_2:_82_81_80_---'SR~I ________ $0_3_01_---'Explanation <strong>of</strong> Example: Prior to execution, the 56-bit A accumulator contains thevalue $37:444445:828180. The execution <strong>of</strong> the LSR A instruction shifts the 24-bit valuein the A1 register one bit to the right and stores the result back in the A1 register.

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

Saved successfully!

Ooh no, something went wrong!