diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-21 04:12:23 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-21 04:12:23 -0400 |
commit | 7a5087952b4074e4a6665f850f1fa103fba1f4e8 (patch) | |
tree | 514c4ab0a1756a9a44e9b4f793366679639ec5d4 /usr.bin/oasm/include | |
parent | 850a464bfa48e3f4279bc2362c7b565896a88b9a (diff) |
oasm: emit: Add 'unused' field to instruction
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin/oasm/include')
-rw-r--r-- | usr.bin/oasm/include/oasm/emit.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/oasm/include/oasm/emit.h b/usr.bin/oasm/include/oasm/emit.h index e4ed83c..f4b4f77 100644 --- a/usr.bin/oasm/include/oasm/emit.h +++ b/usr.bin/oasm/include/oasm/emit.h @@ -91,7 +91,10 @@ typedef uint16_t imm_t; typedef struct { uint8_t opcode; uint8_t rd; - uint16_t imm; + union { + uint16_t imm; + uint16_t unused; + }; } inst_t; struct emit_state { |