22.11.2.11 Shift Memory

Deletes the specified block and moves the following data blocks upward. The block to be deleted is designated using an offset. When an error occurs, the error status is written to LS9151.

_memshift ([Start Address], [End Address], Offset of Block to Delete, Words in 1 Block)

Example expression 1:

_memshift ([w:[#INTERNAL]LS1000], [w:[#INTERNAL]LS1030], 1, 10)

Data moves upward in block units (1 block = 10 words), and the last block (10 words) is cleared to zero.

Example expression 2:

_memshift ([w:[#INTERNAL]LS1000], [w:[#INTERNAL]LS1030], 2, 10)

The data moves upward in block units (1 block = 10 words) starting from the offset 2 position, and the last block (10 words) is cleared to zero.

Error Status

Editor Function Name

LS Area

Error Status

Cause

_memshift ( )

LS9151

0000h

Completed Successfully

0001h

Parameter error

0003h

Write/Read error