Big Endian
TechJedi > Big Endian
Big Endian and Little Endian — read + write word
13
Jun
I thought sharing some code for accessing word from in little & big endian ways will be helpful for someone. get_word() implementation: int get_word(int address) { int i = address — from; //From is the start address of memory in the Linear Address Space if (CONSTANTS.BIG_ENDIAN) { return (((int) memory[i] << 24) | (((int) memory[i […]