Friday 11 April 2014

What is instruction group in computer architecture?

What is instruction group in computer architecture?


All instruction which computer use to perform different operation are grouped. That groups are called instruction groups. There are mainly four instruction groups which i am listing it below.

1. data moving instruction group:

used for moving data from one place to another.

Example:
move ax,bx
load 1234


2. Arithmetic and logic instruction group:

used when and arithmetical or logical operation is required.

Examples:
add bx,0534
add bx,1234
add bx,[1200]


3: program control instruction group:

used for control the program execution and keep the instruction in a sequence and in specified queue one after another.

4: special instruction group:

used for changing the processor behaviors. example: cli, sti.


************************************************************

*Like it please if you found this post helpful.

Thursday 10 April 2014

What is computer Register?

What is computer Register?

computer register is the very small amount of very fast memory. It can be read or write very fast by the processor. It acts like a small ram for the processor but it holds data temporarily.
There are so many types of register. like
1. AC
2. DR
3. TR
4. IR
5. AR
6. PC
7. INPR
8. OUTR

Tuesday 8 April 2014

Data Structure C++ Programming Code of Stack Insertion

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();

int stack[100],loc,top,item,max=100;


cout<<"\n------ Stack Insertion using Array ------";
cout<<"\n\nEnter Value of Stack Top : ";
cin>>top;

if(top>=max)
{
cout<<"\nStack is Full";
getch();
return;
}

cout<<"\nEnter Elements in Stack :\n";
for(loc=0;loc<=top;loc++)
{
cin>>stack[loc];
}

cout<<"\nEnter Item you want to Insert : ";
cin>>item;

top=top+1; //Increment the Top
stack[top]=item;         //Insert Element

cout<<"\nStack After Insertion :\n";
for(loc=0;loc<=top;loc++)
{
cout<<stack[loc]<<endl;
}
getch();
return;
}