summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-05-16 01:33:11 +0300
committerOxore <oxore@protonmail.com>2023-05-16 01:33:11 +0300
commit2594d7fd14f4692aeae8f1c94836bd3187c52cc2 (patch)
tree41959c5fffb5164b1132cc7c5bc1e11a61368911 /common.h
parent1c983286a91bc224ac792174b6e2fb7e124613c7 (diff)
Impl separately enabled absolute and relative relocations
Diffstat (limited to 'common.h')
-rw-r--r--common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common.h b/common.h
index 0f96cc3..cb176c4 100644
--- a/common.h
+++ b/common.h
@@ -12,6 +12,8 @@ struct Settings {
bool raw_data_comment{};
};
+constexpr unsigned kRelocRelMask = 1;
+constexpr unsigned kRelocAbsMask = 2;
constexpr size_t kInstructionSizeStepBytes = 2;
constexpr size_t kRomSizeBytes = 4 * 1024 * 1024;
constexpr size_t kDisasmMapSizeElements = kRomSizeBytes / kInstructionSizeStepBytes;