Writes file contents to memory.
restore -h <filename> [[<ms>:]<addr>|+<offset>] [8bit|16bit|32bit|64bit]
restore -b <filename> [<ms>:]<addr> [8bit|16bit|32bit|64bit]
The following table lists and defines options of the restore command.
| Command | Description |
|---|---|
| -h|-b | Specifies the input file format as hex or binary. |
| [<ms>:]<addr> | Address to load to. For hex format, this selection overrides the address specified in the file. For architectures with multiple memory spaces, a memory space id may be specified. See config MemIdentifier and mem -ms for more details. |
| <offset> | Loads the contents of the hex file at an offset of the original location. |
| 8bit|16bit|32bit|64bit | Controls the memory access size. |
The following table lists and defines examples of the restore command.
| Command | Description |
|---|---|
| restore -h dat.txt | Loads the contents of the hex file dat.txt into memory. |
| restore -b dat.bin 0x20 | Loads the contents of binary file dat.bin into memory beginning at 0x20. |
| restore -h dat.bin +0x20 | Loads the contents of the binary file dat.lod into memory with an offset of 0x20 relative to the address saved in dat.bin. |