Science, asked by gugu4231, 1 year ago

A simple program instruction consists of operation code and operands true or false

Answers

Answered by AryanDeo
0
hey...

_____

here is the answer to your questions...


_____________________________


A simple program instruction consists of operation code and operands.
so, yes this is true.

_______________________________

hope this will help
Answered by Anonymous
2
this is true
Computer instructions are the basic components of a machine language program. They are also known asmacrooperations, since each one is comprised of a sequences of microoperations.

Each instruction initiates a sequence of microoperations that fetch operands from registers or memory, possibly perform arithmetic, logic, or shift operations, and store results in registers or memory.

Instructions are encoded as binaryinstruction codes. Each instruction code contains of a operation code, or opcode, which designates the overall purpose of the instruction (e.g. add, subtract, move, input, etc.). The number of bits allocated for the opcode determined how many different instructions the architecture supports.

In addition to the opcode, many instructions also contain one or more operands, which indicate where in registers or memory the data required for the operation is located. For example, and addinstruction requires two operands, and a not instruction requires one.

15 12 11 6 5 0 +-----------------------------------+ | Opcode | Operand | Operand | +-----------------------------------+

The opcode and operands are most often encoded as unsigned binary numbers in order to minimize the number of bits used to store them. For example, a 4-bit opcode encoded as a binary number could represent up to 16 different operations.

The control unit is responsible for decoding the opcode and operand bits in the instruction register, and then generating the control signals necessary to drive all other hardware in the CPU to perform the sequence of microoperations that comprise the instruction.

hope it helped dear: )
Similar questions