コード例 #1
0
        /// <summary>
        /// Reads the pixel.
        /// </summary>
        /// <param name="x">The x.</param>
        /// <param name="y">The y.</param>
        /// <returns></returns>
        public byte ReadPixel(ushort x, ushort y)
        {
            if (writeMethod == WriteMethod.Pixel8)
            {
                return(memory.Read8((uint)(y * 320 + x)));
            }

            // TODO: Support more video modes
            return(0);
        }