Package avrora.core.isdl

Examples of avrora.core.isdl.CodeRegion$Operand


        public void visit(Instr.EICALL i) {
            Stmt stmt;
            LinkedList list0 = new LinkedList();
            stmt = new CommentStmt("===== " + i.getName() + ' ' + i.getOperands() + " ==========================================");
            list0.addLast(stmt);
            result = new CodeRegion(new LinkedList(), list0);
        }
View Full Code Here


        public void visit(Instr.EIJMP i) {
            Stmt stmt;
            LinkedList list0 = new LinkedList();
            stmt = new CommentStmt("===== " + i.getName() + ' ' + i.getOperands() + " ==========================================");
            list0.addLast(stmt);
            result = new CodeRegion(new LinkedList(), list0);
        }
View Full Code Here

            list0.addLast(stmt);
            stmt = new VarBitRangeAssignStmt("tmp_0", 16, 23, new MapExpr("ioregs", new VarExpr("RAMPZ")));
            list0.addLast(stmt);
            stmt = new MapAssignStmt("regs", new Literal.IntExpr(0), new MapExpr("program", new VarExpr("tmp_0")));
            list0.addLast(stmt);
            result = new CodeRegion(new LinkedList(), list0);
        }
View Full Code Here

            list0.addLast(stmt);
            stmt = new VarBitRangeAssignStmt("tmp_0", 16, 23, new MapExpr("ioregs", new VarExpr("RAMPZ")));
            list0.addLast(stmt);
            stmt = new MapAssignStmt("regs", new Literal.IntExpr(i.r1.getNumber()), new MapExpr("program", new VarExpr("tmp_0")));
            list0.addLast(stmt);
            result = new CodeRegion(new LinkedList(), list0);
        }
View Full Code Here

            list0.addLast(stmt);
            stmt = new MapAssignStmt("regs", new Literal.IntExpr(i.r1.getNumber()), new MapExpr("program", new VarExpr("tmp_0")));
            list0.addLast(stmt);
            stmt = new MapAssignStmt("wregs", new Literal.IntExpr(30), new Arith.BinOp.AddExpr(new VarExpr("tmp_0"), new Literal.IntExpr(1)));
            list0.addLast(stmt);
            result = new CodeRegion(new LinkedList(), list0);
        }
View Full Code Here

            list0.addLast(stmt);
            stmt = new VarAssignStmt("S", new Logical.BinOp.XorExpr(new VarExpr("N"), new VarExpr("V")));
            list0.addLast(stmt);
            stmt = new MapAssignStmt("regs", new Literal.IntExpr(i.r1.getNumber()), new VarExpr("tmp_0"));
            list0.addLast(stmt);
            result = new CodeRegion(new LinkedList(), list0);
        }
View Full Code Here

            list0.addLast(stmt);
            stmt = new MapAssignStmt("regs", new Literal.IntExpr(0), new CallExpr("low", tolist1(new VarExpr("tmp_0"))));
            list0.addLast(stmt);
            stmt = new MapAssignStmt("regs", new Literal.IntExpr(1), new CallExpr("high", tolist1(new VarExpr("tmp_0"))));
            list0.addLast(stmt);
            result = new CodeRegion(new LinkedList(), list0);
        }
View Full Code Here

            list0.addLast(stmt);
            stmt = new MapAssignStmt("regs", new Literal.IntExpr(0), new CallExpr("low", tolist1(new VarExpr("tmp_0"))));
            list0.addLast(stmt);
            stmt = new MapAssignStmt("regs", new Literal.IntExpr(1), new CallExpr("high", tolist1(new VarExpr("tmp_0"))));
            list0.addLast(stmt);
            result = new CodeRegion(new LinkedList(), list0);
        }
View Full Code Here

            list0.addLast(stmt);
            stmt = new MapAssignStmt("regs", new Literal.IntExpr(0), new CallExpr("low", tolist1(new VarExpr("tmp_0"))));
            list0.addLast(stmt);
            stmt = new MapAssignStmt("regs", new Literal.IntExpr(1), new CallExpr("high", tolist1(new VarExpr("tmp_0"))));
            list0.addLast(stmt);
            result = new CodeRegion(new LinkedList(), list0);
        }
View Full Code Here

            list0.addLast(stmt);
            stmt = new DeclStmt("tmp_2", "int", new Arith.BinOp.MulExpr(new VarExpr("tmp_1"), new Literal.IntExpr(2)));
            list0.addLast(stmt);
            stmt = new VarAssignStmt("nextPC", new VarExpr("tmp_2"));
            list0.addLast(stmt);
            result = new CodeRegion(new LinkedList(), list0);
        }
View Full Code Here

TOP

Related Classes of avrora.core.isdl.CodeRegion$Operand

Copyright © 2018 www.massapicom. 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.