Package avrora.core

Examples of avrora.core.Instr.accept()


            state = i.state.dup();
            Instr instr = program.readInstr(i.pc);
            printItem(instr);
            int npc = program.getNextPC(i.pc);
            nextPC = npc;
            instr.accept(this);
            if ( nextPC >= 0 ) {
                String str = npc == nextPC ? "FALLTHROUGH" : "JUMP";
                addToWorkList(str, nextPC, state);

            }
View Full Code Here


        // global probes?
        if ( globalProbe.isEmpty() ) {
            Instr i = shared_instr[nextPC];

            // visit the actual instruction (or probe)
            i.accept(this);
            // NOTE: commit() might be called twice, but this is ok
            cycles = cyclesConsumed;
            commit();
        } else {
            // get the current instruction
View Full Code Here

            int curPC = nextPC; // at this point pc == nextPC
            Instr i = shared_instr[nextPC];

            // visit the actual instruction (or probe)
            globalProbe.fireBefore(state, curPC);
            i.accept(this);
            cycles = cyclesConsumed;
            commit();
            globalProbe.fireAfter(state, curPC);
        }
        return cycles;
View Full Code Here

        innerLoop = true;
        while (innerLoop) {
            Instr i = shared_instr[nextPC];

            // visit the actual instruction (or probe)
            i.accept(this);
            // NOTE: commit() might be called twice, but this is ok
            commit();
        }
    }
View Full Code Here

            int curPC = nextPC; // at this point pc == nextPC
            Instr i = shared_instr[nextPC];

            // visit the actual instruction (or probe)
            globalProbe.fireBefore(state, curPC);
            i.accept(this);
            commit();
            globalProbe.fireAfter(state, curPC);
        }
    }
View Full Code Here

            }
        }

        int pc = state.getPC();
        Instr i = readInstr(pc);
        i.accept(this);

        if (state != null) {
            // if we didn't reach a dead end (e.g. a break instruction, return, etc)
            state.setPC(pc + i.getSize());
            policy.pushState(state);
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.