// 20thOS Kernel - version 0.01 // // @name 20thOS // @author Trygve B. Wiig // @license GPL // @version 0.01 struct Screen { char* destination; void init() { char clear[1]; clear[0] = ' '; char *source = clear; *destination++ = *source++; } void write(int color, char text) { destination = (char *)0xB8000; char *source = &text; if(color) { *destination++ = 7; } } }; int kmain(void) { Screen k; // k.*destination = (char*)0xB8000; k.write(0, 'Bonjour, Monde!'); }