BlockWrite() public static method

public static BlockWrite ( uint addr, byte buffer, int length ) : void
addr uint
buffer byte
length int
return void
Beispiel #1
0
        private void LoadVGABios()
        {
            FileStream biosStream = File.OpenRead(VGABIOSImagePath);
            var        buffer     = new byte[biosStream.Length];

            biosStream.Read(buffer, 0, buffer.Length);
            Memory.BlockWrite(0xc0000, buffer, buffer.Length);

            biosStream.Close();
            biosStream.Dispose();
        }
Beispiel #2
0
        private void LoadBIOS()
        {
            FileStream biosStream = File.OpenRead(BIOSImagePath);
            var        buffer     = new byte[biosStream.Length];

            uint startAddr = (uint)(0xfffff - buffer.Length) + 1;

            biosStream.Read(buffer, 0, buffer.Length);
            Memory.BlockWrite(startAddr, buffer, buffer.Length);

            biosStream.Close();
            biosStream.Dispose();
        }
Beispiel #3
0
        public static void SegBlockWrite(ushort segment, ushort offset, byte[] buffer, int length)
        {
            var virtualPtr = (uint)((segment << 4) + offset);

            Memory.BlockWrite(virtualPtr, buffer, length);
        }