102
Copy block quickly
The function copies data among blocks in internal registers space. Following parameters are
used:
register (get X) – source block address
register (get Y) – block size
register (store result) - destination block address
Destination and source block may overlap.
When block size exceeds the size of internal register space the data is not copied and the
function rises an error flag.
Example:
REG1 = 0x60, REG2 = 0x100, REG3 = 0x600
get X (register) = REG1
get Y (register) = REG2
store result (register) = REG3
The function copies data from source block 0x060…0x15F (XREG1…XREG256) to
destination block 0x600…0x6FF (P2SND_B1…P2SND_B256)
Read value from table
This function takes the numerical value from table starting with (get X) register. The value
from table cell defined by index register (get Y) is copied to store result register. Table cells
are indexed from 0.
store result = get X [get Y].
The function rises error flag when copied value exceeds the range of destination register or
cell address lays beyond the space.
Example:
get X (register) = XREG10
get Y (register) = REG1
store result (register) = DREG2
If REG1 = 4, than function performs the operation:
DREG2 = XREG14
Write value to table
The function writes numeric value to table starting with register (store result). The value
from register (get X) is copied to table cell defined by index register (get Y). Table cells are
indexed from 0.
store result [get Y] = get X.
The function rises error flag when copied value exceeds the range of destination register or
cell address lays beyond the space.
Example:
get X (register) = REG2
get Y (register) = DREG1
store result (register) = XREG100
If DREG1 = -5, than function performs the operation:
XREG95 = REG2
Difference between X and Y
This function calculates the integer difference between X and Y, no matter which value is
higher.
Exceeding the valid range rises the error flag.
store result (register) = integer value of (get X (register) - get Y (register))
Summary of Contents for MT-101
Page 1: ......
Page 129: ...126 11 7 Drawings and dimensions ...