what is the definition of instructiion set?, Basic Computer Science

For a processor to be able to process an instruction, it requires to be able to determine what the instruction is asking to be carried out. For this to take place, the CPU requires to know what actions it may be asked to perform, and have pre-determined methods accessible to carry out these actions. It is this idea which is the reasoning behind the ''instruction set''.
When a processor is executing a program, at that time the program is in a machine language. Programmers mainly never write their programs in this form. While it may not have been at first written in this way, it is converted to a machine language at some point previous to execution so that it is comprehensible by the CPU. Machine language can be unswervingly interpreted by the hardware itself, and is able to be without difficulty encoded as a string of binary bits and sent simply via electrical signals.
The instruction set is a set of pre-defined machine codes, which the CPU is designed to expect and be able to operate upon when detected. Dissimilar processors have dissimilar instruction sets, to allow for easier coding, greater aspects and to cope with changes in the genuine architecture of the processor itself. Each machine code of an instruction set consists of two separate fields:
• Opcode and operands
The opcode is a short code which points to what operation is expected to be performed. Each and every operation has a unique opcode. The operand, or operands, points to where the data required for the operation can be found and how it can be accessed (the addressing mode, which is conversed in full later). The length of a machine code can vary - ordinary lengths vary from one to twelve bytes in size.
The exact format of the machine codes is again CPU dependant.
Opcodes are also known mnemonics (short names) so that they can be simply referred to in code listings and similar documentation. for instance, an instruction to store the data of the accumulator in a given memory address could be specified the binary opcode 000001, which may then be referred to using the mnemonic STA (short for Store Accumulator).
Now we identify what form the data is in when it is read by the CPU, it is essential to learn about the cycle by which the instructions of a program are executed.
Posted Date: 5/3/2012 7:45:49 AM | Location : United States

Related Discussions:- what is the definition of instructiion set?, Assignment Help, Ask Question on what is the definition of instructiion set?, Get Answer, Expert's Help, what is the definition of instructiion set? Discussions

Write discussion on what is the definition of instructiion set?
Your posts are moderated
Related Questions
Systems Life Cycle Approach Systems Analysis and Design follows a life cycle for development, as shown below. Brief discussion on this approach is given here: Figure

File Organization There are three types of file organization used in practice. Let us consider the example of a dictionary. The dictionary contains listing of English wo

Telecommunication Networks Architecture is the manner in which the components of thenetwork are organized and integrated to provide telecommunication services to users ofthe netwo

Advantages:- • Sharing Treads permit the sharing of a lot resources that cannot be shared in process, for instance, sharing code section, data section, Operating System resource

Write a program that: 1. Ask the user for names of the two iput files and a name of an output file. The two input files contain integers in any order. Eachimput file contains no mo

Frequency Division Multiplexing : FDM is an analog technique that is applied when he bandwidth of link is greater than the combined bandwidth of the signals to be transmitted. a

I need to create mulitple queues assignment that run concurrently. It is like a queue simulation with  number of checkouts with a random probability of clients, joining any one

Assignment of computer science

What is CAI? Explain its pitfalls.

Execute a command in operating system: In order to execute a command OS does the following steps:   It accepts a command from a user through mouse clicks or from t