Segment:
Definition:
“Segment is a block of memory. Address or segment registers are used to store the address
Of memory blocks of the instruction being executed.”
Types of Segment Register:
There are four segment registers:
i) Code Segment (CS)
ii) Data Segment (DS)
iii) Extra Segment (ES)
iv) Stack Segment (SS)
Size of Registers:
The size of the register is two bytes.
Types of register:
Different segment registers are as follows:
i) Code Segment (CS):
=>It stores the base location of all executable instruction in the program.
=>It is used with IP registers to fetch program instruction from memory
ii) Data Segment (DS):
=>It is used as the default base location for memory variables.
=>It is used with DI or SI registers to refer to the data in memory
iii) Extra Segment (ES):
=>It is used as an additional