Electronics and Communication Engineering - Microprocessors - Discussion
Discussion Forum : Microprocessors - Section 1 (Q.No. 7)
7.
To multiply a number by 8 in 8085 we have to use
RAL
instructionAnswer: Option
Explanation:
When RAL instruction is used once the number is doubled.
Discussion:
20 comments Page 1 of 2.
Meena said:
9 years ago
The answer is simple.
Let's take a value 0100 ---> 4.
1st time: Just apply left shift operation on that value 01000 ---> 8(4 * 2^1).
2nd time: again do the same thing 010000 ---> 16(4 * 2^2).
3rd time: again left shift the value 0100000 ---> 32(4 * 2^3).
So by doing three times left shift we are getting eight times of that value.
So the answer is thrice.
Let's take a value 0100 ---> 4.
1st time: Just apply left shift operation on that value 01000 ---> 8(4 * 2^1).
2nd time: again do the same thing 010000 ---> 16(4 * 2^2).
3rd time: again left shift the value 0100000 ---> 32(4 * 2^3).
So by doing three times left shift we are getting eight times of that value.
So the answer is thrice.
(1)
Sagar prajapat said:
9 years ago
Please understand;
1<<1=2 0001<<1= 0010.
1<<2=4 0001<<2= 0100.
1<<3=8 0001<<3= 1000.
1<<1=2 0001<<1= 0010.
1<<2=4 0001<<2= 0100.
1<<3=8 0001<<3= 1000.
(1)
Phope said:
9 years ago
#Meena.
8 time, please explain how the last line?
8 time, please explain how the last line?
Mansi said:
5 years ago
How can we perform multiplication using RAL if multiplier is odd number i.e,3*5? Please tell me.
RAMESH KUMAR said:
6 years ago
Thanks all for explaining.
Chandan jeeva said:
7 years ago
4 is the answer.
00001.
Perform left shift by four times then it will be come 10000=16.
In microprocessor to multiply any number we have to move the data to accumilatorand RAL is used how much time we have to multiply that number account to above calculation.
00001.
Perform left shift by four times then it will be come 10000=16.
In microprocessor to multiply any number we have to move the data to accumilatorand RAL is used how much time we have to multiply that number account to above calculation.
Prasann said:
7 years ago
If it is multiplied by 16 means, what is the answer?
Manjunatha said:
8 years ago
@Priyank.
11000110 (B) is = 198 (D), RAL instruction is used as Multiplication.
11000110 (B) is = 198 (D), RAL instruction is used as Multiplication.
Priyank said:
8 years ago
How can RAL lead to multiplication as in this instruction the MSB is loaded into carrying flag while moving the whole data to the left by one bit and simultaneously moving the initial carry flag value to the LSB?
Let, Acc-: 01100011b = 99d,
C-: 0
Now, after RAL instruction the value in Acc will be -: 11000110b = 188d not equal to 2 * 99.
So, RAL cannot perform multiplication.
Let, Acc-: 01100011b = 99d,
C-: 0
Now, after RAL instruction the value in Acc will be -: 11000110b = 188d not equal to 2 * 99.
So, RAL cannot perform multiplication.
Abyson said:
8 years ago
Very helpful, Thanks @Meena.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers