from Memory import Memory from globalHelp import * from SystemQueue import SystemQueue from CPU import CPU from Printer import Printer from Logger import Logger #---------------------------- Global Variables ---------------------------------------------- CPU = CPU() Memory.initialise() SystemBuffer.initialise() Printer.initialize() Logger.initialize() def main(): channel.channel1.ChannelBusy = True channel.channel3.ChannelBusy = True channel.channel2.ChannelBusy = True while(not channel.ChannelIdle()): simulate() CPU.Process() CPU.IOInterrupt() def simulate(): busyList = [] for ch in channel.channelList: if ch.ChannelBusy:
from Memory import Memory from globalHelp import * from SystemQueue import SystemQueue from CPU import CPU from Printer import Printer from Logger import Logger #---------------------------- Global Variables ---------------------------------------------- CPU = CPU() Memory.initialise() SystemBuffer.initialise() Printer.initialize() Logger.initialize() def main(): channel.channel1.ChannelBusy = True channel.channel3.ChannelBusy = True channel.channel2.ChannelBusy = True while (not channel.ChannelIdle()): simulate() CPU.Process() CPU.IOInterrupt() def simulate(): busyList = [] for ch in channel.channelList: if ch.ChannelBusy: