Memory Models-Assembly Language Programming-Lab Slides, Slides of Assembly Language Programming

Prof. Abhay Aggrawal delivered this lecture at Birla Institute of Technology and Science for lab of Assembly Language Programming. It includes: Memory, Tiny, Small, Medium, Compact, Registers, Purpose, Segment, Purpose, Index, Base, Hassan, Carry, Overflow

Typology: Slides

2011/2012

Uploaded on 07/26/2012

parina
parina 🇮🇳

4.4

(67)

222 documents

1 / 9

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Memory Models
Tiny
Code & data combined must be less than 64K
Small
One Code Segment & One Data Segment
Each has size less than 64K
Medium
One Data Segment of 64K &
Multiple Code Segments
Compact
One Code Segment of 64K &
Multiple Data Segments
docsity.com
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Memory Models-Assembly Language Programming-Lab Slides and more Slides Assembly Language Programming in PDF only on Docsity!

Memory Models

Tiny^ ^

Code & data combined must be less than 64K Small^ ^

One Code Segment & One Data SegmentEach has size less than 64K Medium^ ^

One Data Segment of 64K &Multiple Code Segments Compact^ ^

One Code Segment of 64K &Multiple Data Segments

Memory Models

Large^ ^

Code & Data Segments of > 64K &  Multiple Code & Data Segments

Huge^ ^

Both code and data can exceed 64k.  Individual Variable can exceed 64k.

REGISTERS

EIP – instruction pointer EFLAGS^ ^

status and control flags  each flag is a single binary bit

General-Purpose

Registers

CSSS DS

ES

EFLAGSEIP

16-bit Segment Registers

32-bit General-Purpose Registers EAXEBXECXEDX

FS GS EBPESPESIEDI

Named storage locations inside the CPU, optimized forspeed.

Index and Base

Registers

Some registers have only a 16-bit namefor their lower half:

Status Flags

-^ Carry

^ unsigned arithmetic out of range

-^ Overflow

^ signed arithmetic out of range

-^ Sign

^ result is negative

-^ Zero

^ result is zero

-^ Parity

^ sum of 1 bits is an even number