thomassorensen
Member
Hi Guys
I am trying to figure out, what exactly is happening in the below code.
I can see that they are looping through all the errorbits in DB50, but I am unable to figure out what they are doing with each bit.
I am trying to figure out, what exactly is happening in the below code.
I can see that they are looping through all the errorbits in DB50, but I am unable to figure out what they are doing with each bit.
Code:
L #NUMBER_OF_ERRORS
M001: T #ERROR_NUMBER
+ -1 // 1 SUBSTRACT AS BIT START AT 0.0 AND NOT AT 0.1
LAR1
OPN DB [50] // OPEN error DB
A DBX [AR1,P#0.0]
OPN DB [55] // Open acknowledge DB
TAR1
SLW 3
LAR1
= DBX [AR1,P#0.0]
L #ERROR_NUMBER
LOOP M001