The Generation III save file is broken up into two game save blocks, each of which is broken up into 4 KB sections. Strings in fixed-length fields are terminated with 0xFF with any remainder padded with 0x00. Text data is stored in a proprietary encoding. Unless otherwise noted, integer values occupy the specified number of bytes, and are little-endian and either unsigned or two's complement. The integrity of most of the file is validated by checksums. Emulators may append additional data for the purposes of maintaining real-time clock operations or any number of uses, which can complicate the creation of editing tools. These should not be confused with save state files, which might have similar file extensions. When emulated, this data is generally placed in a separate file ('.sav' is a common extension). The structure consists of 128 KB of data, though not every byte is used. This is different from previous generations of Pokémon, which used battery-backed memory (SRAM). The save data structure for Generation III is stored in the cartridge's flash memory chip (Flash-RAM), which does not lose data when power is lost.
Pokémon Brilliant Diamond and Shining Pearl.