News:

  • August 22, 2026, 10:53:04 PM

Login with username, password and session length

Author Topic: brx do more or do less  (Read 13655 times)

maciek

  • Sr. Member
  • ****
  • Posts: 95
brx do more or do less
« 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

MikeS

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 268
    • Host Engineering, Inc.
Re: brx do more or do less
« Reply #1 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
Good design costs a lot. Bad design costs even more.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: brx do more or do less
« Reply #2 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.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Re: brx do more or do less
« Reply #3 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?
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: brx do more or do less
« Reply #4 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.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Re: brx do more or do less
« Reply #5 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.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3843
    • Host Engineering
Re: brx do more or do less
« Reply #6 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.

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Re: brx do more or do less
« Reply #7 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.
« Last Edit: June 05, 2018, 05:02:20 PM by Controls Guy »
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: brx do more or do less
« Reply #8 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.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO