38 imageFile = cmd.GetValue<
string>(
"i" );
39 ramSize = GetValueFromArg(cmd,
"r" );
40 debugFile = cmd.GetValue<
string>(
"o");
41 numCores = GetValueFromArg(cmd,
"c");
48 if (debugFile !=
"console") {
49 Console.SetOut (
new System.IO.StreamWriter (debugFile));
53 FramebufferForm form =
new FramebufferForm ();
55 byte[] data = InputFactory.GetInputClass (cmd).LoadFromFile (imageFile);
58 Console.WriteLine (
"Not enough bytes to load this image.");
void RegisterHelpArgument(string name="help")
Registers a help argument that will display the help page for the program if set by the user...
Definition: CommandLineArgs.cs:321
Class for defining, validating and processing command line arguments.
Definition: CommandLineArgs.cs:204
void PrintHelp(string errorMessage=null)
Prints a help message describing the effects of all available options.
Definition: CommandLineArgs.cs:243
An argument that can have any value.
Definition: CommandLineArgs.cs:732
static VM Instance
Gibt die Singleton Instance zzrück
Definition: VM.cs:57
bool Start(byte[] data)
Startet die Virtualle Maschine
Definition: VM.cs:92
bool Validate(string[] args, OptionalOut< string[]> outErrors=null)
Processes a set of command line arguments.
Definition: CommandLineArgs.cs:355
void SetDefaultArgument(string argument)
Sets the default argument that will be filled when no argument name is given.
Definition: CommandLineArgs.cs:334
void CreateVM(UInt32 ramSize, int iNumCores)
Erstellt die Virtuale Maschine
Definition: VM.cs:72
void RegisterArgument(string name, Argument arg)
Registers a new argument.
Definition: CommandLineArgs.cs:312
Diese Klasse beschreibt die Virtualle Maschine und ist eine zusammenstellung der verwendete Komponent...
Definition: VM.cs:34