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
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?
Step by Step Solution
3.38 Rating (167 Votes )
There are 3 Steps involved in it
Clearly putting the limits in main store memory is not feasible in a load and store world Of course ... View full answer
Get step-by-step solutions from verified subject matter experts
