예제 #1
0
 public System8080()
 {
     Bus              = new Bus();
     Cpu              = new Cpu(Bus);
     IoController     = new IoController(Bus);
     MemoryController = new MemoryController(Bus);
     VideoController  = new VideoController(Bus);
 }
예제 #2
0
 public void loadProgram(Stream input, DWord programBase)
 {
     if (input.GetType() == typeof(MemoryStream))
     {
         MemoryController.StoreProgram((MemoryStream)input, programBase);
     }
     else
     {
         using (var ms = new MemoryStream()) {
             input.CopyTo(ms);
             MemoryController.StoreProgram(ms, programBase);
         }
     }
     Cpu.Reg.Pc = MemoryController.ProgramBase;
 }
예제 #3
0
 public Byte[] getVram()
 {
     return(MemoryController.getVram());
 }