We are trying to save a number > 255 in a EEPROM cell. Please we need an example code.
int x = 321; //0x0141EEPROM.write(0x0010, highByte(x)); //0x01 is written at location 0x0010 of internal EEPROMEEPROM.write(0x0011, lowByte(x)); //0x41 is written at location 0x0011 of internal EEPROM
Use EEPROM.put() and EEPROM.get(); it will write and read any variable type as needed (with exception if String (capital S)).
The OP is asking for the division of a number into two bytes before the number is stored into EEPOM. The EEPROM.put() command, of course, divides the number into two bytes before writing it into EEPROM; but, the process happens beyond the knowledge of the user.