kernel writeline works again

This commit is contained in:
mterwoord_cp 2007-10-28 14:11:50 +00:00
parent 911dc893ae
commit 1096560654
2 changed files with 3 additions and 1 deletions

View file

@ -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(" ");

View file

@ -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;