Explain LDA, STA and DAA instructions

1 Answer

Answer :

LDA  copies  the  data  byte  into  accumulator  from  the  memory  location  specified by the 16-bit address. STA copies the data byte from theaccumulator in  the  memory  location  specified  by  16-bit  address.  DAA  changes  the  contents  of  the accumulator from binary to 4-bit BCD digits.

Related questions

Description : Memory access in RISC architecture is limited to instructions a. CALL and RET b. PUSH and POP c. STA and LDA d. MOV and JMP

Last Answer : c. STA and LDA

Description : In 8086 microprocessor one of the following instructions is executed before an arithmeticoperation a. AAM b) AAD c) DAS d) DAA

Last Answer : b) AAD

Description : In 8086 microprocessor one of the following instructions is executed before an arithmetic operation a) AAM b) AAD c) DAS d) DAA

Last Answer : b) AAD

Description : What is the output of the following code AL=88 BCD, CL=49 BCD ADD AL, CL DAA a) D7, CF=1 b) 37, CF=1 c) 73, CF=1 d) 7D, CF=1

Last Answer : a) D7, CF=1

Description : Then number of T-states of the instruction STA in 8085 microprocessor is A) 10 B) 12 C) 13 D) 16 

Last Answer : Then number of T-states of the instruction STA in 8085 microprocessor is 13 

Description : Define stack and explain stack related instructions

Last Answer : The stack is a group of memory locations in the R/W memory thatis used for the temporary storage of binary information during the execution of the program. The stack related instructions are PUSH & POP

Description : Explain the purpose of the I/O instructions IN and OUT.

Last Answer : The IN instruction is used to move data from an I/O port into the accumulator. The OUT instruction is used to move data from the accumulator to an I/O port. The IN & OUT instructions are used only on microprocessor, which use a separate address space for interfacing.

Description : List the four instructions which control the interrupt structure of the 8085 microprocessor.

Last Answer : • DI ( Disable Interrupts ) • EI ( Enable Interrupts ) • RIM ( Read Interrupt Masks ) • SIM ( Set Interrupt Masks )

Description : What is the difference between the shift and rotate instructions?

Last Answer : A rotate instruction is a closed loop instruction. That is, the data moved out at one end is put back in at the other end. The shift instruction loses the data that is moved out of the last bit locations.

Description : List out the five categories of the 8085 instructions. Give examples of the instructions for each group.

Last Answer : • Data transfer group – MOV, MVI, LXI. • Arithmetic group – ADD, SUB, INR. • Logical group –ANA, XRA, CMP. • Branch group – JMP, JNZ, CALL. • Stack I/O and Machine control group – PUSH, POP, IN, HLT.

Description : When a subroutine is called, the address of the instruction following the CALL instructions stored in/on the a. stack pointer b. accumulator c. program counter d. stack

Last Answer : d. stack

Description : The status that cannot be operated by direct instructions isa) Cy b) Z c) P d) AC

Last Answer : d) AC

Description : Computer instructions written with the use of English words instead of binary machine code is called a. Mnemonics b. Symbolic code c. Gray codes d. Opcode

Last Answer : b. Symbolic code

Description : The instructions for starting the computer are house on a. Random access memory b. CD-Rom c. Read only memory chip

Last Answer : c. Read only memory chip

Description : Instructions and memory address are represented by a. Character code b. Binary codes c. Binary word d. Parity bit

Last Answer : b. Binary codes

Description : A computer program that translates one program instructions at a time into machine language is called a/an a. Interpreter b. CPU c. Compiler d. Simulator

Last Answer : a. Interpreter

Description : In latest generation computers, the instructions are executed a. Parallel only b. Sequentially only c. Both sequentially and parallel d. All of above

Last Answer : c. Both sequentially and parallel

Description : The process of starting a or restarting a computer system by loading instructions from a secondary storage device into the computer memory is called a. Duping b. Booting c. Padding d. CPS

Last Answer : b. Booting

Description : A microprocessor retries instructions from : a. Control memory b. Cache memory c. Main memory d. Virtual memory

Last Answer : c. Main memory

Description : Which of the following instruction is of logical instructions? i) CPL A ii) JC rel iii) DA A iv) ANL A, Rn v) RR A vi) CPL bit a) i, v b) v, iii, I c) iv, ii d) v, iii, ii

Last Answer : c) iv, i

Description : In 8087 coprocessor one of the following instructions is not valid a. FSIN b. FPTAN c. FIDIV d. FSQRT

Last Answer : a. FSIN

Description : IDIV and DIV instructions perform the same operations for? a) Unsigned number b) Signed number c) Signed number & Unsigned number d) none of above.

Last Answer : b) Signed number

Description : The advantage of memory mapped I/O over I/O mapped I/O is, a) Faster b) Many instructions supporting memory mapped I/O c) Require a bigger address decoder d) All the above

Last Answer : d) All the above

Description : Which of the following instructions is not available in 8085 microprocessor? (A) LDA 3850 (B) XTHL (C) push PSW (D) LDAXH

Last Answer : Which of the following instructions is not available in 8085 microprocessor? (A) LDA 3850 (B) XTHL (C) push PSW (D) LDAXH

Description : When buying a plane ticket to Paris should I just go through STA since I'm a student or is there a cheaper alternative?

Last Answer : answer:STA fare prices are sometimes the same ones you can find through Orbitz, Expedia, etc. I would go through STA if you want to get travel insurance, which you might want to do. I met a ... all (over 100) travel websites to find the best deals so you know you're getting rock bottom prices.

Description : what is the swift code of metrobank sta. cruz laguna?

Last Answer : Swift Code of Metropolitan Bank & Trust Co. is MBTCPHMM http://www.garialdo.com/

Description : Kuki is related to which sta

Last Answer : Manipur

Description : According to the PMBOK guide which of the following statements is right in terms  of using reserve analysis to determine a project budget ? a. Reserve analysis always plans contingency reserves ... not practical. e. Contingency reserves have never been a concern when planning a project budget.

Last Answer : . Reserve analysis always plans contingency reserves for unexpected project scope and  project costs, which are part of your project budget.

Description : Explain ALIGN & ASSUME

Last Answer : The ALIGN directive forces the assembler to align the nextsegment at an address divisible by specified divisor. The format is ALIGN number where number can be 2, 4, 8 or 16. Example ALIGN 8. The ASSUME ... the segment registers at execution time. Example ASSUME CS: code, DS: data, SS: stack

Description : Explain the different instruction formats with examples

Last Answer : The instruction set is grouped into the following formats • One byte instruction MOV C,A • Two byte instruction MVI A,39H • Three byte instruction JMP 2345H

Description : Explain the signals HOLD, READY and SID

Last Answer : HOLD indicates that a peripheral such as DMA controller is requesting the use of address bus, data bus and control bus. READY is used to delay the microprocessor ... slow responding peripheral is ready to send or accept data. SID is used to accept serial data bit by bit

Description : Explain priority interrupts of 8085.

Last Answer : The 8085 microprocessor has five interrupt inputs. They are TRAP, RST 7.5, RST 6.5, RST 5.5, and INTR. These interrupts have a fixed priority of interrupt service. If two or more interrupts go ... 8085 is shown in the table. Interrupts Priority TRAP RST 7.5 RST 6.5 RST 5.5 INTR

Description : Explain the difference between a JMP instruction and CALL instruction.

Last Answer : A JMP instruction permanently changes the program counter. A CALL instruction leaves information on the stack so that the original program execution sequence can be resumed.

Description : Explain Briefly The Flag Register In The 8085 Microprocessor.?

Last Answer : Answer :The flag register in 8085 is an 8-bit register which contains 5 bit positions. These five flags are of 1bit F/F and are known as zero, sign, carry, parity and auxiliary carry. ... addition and subtraction operations. The parity flag is used for results containing an even number of one's.

Description : Explain the following assembler directives. 1) DB 2) DUP 3) EQU 4) ENDs.

Last Answer : 1) DB (Define Byte or Data Byte): This is used to define a byte type variable. The range of values : 0 - 255 for unsigned numbers -128 to 127 for signed numbers This can be used ... the end of the segment The directives SEGMENT, ENDS are always enclosed in data, code, stack and extra segments.

Description : What is linker

Last Answer : A linker is a program used to join together several object files into one large object file. For large programs it is more efficient to divide the large program modules into ... & debugged. When all the modules work they are linked together to form a large functioning program.

Description : What is loader

Last Answer : The loader copies the program into the computer’s main memory at load time and begins the program execution at execution time.

Description : What is assembler

Last Answer : The assembler translates the assembly language program text which is given as input to the assembler to their binary equivalents known as object code. The time required to translate the assembly code ... time. The assembler checks for syntax errors & displays them before giving the object code.

Description : How does the microprocessor differentiate between data and instruction

Last Answer : When the first m/c code of an instruction is fetched and decoded in the instruction register, the microprocessor recognizes the number of bytes required to fetch the entire ... will be considered as data & the byte after the data will be treated as the next instruction.

Description : What is Microcontroller and Microcomputer

Last Answer : Microcontroller is a device that includes microprocessor; memory and I/O signal lines on a single chip, fabricated using VLSI technology. Microcomputer is a computer that is designed using microprocessor as its CPU. It includes microprocessor, memory and I/O.

Description : Why do we use XRA A instruction

Last Answer : The XRA A instruction is used to clear the contents of the Accumulator and store the value 00H.

Description : What is the use of bi-directional buffers?

Last Answer : It is used to increase the driving capacity of the data bus. The data bus of a microcomputer system is bi-directional, so it requires a buffer that allows the data to flow in both directions.

Description : What is the use of addressing modes, mention the different types

Last Answer : The various formats of specifying the operands are called addressing modes, it is used to access the operands or data. The different types are as follows • Immediate addressing • Register addressing • Direct addressing • Indirect addressing • Implicit addressing

Description : Mention the categories of instruction and give two examples for each category

Last Answer : The instructions of 8085 can be categorized into the following five • Data transfer MOV Rd,Rs STA 16-bit • Arithmetic ADD R DCR M • Logical XRI 8-bit RAR • Branching JNZ CALL 16-bit • Machine control HLT NOP

Description : How many machine cycles does 8085 have, mention them

Last Answer : The 8085 have seven machine cycles. They are • Opcode fetch • Memory read • Memory write • I/O read • I/O write • Interrupt acknowledge • Bus idle

Description : What is the use of ALE

Last Answer : The ALE is used to latch the lower order address so that it can be available in T2 and T3 and used for identifying the memory address. During T1 the ALE goes high, the latch is transparent ... is the lower order address. When ALE goes low the lower order address is latched until the next ALE.

Description : What is an instruction?

Last Answer : An instruction is a binary pattern entered through an input device to command the microprocessor to perform that specific function

Description : Define instruction cycle, machine cycle and T-state

Last Answer : Instruction cycle is defined, as the time required completing theexecution of an instruction. Machine cycle is defined as the time required completing one operation of accessing memory, I/O or ... request. Tcycle is defined as one subdivision of the operation performed in one clock period

Description : Basic concepts in memory interfacing

Last Answer : The primary function of memory interfacing is that the microprocessor should be able to read from and write into a given register of a memory chip. To perform these operations the microprocessor ... Be able to select the chip Identify the register Enable the appropriate buffer

Description : How many interrupts does 8085 have, mention them

Last Answer : The 8085 has 5 interrupt signals; they are INTR, RST7.5, RST6.5, RST5.5 and TRAP