Search for question
Question

3. CEQ X - this instruction tests if the value at memory location X is equal to the value

currently in the AC. It does this by subtract the value at X from the value in the AC and

then an if statement tests to see if the AC is 0. If so, place the value 1 at memory location

X+1 and if not, place 0 at the memory location X+1. In order to get X+1 into the MAR,

assume the MAR is an incrementing register and that there is an execute step where you

can do MARMAR + 1.

Fig: 1