M2 Flashcards

1
Q

specifies the memory size assigned to each of the different parts or segments of a program

A

memory model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

there exist different memory models for the

A

8086 processor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

this specifies the size of the memory the program needs

A

.MODEL Directive

memory model directive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Based on this directive, the assembler assigns the required amount of memory to data and code.

A

.MODEL Directive

memory model directive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what are the segments

each one of the segments. in a program, is called a

A

stack, data, and code

logical segment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

depending on the model used, segments may be

A

one or in different physical segments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

here, segments are declared using the .MODEL directive

A

MASM 6.X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

This directive is placed at the very beginning of the program, or after the optional title directive

A

.MODEL Directive

memory model directive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

in this model, both code and data occupy one physical segment

A

TINY Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

In the TINY model both code and data occupy one physical segment. Therefore, all procedures and variables are by default addressed as X, by pointing at their offsets in the segment.

A

NEAR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

On assembling and linking a source file, the tiny model automatically generates a X file, which is smaller in size than an Y file.

A

com

exe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

In this model, all code is placed in one physical segment and all data in another physical segment.

A

SMALL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

In this model, all procedures and variables are addressed as NEAR by pointing to their offsets only.

A

SMALL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In this model, all elements of code are placed into one physical segment. However, each element of data can be placed by default into its own physical segment.

A

COMPACT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

In the compact model, all code elements (procedures) are addressed as X and data elements (variables) are addressed as Y

A

NEAR

FAR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

the model opposite of the compact model

17
Q

In this model, data elements are treated as NEAR and code elements are addressed as FAR.

18
Q

In this model, both code elements (procedures) and data elements (variables) are put in different physical segments.

19
Q

In the large model, pocedures and variables are addressed as X by pointing at both the segment and offset addresses that contain those elements.

20
Q

no data array can have a size that exceeds one physical segment

21
Q

This model is similar to the LARGE model with the exception that a data array may have a size that exceeds one physical segment

22
Q

For the LARGE model, the largest arrays size can not exceed X

23
Q

For the HUGE model, an array may have a size X than 64 KB and hence can span more than one

24
Q

The X and X are the major factors in determining the choice of an appropriate model.

A

amount of data that has to be manipulated

code that needs to be written

25
For a small fast program that operates on small quantities of data, the X models are the most suitable ones
SMALL or TINY
26
difference of small and tiny model
tiny model generates a COM module small model generates an EXE module
27
what module does not allow references to be used
COM
28
For very long programs that require more than one code segment and operate on large amounts of data which would require more than one data segment, the X models are most appropriate.
LARGE and HUGE