summaryrefslogtreecommitdiff
path: root/disasm.h
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-05-17 00:16:21 +0300
committerOxore <oxore@protonmail.com>2023-05-17 00:19:41 +0300
commit1cda51bbea62c61fff3f8ff6225faa8e270cabd7 (patch)
tree68b7f0d174899e3ef789d2000c50fe811dde423b /disasm.h
parent253628f0a481ac340642c30cd8e12536e4e17bd7 (diff)
Rename `reloc` to `ref` everywhere
Diffstat (limited to 'disasm.h')
-rw-r--r--disasm.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/disasm.h b/disasm.h
index 98b6fb6..925925c 100644
--- a/disasm.h
+++ b/disasm.h
@@ -297,9 +297,9 @@ struct Arg {
int SNPrint(
char *buf,
size_t bufsz,
- unsigned relocation = 0,
+ unsigned ref_kinds = 0,
uint32_t self_addr = 0,
- uint32_t reloc_addr = 0) const;
+ uint32_t ref_addr = 0) const;
};
enum class TracedNodeType {
@@ -350,9 +350,9 @@ struct Op {
}
int FPrint(
FILE *,
- unsigned relocation = 0,
+ unsigned ref_kinds = 0,
uint32_t self_addr = 0,
- uint32_t reloc_addr = 0) const;
+ uint32_t ref_addr = 0) const;
};
struct DisasmNode {
@@ -361,10 +361,10 @@ struct DisasmNode {
const uint32_t offset{};
/// Instruction size in bytes
size_t size{kInstructionSizeStepBytes};
- /// Indicates whether `reloc_addr` should be interpreted and how
- bool has_relocation{};
+ /// Indicates whether `ref_addr` should be interpreted and how
+ bool has_ref{};
/// Absolute address of where to branch to
- uint32_t reloc_addr{};
+ uint32_t ref_addr{};
/// Indicates whether instruction is a call (BSR, JSR) or just a branch
/// (Bcc, JMP) if `has_branch_addr` is set
bool is_call{};