'Move' command would be nice

#1
A 'nice to have' would be a command that could move data internally in the Picaxe. Data can be in EEPROM, RAM or Scratchpad, so could have a command like:
<b>
MOVE SourceType,DestType,SourceAddress,DestAddress,(Data,Data,Data....)
</b>
Where Source and DestType have values of:
0 = EEPROM
1 = RAM
2 = Scratchpad

The data values are byte values (or Word values with the 'Word' prefix).

The advantages of this approach would be compactness of code, no need to use intermediate variables and loops to transfer values.

Could have another command SWAP, where the values in the two locations are swapped, and instead of the data string just have the number of bytes.


Edited by - jeremy leach on 10/06/2007 09:55:10
 
Top