490 THE x86 MICROPROCESSORS
14.1.4 | BOUND Register, Address
BOUND verifi es that the signed value in the specifi ed register lies within specifi ed limits.
If the value does not lie within the bounds, an array bounds exception (INT 5) occurs. BOUND
is useful for checking array bounds before attempting to access an array element. is prevents
the program from overwriting information outside the limits of the array.
BOUND has two operands. e fi rst, register, specifi es the register being tested. e second,
address, contains the eff ective relative address of the two signed boundary values. Array index
in source register is checked against upper and lower bounds in memory source. e fi rst word
located at ‘address’ is the lower boundary and the ...