Assembly language: integer/floating-point instructions Flashcards

1
Q

Describe the format of the MOV instruction.

A

…………..

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

When might the “movzbq” instruction be used?

A

…………..

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

When might the “movsbq” instruction be used?

A

…………..

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

Name all of the mov instructions used to move an integral value from one size to another with zero extension.

A

…………..

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

Name all of the mov instructions used to move an integral value from one size to another with sign extension.

A

…………..

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

What does the instruction “vcvtsi2sd” do?

A

Converts a 32-bit integer to a double.

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

What pair of instructions are used to convert a double stored in register %xmm0 to a float?

A

vmovddup %xmm0, %xmm0

vcvtpd2psx %xmm0, %xmm0

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

What pair of instructions are used to convert a double stored in register %xmm0 to a float?

A

vmovddup %xmm0, %xmm0

vcvtpd2psx %xmm0, %xmm0

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

What does the instruction “vcvtsi2sdq” do?

A

Converts a 64-bit integer to a double.

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