mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
18 lines
No EOL
646 B
C#
18 lines
No EOL
646 B
C#
using UInt32 = System.UInt32;
|
|
using NumberStyles = System.Globalization.NumberStyles;
|
|
using ArgumentException = System.ArgumentException;
|
|
|
|
namespace Cosmos.Debug.GDB {
|
|
public class Global {
|
|
static public GDB GDB;
|
|
static public AsmFile AsmSource;
|
|
static readonly public char[] SpaceSeparator = new[] { ' ' };
|
|
static readonly public char[] TabSeparator = new[] { '\t' };
|
|
|
|
static public UInt32 FromHexWithLeadingZeroX(string aValue) {
|
|
if (false == aValue.StartsWith("0x"))
|
|
throw new ArgumentException("aValue");
|
|
return UInt32.Parse(aValue.Substring(2), NumberStyles.HexNumber);
|
|
}
|
|
}
|
|
} |