cga mostly done

This commit is contained in:
Eggert Jung
2025-04-18 21:37:16 +02:00
parent ef082a96fa
commit 16ceb1a157
3 changed files with 7 additions and 8 deletions

View File

@@ -32,9 +32,6 @@ void getCursor(unsigned& abs_x, unsigned& abs_y) {
}
void show(unsigned abs_x, unsigned abs_y, char character, Attribute attrib) {
(void)abs_x;
(void)abs_y;
(void)character;
(void)attrib;
TEXT_BUFFER_BASE[abs_x + (COLUMNS * abs_y)] = Cell(character, attrib);
}
}; // namespace CGA

View File

@@ -136,5 +136,5 @@ struct Cell {
/*! \brief Base address for linear text buffer in video memory
*/
Cell* const TEXT_BUFFER_BASE = nullptr;
Cell* const TEXT_BUFFER_BASE = reinterpret_cast<CGA::Cell*>(0xb8000);
}; // namespace CGA