Cosmos/source2/Compiler/Cosmos.Compiler.XSharp/Address.cs
kudzu_cp 812603b385
2011-07-18 01:09:56 +00:00

27 lines
745 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cosmos.Compiler.Assembler;
namespace Cosmos.Compiler.XSharp {
public class Address {
public static implicit operator Address(Register32 aRegister) {
return new AddressIndirect(aRegister, 0);
}
public static implicit operator Address(UInt32 aAddress) {
return new AddressIndirect(aAddress, 0);
}
public static implicit operator Address(string aLabel) {
return new AddressDirect(aLabel);
}
public static implicit operator Address(DataMember aMember) {
return new AddressIndirect(aMember.Name, 0);
}
}
}