Esempio n. 1
0
        public VirtualMachine(Assembly file)
        {
            Assembly = file;
            Register = new RegisterCollection(this);
            Stack    = new Stack();

            ScanInstructions();
            PortMappedDeviceManager.ScanDevices();
            InterruptTable.ScanHandlers();

            ErrorTable.Add(0x1, "The Register is protected"); //ToDo: add ErrorAttribute to Instructions
        }