summaryrefslogtreecommitdiffhomepage
path: root/CompilerKit/AsmKit
diff options
context:
space:
mode:
Diffstat (limited to 'CompilerKit/AsmKit')
-rw-r--r--CompilerKit/AsmKit/Arch/32x0.hpp (renamed from CompilerKit/AsmKit/Arch/32k.hpp)4
-rw-r--r--CompilerKit/AsmKit/Arch/64x0.hpp (renamed from CompilerKit/AsmKit/Arch/64k.hpp)4
-rw-r--r--CompilerKit/AsmKit/AsmKit.cc6
3 files changed, 9 insertions, 5 deletions
diff --git a/CompilerKit/AsmKit/Arch/32k.hpp b/CompilerKit/AsmKit/Arch/32x0.hpp
index 291abfe..28bf754 100644
--- a/CompilerKit/AsmKit/Arch/32k.hpp
+++ b/CompilerKit/AsmKit/Arch/32x0.hpp
@@ -12,14 +12,14 @@
#include <CompilerKit/Defines.hpp>
// @brief 32x0 support.
-// @file Arch/64k.hpp
+// @file Arch/32x0.hpp
#define kAsmOpcodeDecl(__NAME, __OPCODE, __FUNCT3, __FUNCT7) \
{ .fName = __NAME, .fOpcode = __OPCODE, .fFunct3 = __FUNCT3, .fFunct7 = __FUNCT7 },
-// placeholder for funct7/funct7-rs2
+
#define kAsmImmediate 0x01
#define kAsmSyscall 0x02
#define kAsmJump 0x03
diff --git a/CompilerKit/AsmKit/Arch/64k.hpp b/CompilerKit/AsmKit/Arch/64x0.hpp
index 95d635f..161bc06 100644
--- a/CompilerKit/AsmKit/Arch/64k.hpp
+++ b/CompilerKit/AsmKit/Arch/64x0.hpp
@@ -12,13 +12,13 @@
#include <CompilerKit/Defines.hpp>
// @brief 64x0 support.
-// @file Arch/64k.hpp
+// @file Arch/64x0.hpp
#define kAsmOpcodeDecl(__NAME, __OPCODE, __FUNCT3, __FUNCT7) \
{ .fName = __NAME, .fOpcode = __OPCODE, .fFunct3 = __FUNCT3, .fFunct7 = __FUNCT7 },
-// placeholder for funct7/funct7-rs2
+
#define kAsmImmediate 0x01
#define kAsmRegToReg 0x02
#define kAsmSyscall 0x03
diff --git a/CompilerKit/AsmKit/AsmKit.cc b/CompilerKit/AsmKit/AsmKit.cc
index 3118e56..1e8ec4a 100644
--- a/CompilerKit/AsmKit/AsmKit.cc
+++ b/CompilerKit/AsmKit/AsmKit.cc
@@ -13,7 +13,7 @@
#include <iostream>
//! @file AsmKit.cpp
-//! @brief AssemblyKit
+//! @brief AssemblyKit source implementation.
namespace CompilerKit
{
@@ -32,7 +32,9 @@ namespace CompilerKit
void AssemblyFactory::Mount(AssemblyMountpoint* mountPtr) noexcept
{
if (mountPtr)
+ {
fMounted = mountPtr;
+ }
}
AssemblyMountpoint* AssemblyFactory::Unmount() noexcept
@@ -40,7 +42,9 @@ namespace CompilerKit
auto mount_prev = fMounted;
if (mount_prev)
+ {
fMounted = nullptr;
+ }
return mount_prev;
}