mmove dst src length
This command is used to copy the contents of the memory
starting at src
to the memory located at dst
for the specified length
in octets.
This command returns 0 on success and non-zero if an error is encountered.
NONE
The following is an example of how to use mmove
:
SHLL [/] $ mdump 0x023d99a0 16 0x023D99A0 A5 A5 A5 A5 A5 A5 A5 A5-A5 A5 A5 A5 A5 A5 A5 A5 ................ SHLL [/] $ mdump 0x02000000 16 0x02000000 A1 48 00 00 29 00 80 33-81 C5 22 BC A6 10 21 00 .H..)..3.."...!. SHLL [/] $ mmove 0x023d99a0 0x02000000 13 SHLL [/] $ mdump 0x023d99a0 16 0x023D99A0 A1 48 00 00 29 00 80 33-81 C5 22 BC A6 A5 A5 A5 .H..)..3..".....
This command is included in the default shell command set.
When building a custom command set, define
CONFIGURE_SHELL_COMMAND_MMOVE
to have this
command included.
This command can be excluded from the shell command set by
defining CONFIGURE_SHELL_NO_COMMAND_MMOVE
when all
shell commands have been configured.
The mmove
is implemented by a C language function
which has the following prototype:
int rtems_shell_rtems_main_mmove( int argc, char **argv );
The configuration structure for the mmove
has the
following prototype:
extern rtems_shell_cmd_t rtems_shell_MMOVE_Command;
Copyright © 1988-2008 OAR Corporation