Cosmos/source/Indy.IL2CPU.Assembler.X86/X/Address.cs
kudzu_cp d28e87baf8
2008-04-27 19:51:23 +00:00

22 lines
573 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU.Assembler.X86.X {
public class Address {
public static implicit operator Address(Register32 aRegister) {
return new AddressIndirect(aRegister, 0);
}
public static implicit operator Address(UInt32 aAddress) {
return new AddressDirect(aAddress);
}
public static implicit operator Address(string aLabel) {
return new AddressDirect(aLabel);
}
}
}