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 instruction
once
twice
thrice
four times
Answer: Option
Explanation:

When RAL instruction is used once the number is doubled.

Discussion:
20 comments Page 1 of 2.

Navya said:   1 decade ago
Sir,

Can you explain what is RAL?

K.Supriya said:   1 decade ago
Sir, Please explain this RAL ?

Alpesh said:   1 decade ago
Sir, What is the RAL?

Kaushik R said:   1 decade ago
RAL means rotate accumulator to left with carry.

Sambhji said:   1 decade ago
How answer is thrice, can you explain?

Saurabh said:   1 decade ago
There is no multiplication instruction in the 8085.

These operations are equivalent to multiplying by 2:

1) Shift left by 1 (shifting left by n is multiplying by 2^n).

2) Add the value to itself once.

So 2^3 = 8.

Khan. said:   9 years ago
Sir, not understand this. Please explain me in detail.

Quant said:   9 years ago
Sir I can't understand please can you explain in a simple way.

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.
(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)


Post your comments here:

Your comments will be displayed after verification.