Guest User

Untitled

a guest
Dec 12th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. function runInstructionSet(memoryAdd) {
  2. const dataAtAddress = getAtAddress(dataDOM, memoryAdd);
  3. const instructionAtAddress = getAtAddress(codeDOM, memoryAdd);
  4. switch (instructionAtAddress) {
  5. case "11111101":
  6. loadDataIntoAccumulator(dataAtAddress);
  7. break;
  8. case "11111110":
  9. addToAccumulator(dataAtAddress);
  10. break;
  11. case "11111111":
  12. storeInMemoryAdd(dataAtAddress, memoryAdd);
  13. break;
  14. }
  15. }
Add Comment
Please, Sign In to add comment