Lectures notes via verification and authentic, Cheat Sheet of Mathematics

Good, better, best, very good, OK, fine

Typology: Cheat Sheet

2024/2025

Uploaded on 03/28/2025

siddharth-gautam-2
siddharth-gautam-2 ๐Ÿ‡ฎ๐Ÿ‡ณ

1 document

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Lecture 3: Types of Registers
There are 14 types of registers in CPU
๏ƒŸ Counts, used in loop
CPU
๏ƒŸ Input / output, Operations, a, ax, eax, rax
๏ƒŸ Holds address of data
๏ƒŸ Counts, used in loop
๏ƒŸ Holds data for output
ah al
a
bh bl
bx
ch cl
cx
dh dl
dx
cs
ds
ss
es
si
di
ip
sp
f
bp
๏ƒŸ Holds address of data segment
๏ƒŸ Points the source operand
๏ƒŸ Holds the next instruction
๏ƒŸ Points current top of stack
<- Holds current status of the program
๏ƒŸ Base of the top of stack
๏ƒŸ Holds address of code segment
๏ƒŸ Holds address of data segment
๏ƒŸ Holds address of stack segment
๏ƒŸ Points the destination operand
1. Accumulator
General
Purpose
Registers
Segment
Registers
Index
Registers
Special
Purpose
Registers
2. Base
3. Counter
4. Data
5. Code Segment
6. Data Segment
7. Stack segment
8. Extra segment
9. Source Index
10. Destination Index
11. Instruction Pointer
12. Stack Pointer
13. Flag registers
14. Base pointer
Stack
Add dl, bl
Add 3, bl
Add dl, 3
1
1
1
There are 14 types of registers
10101010 10101010
Low
High
X = Extended to 16 bits
E = extended to 32 bits
R = Rich Register to 64 bits
Eax Rax
ax
b, bx, ebx, rbx
cx, ecx, rcx
d, dx, edx, rdx
top
0
Carry

Partial preview of the text

Download Lectures notes via verification and authentic and more Cheat Sheet Mathematics in PDF only on Docsity!

Lecture 3: Types of Registers

[email protected]

CPU

๏ƒŸ Input / output, Operations, a, ax, eax, rax ๏ƒŸ Holds address of data ๏ƒŸ Counts, used in loop ๏ƒŸ Holds data for output ah (^) al a bh bl bx ch cl cx dh dl dx cs ds ss es si di ip sp f bp ๏ƒŸ Holds address of data segment ๏ƒŸ Points the source operand ๏ƒŸ Holds the next instruction ๏ƒŸ Points current top of stack <- Holds current status of the program ๏ƒŸ Base of the top of stack ๏ƒŸ Holds address of code segment ๏ƒŸ Holds address of data segment ๏ƒŸ Holds address of stack segment ๏ƒŸ Points the destination operand

1. Accumulator General Purpose Registers Segment Registers Index Registers Special Purpose Registers **2. Base

  1. Counter** **4. Data
  2. Code Segment
  3. Data Segment
  4. Stack segment
  5. Extra segment
  6. Source Index
  7. Destination Index
  8. Instruction Pointer
  9. Stack Pointer
  10. Flag registers
  11. Base pointer**

Stack

Add dl, bl Add 3, bl Add dl, 3 1 1 1

There are 14 types of registers

10101010 10101010 Low High X = Extended to 16 bits E = extended to 32 bits R = Rich Register to 64 bits Eax Rax ax b, bx, ebx, rbx cx, ecx, rcx d, dx, edx, rdx top 0 Carry