diff options
Diffstat (limited to 'micsim.py')
| -rwxr-xr-x | micsim.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/micsim.py b/micsim.py new file mode 100755 index 0000000..1e4db48 --- /dev/null +++ b/micsim.py @@ -0,0 +1,17 @@ +#!/usr/bin/python + +from components.microprogram import Microprogram +from components.ram import Ram +from components.caretaker import Caretaker + +c=Caretaker() # Init components +RAM=Ram(c,5000) # Init ram +RAM.loadRamFile("./ram.txt") # Load Ram from file +c["RAM"]=RAM # Add ram to components + + +mic=Microprogram(c) # Create micro program +mic.run() # Run the micro program +mic.dump() # Dump ram + + |
