From ab276c733ce9dc80983e5c8ae5c530e1477cf990 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 31 Mar 2024 23:10:44 +0300 Subject: implement more meta instructions + Also have a working draft of ABI names for registers, matches qbt currently but should probably codify somewhere --- tasm/include/tasm/assembler.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tasm/include') 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); -- cgit v1.3