instruction set overview Flashcards
(20 cards)
refers to where the data is coming from and/or where the result is to be placed
operands
general form of the move instruction
mov <dest>, <src></src></dest>
- source operand is _____ into the destination operand
- value of the source operand is _________
- destination and source operand must be of the ________
- operands cannot be both _________
copied
unchanged
same size
memory variables
the supported methods for accessing a value in memory using the address of a data item being accessed
addressing modes
basic addressing modes
register, immediate, memory
operand is a CPU register
register mode addressing
operand is an immediate value
immediate mode addressing
operand is a location in memory referred to as indirection or dereferencing
memory mode addressing
______ are used to access the values of memory variables
brackets
general form of integer addition instruction
add <dest>, <src></src></dest>
- the destination and source operand must be of the _______
- operands cannot be both __________
same size
memory variables
general form of increment instruction
inc <operand></operand>
general form of integer subtraction instruction
dub <dest>, <src></src></dest>
general form of decrement instruction
dec <operand></operand>
general form of unsigned multiplication instruction
mul <src></src>
for mul and div, the source operand must be a ____________
register or memory location
for single operand mul:
the _______ must be used for one of the operands
A register
the result of an unsigned multiplication will be placed in the _____ and possibly ______ based on the sizes
A and D registers
general form of unsigned division instruction
div <src></src>
the result of an unsigned div is placed in the ______
while the remainder is placed in the _____
A register
D register