Beruflich Dokumente
Kultur Dokumente
Lecture 2
Understanding Basics of
Addresses
Ask your friend who cannot read Urdu, to pick
a book for you (marked red) from an Urdu
book shelf, and give it to you. After you have
read it, ask it to place in the shelf marked
with black arrow
Understanding Basics of
Addresses
Understanding Basics of
Addresses
1. The addresses also work in same manner.
We need to inform about the addresses to
memory (in a stack) in vertical and horizontal
(size of address, normally 8 bit)
2. The memory can be said to divide into cell.
3. The address bus generate a binary number,
which gives us information of memory cell, and
its size.
Early processors used a wire for each bit of the
address width. For example, a 16-bit address
bus had 16 physical wires making up the bus.
Understanding basic of
Registers
Accumulator Register
Function
1. Mathematical and logical operations are carried
out in this register
2. Example add, subtract, or gate
3. The 8 bit processor means the accumulator is
also 8 bit
Pointer/Index/Base Register
. Stores addresses not data
Anindex registerin a computer's CPU is a
processorregisterused for modifying
operand addresses during the run of a
program,
Why we need to
store addresses
Instruction Groups
We all know that computer works with the
help of instructions. We have divided the
different instructions in different groups, for
better understanding. Their name are as
follow:
4. Special instructions
a. They are used to force processor to change its behavior
as per our will
Add ax,1234
Add bx,ax
add ax to bx
Add bx,[1212]
Program Control
a. We know normally the instructions are
carried out one by one (consecutively) .
However some times we do not need to run
consecutive instruction. For these purposes ,
such commands are use (You man like to
think about command if)
Cmp ax,0
compare ax with 0
Jne 1234
Special Instruction
Cli
disable interrupts
Special instructions
. They are used to force processor to change
its behavior as per our will
Register Architecture