Kernel console works again

This commit is contained in:
mterwoord_cp 2007-10-29 16:54:47 +00:00
parent f1b0632f22
commit 2eb2490012
3 changed files with 6 additions and 4 deletions

View file

@ -14,7 +14,8 @@ namespace Cosmos.Kernel.Boot {
public static void Main() {
Console.WriteLine("This is CosmOS Booting...");
// if (!BootInfoSet) {
Console.WriteLine("This is CosmOS Booting...");
// if (!BootInfoSet) {
// Console.WriteLine("No boot info available, terminating!");
// return;
// }

View file

@ -99,9 +99,8 @@ namespace Indy.IL2CPU.Assembler.X86.Native {
mOutputWriter.WriteLine(" mov esp,Kernel_Stack ");
mOutputWriter.WriteLine("");
mOutputWriter.WriteLine("; some more startups todo");
//mOutputWriter.WriteLine(" push ebx");
mOutputWriter.WriteLine(" cli");
mOutputWriter.WriteLine(" xchg bx, bx");
mOutputWriter.WriteLine(" push ebx");
mOutputWriter.WriteLine(" call " + EntryPointName);
mOutputWriter.WriteLine(" .loop:");
mOutputWriter.WriteLine(" xchg bx, bx");

View file

@ -31,8 +31,10 @@ namespace Indy.IL2CPU.IL.X86 {
xDataName = Assembler.GetIdentifier("StringLiteral");
Assembler.DataMembers.Add(new DataMember(xDataName, "dd", xDataName + "__Contents"));
Assembler.DataMembers.Add(new DataMember(xDataName + "__Contents", "db", xDataVal));
} else {
xDataName = xDataName.Substring(0, xDataName.Length - "__Contents".Length);
}
Move(Assembler, "eax", xDataName);
Move(Assembler, "eax", "[" + xDataName + "]");
Pushd(4, "eax");
} else {
var xDataByteArray = new StringBuilder();