5 * Copyright (C) 2008 Pawel Dziepak
7 * Functions that are needed to fully use text console which is "created" by
17 /* Show a sign of selected colour in certain place */
18 void arch::screen_print(const char sign
, scr_color color
, int x
, int y
) {
19 char *text_mem
= (char*)0xB8000;
20 int pos
= x
+ y
* scr_width
;
22 /* Put char into graphic card memory */
23 text_mem
[pos
* 2] = sign
;
24 text_mem
[pos
* 2 + 1] = color
;
29 outb(0x3D5, pos
>> 8);