Advertisement
Sinux1

MyRam.mem

Oct 25th, 2019
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. sdm
  2. Wk 8 Control Unit Lab
  3. This program takes the sum of
  4. 27, 18, 56, 03, and 10
  5. and stores that value at mem[255]
  6. %
  7. //
  8. 0: 1110 1001 // RAM Address #233
  9. 1: 0000 0000 // Load
  10. //
  11. 2: 0000 1010 // Decimal Value 10
  12. 3: 0000 0100 // Add
  13. //
  14. 4: 0000 0011 // Decimal Value 03
  15. 5: 0000 0100 // Add
  16. //
  17. 6: 0011 1000 // Decimal Value 56
  18. 7: 0000 0100 // Add
  19. //
  20. 8: 0001 0010 // Decimal Value 18
  21. 9: 0000 0100 // Add
  22. //
  23. 10: 1111 1111 // RAM Address #255
  24. 11: 0000 1000 // Store
  25. //
  26. 12: 0000 0000 // UNUSED
  27. 13: 0000 1100 // STOP
  28. //
  29. 233: 0001 1011 // Decimal Value 27
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement