summaryrefslogtreecommitdiff
path: root/disasm.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 /disasm.h
parent1c983286a91bc224ac792174b6e2fb7e124613c7 (diff)
Impl separately enabled absolute and relative relocations
Diffstat (limited to 'disasm.h')
-rw-r--r--disasm.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/disasm.h b/disasm.h
index 4f0ef9f..98b6fb6 100644
--- a/disasm.h
+++ b/disasm.h
@@ -297,7 +297,7 @@ struct Arg {
int SNPrint(
char *buf,
size_t bufsz,
- bool has_relocation = false,
+ unsigned relocation = 0,
uint32_t self_addr = 0,
uint32_t reloc_addr = 0) const;
};
@@ -350,7 +350,7 @@ struct Op {
}
int FPrint(
FILE *,
- bool has_relocation = false,
+ unsigned relocation = 0,
uint32_t self_addr = 0,
uint32_t reloc_addr = 0) const;
};
@@ -361,10 +361,10 @@ struct DisasmNode {
const uint32_t offset{};
/// Instruction size in bytes
size_t size{kInstructionSizeStepBytes};
- /// Indicates whether `branch_addr` should be interpreted
- bool has_branch_addr{};
+ /// Indicates whether `reloc_addr` should be interpreted and how
+ bool has_relocation{};
/// Absolute address of where to branch to
- uint32_t branch_addr{};
+ uint32_t reloc_addr{};
/// Indicates whether instruction is a call (BSR, JSR) or just a branch
/// (Bcc, JMP) if `has_branch_addr` is set
bool is_call{};