예제 #1
0
 public static void Init()
 {
     stat   = 1;
     ZF     = true;
     reg[4] = 800000;
     f.Clear();
     d.Clear();
     e.Clear();
     m.Clear();
     D.Clear();
     E.Clear();
     M.Clear();
     W.Clear();// nop
     predPC = 0;
     Mem_sys_load();
     cycle = 0;
     OutputFetch();
     OutputDecode();
     OutputExecute();
     OutputMemory();
     OutputWriteback();
 }