stack instructions, Basic Computer Science

These instructions permit the use of the stack to store or recover data.

Purpose: It improves a portion of information from the stack
Purpose: It extracts the flags stored on the stack
This command moves bits of the word stored on the superior part of the stack to the flag register.
Purpose: It puts a word on the stack.
PUSH source
The PUSH instruction reduces by two the value of SP and then transfers the data of the source operator to the new resulting address on the just modified register.
The decrement on the address is due to the fact that when adding values to the stack, this one raises from the greater to the smaller segment address, consequently by subtracting 2 from the SP register what we do is to raise the size of the stack by two bytes, which is the only amount of information the stack can handle on every input and output of information.
Purpose: It situates the value of the flags on the stack.
This command reduces by 2 the value of the SP register and then the content of the flag register is relocated to the stack, on the address indicated by SP.
The flags are gone stored in memory on the similar bits indicated on the POPF command.
Posted Date: 5/4/2012 4:50:53 AM | Location : United States

Related Discussions:- stack instructions, Assignment Help, Ask Question on stack instructions, Get Answer, Expert's Help, stack instructions Discussions

Write discussion on stack instructions
Your posts are moderated
Related Questions
DESIGNING COMPUTER BASED INFORMATION SYSTEMS Background The role of Management Information Systems (MIS) in an organization can be considered as providing

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

Flowcharting: Flowcharting: A Flowchart is a graphical representation of an algorithm. It can be compared to the blueprint of a building. Just as a building contractor refers

"The government is auctioning off oil leases at two sites: 1 and 2. At each site, 100,000 acres of land are to be auctioned. Cliff Ewing, Blake Barnes, and Alexis Pickens are biddi

I need help! import cgi, cgitb cgitb.enable() HTML_head = ''Content-type: text/html\n\n'' HTML_top = '''''' Restaurant Results '' Restaurant Results '''''' HTML_bottom =


The development of your learning module is very time consuming, so it is recommended that you begin creating your learning module during this first week. Before you begin, download

Each Many to Many relationship type maps into the Table. The primary key of this relevant is the combination of the primary keys of the participating entity types. These are also c