Assembly Language Programming - CS401 Power Point Slides Lecture 03
Assembly Language Programming - CS401 Power Point Slides Lecture 03
General Purpose
AX
BX
CX
DX
iAPX 88 Registers (16-bit)
General Purpose
16-bit
AX
AH AL
8-bit 8-bit
iAPX 88 Registers (16-bit)
General Purpose
16-bit
BX
BH BL
8-bit 8-bit
iAPX 88 Registers (16-bit)
General Purpose
AX A Accumulator Register
BX B Base Register
CX C Counter Register
DX D Destination Register
iAPX 88 Registers (16-bit)
SI
DI
iAPX 88 Registers (16-bit)
Flag Register
- - - - O D I T S Z - A - P - C
Program Counter
Instruction Pointer
Function:
Address of next instruction to be executed
Instruction Groups
Segment
General Purpose
AX AH,AL
BX BH,BL
CX CH,CL
DX DH,DL
A Simple Program
NASM
ALINK
Debugger
AFD
mov ax,5
mov bx,10
Add ax,bx
Mov bx,15
Add ax,bx
Mov ax,0x4c00
Int 0x21
EX01.LST
Word Representation
4 Byte Word
MSB LSB
Representation in Memory
Representation 1
Little Endian Notation MSB LSB
0 1 2 3
Representation 2
Big Endian Notation LSB MSB
0 1 2 3