Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 567 Bytes

File metadata and controls

28 lines (17 loc) · 567 Bytes

import fs

using fs, load the file I have called inputfile

ignore comments as you read the file

let program_counter = 0;

create an interval with setInterval

you choose interval

call function executeCore

Read data from your file that is pointed to by PC

PC 0 = line 0

Implement a delay timeout with interrupt from MAR/DMA to notify CPU when memory is ready

Copy the data pointed to by the PC into the IR

IR commands:

  • Initialize: set all four registers to 0
  • SET: prepare to specify which register
  • register 0 is set
  • SAVE
  • ...