Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sdm
- Wk 8 Control Unit Lab
- This program takes the sum of
- 27, 18, 56, 03, and 10
- and stores that value at mem[255]
- %
- //
- 0: 1110 1001 // RAM Address #233
- 1: 0000 0000 // Load
- //
- 2: 0000 1010 // Decimal Value 10
- 3: 0000 0100 // Add
- //
- 4: 0000 0011 // Decimal Value 03
- 5: 0000 0100 // Add
- //
- 6: 0011 1000 // Decimal Value 56
- 7: 0000 0100 // Add
- //
- 8: 0001 0010 // Decimal Value 18
- 9: 0000 0100 // Add
- //
- 10: 1111 1111 // RAM Address #255
- 11: 0000 1000 // Store
- //
- 12: 0000 0000 // UNUSED
- 13: 0000 1100 // STOP
- //
- 233: 0001 1011 // Decimal Value 27
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement