Fix insn_disasm build warnings

This commit is contained in:
Arceveti
2021-09-28 17:35:12 -07:00
parent 4adf87f622
commit 82edc20696

View File

@@ -21,15 +21,15 @@ extern far char *parse_map(u32);
static char insn_as_string[100];
typedef struct __attribute__((packed)) {
u8 rd : 5;
u8 shift_amt : 5;
u8 function : 6;
u16 rd : 5;
u16 shift_amt : 5;
u16 function : 6;
} RTypeData;
typedef struct __attribute__((packed)) {
u8 opcode : 6;
u8 rs : 5;
u8 rt : 5;
u16 opcode : 6;
u16 rs : 5;
u16 rt : 5;
union {
RTypeData rdata;
u16 immediate;
@@ -44,8 +44,8 @@ typedef union {
typedef struct __attribute__((packed)) {
u32 type;
u32 arbitraryParam;
u8 opcode : 6;
u8 function : 6;
u16 opcode : 6;
u16 function : 6;
u8 name[10];
} InsnTemplate;