I feel like I'm missing something obvious, but I can't seem to find an example of doing this anywhere...
const InsTabEntry = struct {
mask: u32,
bits: u32,
fmt: []const u8,
};
const instab : [_]InsTabEntry = .{
{ .mask = 0x0000707f, .bits = 0x00004013, .fmt = "xori %d, %1, %i", },
// ...
};
This doesn't compile... and I've tried a number of variations and have not landed on anything that appears to get me an array of InsTabEntry structs.