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

Assignment Help:
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.

Related Discussions:- what is the definition of instructiion set?

Homework, #questioPurpose of this assignment: 1. Using dictionaries. Assign...

#questioPurpose of this assignment: 1. Using dictionaries. Assignment: Write a program to read a text file and create a dictionary. The keys for the dictionary should be all

Backup software, Backup software: A number of Backup software are avai...

Backup software: A number of Backup software are available that assist you in taking backup of your important data on the computer. Selecting between various back-up software

Cryptography, Consider the one-time pad encryption scheme to encrypt a 1-bi...

Consider the one-time pad encryption scheme to encrypt a 1-bit message m, and assume m is chosen with uniform distribution from message space M={0,1}. Let E1 be the event "message

Advantages and disadvantages of e-learning, Advantages and Disadvantages of...

Advantages and Disadvantages of E-Learning: Before we discuss about advantages and disadvantages of e-learning, you should know that e-learning is just another model for learn

Identify the critical races, 1. The standard way for debuggers to plant bre...

1. The standard way for debuggers to plant breakpoints in a program in RAM (whatever the processor instruction set) is to save the breakpointed instruction and replace it by a jump

Socket, socket programming

socket programming

Explanation of characteristics of computers, Problem 1. Briefly explain...

Problem 1. Briefly explain on the characteristics of computers Explanation of characteristics of computers 2. Write a note on Cache Memory Note on Cache Memor

#title.flow chart., akrenda club has just opened their jym and pools servic...

akrenda club has just opened their jym and pools services. They need a system that can keep record of total sales of each. The club has silver and gold members. The silver members

Data processing, Data Processing : Processing data is the most complex fun...

Data Processing : Processing data is the most complex function of a computer system. It is where the computer itself (as opposed to a peripheral, e.g. a visual display unit or a p

Python - Dictionary, A dictionary is variable and is one more container typ...

A dictionary is variable and is one more container type that can store any number of Python objects, counting other container types. Dictionaries consist of pairs (identified items

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd