You are on page 1of 3

COMPUTER ORGANIZATION AND ASSEMBLY

LANGUAGE
#01

Student Name: SUBUL RAZA


Roll Number: 22SP-041-cs
Section: A
Final Questions
To summarize the lab try to answer the following questions:

 Can the computer execute an assembly instruction?

Yes, a computer can execute assembly instructions. Assembly language is a low-


level programming language that corresponds directly to the machine code
instructions understood by the computer's processor. The processor's execution
unit interprets and executes these instructions to perform operations at a low
level, such as arithmetic calculations, memory access, and control flow.

 How does the computer know that a bit pattern is an instruction?

The computer knows that a bit pattern is an instruction based on the processor's
instruction set architecture (ISA). The ISA defines the structure and encoding of
instructions. The computer's hardware, including the instruction decoder, is
designed to recognize and interpret these predefined instruction formats. By
analyzing the bit pattern according to the ISA specifications, the computer can
identify the operation, operands, and other details of the instruction, allowing it
to execute the corresponding operation.

 How many bytes are used to store one instruction?

4 bytes or 32 bits

 Which registers are affected by a jump instruction?

A jump instruction, also known as a branch instruction, can affect the following
registers:

o Program Counter (PC): The jump instruction modifies the value of the program
counter, which is a register that holds the memory address of the next instruction
to be executed. It updates the program counter to the target address specified by
the jump instruction, causing the program flow to jump to that location.

The specific registers a jump instruction affects can vary depending on the
architecture and instruction set design. It's important to consult the
documentation or reference manual of the specific processor or architecture in
question for precise information regarding register usage in jump instructions.

You might also like