From 5339d016c07bf717ee388f4feb73544087324af0 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 6 Jan 2024 09:14:11 +0100 Subject: git: port from mercurial repo. Signed-off-by: Amlal El Mahrouss --- newBoot/BootKit/Boot.hpp | 70 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 newBoot/BootKit/Boot.hpp (limited to 'newBoot/BootKit') diff --git a/newBoot/BootKit/Boot.hpp b/newBoot/BootKit/Boot.hpp new file mode 100644 index 00000000..b7199f08 --- /dev/null +++ b/newBoot/BootKit/Boot.hpp @@ -0,0 +1,70 @@ +/* + * ======================================================== + * + * newBoot + * Copyright Mahrouss Logic, all rights reserved. + * + * ======================================================== + */ + +#pragma once + +#include + +using namespace hCore; + +typedef void* PEFImage; + +enum +{ + kSegmentCode = 2, + kSegmentData = 4, + kSegmentBss = 6, +}; + +class BTextWriter final +{ + volatile UInt16* fWhere; + +public: + void WriteString(const char* c, + unsigned char forecolour, + unsigned char backcolour, + int x, + int y); + + void WriteCharacter(char c, + unsigned char forecolour, + unsigned char backcolour, + int x, + int y); + +public: + BTextWriter() = default; + ~BTextWriter() = default; + +public: + BTextWriter& operator=(const BTextWriter&) = default; + BTextWriter(const BTextWriter&) = default; + +}; + +enum +{ + kBlack, + kBlue, + kGreen, + kCyan, + kRed, + kMagenta, + kBrown, + kLightGray, + kDarkGray, + kLightBlue, + kLightGreen, + kLightCyan, + kLightRed, + kLightMagenta, + kYellow, + kWhite, +}; -- cgit v1.2.3