Monday, November 24, 2008

These people are dear to everyone

Everyone must accept the realities of life and react appropriately but in order to do this one needs a comprehensive programme encompassing all the issues of life both in this world and the next in order to prosper in both. Wise people manage their lives according to an orderly programme that brings them peace of mind and it is this type of person who can establish charitable foundations, hospitals, Mosques, libraries, Islamic centres etc as a result of their efforts, benevolence, aspiration to lofty purposes and their belief in Allah (s.w.t) and the Day of Judgment. These people are dear to everyone in this life and are well positioned on the final day because Allah (s.w.t) will have kept for them every single good deed that they did in this world.

The Holy Qur’an in Ayah 30 of Surah Al-Imran says:

“On the Day when every person will be confronted with all the good he has done, and all the evil he has done, he will wish that there were a great distance between him and his evil. And Allah (s.w.t) warns you against Himself (His punishment) and Allah (s.w.t) is full of Kindness to the (His) slaves.”

Friday, September 12, 2008

This program requires at least 3MB of free virtual memory to run?




I run one program with windows XP, SP2 (My computer is Pentium IV 2800) this message occur to running this program: (the windows message ) direct player 6.0.




This program requires at least 3MB of free virtual memory to run.




How can I solve this problem for running the program with my windws?

SOLUTION:


Following are the steps to solve this issue:


1. Choose “settings” from the start menu


2. Choose “control panel from the settings options


3. Locate “system” from the control panel folder and double click on system icon.


4. Select “advanced” tab from the system property


5. Select control “Performance options” or Click on Performance "Settings"


6. Click On the advanced tab


7. Locate Virtual Memory and select “change”




8. Next change the value below depending on which OS you have selecting the drive letter that the program is installed to: (WinXP) Select no paging file and click SET (Win2000) Change Inital and maximum size values both to 200 and click SET


9. Click on ok


10. Click yes on restarting your computer


Reduce your initial size and maximum size Virtual Memory setting starting at 200 MB and continuing up to 3000 MB, if no paging file doesn't work.


Note: If Setting the virtual memory manually, the amount you will need to reduce this setting will vary from configuration to configuration.


Generally, a maximum Virtual Memory setting of 200 MB will prevent further errors.






Monday, June 9, 2008

MICROPROCESSOR SIMULATOR

(NALAIK PANDOO UTHA LO YAHA SE PROJECT OR PRINT KARWA KER SIR KO DO, OR MERI JAN CHORO, MEI KOI ROBOT TO NHI HU, MUJHE BHI DIN MEI 24 HRS HI MILTAY HAIN.
CLASS FELLOWS CHOR KER AB JUNIORS B PECHAY PER GAYE HAIN, YAR YE ASSIGNMENT MILI HAI, YAR IS SUBJECT KA KOI PROJECT BANANA HAI.YAR YE ABEEL NISAR JO HAI NA BARA HI ZAHEEN BACHA HAI, IS KO SUB KUCH ATA HAI.
ABEEL NISAR KOI UPPER SE SEIKH KER AYA THA,YA AASMAN SE SUB KUCH UTARTA HAI MERE DAMAGH MEI, WATT LAGAO SAREY MILL KER MERI, JIS DIN SHIRAFAT KA JANAZA NIKAL GAYA NA TO MEI TUM SUB KI WATT LAGA DU GA.I REALLY MEAN IT.

ISS LIYE THORA HOLA HATH RAKHO OR KISI DOSRAY KA BHI KHAYAL KAR LIYA KARO.TUMHARA MATLAB PURA HO GA TO TUM LOGO NE SALAM KA JAWAB BHI NHI DENA.)



#include<conio.h>
#include<iostream.h>
#include<stdio.h>
class microsimulator
{
private:
int ir;float acc;
int mem[2][32];
public:
int pc;

//Constructor

microsimulator()
{
pc=1;
ir=0;
acc=15;
mem[2][32]=0;
}

//Method for user interface

void user()
{ int i;
cout<<"***--------NOTE-----------***"<<endl;
cout<<">>Memory is 32-bit, first 16-bit for addresses and their instructions"<<endl;
cout<<" remaining 16-bit for addresses and their data"<<endl<<endl;
cout<<">>Instructions should be of 3-digit that consist of an opcode and address"<<endl<<endl;
cout<<">>Opcode with their operations"<<endl;
cout<<"1.Add"<<endl;
cout<<"2.Subtract"<<endl;
cout<<"3.Multiply"<<endl;
cout<<"4.Divide"<<endl;
cout<<"5.Move"<<endl;
cout<<"6.Move X"<<endl<<endl;
for(i=0;i<16;i++)
{
cout<<"Enter address"<<endl;
cin>>mem[0][i];
cout<<"enter its 3-digit instruction"<<endl;
cin>>mem[1][i];
}



for(int j=16;j<32;j++)
{
cout<<"enter address"<<endl;
cin>>mem[0][j];
cout<<"enter its corresponding data"<<endl;
cin>>mem[1][j];
}
}

//Method for search

void find1()
{
for(int h=0;h<16;h++)
{
if(pc==mem[0][h])
{
ir=mem[1][h];
}
}
}

//Method for decoding

int dec1()
{ int b=ir/100;
return b;
}

//Method for decoding

int dec2()
{
int c=ir%100;
return c;
}

//Method for search

int find2(int c)
{ int d;
for(int h=16;h<32;h++)
{
if(c==mem[0][h])
{
d=mem[1][h];
}

}
return d;
}

//Method for arithmetic operations of ALU

void alu(int op,int d)
{
if(op==1)
{ acc=acc+d;
pc++;
}

else if(op==2)
{ acc=acc-d;
pc++;
}

else if(op==3)
{ acc=acc*d;
pc++;
}

else if(op==4)
{ acc=acc/d;
pc++;
}

else if(op==5)
{ d=acc;
pc++;
}
else if(op==6)
{ acc=d;
}
else
cout<<"Invalid opcode"<<endl;
}

//Method for display

void display()
{
cout<<"pc= "<<pc<<endl;
cout<<"ir= "<<ir<<endl;
cout<<"acc= "<<acc<<endl;
for(int j=0;j<32;j++)
{


cout<<"MEMORY location" <<j<<endl;
cout<<"-------"<<endl;
cout<<"ADDRESS "<<mem[0][j]<<endl;

cout<<"DATA "<<mem[1][j]<<endl;
cout<<"-------"<<endl;
}
}
}; //end of class


void main()
{ clrscr();
microsimulator s;
int a,b,d,pc;
s.user();
pc=s.pc;
for(pc=1;pc<17;pc++)
{

s.find1();
a=s.dec1();
b=s.dec2();
d=s.find2(b);
s.alu(a,d);

}
s.display();

getche();
}


Sunday, June 8, 2008

Mini Project: Simulation of Microprocessor

Mini Project:
Simulation of Microprocessor using Object Oriented Programming in C++



I have recently done this mini project.
Here`s the code
------------------------------



#include<conio.h>
#include<iostream.h>
#include<stdio.h>
class micro
{
private:
int ir;float acc;
int mem[2][6];
public:
   int pc;
    micro()
{
pc=1;
ir=0;
acc=15;
mem[2][6]=0;
}
void fillmem()
{ int i;
for(i=0;i<3;i++)
{
cout<<"enter address"<<endl;
cin>>mem[0][i];
cout<<"enter its 3-digit instruction"<<endl;
cin>>mem[1][i];
}



for(int j=3;j<6;j++)
{
cout<<"enter address"<<endl;
cin>>mem[0][j];
cout<<"enter its corresponding data"<<endl;
cin>>mem[1][j];
}
}

void search1()
{
for(int h=0;h<3;h++)
{
if(pc==mem[0][h])
{
ir=mem[1][h];
}
}
}

int decoder1()
{ int b=ir/100;
return b;
}
int decoder2()
{
int c=ir%100;
return c;
}


int search2(int c)
{ int d;
for(int h=3;h<6;h++)
{
if(c==mem[0][h])
{
d=mem[1][h];
}
}
return d;
}

void alu(int op,int m)
{
if(op==1)
{ acc=acc+m;
pc++;
}

else if(op==2)
{ acc=acc-m;
pc++;
}

else if(op==3)
{ acc=acc*m;
pc++;
}

else if(op==4)
{ acc=acc/m;
pc++;
}

else if(op==5)
{ m=acc;
pc++;
}
else if(op==6)
{ acc=m;
}
else
cout<<"Invalid opcode"<<endl;
}






void display()
{
cout<<"pc= "<<pc<<endl;
cout<<"ir= "<<ir<<endl;
cout<<"acc= "<<acc<<endl;
for(int j=0;j<6;j++)
{
cout<<"MEMORY location" <<j<<endl;
cout<<"-------"<<endl;
cout<<"ADDRESS "<<mem[0][j]<<endl;

cout<<"DATA "<<mem[1][j]<<endl;
cout<<"-------"<<endl;
}
}
};
void main()
{ clrscr();
micro z;
int d1,d2,data,pc;
z.fillmem();
pc=z.pc;
for(pc=1;pc<4;pc++)
{

z.search1();
d1=z.decoder1();
d2=z.decoder2();
data=z.search2(d2);
z.alu(d1,data);

}
z.display();

getche();
}



-----------------------------

Monday, April 21, 2008

LINK MOB





































ROTATE-ME USB

PH150 MAGIC USB HUB ROTATING PORTS
With 4-port innovative USB 2.0, let the fun begin with this colorful USB on your desk. Having 4-ports, two of them have the capability to rotate over 90 or 180 degress. If you have bulkier USB, you can easily slot it into the other two free from being in the way of other slender USB. With 480 Mbps transfer rate this hub is no doubt 40 times fasterthan the USB 1.1. It is small in size, chic and a plug and play version of USB, getting you connected at anytime anywhere.



FEATURES AND SPECIFICATION


1. Innovative rotating USB port design
2-usb ports (red and orange ports) rotate 90 or 180 degrees

2. Over-current detection and protection
Limits amount of current a USB peripheral can draw,Conserves power and helps prevent system crashes

3. Stylish design
Magic cube design becomes a personal desktop accessory,aluminium alloy construction provides durability

4. High speed data transfer,plug and play
Just plug and play, means support for hot-swap function

5. USB interface
USB 2.0 high-speed interface, backwards compatible with USB 1.1

6. Extended ports
Four ports with two of them rotatable

7. USB port
USB 2.0 Mini B Type female connector

8. LED
Blue LED blinks when data is accessed

9. Colors
Magic cube colors including red-orange-yellow-green-blue

10. Transfer rate
Up to 480 Mbps via USB 2.0, up to 12 Mbps via USB 1.0

11. Power source
Bus-powered mode, max 500mA, Self-powered mode

12. Weight
44grams

13. Dimensions
(L) 107 x (W) 21.4 x (D) 21.4mm

14. Accessories
USB extension cable (mini-USB to standard USB port),External power adapter(optional),User`s Manual

15. Compatibilty
ACPI,OHCI and EHCI compliant

Saturday, April 19, 2008

INFINITE USB MEMORY STORAGE

infinite usb memory storage






Colourful combination with male USB connector on one end and female on the other,this adds up to a complete concept for USB finger discs.








How this works?








If the MemoryInfinite connects to a computer on the male end,the other end,female is not occupiedwith the other USB port.This is definitely giving you the sweet advantage of USB freedom.




I think the concept of Memory Infinite,USB Storage is that we can connect as many storagesas we like,simply by connecting male port of second storage with female port of first.Then we can add third storage simply by connecting male port of third with female port ofsecond storage and so on.

/* google analytics ------------------------------------------------------------- */