Beispiel #1
0
        public int Enter()
        {
            var identifierCount = new DeferredOperand <ImmediateOperand>(() =>
                                                                         new ImmediateOperand(IdentifierCount));

            Emit(new Instruction(InstructionType.Enter, identifierCount));
            return(0);
        }
Beispiel #2
0
        public int JumpTable(int start, List <LabelOperand> labels)
        {
            var startOp = new ImmediateOperand(start);

            var count = new DeferredOperand <ImmediateOperand>(() =>
                                                               new ImmediateOperand(labels.Count));

            var list = new ListOperand <LabelOperand>(labels);

            Emit(new Instruction(InstructionType.JmpTable, startOp, count, list));
            return(-1);
        }