100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Class notes

Assembly Language Registers Explained | Types & Classification with Examples

Rating
-
Sold
-
Pages
7
Uploaded on
17-12-2025
Written in
2025/2026

These notes explain Registers in Assembly Language in a simple and easy-to-understand way. The content focuses on types, categories, and functions of registers, which are very important topics in Computer Architecture and Assembly Language courses. The notes are ideal for ICS, BSCS, BSE, IT, and Computer Science students who want clear concepts for exams, quizzes, and assignments.

Show more Read less
Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Course
School year
3

Document information

Uploaded on
December 17, 2025
Number of pages
7
Written in
2025/2026
Type
Class notes
Professor(s)
Sir ali
Contains
All classes

Subjects

Content preview

1. Introduction to Registers
Registers are high-speed storage locations inside the CPU, designed to hold data
temporarily while instructions are executed. Compared to main memory, registers offer faster
access, enabling the processor to perform arithmetic, logical, control, and data manipulation
operations rapidly. As highlighted in computer architecture literature (e.g., Mano), registers are
essential for maintaining the internal operation and state of the processor. Their limited size
(often 8, 16, 32, or 64 bits depending on architecture) makes them ideal for immediate
operational data, such as intermediate results, addresses, counters, and flags.



2. Categories of Registers
The Intel 8086 microprocessor contains a total of 14 registers, each serving a specific
function in program execution, data handling, memory management, and control operations.

These registers can be grouped into four main categories:

● General-Purpose Registers (4 main registers + 8 sub-registers)

○ AX, BX, CX, DX (each split into AH/AL, BH/BL, CH/CL, DH/DL)

● Special-Purpose Registers (4 registers)

○ SP, BP, SI, DI

● Segment Registers (4 registers)

○ CS, DS, SS, ES

● Instruction and Flag Registers (2 registers)

○ IP, FLAGS


2.1 General-Purpose Registers (GPRs) (4 main registers +
8 sub-registers)
General-purpose registers are used for holding operands, addresses, and intermediate
results during instruction execution. In Intel 8086/8088 architecture (Brey; Irvine), these include
AX, BX, CX, DX, each of which can also be accessed as 8-bit halves (e.g., AL, AH).

➢ AX, BX, CX, DX (each split into AH/AL, BH/BL, CH/CL, DH/DL)

2.1.1 Accumulator Register (AX)

, The accumulator is used heavily in arithmetic and I/O operations. Many instructions are
optimized for AX, reducing execution time.

Example:

ADD AX, BX


Here, AX receives the sum, reflecting its efficient use in arithmetic operations.

2.1.2 Base Register (BX)
BX commonly stores base addresses for memory operations involving base-index addressing
modes.

Example:

MOV AL, [BX]


This instruction retrieves a byte from the memory address contained in BX.

2.1.3 Count Register (CX)
CX is used for loop counters, especially with the LOOP instruction.

Example:

MOV CX, 10
LOOP_LABEL:
; repeat operations
LOOP LOOP_LABEL


CX automatically decrements until it reaches zero.

2.1.4 Data Register (DX)
DX holds high-order words in multiplication/division operations and is used for port-based I/O.

Example:

OUT DX, AL


Sends content of AL to the port number stored in DX.
$9.19
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
durfshashahzadi

Get to know the seller

Seller avatar
durfshashahzadi UET University lahore
Follow You need to be logged in order to follow users or courses
Sold
New on Stuvia
Member since
2 months
Number of followers
0
Documents
6
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions