139140141142143144145146147148149
// " T ^ F => " + (false ^ true)); MSP430 cpu = new MSP430(0, new ComponentRegistry(), new MSP430f1611Config()); int[] memory = cpu.memory; reader.readFile(memory, args[0]); cpu.reset(); cpu.cpuloop(); } }
412413414415416417418419420421422
return 0; } }); ch.registerCommand("reset", new BasicCommand("reset the CPU", "") { public int executeCommand(CommandContext context) { cpu.reset(); return 0; } }); ch.registerCommand("time", new BasicCommand("print the elapse time and cycles", "") {