mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-21 05:18:38 +00:00
This commit is contained in:
parent
5600aeeb4b
commit
f6c293c06e
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue