Group 5
Group 5
ASSEMBLY LANGUAGE
ASSIGNMENT
GROUP 5
NAMES REGOSTRATION NUMBER
ZAINAB ABDULMUMIN CST23HND0716
CALEB LUKA CST23HND0736
ALIYU AHMAD ALIYU CST23HND0728
ABDULRAHMAN YUSUF CST23HND0738
GODWIN ENEOJO DANIEL CST23HND0737
ISAH ZAINAB RAMAT
MUHAMMAD ATTAHIR CST23HND0734
Solutions:
1. Registers in Assembly Language
In the context of assembly language, registers refer to small, high-speed storage
locations located directly inside the Central Processing Unit (CPU). Registers are
essential to the CPU's ability to perform computations efficiently because they
provide immediate access to the most frequently used data and instructions.
Unlike general memory (RAM), which is relatively slow to access, registers allow
the CPU to quickly retrieve data, manipulate it, and then store the result. Because of
their proximity to the CPU, registers play a critical role in enhancing performance,
as they reduce the need to frequently access slower forms of memory.
Different CPUs have different sets of registers, which can vary in size, typically
ranging from 8-bit to 64-bit registers, depending on the architecture. Common types
of registers include:
Accumulator (AX): Used to store results of arithmetic and logic operations. It is the
most frequently accessed register for computation tasks.
Base Register (BX): Typically holds the base memory address for data storage and
is used for addressing modes in assembly language.
Counter Register (CX): Commonly used as a loop counter in iterative operations or
loops, managing how many times a particular loop should run.
Data Register (DX): Handles input/output operations and can store extra data for
more complex calculations, such as those requiring large numbers.
Registers, due to their limited size, are directly manipulated by assembly language
instructions. As such, they form the backbone of low-level CPU operations, ensuring
efficient data processing, memory addressing, and instruction execution.