What is the output of the following code
PUSH AL
a) Decrement SP by 2 & push a word to stack
b) Increment SP by 2 & push a word to stack
c) Decrement SP by 2 & push a AL to stack
d) Illegal

1 Answer

Answer :

b) Increment SP by 2 & push a word to stack

Related questions

Description : Which operation are done by increment or decrement the stack pointer: a. Push b. Pop ce. Both d. None

Last Answer : ce. Both

Description : SP stand for: a. Stack pointer b. Stack pop c. Stack push d. None of these

Last Answer : a. Stack pointer

Description : SP stands for: a. Status pointer b. Stack pointer c. a and b d. None of these

Last Answer : b. Stack pointer

Description : Which is the basic stack operation: a. PUSH b. POP c. BOTH A and B d. None of these

Last Answer : c. BOTH A and B

Description : What is the output of the following code AX = 37D7H, BH = 151 decimal DIV BH a) AL = 65H, AH= 94 decimal b) AL= 5EH, AH= 101 decimal c) AH= E5H, AL= 5EH d) AL= 56H, AH= 5EH

Last Answer : b) AL= 5EH, AH= 101 decimal

Description : What is the output of the following code AL=00110101 BL= 39H M. Krishna Kumar/IISc. Bangalore M2/V1/June 04/1 Microprocessors and Microcontrollers/Assembly language of 8086 Multiple Choice Questions SUB AL, BL AAS ... , CF=1 b) BL=00000100, CF=0 c) AL=11111100 CF=1 d) BL= 00000100, CF=1

Last Answer : b) BL=00000100, CF=0

Description : What is the output of the following code AL= 00110100 BL= 00111000 ADD AL, BL AAA a) AL = 6CH b) 12H c) 12 d) C6H

Last Answer : c) 12

Description : What is the output of the following code AL= -28 decimal, BL=59 decimal IMUL BL AX=? , MSB=? a) AX= F98CH, MSB=1. b) AX= 1652, MSB=1. c) BX F9C8H, MSB=1. d) BX= 1652, MSB=1.

Last Answer : a) AX= F98CH, MSB=1.

Description : What is the output of the following code AL= 49 BCD, BH= 72 BCD SUB AL, BH DAS a) AL=D7, CF=1. b) AL=7D, CF=1. c) AL=77, CF=1 d) none of them.

Last Answer : d) none of them.

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 : Which operations are used for addition, subtraction, increment, decrement and complement function: a. Bus b. Memory transfer c. Arithmetic operation d. Allof these

Last Answer : d. Allof these

Description : is which initializes the value of variable: a. Assignment expression b. Condition value Cc. Increment/decrement d. None of these

Last Answer : a. Assignment expression

Description : is the__ _ value of variable which will be added every time: a. Increment b. Decrement c. Expanding d. None of these

Last Answer : a. Increment

Description : Distinguish between auto increment and auto decrement addressing mode?

Last Answer : The Effective Address of the operand is the contents of a register in the instruction. After accessing the operand, the contents of this register is automatically incremented. The Effective Address of ... contents of this register is automatically decremented to point to the next item in the list.

Description : Explain increment and decrement operator.

Last Answer : Increment operator is used to increment or increase the value of a variable by one. It is equivalent to adding one to the value of the variable. The symbol used is ++. The decrement operator is used to decrement ... n--; printf("\nvalues after changing%d%d",m,n); getch(); }

Description : In immediate addressing the operand is placed a. in the CPU register b. after OP code in the instruction c. in memory d. in stack

Last Answer : b. after OP code in the instruction

Description : The structure of the stack is _______ type structure: a. First in last out b. Last in last out c. Both a & b d. None of these

Last Answer : a. First in last out

Description : The processor uses the stack to keep track of where the items are stored on it this by using the: a. Stack pointer register b. Queue pointer register c. Both a & b d. None of these

Last Answer : a. Stack pointer register

Description : In 8085 name the 16 bit registers? a) Stack pointer b) Program counter c) a & b

Last Answer : c) a & b

Description : In 8051,After reset the SP register is initialized to address________. a. 8H b) 9H c) 7H

Last Answer : c) 7H

Description : Name of typical dedicated register is: a. PC b. IR c. SP d. All of these

Last Answer : d. All of these

Description : SP of 8051 is of ___ wide and it is loaded with the default value of ___ after reset. a) 2 byte, 08H b) 8 bit, 07H c) 1 byte, 09H d) 8 bit, 06H

Last Answer : d) 8 bit, 06H

Description : Which of the following is of bit operations? i) SP ii) P2 iii) TMOD iv) SBUF v) IP a) ii, v only b) ii, iv, v only c) i, v only d) iii, ii only

Last Answer : c) i, v only

Description : After reset, SP register is initialized to address________. a) 8H b) 9H c) 7H d) 6H

Last Answer : c) 7H

Description : The SP is of ___ wide register. And this may be defined anywhere in the ______. a) 8 byte, on-chip 128 byte RAM. b) 8 bit, on chip 256 byte RAM. c) 16 bit,

Last Answer : a) 8 byte, on-chip 128 byte RAM.

Description : Which of the following is of bit operations? i) SP ii) P2 iii) TMOD iv) SBUF v) IP a) ii, v only b) ii, iv, v only c) i, v only d) iii, ii only

Last Answer : a) ii, v only

Description : ROM d) 8 bit, on chip 128 byte RAM. 3. After reset, SP register is initialized to address________. a) 8H b) 9H c) 7H d) 6H

Last Answer : c) 7H

Description :  What is the size of SP register in 8085 microprocessor? A) 16 bits B) 8 bits C) 64 bits D) 48 bits

Last Answer :  What is the size of SP register in 8085 microprocessor? A) 16 bits B) 8 bits C) 64 bits D) 48 bits

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 : When the RET instruction at the end of subroutine is executed, a. the information where the stack is iniatialized is transferred to the stack pointer b. the memory address of the RET instruction is ... two data bytes stored in the top two locations of the stack are transferred to the stack pointer

Last Answer : c. two data bytes stored in the top two locations of the stack are transferred to the program counter

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 : A stack pointer is a. a 16-bit register in the microprocessor that indicate the beginning of the stack memory. b. a register that decodes and executes 16-bit arithmetic expression. c. The first memory location where a subroutine address is stored. d. a register in which flag bits are stored

Last Answer : a. a 16-bit register in the microprocessor that indicate the beginning of the stack memory.

Description : A stack is a. an 8-bit register in the microprocessor b. a 16-bit register in the microprocessor c. a set of memory locations in R/WM reserved for storing information temporarily during the execution of computer

Last Answer : c. a set of memory locations in R/WM reserved for storing information temporarily during the execution of computer

Description : The data in the stack is called: a. Pushing data b. Pushed c. Pulling d. None of these

Last Answer : a. Pushing data

Description : Stack words on: a. LILO b. LIFO c. FIFO d. None of these

Last Answer : b. LIFO

Description : Which point to the ___ of the stack: a. TOP b. START c. MID

Last Answer : a. TOP

Description : The subprogram finish the return instruction recovers the return address from the: a. Queue b. Stack c. Program counter d. Pointer

Last Answer : b. Stack

Description : Which is used to store critical pieces of data during subroutines and interrupts: a. Stack b. Queue c. Accumulator d. Data register

Last Answer : a. Stack

Description : In 8087, _______ many register stack are there? And of _____ registers. These registers are used as _________ stack. a) 7, 40 bit, FIFO. b) 8, 60 bit, LILO. c) 8, 80 bit, LIFO d) 7, 80 bit, FILO.

Last Answer : b) 8, 60 bit, LILO.

Description : Can ROM be used as stack? a) Yes b) No c) sometimes yes, sometimes no

Last Answer : b) No

Description : Which stack is used in 8085? a) FIFO b) LIFO c) FILO

Last Answer : b) LIFO

Description : Describe the functions of stack pointer and program counter of 8085. 

Last Answer : Stack pointer: 1. It is a 16 bit register which is used to store the address of topmost filled memory location of stack memory. 2. SP always points current top of stack. 3. If data is ... of memory and in 8085 the address of memory is 16 bit. Hence program counter is 16 bit register.

Description : What is the output of the following code BX=23763 CL=8 ROL BX, CL a) 0101110011010011, CF=0 b) 1101001101011100, CF=0 c) 0110100010011101, CF=1

Last Answer : b) 1101001101011100, CF=0

Description : What is the output of the following code SI=10010011 10101101, CF=0 SHR SI, 1 a) 37805, CF=1, OF=1 b) 18902, CF=1, OF=1 c) 19820, CF=1, OF=1 c) 53708, CF=1, OF=1

Last Answer : a) 37805, CF=1, OF=1

Description : What is the output of the following code CF =0, BH = 179 RCL BH, 1 a) CF=0, OF= 1, BH= 01100101 b) CF=1, OF=1, BH=01100110 c) CF=1, OF =0, BH= 01001101 d) CF=0, OF=0, BH=00101100

Last Answer : c) CF=1, OF =0, BH= 01001101

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 stack organization the insertion operation is known as : a. Pop b. Push c. Both d. None

Last Answer : b. Push

Description : In stack organization address register is known as the: a. Memory stack b. Stack pointer c. Push operation d. Pop operation

Last Answer : b. Stack pointer

Description : In register stack items are removed from the stack by using the operation: a. Push b. Pop c. Both d. None

Last Answer : b. Pop

Description : Inserting an item into the stack when stack is not full is called …………. Operation and deletion of item form the stack, when stack is not empty is called ………..operation. A) push, pop B) pop, push

Last Answer : A) push, pop