What Is A Stack Pointer Register, Describe Briefly.?

1 Answer

Answer :

Answer :The Stack pointer is a sixteen bit register used to point at the stack.
In read write memory the locations at which temporary data and return addresses are stored is known as the stack.
In simple words stack acts like an auto decrement facility in the system.
The initialization of the stack top is done with the help of an instruction LXI SP.
In order to avoid program crashes a program should always be written at one end and initialized at the other.

Related questions

Description : What Is Stack Pointer?

Last Answer : Answer :Stack pointer is a special purpose 16-bit register in the Microprocessor, which holds the address of the top of the stack.

Description : Describe Briefly The Accumulator Register Of 8085.?

Last Answer : Answer :It is one of the most important 8 bit register of 8085 It is responsible for coordinating input and output to and from the microprocessor through it. The primary purpose of ... logical operations. This accumulator register is mainly used for arithmetic, logical, store and rotate operations.

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.

Last Answer : The pointer of an indicating instrument should be very light.

Description : Which Stack Is Used In 8085?

Last Answer : Answer :LIFO (Last In First Out) stack is used in 8085.In this type of Stack the last stored information can be retrieved first.

Description : Write A Program That Will Store The Contents Of An Accumulator And Flag Register At Locations 2000h And 2001h.?

Last Answer : Answer :By making use of the Push & Pop instructions the program can be written as: LXISP, 4000H - this step initiates the SP at 4000h. PUSH PSW - the contents of the accumulator and flag are pushed into the stack. POP B MOV A, B STA 2000H MOV A, C STA 2001H HLT

Description : In 8085 Which Is Called As High Order / Low Order Register?

Last Answer : Answer :Flag is called as Low order register & Accumulator is called as High order Register.

Description : How to Register to Vote

Last Answer : How to Register to Vote If a single step can start one epic journey, then one vote in the elections can make a big difference in determining your country's future. Though most governments rely ... confirmation from your local election office. You should be able to get an update or confirmation soon.

Description : How to Register a Copyright with the Copyright Office

Last Answer : How to Register a Copyright with the Copyright Office A copyright will allow you protection under federal law from having your original work used without your permission. With a copyright in hand you ... that deposited work(s) are not usually returned Visit the copyright website for current fees.

Description : Shift Register

Last Answer : Shift Register:- Shift Register is a group of flipflops used to shift data from one side to other side or to convert serial data into parallel or vice versa. Shift registers are of following types  i) ... iii) Parallel in serial out(PISO) iv) Parallel in parallel out(PIPO)

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 : Opcode is the machine instruction obtained from decoding instruction stored in. a. Stack pointer b. Address pointer Cc. Instruction register d. Incrementer

Last Answer : Cc. Instruction register

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 : The stack pointer is maintained in a : a. Data b. Register c. Address d. None of these

Last Answer : b. Register

Description : The stack pointer in the 8085 microprocessor is a: a) 16 bit register that points to stack memory locations b) 16 bit accumulator c) Memory location in the stack d) None of The Above

Last Answer : a) 16 bit register that points to stack memory locations

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 : 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 : 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 : When subroutine is called contents of program counter is location address of __ instruction following call instruction is stored on _ __and program execution is transferred to __ address. a. Non ... , Stack and Main program Cc. Executable, Queue and Subroutine d. Executable, Stack and Subroutine

Last Answer : d. Executable, Stack and Subroutine

Description : The _stack can be 4-word memory addressed by 2 bits from an up/down counter known as the stack pointer: a. FIFO b. PIPO c. SISO d. LIFO

Last Answer : d. LIFO

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 : In microprocessor the next instruction to be executed is stored in a) Program Counter b) Stack Pointer c) Memory Pointer d) Accumulator

Last Answer : Ans: Program Counter

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 : SP stand for: a. Stack pointer b. Stack pop c. Stack push d. None of these

Last Answer : a. Stack pointer

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 : SP stands for: a. Status pointer b. Stack pointer c. a and b d. None of these

Last Answer : b. Stack pointer

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

Last Answer : c) a & b

Description : ______ involves traversing the entire file system, marking everything that can be accessed. (1) Index pointer (2) Garbage collection (3) File system (4) Stack pointer

Last Answer : Garbage collection

Description : What is the name of a memory buffer used to accommodate a speed differential ? (1) Cache (2) Stack Pointer (3) Accumulator (4) Disc

Last Answer : Cache

Description : This refers to an area in the memory used for temporary storage of information on the basis of “Last in First out”. A. Core B. Register C. Flag D. Stack

Last Answer : D. Stack

Description : An area in the memory used for temporary storage of information, on “Last in First out” basis. A. Core B. Register C. Flag D. Stack

Last Answer : D. Stack

Description : ___uses the stack to store return address of subroutine: a. CPU b. Microprocessor c. register d. memory

Last Answer : b. Microprocessor

Description : By defining the _ __ register as last in first out stack the sequence can handle nested subroutines: a. S b. J ce. R d. T

Last Answer : ce. R

Description : In register stack a stack can be organized bya____——_—s number of register. a. Infinite number b. Finite number c. Both d. None

Last Answer : b. Finite number

Description : In register stack a stack can be a finite number of a Control word b. Memory word c Transfer word d. — Allof these

Last Answer : b. Memory word

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 : Which register holds the item that is to be written into the stack or read out of the stack: a. SR b. IR Cc. RR d DR

Last Answer : d DR

Description : In register stack the top item is read from the stack into: a. SR b. IR Cc. RR d. DR

Last Answer : d. DR

Description : The final addressing mode that we consider is a. Immediate addressing b. Direct addressing c. Register addressing d. Stack addressing

Last Answer : d. Stack addressing

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 : 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 : 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 : With suitable example, describe effect of ++ and - - operators used with pointer in pointer arithmetic. 

Last Answer : ++ Operator: - It is referred as increment operator that increments the value of variable. If ++ operator is used with pointer variable, then pointer variable points to next memory address that means pointer increment with respect to size ... int a[5]={10,20,30,40,50},*ptr; ptr=a[0]; for(i=0;i

Description : State and describe use of pointer operator and address operator. Give one example of each. 

Last Answer : Pointer operator:- * It is used to declare a pointer variable. Also used as "value at" operator to read value stored inside the address pointed by pointer. Example: int *ptr; Address operator:-& ... address of a variable can be stored in pointer variable. Example: int a,*ptr; ptr=&a;

Description : Describe pointer to object with an example. 

Last Answer : When address of an object of a class is stored into the pointer variable of the same class type then it is pointer to object. This pointer can be used to access the data member and member functions of same class. ... (); // Invoking getdata()using pointer to object p1. ptr->display(); }

Description : With suitable example, describe use of this pointer.

Last Answer : 1. C++ uses a unique keyword called this to represent an object that invokes a member function. 2. This unique pointer is automatically passed to a member function when it is invoked. 3. this is a pointer that always ... ; public: void setdata(int x) { this ->a=x; } void putdata() { cout

Description : Describe ‘this’ pointer with an example.

Last Answer : this' pointer:  C++ uses a unique keyword called this to represent an object that invokes a member function. This unique pointer is automatically passed to a member function when it is invoked. ... pointer is used to represent object s when setdata ( ) and putdata ( ) functions are called. 

Description : Describe briefly any three economic effects of the Non-Cooperation Movement. -SST 10th

Last Answer : (i) Boycott of foreign goods : People decided to boycott foreign goods and wear Swadeshi clothes, and use Swadeshi goods. (ii) Impact on imports : As people began discarding imported clothes, ... As people decided to boycott foreign clothes, production of Indian textile mills and handloom went up.