Arithmetic Operations Flashcards
where the data is coming from or where the result is to be placed
operands
when using mov, destination and source operand must be of the _______
same size
when using mov, operands cannot be both ___________
memory variables
basic addressing modes
register, immediate, memory
the operand is a location in memory (accessed via an address) referred to ______ or ______
indirection, dereferencing
In addition and subtraction, the destination and source operand must be of the _____
same size
in addition and subtraction, operands cannot be both _________
memory variables
in multiplication and division, the _____ operand must be a ______ or _______ location
source, register, memory
For the single operand multiplication instruction, the _______ must be used for one of the operands
A register (al/ax/eax/rax)
For the single operand multiplication instruction, the result will be placed in the _________, based on the sized being multiplied
A and possibly D registers
In division, the result will be placed in the ________
A register (al/ax/eax/rax)
The _________, must be used in combination for the dividend
A and possibly the D register
The remainder will be placed in the _______
ah, dx, edx, or rdx register
in conditional transfer, the operands must be of the _____ and cannot be both _______
same size, memory variables
location to jump to, for control statements
label
jump if equal
je
the 2 steps required for a comparison
compare instruction and conditional jump instruction
starts with a letter, followed by letters, numbers, or _ terminated with a colon
label
may be defined only once
label
jump is carried out on the basis of a truth value
conditional transfer
jump based on a comparison
conditional transfer
jump if not equal
jne
provides the functionality of a basic if statement
conditional transfer
in conditional transfer, <op1> \_\_\_\_\_\_ but <op2> \_\_\_\_\_\_\_</op2></op1>
cannot be an immediate value, may be an immediate value