public static void run() { Instruction instr = new Instruction(); // storage for decoded instruction Debug.println('m', "Starting user thread " + Thread.currentThread().getName() + "at time " + Nachos.stats.totalTicks); Interrupt.setStatus(Interrupt.UserMode); for (;;) { oneInstruction(instr); Interrupt.oneTick(); if (singleStep && (runUntilTime <= Nachos.stats.totalTicks)) debugger(); } }