diff options
| author | Alexey Gavrilov <90127298+rebovas@users.noreply.github.com> | 2024-04-10 13:12:08 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-10 13:12:08 +0700 |
| commit | 0a50b1758fd3da118408fd724825d0a50a9ecf17 (patch) | |
| tree | 783ed019c87c3c9624a1a13f68c7bafc4c146dfb /arch/x86/io/VGADisplay.cpp | |
| parent | 9ad5b9b6a1f8d641ac13f7c004afd6ea9bff50ee (diff) | |
| parent | 0c56a0300b7ffbab787a4c974bc164d9a2a57ad2 (diff) | |
Merge pull request #8 from rebovas/msr
Msr + interrupts implement + crude implementation of IDT filling
Diffstat (limited to 'arch/x86/io/VGADisplay.cpp')
| -rw-r--r-- | arch/x86/io/VGADisplay.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/io/VGADisplay.cpp b/arch/x86/io/VGADisplay.cpp index ceb4862..7246102 100644 --- a/arch/x86/io/VGADisplay.cpp +++ b/arch/x86/io/VGADisplay.cpp @@ -137,3 +137,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 << ' '; +}; |
