copy [-f] from to sizewhere:
| from | declares the source address location. |
| to | declares the target address location. |
| size | is the size of the block of memory to be copied. This quantity is specified in bytes. |
| -f | Specifies that the destination is flash memory. |
The -f option is used when copying to flash memory. This requires that the board supports writes to that address range, and that the flash memories support sector erase.
If to is less than from, copying is performed in ascending order starting at from. If from is less than to, copying is performed in descending order starting at from + size.
When moving a data block down, the source data is copied from the bottom of the block upwards: and when moving a data block up, the source data is copied from the top of the block downwards. By this technique, there is no risk of copying over data in overlapping block move operations; as the data in the overlapping area is copied first. However, if the -f option is specified, copying is always performed in ascending address order.
PMON> copy 80020000 80060000 2000
PMON> copy -f 80020000 bfc40000 1000
pmcc -prom -crt0 -T 9fc40000 -D 80020000 -o bubble crt1.s bubble.c PMON> load e03e0000 -- download bubble.rec total = 146e PMON> copy -f 80020000 bfc40000 1500Note:
li a0,0x80020000 jal cpdata
PMON> g 9fc40000