Package se.sics.mspsim.core

Examples of se.sics.mspsim.core.MSP430.step()


          return;
        }

        try {
          while (count++ < max) {
            cpu.step(mspMote.getCPU().cycles+1);
            pc = cpu.readRegister(MSP430Core.PC);
            instruction = cpu.memory[pc] + (cpu.memory[pc + 1] << 8);
            if ((instruction & 0xff80) == MSP430.CALL) {
              depth++;
            } else if (instruction == MSP430.RETURN) {
View Full Code Here


      pcHistory[i] = pcHistory[i-1];
    }
    pcHistory[0] = cpu.reg[MSP430.PC];

    try {
      cpu.step(cycleCounter);
    } catch (EmulationException e) {
      if (e.getMessage().startsWith("Bad operation")) {
        /* Experimental: print program counter history */
        LineListener oldListener = commandListener;
        LineListener tmpListener = new LineListener() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.