Ancient CS 61 Content Warning!!!!!1!!!
This is not the current version of the class.
This site was automatically translated from a wiki. The translation may have introduced mistakes (and the content might have been wrong to begin with).

Exercise VM Solutions

The following are our solutions for Exercise VM.

Part A

  1. 0
  2. 0
  3. 0
  4. 1023
  5. 0x40
  6. 0
  7. 0
  8. 0
  9. 1
  10. 2
  11. 0x89A
  12. 0x300
  13. 3

Part B

  1. 0x97865000
  2. 0x033FF000
  3. 0x02080100
  4. 0x0000C7FF

Part C

  1. 0x7000
  2. 0x7001
  3. 0x7FFF
  4. 0x8000
  5. FAULT
  6. 0xA003
  7. FAULT
  8. 0x8F00

Part D

  1. 0x00000000
  2. NONE
  3. 0x00C80FFF
  4. 0x00001888
  5. NONE
  6. 0x00001001
  7. 0x00C80002

Part E

  1. 2 (at 0x9000 and 0x2000)
  2. 5×212 == 0x5000

Part F

One example:

  1. 0x100000FF

  2. *(uint32_t *)0x00400004 = 0x10000007;

  3. 0x000010FF