Exemplo n.º 1
0
 public x86CPU(Config cfg)
 {
     _cfg = cfg;
     Registers = new Registers();
     State = new CPUState();
     Memmory = new Memmory(_cfg);
     _opcode = new Opcode();
 }
Exemplo n.º 2
0
        /// <summary>
        /// Clear the screen with a given color
        /// </summary>
        /// <param name="color">The color in hex</param>
        public void Clear(uint color)
        {
            Color c = new Color((int)color);

            Memmory.Memset((uint *)0xE0000000, (uint)color, (uint)(ScreenWidth * ScreenHeight));
        }