Arithmetic Operations Flashcards

1
Q

where the data is coming from or where the result is to be placed

A

operands

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

when using mov, destination and source operand must be of the _______

A

same size

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

when using mov, operands cannot be both ___________

A

memory variables

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

basic addressing modes

A

register, immediate, memory

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

the operand is a location in memory (accessed via an address) referred to ______ or ______

A

indirection, dereferencing

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

In addition and subtraction, the destination and source operand must be of the _____

A

same size

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

in addition and subtraction, operands cannot be both _________

A

memory variables

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

in multiplication and division, the _____ operand must be a ______ or _______ location

A

source, register, memory

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

For the single operand multiplication instruction, the _______ must be used for one of the operands

A

A register (al/ax/eax/rax)

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

For the single operand multiplication instruction, the result will be placed in the _________, based on the sized being multiplied

A

A and possibly D registers

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

In division, the result will be placed in the ________

A

A register (al/ax/eax/rax)

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

The _________, must be used in combination for the dividend

A

A and possibly the D register

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

The remainder will be placed in the _______

A

ah, dx, edx, or rdx register

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

in conditional transfer, the operands must be of the _____ and cannot be both _______

A

same size, memory variables

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

location to jump to, for control statements

A

label

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

jump if equal

14
Q

the 2 steps required for a comparison

A

compare instruction and conditional jump instruction

14
Q

starts with a letter, followed by letters, numbers, or _ terminated with a colon

14
Q

may be defined only once

15
Q

jump is carried out on the basis of a truth value

A

conditional transfer

15
Q

jump based on a comparison

A

conditional transfer

16
Q

jump if not equal

16
Q

provides the functionality of a basic if statement

A

conditional transfer

17
Q

in conditional transfer, <op1> \_\_\_\_\_\_ but <op2> \_\_\_\_\_\_\_</op2></op1>

A

cannot be an immediate value, may be an immediate value

18
compares the two operands and stores the results of the comparison in the rFlag register
compare instruction
19
jump if less than
jl
19
jump if less than or equal
jle
20
jump if greater than
jg
20
jump if greater than or equal
jge
21
jump if below than
jb
22
jump if below or equal
jbe
23
jump if above than
ja
24
jump if above than or equal
jae