Examples of HVMInstructionSet


Examples of Hack.VirtualMachine.HVMInstructionSet

        String currentFunction = null;
        short indexInFunction = 0;
        byte opCode;
        short arg0, arg1;
        short pc = nextPC;
        HVMInstructionSet instructionSet = HVMInstructionSet.getInstance();

    isSlashStar = false;
        try {
            while ((line = unCommentLine(reader.readLine())) != null) {
                lineNumber++;

                if (!line.trim().equals("")) {
                    StringTokenizer tokenizer = new StringTokenizer(line);
                    instructionName = tokenizer.nextToken();

                    opCode = instructionSet.instructionStringToCode(instructionName);
                    if (opCode == HVMInstructionSet.UNKNOWN_INSTRUCTION)
                        throw new ProgramException("in line " + lineNumber +
                                                   ": unknown instruction - " + instructionName);

                    switch (opCode) {
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.