corrections
This commit is contained in:
@ -31,6 +31,9 @@ public:
|
|||||||
// Konstruktur mit Initialisierung der Ports
|
// Konstruktur mit Initialisierung der Ports
|
||||||
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
|
||||||
|
this->setpos(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Konstanten fuer die moeglichen Farben im Attribut-Byte.
|
// Konstanten fuer die moeglichen Farben im Attribut-Byte.
|
||||||
|
|||||||
@ -24,7 +24,7 @@ private:
|
|||||||
CGA_Stream(CGA_Stream ©); // Verhindere Kopieren
|
CGA_Stream(CGA_Stream ©); // Verhindere Kopieren
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CGA_Stream () : OutStream(), CGA () { flush(); }
|
CGA_Stream () : OutStream(), CGA() { flush(); }
|
||||||
|
|
||||||
// Methode zur Ausgabe des Pufferinhalts der Basisklasse StringBuffer.
|
// Methode zur Ausgabe des Pufferinhalts der Basisklasse StringBuffer.
|
||||||
virtual void flush ();
|
virtual void flush ();
|
||||||
|
|||||||
@ -89,4 +89,3 @@ OutStream& dec (OutStream& os);
|
|||||||
OutStream& hex (OutStream& os);
|
OutStream& hex (OutStream& os);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@ -19,6 +19,7 @@ int main() {
|
|||||||
/* Hier muess Code eingefuegt werden */
|
/* Hier muess Code eingefuegt werden */
|
||||||
|
|
||||||
// Bildschirm loeschen.
|
// Bildschirm loeschen.
|
||||||
|
kout.clear();
|
||||||
|
|
||||||
// Startmeldung ausgeben
|
// Startmeldung ausgeben
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user