summaryrefslogtreecommitdiffstats
path: root/arch/x86/io/VGADisplay.cpp
diff options
context:
space:
mode:
authorAlexey Gavrilov <rebovas@yahoo.com>2024-04-10 12:58:20 +0700
committerAlexey Gavrilov <rebovas@yahoo.com>2024-04-10 12:58:20 +0700
commit515a11b818e4140845f69bb26a19d270a9e42178 (patch)
treefd22e0d8d56a6498fb67ffcd99da0a45b97ab5f3 /arch/x86/io/VGADisplay.cpp
parent9ad5b9b6a1f8d641ac13f7c004afd6ea9bff50ee (diff)
MSR + IDT + test ISRs
Diffstat (limited to 'arch/x86/io/VGADisplay.cpp')
-rw-r--r--arch/x86/io/VGADisplay.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/x86/io/VGADisplay.cpp b/arch/x86/io/VGADisplay.cpp
index ceb4862..5075351 100644
--- a/arch/x86/io/VGADisplay.cpp
+++ b/arch/x86/io/VGADisplay.cpp
@@ -1,4 +1,5 @@
#include "VGADisplay.h"
+#include "VGADisplayInfo.h"
VGADisplay out::display;
@@ -137,3 +138,12 @@ bool VGADisplay::printChar(const char &c)
}
}
};
+
+void VGADisplay::clearScreen()
+{
+ xCurr = yCurr = 0;
+ videoMem = (dchar *)VGADisplayInfo::videoMemAddr;
+ uint16 maxPos = VGADisplayInfo::height * VGADisplayInfo::width * 2;
+
+ for(uint16 pos = 0; pos < maxPos; pos++) *this << ' ';
+};