diff options
| author | Alexey Gavrilov <rebovas@yahoo.com> | 2023-08-20 20:12:36 +0700 |
|---|---|---|
| committer | Alexey Gavrilov <rebovas@yahoo.com> | 2023-08-20 20:12:36 +0700 |
| commit | b82ccebd3a0cce28177b5fac046139e2de7737fa (patch) | |
| tree | b4e048eb7bed81a726340fb98690dce62eed7475 /arch/x86/io/VGADisplayInfo.h | |
| parent | a601dbb1dd5569243fd3006a27e914491fc3f35e (diff) | |
Getting started with print on display + some fixes
Diffstat (limited to 'arch/x86/io/VGADisplayInfo.h')
| -rw-r--r-- | arch/x86/io/VGADisplayInfo.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/x86/io/VGADisplayInfo.h b/arch/x86/io/VGADisplayInfo.h new file mode 100644 index 0000000..33235cc --- /dev/null +++ b/arch/x86/io/VGADisplayInfo.h @@ -0,0 +1,27 @@ +#ifndef VGAINFOCLASS_H +#define VGAINFOCLASS_H + +#include "../inc/types.h" + +#define TOBG(attr) attr << 4 + +class VGADisplayInfo +{ + public: + const static uint32 videoMemAddr = 0xB8000; + const static uint16 width = 80; + const static uint16 height = 25; + const static uint16 tabSize = 8; + enum class colorAttr { + black = 0, + blue = 1, + green = 2, + cyan = 3, + red = 4, + magenta = 5, + brown = 6, + gray = 7 + }; +}; + +#endif |
