Assembly Language Programming - CS401 Power Point Slides Lecture 02
Assembly Language Programming - CS401 Power Point Slides Lecture 02
Lecture-2
Introduction to Assembly Language
Basic Computer Organization
REGISTERS
Registers
Accumulator Register
Function:
Mathematical and Logical Operations
Registers
Function:
Holds the Address of Operands
Registers
General Purpose
Function:
Temporary Storage
of
Intermediate Results
Registers
Function:
Collection of different boolean
information each bit has an
independent meaning
Registers
Flag / Program Status Word
C O P D Z I A S
C = Carry Flag
Z = Zero Flag
Registers
Carry Flag
1111111111111111
+1111111111111111
0000000000000001
0000000000000000
16 – bit Accumulator
Carry Flag = CF
Registers
Program Counter
Instruction Pointer
Function:
Address of next instruction to be executed
Instruction Groups