コード例 #1
0
ファイル: Interruptor.cs プロジェクト: JoksterCube/jcube-os
        private bool FileReadBlockInterrupt()
        {
            int[]    xy            = GetCurrentCommandLastTwoArguments();
            char[][] blockFromFile = FileManager.ReadFile(xy[0]);
            if (blockFromFile == null)
            {
                return(false);
            }

            VirtualMemory.SetBlockValues(xy[1] * Utility.BLOCK_SIZE, blockFromFile);

            ResetSIRegister();
            return(true);
        }