Chapter 4 Flashcards

1
Q

how to run file in debugger

A

afd ex01.com

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

how to run assembly file

A

nasm ex01.asm -o ex01.com -l ex01.lst

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

how to edit lst file

A

edit ex01.lst

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

how to capture any particular register

A

m1 ds:0100

(note: here ds is d register
0100: its value)

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

what is the size of db

A
1 byte 
(db = define byte)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the size of dw

A
2 byte
(define word)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the size of dn

A
4 bit
(dn = define nibble)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is linear memory model

A

In linear memory model the whole memory appears like a single array of data.

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

What is segmented memory model

A

The segmented memory model allows multiple functional windows into the main memory, a code window, a data window etc.

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

What is Paragraph Boundaries

A

As the segment value is a 16bit number and four zero bits are appended to the right to make it a 20bit number, segments can only be defined a 16byte boundaries called paragraph boundaries.

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

What is Overlapping Segments

A

We can also observe that in the case of our program CS, DS, SS, and ES all had the same value in them. This is called overlapping segments so that we can see the same memory from any window. This is the structure of a COM file.

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

What is logical address

A

The segment, offset pair is called a logical address. Logical addressing is a mechanism to access the physical memory

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

What is physical address

A

the 20bit address is a physical address which is the real thing

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