summaryrefslogtreecommitdiffhomepage
path: root/newBoot/BootKit
diff options
context:
space:
mode:
Diffstat (limited to 'newBoot/BootKit')
-rw-r--r--newBoot/BootKit/Boot.hpp70
1 files changed, 70 insertions, 0 deletions
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 <NewKit/Defines.hpp>
+
+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,
+};