Code: Select all
char getCharacterAtCursor() {
unsigned short *index;
index = &videoMemory + ((cursorY * 80) + cursorX);
return *index;
}
Code: Select all
char getCharacterAtCursor() {
unsigned short *index;
index = &videoMemory + ((cursorY * 80) + cursorX);
return *index;
}
Code: Select all
char getCharacterAtCursor()
{
addr_t address = VGA_MEM_ADDR + (cursorY * VGA_COLUMNS * 2) + (cursorX * 2);
return *((char*) address);
}
Code: Select all
char getCharacterAtCursor(void) {
struct {
uint8_t character;
uint8_t attribute;
} (*screen)[height][width] = (void*)videoMem;
return (*screen)[cursorY][cursorX].character;
}