Which register is considered as the destination register for any arithmetic operation?
Submitted by: MuhammadThe ‘A' register called the accumulator is used as the destination register.
Example:
ADD R2, # 12H
This is invalid as 12 is to be added to value present in R2 and data is also stored in R2.
ADD A,# 12H
This is valid as 12 is to be added to the value present in accumulator. Foregoing discussion explains why register A is used as accumulator.
Explain LCALL.
☛ It is called long call and is a 3 byte instruction.
☛ Here 1st byte is used for opcode &2nd & 3rd bytes are used for address of target subroutine.
☛ Call subroutine can be used anywhere within 64 K- byte address space.
☛ Processor automatically saves on stack the address of instruction immediately below LCALL.
☛ After execution instruction return (RET) transfers control back to next instruction.
Submitted by: Muhammad
Example:
ADD R2, # 12H
This is invalid as 12 is to be added to value present in R2 and data is also stored in R2.
ADD A,# 12H
This is valid as 12 is to be added to the value present in accumulator. Foregoing discussion explains why register A is used as accumulator.
Explain LCALL.
☛ It is called long call and is a 3 byte instruction.
☛ Here 1st byte is used for opcode &2nd & 3rd bytes are used for address of target subroutine.
☛ Call subroutine can be used anywhere within 64 K- byte address space.
☛ Processor automatically saves on stack the address of instruction immediately below LCALL.
☛ After execution instruction return (RET) transfers control back to next instruction.
Submitted by: Muhammad
Read Online Advanced Embedded Systems Job Interview Questions And Answers
Top Advanced Embedded Systems Questions
☺ | Tell me what is the difference between microprocessor and microcontroller? |
☺ | Do you know what is lst file? |
☺ | What is high-end embedded processor? |
☺ | What is interrupt latency? How can you reduce it? |
☺ | What is embedded system in a computer system? |
Top New Artificial Intelligence Categories
☺ | Virtual Assistant Interview Questions. |
☺ | Artificial Intelligence Robotics Interview Questions. |
☺ | AI Fuzzy Logic Interview Questions. |
☺ | Artificial Intelligence Neural Networks Interview Questions. |
☺ | Artificial Intelligence Games Interview Questions. |