The 68020's CHK2 and CMP2 instructions are rather nice because they let you compare a register against

Question:

The 68020's CHK2 and CMP2 instructions are rather nice because they let you compare a register against two bounds in order to perform array subscript checking at run time. Unfortunately, they are expensive, because they require two words to be read from memory (the upper and lower bounds) and that is a time-consuming operation. Can you think of a way of implementing such an instruction without incurring such massive penalties?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: