mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
22 lines
573 B
C#
22 lines
573 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
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);
|
|
}
|
|
|
|
}
|
|
}
|