From f6c293c06eefe3becb76e32c4bd4a6ca10ab9930 Mon Sep 17 00:00:00 2001 From: mterwoord_cp <7cd3fd84a0151ea055c2f79e4d2eef9576fe9afesxUZAwxD> Date: Sat, 6 Oct 2007 08:22:34 +0000 Subject: [PATCH] --- .../CustomImplementations/System/ConsoleImpl.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Indy.IL2CPU.IL.NativeX86/CustomImplementations/System/ConsoleImpl.cs b/source/Indy.IL2CPU.IL.NativeX86/CustomImplementations/System/ConsoleImpl.cs index ea700649f..fd8bb7922 100644 --- a/source/Indy.IL2CPU.IL.NativeX86/CustomImplementations/System/ConsoleImpl.cs +++ b/source/Indy.IL2CPU.IL.NativeX86/CustomImplementations/System/ConsoleImpl.cs @@ -25,7 +25,8 @@ namespace Indy.IL2CPU.IL.NativeX86.CustomImplementations.System { } private unsafe static void PutChar(int aLine, int aPos, byte aChar) { - byte* xScreenPtr = (byte*)((0xB8000) + (aPos + aLine * 80) * 2); + int xScreenOffset = ((aPos + aLine * 80) * 2); + byte* xScreenPtr = (byte*)((0xB8000) + xScreenOffset); byte xVal = (byte)((aChar + 1) & 0xFF); *xScreenPtr = xVal; xScreenPtr += 1;