Examples of executeCheck()


Examples of br.com.gmartins.simbler.registers.flags.FlagCatcher.executeCheck()

        if (RegexMatcher.matches(regex0, getCurrentInstruction().getLineCommand())) {
            // Pega o comando na posição definida pelo numero após o @
            Instruction dest = getInstructionAt(getCurrentInstruction().getValue());
            Value value = ALU.sub(getRegisters().getAx().getValue(), dest.getValue());
            // Faz a verificação do valor obtido e liga as flags necessárias
            flagCatcher.executeCheck(value);
        } else if (RegexMatcher.matches(regex1, getCurrentInstruction().getLineCommand())) {
            // Subtrai o valor definido no ADD com o valor atual de AX

            Value value = ALU.sub(getRegisters().getAx().getValue(), getCurrentInstruction().getValue());
            // Faz a verificação do valor obtido e liga as flags necessárias
View Full Code Here

Examples of br.com.gmartins.simbler.registers.flags.FlagCatcher.executeCheck()

        } else if (RegexMatcher.matches(regex1, getCurrentInstruction().getLineCommand())) {
            // Subtrai o valor definido no ADD com o valor atual de AX

            Value value = ALU.sub(getRegisters().getAx().getValue(), getCurrentInstruction().getValue());
            // Faz a verificação do valor obtido e liga as flags necessárias
            flagCatcher.executeCheck(value);
        } else if (RegexMatcher.matches(regex2, getCurrentInstruction().getLineCommand())) {
            // Subtrai o valor do registrador definido em ADD com o valor de AX
            Value value = ALU.sub(getRegisters().getAx().getValue(), getCurrentInstruction().getRegister().getValue());
            // Faz a verificação do valor obtido e liga as flags necessárias
            flagCatcher.executeCheck(value);
View Full Code Here

Examples of br.com.gmartins.simbler.registers.flags.FlagCatcher.executeCheck()

            flagCatcher.executeCheck(value);
        } else if (RegexMatcher.matches(regex2, getCurrentInstruction().getLineCommand())) {
            // Subtrai o valor do registrador definido em ADD com o valor de AX
            Value value = ALU.sub(getRegisters().getAx().getValue(), getCurrentInstruction().getRegister().getValue());
            // Faz a verificação do valor obtido e liga as flags necessárias
            flagCatcher.executeCheck(value);
        }

    }
}
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.