Unit 4 Flashcards
When adding operands with blank, overflow cannot occur.
different signs
There are similar restrictions to the occurrence of overflow during subtract, but it’s just the opposite principle: when the signs of the operands are the blank, overflow cannot occur.
same
Blank occurs in subtraction when we subtract a negative number from a positive number and get a negative result, or when we subtract a positive number from a negative number and get a positive result.
Overflow
Hardware that performs addition, subtraction, and usually logical operations such as AND and OR
Arithmetic Logic Unit (ALU)
Which LEGv8 load instructions should be generated for byte and halfword arithmetic operations?
LDURB, LDURH
Which LEGv8 arithmetic instructions should be generated for byte and halfword arithmetic operations?
ADD, SUB, MUL, DIV
Which LEGv8 store instructions should be generated for byte and halfword arithmetic operations?
STURB, STURH
In multiplication, the first operand is called the blank and the second the blank. The final result is called the blank.
multiplicand
multiplier
product
In fact, if we ignore the sign bits, the length of the multiplication of an n-bit multiplicand and an m-bit multiplier is a product that is blank long. That is, blank are required to represent all possible products.
n + m bits
To produce a properly signed or unsigned 128-bit product, LEGv8 has three instructions: blank, blank and blank
multiply (MUL)
signed multiply high (SMULH)
unsigned multiply high (UMULH)
Divide’s two operands, called the blank and blank, and the result, called the blank, are accompanied by a second result, called the blank.
dividend and divisor
quotient
remainder
A number being divided.
Dividend
A number that the dividend is divided by.
Divisor
The primary result of a division; a number that when multiplied by the divisor and added to the remainder produces the dividend.
Quotient
The secondary result of a division; a number that when added to the product of the quotient and the divisor produces the dividend.
Remainder
A notation that renders numbers with a single digit to the left of the decimal point.
Scientific notation
A number in floating-point notation that has no leading 0s.
Normalized
Computer arithmetic that represents numbers in which the binary point is not fixed.
Floating point
The value, generally between 0 and 1, placed in the fraction field. The fraction is also called the mantissa.
Fraction
In the numerical representation system of floating-point arithmetic, the value that is placed in the exponent field
Exponent