Chapter 14 Flashcards

1
Q

What is stack

A

It is a Last in First Out structure

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

Push and pop works on top most element in stack. True or False

A

True

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

What is stack pointer

A

In stack, the most top element’s memory address is stored in stack pointer (SP).

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

What are 2 types of stack

A
  • Incrementing stack

- Decreminting stack

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

What stack is used in ias88

A

Decrementing stack

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

What is call far

A

It allow us to call from one code segment to another code segment. It is inter segment call

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

What is the difference between car near and call far

A

in call far segment and offset both are used and in car near only offset is used

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

What is ret far

A

It is return instruction for far, same as call far and use both segment and offset.

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

What is exchange

A

it swaps but one argument should be in register and one argument should be in memory or register.

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

Does push do decrements and pop do increment

A

Yes

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

What is call near

A

It is intra segment call

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

What are types of call

A
  • direct call

- indirect call

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

What happened in intra segment direct call

A

For an intra segment direct call, SP is decremented by two and IP is pushed on to stack

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

What happened in inter segment direct call

A

For an inter segment direct call, SP is decremented by 2 and CS is pushed onto stack.

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

What ret do

A

ret (return) transfers control from a procedure back to instruction. It increment SP by two.

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

What are two types of ret

A
  • ret far

- ret near