santoshdongerpure
Member
Dear all,
I have prepared a logic for moving DBvalues first in first out.
There is a problem in execution could you guys help me out.
L 0
T #index
T #index_temp
T #out
L 1
T #incr
L P#DBX 2.0
LAR1
T #count
// When Triggerd
A #activate
JCN M003
OPN #Source //Open Source DB
L P#DBX 0.0 //point pointer
LAR1 //load pointer into register +AR1
L DBW [AR1,P#0.0]
T #out // transfer first in to first out
JC l2
l2: L #count
+AR1
L DBW [AR1,P#0.0]
T DBW [AR2,P#0.0]
L #count
+AR2
L #noofelem
L #incr
+ 1
T #incr
L 20
<I
LOOP l2
NOP 0
I have prepared a logic for moving DBvalues first in first out.
There is a problem in execution could you guys help me out.
L 0
T #index
T #index_temp
T #out
L 1
T #incr
L P#DBX 2.0
LAR1
T #count
// When Triggerd
A #activate
JCN M003
OPN #Source //Open Source DB
L P#DBX 0.0 //point pointer
LAR1 //load pointer into register +AR1
L DBW [AR1,P#0.0]
T #out // transfer first in to first out
JC l2
l2: L #count
+AR1
L DBW [AR1,P#0.0]
T DBW [AR2,P#0.0]
L #count
+AR2
L #noofelem
L #incr
+ 1
T #incr
L 20
<I
LOOP l2
NOP 0