Reply 140 of 151, by superfury
So I would need to change ALL bitfields used in my emulator to bytes/words/dwords/uint_64 and use a support
#define getbits(field,shift,mask) ((field>>shift)&mask)
#define setbits(field,shift,mask,value) field=((field&(~(mask<<shift)))|((value&mask)<<shift))
to access each of the bitfields in order to keep it cross-compiler compatible?
Quite a lot of those bitfields are already used in the cases different structures use bits of data(literally). Like the CPU structures(x86 descriptors) and the floppy disk registers. Also the CMOS values use them.
Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io