You are on page 1of 8

REGISTERS

BASIC MICROPROCESSOR – SOFTWARE


ARCHITECTURE
REGISTERS
 Code segment (CS)
A register pointing to the area of memory where
the code is stored
 Data segment (DS)
A register pointing to the area of memory where
the data is stored
REGISTERS (C0NT.)
 Stack segment (SS)
A register pointing to the area of memory where
the processor temporarily stores register values in
case they get messed up
 Extra segment (ES)
A register pointing to where ever the user wants it
to point.
REGISTERS (C0NT.)
 AX – word multiply, word divide, word I/O
 AL – byte multiply, byte divide, byte I/O,
translate, decimal arithmetic
 BX – translate
 CX – string operations, loops
 CL – variable shift and rotate
 DX - word multiply, word divide, indirect I/O
REGISTERS (C0NT.)
 IP is to point incoming address instruction.
 SP is the stack pointer and it points to the "top
plate" or last piece of data placed on the stack.
 BP pointing to data in stack segment.
 SI pointing source data address.
 DI pointing to destination data address.
REGISTERS (C0NT.)
 CS:IP -- code segment:instruction pointer points
to the physical address of the next instruction in
memory to execute.
 SS:SP -- stack segment:stack pointer points to the
stack in memory, a temporary storage place for
data.
REGISTERS (C0NT.)
 DS:DI -- data segment:destination index points to
the physical address in memory where data is to
be stored using a pointer.
 DS:SI -- data segment:source index points to the
physical address in memory where data is to be
retrieved using a pointer.

You might also like