Пример #1
0
 public override bool IsComplete(Cosmos.Assembler.Assembler aAssembler)
 {
     if (DestinationRef != null)
     {
         ulong xAddress;
         return(base.IsComplete(aAssembler) && DestinationRef.Resolve(aAssembler, out xAddress));
     }
     return(base.IsComplete(aAssembler));
 }
Пример #2
0
        //public override byte[] GetData(Assembler aAssembler) {
        public override void WriteData(NCAsm.AsmContext aAssembler, System.IO.Stream aOutput)
        {
            aOutput.WriteByte(0xEA);
            ulong xAddress = 0;

            if (DestinationRef != null && DestinationRef.Resolve(aAssembler, out xAddress))
            {
                xAddress = (ulong)(((long)xAddress) + DestinationRef.Offset);
            }
            aOutput.Write(BitConverter.GetBytes((uint)(xAddress)), 0, 4);
            aOutput.Write(BitConverter.GetBytes(Segment), 0, 2);
        }
Пример #3
0
        public override bool IsComplete(NCAsm.AsmContext aAssembler)
        {
            ulong xAddress;

            return(DestinationRef == null || DestinationRef.Resolve(aAssembler, out xAddress));
        }
Пример #4
0
        public override bool IsComplete(XSharp.Assembler.Assembler aAssembler)
        {
            ulong xAddress;

            return(DestinationRef == null || DestinationRef.Resolve(aAssembler, out xAddress));
        }