예제 #1
0
 /// <summary>
 /// Write instruction operands into bytecode stream.
 /// </summary>
 /// <param name="writer">Bytecode writer.</param>
 public override void WriteOperands(WordWriter writer)
 {
     SrcImage.Write(writer);
     PackedReferenceIds.Write(writer);
     PackedReferenceFieldPolarities.Write(writer);
     Payload.Write(writer);
 }
        /// <summary>
        /// Calculate number of words to fit complete instruction bytecode.
        /// </summary>
        /// <returns>Number of words in instruction bytecode.</returns>
        public override uint GetWordCount()
        {
            uint wordCount = 0;

            wordCount += IdResultType.GetWordCount();
            wordCount += IdResult.GetWordCount();
            wordCount += SrcImage.GetWordCount();
            wordCount += PackedReferenceIds.GetWordCount();
            wordCount += Payload.GetWordCount();
            return(wordCount);
        }
        /// <summary>
        /// Calculate number of words to fit complete instruction bytecode.
        /// </summary>
        /// <returns>Number of words in instruction bytecode.</returns>
        public override uint GetWordCount()
        {
            uint wordCount = 0;

            wordCount += IdResultType.GetWordCount();
            wordCount += IdResult.GetWordCount();
            wordCount += PackedReferenceIds.GetWordCount();
            wordCount += PackedReferenceParameterFieldPolarities.GetWordCount();
            wordCount += Payload.GetWordCount();
            return(wordCount);
        }
 /// <summary>
 /// Write instruction operands into bytecode stream.
 /// </summary>
 /// <param name="writer">Bytecode writer.</param>
 public override void WriteOperands(WordWriter writer)
 {
     PackedReferenceIds.Write(writer);
     PackedReferenceParameterFieldPolarities.Write(writer);
     Payload.Write(writer);
 }