aboutsummaryrefslogtreecommitdiff
path: root/tasm/include
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-03-31 23:10:44 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-03-31 23:10:44 +0300
commitab276c733ce9dc80983e5c8ae5c530e1477cf990 (patch)
treeef5da32c91d27da7a53a26e8d501f0ea616558c8 /tasm/include
parenta152fbd956cc9cb9c05a233abe004ba3d12767a0 (diff)
downloadtri-ab276c733ce9dc80983e5c8ae5c530e1477cf990.tar.gz
tri-ab276c733ce9dc80983e5c8ae5c530e1477cf990.zip
implement more meta instructions
+ Also have a working draft of ABI names for registers, matches qbt currently but should probably codify somewhere
Diffstat (limited to 'tasm/include')
-rw-r--r--tasm/include/tasm/assembler.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tasm/include/tasm/assembler.h b/tasm/include/tasm/assembler.h
index 6941186..61a2a3b 100644
--- a/tasm/include/tasm/assembler.h
+++ b/tasm/include/tasm/assembler.h
@@ -11,8 +11,12 @@ enum asm_reloc_kind {
RELOC_LA,
/* relative AUIPC + ADDI (currently unimplemented) */
RELOC_LR,
+ /* branch */
RELOC_B,
+ /* jal */
RELOC_J,
+ /* call */
+ RELOC_CALL,
};
tri_t parse_imm(const char *imm);