1

initialize cga cursor to 0

This commit is contained in:
churl
2022-04-24 13:09:28 +02:00
parent 199b68ca3e
commit f44e7d3956
2 changed files with 4 additions and 1 deletions

View File

@ -162,10 +162,13 @@ void CGA::scrollup () {
void CGA::clear () {
/* Hier muess Code eingefuegt werden */
for (unsigned short byte = 2 * 80 * 0; byte < 2 * 80 * 25; ++byte) {
*((char*)(CGA_START + byte)) = '\0';
}
this->setpos(0, 0);
}

View File

@ -32,7 +32,7 @@ public:
CGA () : index_port (0x3d4), data_port (0x3d5) {
CGA_START = (const char*)0xb8000;
// NOTE: Added this
// NOTE: I added this
this->setpos(0, 0);
}