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)); }
//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); }
public override bool IsComplete(NCAsm.AsmContext aAssembler) { ulong xAddress; return(DestinationRef == null || DestinationRef.Resolve(aAssembler, out xAddress)); }
public override bool IsComplete(XSharp.Assembler.Assembler aAssembler) { ulong xAddress; return(DestinationRef == null || DestinationRef.Resolve(aAssembler, out xAddress)); }