
51
8.14 Load Memory LD
Format:
LD Path&Filename.rec|.s19
LDL Path&Filename.rec|.s19
or
LD Path&Filename.obj|bin StartAddress
LDL Path&Filename.obj|bin StartAddress
Command to fill memory from an S19 file or from a binary image file. The LD form writes to MCU-
controlled memory, LDL writes only to local memory.
A complete path and filename, with extension, must be supplied. If a file in S19 record format is to be
loaded, then the extension must be '.s19' or '.rec'. If a binary image file is to be loaded, it must have
the extension '.obj' or '.bin' and a starting address for loading must be specified.
The path part of the filename may be shortened by the use of tokens - see the section on Path Tokens
on page 41. If the path and filename include spaces, then the whole argument string must be enclosed
in single or double quotation marks, as in this example:
LD "C:\My Documents\HC908\S19 Files\First.S19"
The following example loads a binary image file into MCU controlled memory, starting at address
$9000:
LD "[Xplor8]\Samples\Bin Example 1.obj" 9000
Note the use of quotation marks to enclose an argument which contains spaces and would otherwise
be wrongly interpreted.
To save having to type the file name and path, this command may be executed automatically from the
Actions menu with one of the four items: Load S19 to MCU, Load Binary to MCU, Load S19 to
Local and Load Binary to Local. The word 'LD' or 'LDL', as appropriate, followed by the full file
name, is then written to the command edit box, and the command is executed. A speedbutton is
provided for the common operation of loading an S19 format file to MCU-controlled memory.
The 'LDL' form of this command may be used to fill memory anywhere in the 64 KB address space,
but the 'LD' form will fail if the destination is not covered by one of the address ranges specified in
Settings>Memory.
During the execution of the Load command, the Output window displays information on the areas
of memory being written.
Kommentare zu diesen Handbüchern