Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: maciek on April 06, 2017, 10:21:09 PM

Title: brx do more or do less
Post by: maciek on April 06, 2017, 10:21:09 PM
is there a simple  instruction in do more like there is one in click "copy" single or a pack. it is very useful one
Title: Re: brx do more or do less
Post by: MikeS on April 07, 2017, 09:30:41 AM
MOVE will copy one element to another
MOVER (Move Range) will copy a contiguous group of elements
MEMCOPY will copy one or more structures
Title: Re: brx do more or do less
Post by: BobO on June 05, 2018, 08:12:58 AM
We added a new COPY box that does many different copy types. No need to use the individual instructions now.
Title: Re: brx do more or do less
Post by: Controls Guy on June 05, 2018, 01:25:38 PM
So reading the help it sounds as if COPY is value-aware, is that right?

And if we just want a value-agnostic byte-pipe we should use MEMCOPY?
Title: Re: brx do more or do less
Post by: BobO on June 05, 2018, 01:31:56 PM
MEMCOPY has a couple of modes, some of which are type aware. COPY actually is just a pretty face on many underlying instructions. Just use COPY unless there is a good reason not to.
Title: Re: brx do more or do less
Post by: Controls Guy on June 05, 2018, 02:00:43 PM
Still confused.  How do you get COPY to do type-agnostic, for example if you're moving a value from MHR to string?  Cast the input to byte level?

So I was asking if we still need MEMCOPY for type-agnostic.
Title: Re: brx do more or do less
Post by: franji1 on June 05, 2018, 03:40:30 PM
Still confused.  How do you get COPY to do type-agnostic, for example if you're moving a value from MHR to string?  Cast the input to byte level?

So I was asking if we still need MEMCOPY for type-agnostic.

COPY does the "normal" 99% data copying needs (it's just a macro for all the various other instructions).  There is 1% it does NOT do, e.g. MHR to/from STRING is part of that 1%.

There is a chart in Designer 2.2 that shows all the nasty details of all the data copying instructions vs. what they can do.  Look at Help Topic DmD0431 "Data Operations".  99% of the time, COPY will do what you want.
Title: Re: brx do more or do less
Post by: Controls Guy on June 05, 2018, 04:30:07 PM
COPY does the "normal" 99% data copying needs (it's just a macro for all the various other instructions).  There is 1% it does NOT do, e.g. MHR to/from STRING is part of that 1%.

There is a chart in Designer 2.2 that shows all the nasty details of all the data copying instructions vs. what they can do.  Look at Help Topic DmD0431 "Data Operations".  99% of the time, COPY will do what you want.

OK, that's a good overview of what COPY is meant for.  I will take a look at that topic.
Title: Re: brx do more or do less
Post by: BobO on June 05, 2018, 05:27:56 PM
Still confused.  How do you get COPY to do type-agnostic, for example if you're moving a value from MHR to string?  Cast the input to byte level?

So I was asking if we still need MEMCOPY for type-agnostic.

STRGETB and STRPUTB are safer.