mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-23 06:18:54 +00:00
Kernel console works again
This commit is contained in:
parent
f1b0632f22
commit
2eb2490012
3 changed files with 6 additions and 4 deletions
|
|
@ -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;
|
||||
// }
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue