initialize cga cursor to 0
This commit is contained in:
@ -162,10 +162,13 @@ void CGA::scrollup () {
|
|||||||
void CGA::clear () {
|
void CGA::clear () {
|
||||||
|
|
||||||
/* Hier muess Code eingefuegt werden */
|
/* Hier muess Code eingefuegt werden */
|
||||||
|
|
||||||
for (unsigned short byte = 2 * 80 * 0; byte < 2 * 80 * 25; ++byte) {
|
for (unsigned short byte = 2 * 80 * 0; byte < 2 * 80 * 25; ++byte) {
|
||||||
*((char*)(CGA_START + byte)) = '\0';
|
*((char*)(CGA_START + byte)) = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this->setpos(0, 0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -32,7 +32,7 @@ public:
|
|||||||
CGA () : index_port (0x3d4), data_port (0x3d5) {
|
CGA () : index_port (0x3d4), data_port (0x3d5) {
|
||||||
CGA_START = (const char*)0xb8000;
|
CGA_START = (const char*)0xb8000;
|
||||||
|
|
||||||
// NOTE: Added this
|
// NOTE: I added this
|
||||||
this->setpos(0, 0);
|
this->setpos(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user