Skip to content

Commit cc54c2c

Browse files
committed
See update 8.18.2021.06.00.PM.KEVIN.CHEN
1 parent 5ace67a commit cc54c2c

File tree

10 files changed

+432
-65
lines changed

10 files changed

+432
-65
lines changed

emos/__init__.py

+5-32
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,8 @@
88

99

1010
# Imports
11-
from misc import *
12-
from memory import *
13-
from cpu import *
14-
from operatingsystem import *
15-
from computer import *
16-
17-
18-
19-
20-
# TESTING
21-
22-
memory = Memory()
23-
computer = Computer()
24-
computer.set_memory(memory)
25-
operatingsystem = OperatingSystem(computer)
26-
terminalscreen = TerminalScreen(computer)
27-
harddrive = FileSystem(computer, "test.fs")
28-
harddrive._backend_load()
29-
harddrive._backend_update()
30-
computer.set_filesystem(harddrive)
31-
computer.add_peripheral(terminalscreen)
32-
computer.set_os(operatingsystem)
33-
cpu = CPU(computer, memory)
34-
computer.set_cpu(cpu)
35-
core = CPUCore(cpu)
36-
cid = cpu.add_core(core)
37-
core2 = CPUCore(cpu)
38-
cid2 = cpu.add_core(core2)
39-
cmdhandler = CMDHandler('')
40-
cmdhandler.initialize(computer)
41-
operatingsystem.set_cmd_handler(cmdhandler)
42-
computer.start()
11+
from .misc import *
12+
from .memory import *
13+
from .cpu import *
14+
from .operatingsystem import *
15+
from .computer import *

emos/computer.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99

1010
# Imports
11-
from misc import *
12-
from memory import *
11+
from .misc import *
12+
from .memory import *
1313

1414

1515
class FileSystem:

0 commit comments

Comments
 (0)