aboutsummaryrefslogtreecommitdiff
path: root/minias.h
diff options
context:
space:
mode:
authorAndrew Chambers <[email protected]>2021-10-19 16:15:49 +1300
committerAndrew Chambers <[email protected]>2021-10-19 16:15:49 +1300
commit221b83997a22fc2abc2282d90763e0435943021c (patch)
tree7e89cee98dad066e3d0de4204e21adead95c4dde /minias.h
parent375efafb6aeb486ff2b079e8464d4b746ba4f213 (diff)
Remove special case for call.
Diffstat (limited to 'minias.h')
-rw-r--r--minias.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/minias.h b/minias.h
index ec8f7cc..1baaf89 100644
--- a/minias.h
+++ b/minias.h
@@ -61,7 +61,6 @@ typedef enum {
ASM_DIR_QUAD,
ASM_DIR_BALIGN,
// Instructions.
- ASM_CALL,
ASM_JMP,
ASM_INSTR,
// Registers, order matters.
@@ -237,15 +236,6 @@ typedef struct String {
typedef String Ascii;
typedef String Asciiz;
-typedef struct Call {
- AsmKind kind;
- uint32_t indirect;
- union {
- const Parsev* indirect;
- Value direct;
- } target;
-} Call;
-
typedef struct Jmp {
AsmKind kind;
uint32_t cc; /* 0 means unconditional. */
@@ -267,6 +257,7 @@ typedef enum Encoder {
ENCODER_OP,
ENCODER_OPREG,
ENCODER_OPMEM,
+ ENCODER_RELCALL,
ENCODER_R,
ENCODER_RIMM,
ENCODER_IMM,
@@ -305,7 +296,6 @@ union Parsev {
Asciiz asciiz;
Memarg memarg;
Instr instr;
- Call call;
Jmp jmp;
Fill fill;
Byte dirbyte;