mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-11 10:41:33 +00:00
kernel writeline works again
This commit is contained in:
parent
911dc893ae
commit
1096560654
2 changed files with 3 additions and 1 deletions
|
|
@ -152,6 +152,7 @@ namespace Indy.IL2CPU.Assembler.X86.Native {
|
|||
mOutputWriter.WriteLine("; some more startups todo");
|
||||
mOutputWriter.WriteLine(" call " + EngineEntryPointLabelName);
|
||||
mOutputWriter.WriteLine(" .loop:");
|
||||
mOutputWriter.WriteLine(" xchg bx, bx");
|
||||
mOutputWriter.WriteLine(" hlt");
|
||||
mOutputWriter.WriteLine(" jmp .loop");
|
||||
mOutputWriter.WriteLine(" ");
|
||||
|
|
|
|||
|
|
@ -27,7 +27,8 @@ namespace Indy.IL2CPU.IL.X86.Native.CustomImplementations.System {
|
|||
private unsafe static void PutChar(int aLine, int aPos, byte aChar) {
|
||||
int xScreenOffset = ((aPos + aLine * 80) * 2);
|
||||
byte* xScreenPtr = (byte*)((0xB8000) + xScreenOffset);
|
||||
byte xVal = (byte)((aChar/* + 1*/) & 0xFF);
|
||||
byte xVal = aChar;
|
||||
global::System.Diagnostics.Debugger.Break();
|
||||
*xScreenPtr = xVal;
|
||||
xScreenPtr += 1;
|
||||
*xScreenPtr = 7;
|
||||
|
|
|
|||
Loading…
Reference in a new issue