Skip to content

Commit

Permalink
Added types
Browse files Browse the repository at this point in the history
  • Loading branch information
cheng-alvin committed Dec 1, 2023
1 parent e870835 commit c23f692
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libjas/include/codegen.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#include <stdint.h>

// TODO Add documentation.

typedef union {
uint8_t u8;
uint16_t u16;
uint32_t u32;
uint64_t u64;
} jasOperand_t;

typedef jasErrorCode_t (*jasInstructionEncoderPointerArray_t[])(jasOperand_t, jasOperand_t, jasOperand_t, jasOperand_t, uint8_t *, jasInstance_t);

0 comments on commit c23f692

Please sign in to comment.