Wordmove question
Damien Allen
Posts: 103
Is it possible to use the wordmove instruction to copy words into a byte array?
For example:
I would like to do this because my modbus driver works with bytes but the registers that i'm simulating are words. It would make everything easier if i could achieve this.
i've tried it but without success, i could use a repeat loop but the manual says that wordmove is faster.
Damo
For example:
byte newarray[noparse][[/noparse]30] word wordvars[noparse][[/noparse]5] wordmove(@newarray[noparse][[/noparse]3],@wordvars[noparse][[/noparse]2], 2)
I would like to do this because my modbus driver works with bytes but the registers that i'm simulating are words. It would make everything easier if i could achieve this.
i've tried it but without success, i could use a repeat loop but the manual says that wordmove is faster.
Damo
Comments
Cheers
Damo