TOY EXERCISES



For each of the following TOY programs, suppose that TOY
is started at 10 with the given hex numbers loaded into memory.  
For each problem, give the contents of R1 and R2 when the 
machine halts.

 1.
      10: B111
      11: B210
      12: 2112
      13: 0000

 2. 
      10: 9111
      11: 9210
      12: 2112
      13: 0000


 3.
      10: B101
      11: B20C
      12: B301
      13: 1111
      14: 2223
      15: 7213
      16: 0000
 4.
      10: B100
      11: B201
      12: B304
      13: B405
      14: 1112
      15: 7414
      16: 7313
      17: 0000

 5. Suppose one wanted to increase the TOY machine memory to 2048 
    16-bit words, instead of 256.  What is the major problem that would 
    need to be addressed?