Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function runInstructionSet(memoryAdd) {
- const dataAtAddress = getAtAddress(dataDOM, memoryAdd);
- const instructionAtAddress = getAtAddress(codeDOM, memoryAdd);
- switch (instructionAtAddress) {
- case "11111101":
- loadDataIntoAccumulator(dataAtAddress);
- break;
- case "11111110":
- addToAccumulator(dataAtAddress);
- break;
- case "11111111":
- storeInMemoryAdd(dataAtAddress, memoryAdd);
- break;
- }
- }
Add Comment
Please, Sign In to add comment