Skip to main content

Posts

Showing posts with the label Instructions and I/O Subsystems

Instructions & I/O Subsystems

Q.1. What is an Instruction? Ans.: An instruction is a command given to the computer to perform a specified operation on given data. Each instruction consists of 2 parts: an opcode and an operand. The first part of an instruction, which specifies the operation, to be performed is known as opcode. The second part of an instruction called operand is the data on which computer perform the specified operation. As a computer understands instructions only in the form of 0 & 1, instruction and data are fed into the computer is a binary form. They are written in binary codes known as machine codes. For the convenience of this user the codes can be written in hexical form. Instructions are classified into the following three types according to their word length : (i) Single Byte Instruction (ii) Two Byte Instruction (iii) Three Byte Instruction