Chapter 9 Flashcards

1
Q

What is for jump

A

We can jump anywhere in physical memory

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

What is bubble sort

A

Target any 2 elements of array, compare them and sort. Then pick another number,compare them and if require then swap them and so on, until whole array get sorted.

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

How to define an array in assembly

A

dw, 60, 55, 12, 16

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

What is keyword for swap

A

swap

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

What is first executable instruction

A

offset 0100

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

What is JMP

A

It is the unconditional jump that executes regardless of the state of all flags.

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

What is relative addressing

A

It does not tell the exact address rather it tells how much forward or backward to go from the current position

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

What are types of jumps

A

The three types of jump, near, short, and far

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

What is Near Jump

A

When the relative address stored with the instruction is in 16 bits, the jump is called near jump

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

What is short jump

A

If the offset is stored in a single byte, the jump is called a short jump.

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

Is it true unconditional jumps can be short, far and near and conditional jumps can only be short.

A

Yes

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

What is Far jump

A

Far jump is not position relative but is absolute. Both segment and offset must be given to a far jump. The other 2 jumps were used to jump within a segment. Sometimes we may need to go from one code segment to another, and near and short jumps cannot take us there. Then we use far jump. Far jump is intra segment.

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