Array Index Bound Check                           

86/88

N

186

Y

286

Y

386

Y

486

Y

BOUND source, limit

Ovfl

N

Dir

N

Int

N

Trap

N

Sign

N

Zero

N

Aux

N

Prty

N

Carry

N

    Array index in source register is checked against upper and lower
    bounds in memory source.  The first word located at "limit" is
    the lower boundary and the word at "limit+2" is the upper array bound.
    Interrupt 5 occurs if the source value is less than or higher than
    the source.

------------------------------------ Timing ----------------------------------

OpCode          Instruction             386     286     86
62/r            BOUND r16, m16&16       10      13
62/r            BOUND r32, m32&32       10

------------------------------------ Logic -----------------------------------

        If source < lower bound OR source > upper bound then
                int 05h

See Also Flags


Copyright © 1985 to 2022 Beta Systems                            Last modified: Wednesday, January 05, 2022 .