News:

  • May 05, 2026, 07:34:25 PM

Login with username, password and session length

Author Topic: MOVER and $Now  (Read 5129 times)

nfei

  • Jr. Member
  • **
  • Posts: 14
    • North Fork Electric Inc.
MOVER and $Now
« on: November 30, 2015, 06:02:50 PM »
Why are the $Now. (SDT0-7) not available in the MOVER instruction? I had to use a separate MOVE for each value. No big deal, just more code to write.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3806
    • Host Engineering
Re: MOVER and $Now
« Reply #1 on: November 30, 2015, 06:21:40 PM »
MOVER moves bit/numeric values, so you can move a real to an integer or a byte to a real and (of course) reals to reals, et. al.  It's not meant for structures.

HOWEVER...

look at MEMCOPY.  It is for blind copying of raw BYTEs, which is exactly what you need to do when copying structures to structures.  It supports ranges, just like MOVER.

So, you can eliminate your MOVEs and replace it with a single MEMCOPY  :D.