Memory Organization layout Flashcards
List the Memory Organizations
and there levels
- Registers Level 0
- Cache Level 1
- Main Memory Level 2
- Disk Level 3
- Magnetic Disk Level 4
- Magnetic Tape Level 5
Memory Layout
Heap
Stack
Static
Code(Text)
Heap
is large free memory that could be used by a program. Also know as dynamic memory. Which is one data structure
Stack
is where functions call and local variables are located
Static
Global variables
Code(Text)
is where the instructions are
Types of registers
How to tell the difference between sizes
Data Registers
Pointer Registers
Index Registers
16 bit is 2 digits
32 bits has “E” in front of the 2 digits
64 bits has “R” in front of the 2 digit
AX & Type of Register
Primary Accumulator it is used for input and output and most arithmetic instructions
Data Registers
BX & Type of Register
Based register as could be sued in indexed addressing
Data Registers
CX & Type of Register
Counter register. Stores the loop count
Data Registers
DX & Type of Register
Data Register used for input output like AX a resister along with DX for multiply and divide operations involving large values.
Data Registers
SI & Type of Register
Source Index - It is used as a source index for string operations.
DI & Type of Register
Destination Index - It is used as a destination index for string operations.
OF & Type of Register
Overflow Flag (OF) − It indicates the overflow of a high-order bit (leftmost bit) of data after a signed arithmetic operation.
DF & Type of Register
Direction Flag (DF) − It determines left or right direction for moving or comparing string data. When the DF value is 0, the string operation takes left-to-right direction and when the value is set to 1, the string operation takes right-to-left direction.